/* ================================================================
   AryBuilds — Shared Styles
   Tokens · Reset · Typography · Layout · Nav · Buttons · Footer
   ================================================================ */

/* ── Tokens ── */
:root {
    --bg:          #0c0c0f;
    --surface:     #131316;
    --surface-2:   #1a1a1e;
    --text:        #ede9e1;
    --muted:       #9b97a3;
    --faint:       #6e6b76;
    --gold:        #c9a96e;
    --gold-dim:    rgba(201,169,110,0.1);
    --gold-glow:   rgba(201,169,110,0.06);
    --border:      rgba(255,255,255,0.09);
    --border-hi:   rgba(255,255,255,0.16);
    --shadow:      0 8px 40px rgba(0,0,0,0.5);
    --shadow-lg:   0 24px 80px rgba(0,0,0,0.65);
    --r:           10px;
    --r-sm:        6px;
    --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Playfair Display", Georgia, serif;
    --mono:  "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --focus-ring:  0 0 0 2px var(--bg), 0 0 0 4px var(--gold);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font-family: inherit; }
ul, ol { list-style: none; }

/* ── Focus ── */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--r-sm);
}
a:focus-visible,
button:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--r-sm);
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: var(--gold);
    color: var(--bg);
    padding: .6rem 1.2rem;
    border-radius: var(--r-sm);
    font-family: var(--sans);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: top .2s;
}
.skip-link:focus {
    top: 1rem;
}

/* ── Base ── */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 55% at 65% -5%,  rgba(201,169,110,.06) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at -5% 105%, rgba(110,80,200,.03)  0%, transparent 55%);
    z-index: -1;
    pointer-events: none;
}

/* ── Typography ── */
h1, h2, h3 {
    font-family: var(--serif);
    line-height: 1.1;
    letter-spacing: -.02em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 500; }
em { font-style: italic; font-weight: 400; }

/* max-width applied per-context, not globally */

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left:  max(1.25rem, 4vw);
    padding-right: max(1.25rem, 4vw);
}

section { padding: 5rem 0; }

.section-label {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .12em;
    display: block;
    margin-bottom: 1.5rem;
}

.section-header { margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: .75rem; }

.section-sub {
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 500px;
    line-height: 1.7;
}

/* ── Page Hero (subpages) ── */
.page-hero {
    padding-top: 5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.page-label {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1.25rem;
    display: block;
}

.page-hero h1 {
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.page-hero p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 560px;
    line-height: 1.7;
    font-weight: 300;
}

/* ── Nav ── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(12,12,15,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.logo {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--text);
}
.logo span { color: var(--gold); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-size: .875rem;
    color: var(--muted);
}
.nav-links a { padding: .25rem 0; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .75rem 1.6rem;
    font-size: .875rem;
    font-weight: 500;
    font-family: var(--sans);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all .22s ease;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg);
    border: 1px solid var(--gold);
}
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(201,168,106,.45), 0 0 4px rgba(201,168,106,.25);
}

.btn-outline,
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hi);
}
.btn-outline:hover,
.btn-secondary:hover {
    box-shadow: 0 0 16px rgba(201,168,106,.35), 0 0 4px rgba(201,168,106,.2);
    border-color: rgba(201,168,106,.4);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: none;
    padding-left: 0;
    padding-right: 0;
}
.btn-ghost:hover { color: var(--text); }

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 201;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Nav ── */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12,12,15,.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}
.mobile-nav a {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -.01em;
    transition: color .2s ease;
    padding: .5rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav a[aria-current="page"] { color: var(--gold); }

.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: max(1.25rem, 4vw);
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 10px;
    z-index: 201;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-close svg { display: block; }

.nav-book-btn { }

/* ── CTA Strip ── */
.cta-strip {
    border-top: 1px solid var(--border);
    padding: 5rem 0;
    text-align: center;
}
.cta-strip h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}
.cta-strip p {
    color: var(--muted);
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 500px;
}
.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.footer-top {
    padding: 4rem 0 3rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.footer-logo {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    display: inline-block;
    margin-bottom: .65rem;
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
    font-size: .85rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.65;
    max-width: 260px;
}
.footer-social {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
}
.footer-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: border-color .2s ease, color .2s ease, background .2s ease;
    text-decoration: none;
}
.footer-social-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
}
.footer-col-label {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--gold);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    display: block;
}
.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.footer-col-links a {
    font-size: .875rem;
    color: var(--muted);
    transition: color .2s ease;
    padding: .15rem 0;
}
.footer-col-links a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-copy {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--faint);
    letter-spacing: .05em;
}
.footer-legal {
    display: flex;
    gap: 1.5rem;
}
.footer-legal a {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--faint);
    letter-spacing: .04em;
    transition: color .2s ease;
}
.footer-legal a:hover { color: var(--muted); }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
    .nav-links      { display: none; }
    .nav-book-btn   { display: none; }
    .hamburger      { display: flex; }
    .mobile-nav     { display: flex; }
}
@media (max-width: 600px) {
    .footer-top    { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
}
