/* =========================
   DESIGN TOKENS
========================= */
:root {
    /* palette */
    --ink-900: #0b0d12;        /* near-black */
    --ink-800: #11141b;
    --ink-700: #1a1f2b;
    --ink-600: #2a3142;
    --ink-200: #d8dde6;
    --ink-100: #eef1f6;
    --paper:   #f8f7f3;        /* warm off-white */
    --white:   #ffffff;

    --gold-500: #d6ae6b;       /* refined gold */
    --gold-400: #e3c084;
    --gold-300: #f0d6a4;
    --gold-100: #f6e7c8;

    --text:        #0f1117;
    --text-muted:  #4a5263;
    --text-soft:   #6b7384;
    --line:        rgba(15, 17, 23, 0.08);
    --line-strong: rgba(15, 17, 23, 0.16);

    /* spacing scale */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;
    --s-10: 8rem;

    /* radii */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;

    /* type */
    --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-display: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* nav height */
    --nav-h: 72px;

    /* shadows */
    --shadow-sm: 0 1px 2px rgba(11, 13, 18, 0.06), 0 1px 1px rgba(11, 13, 18, 0.04);
    --shadow-md: 0 8px 24px rgba(11, 13, 18, 0.08);
    --shadow-lg: 0 24px 60px rgba(11, 13, 18, 0.18);
}

/* =========================
   RESET
========================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--text);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--nav-h);
    max-width: 100%;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    display: block;
}
a  { color: inherit; }

::selection {
    background: var(--gold-300);
    color: var(--ink-900);
}

/* =========================
   LAYOUT
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container-narrow {
    width: 90%;
    max-width: 820px;
    margin: 0 auto;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p  { color: var(--text-muted); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold-500);
    margin-bottom: var(--s-4);
}

/* =========================
   NAVIGATION
========================= */
nav.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(11, 13, 18, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

nav.site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

nav.site-nav .logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

nav.site-nav .logo-mark {
    width: 42px;
    height: 42px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(214, 174, 107, 0.22);
    flex: 0 0 auto;
}

nav.site-nav .nav-links {
    list-style: none;
    display: flex;
    gap: var(--s-6);
    align-items: center;
}

nav.site-nav .nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    font-size: 0.94rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 6px 0;
}

nav.site-nav .nav-links a:hover {
    color: var(--white);
}

nav.site-nav .nav-links a.active {
    color: var(--gold-400);
}

nav.site-nav .nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--gold-400);
    border-radius: 2px;
}

/* hamburger */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}

.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.96rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
}

.btn-primary {
    background: var(--gold-400);
    color: var(--ink-900);
    box-shadow: 0 6px 20px rgba(214, 174, 107, 0.35);
}

.btn-primary:hover {
    background: var(--gold-300);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(214, 174, 107, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}

.btn-secondary:hover {
    border-color: var(--text);
    transform: translateY(-1px);
}

.btn-ghost-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* =========================
   HERO — HOMEPAGE
========================= */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--ink-900);
    margin-top: calc(-1 * var(--nav-h));
    padding-top: var(--nav-h);
    isolation: isolate;
}

/* blurred image fallback behind video */
.hero::before {
    content: "";
    position: absolute;
    inset: -24px;
    background: url('pic12345.JPG') center/cover no-repeat;
    filter: blur(8px) saturate(115%) brightness(0.6);
    transform: scale(1.06);
    z-index: 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.45) saturate(110%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(11, 13, 18, 0.4) 0%,
        rgba(11, 13, 18, 0.2) 40%,
        rgba(11, 13, 18, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 860px;
    padding: var(--s-7) var(--s-5);
}

.hero-content .eyebrow { color: var(--gold-300); }

.hero h1 {
    color: var(--white);
    margin-bottom: var(--s-5);
}

.hero p {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 640px;
    margin: 0 auto var(--s-7);
}

.hero-actions {
    display: inline-flex;
    gap: var(--s-3);
    flex-wrap: wrap;
    justify-content: center;
}

/* =========================
   PAGE HERO (inner pages)
========================= */
.page-hero {
    position: relative;
    padding: var(--s-9) 0 var(--s-8);
    background: var(--ink-900);
    color: var(--white);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

/* blurred background image */
.page-hero::before {
    content: "";
    position: absolute;
    inset: -24px;
    background: url('pic12345.JPG') center/cover no-repeat;
    filter: blur(8px) saturate(115%) brightness(0.85);
    transform: scale(1.06);
    z-index: -2;
}

/* dark/gold overlay for legibility */
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 500px at 50% -10%, rgba(214, 174, 107, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(11, 13, 18, 0.55) 0%, rgba(11, 13, 18, 0.82) 100%);
    z-index: -1;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
    color: var(--white);
    margin-bottom: var(--s-4);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* =========================
   SECTIONS
========================= */
section {
    padding: var(--s-9) 0;
}

section.section-tight { padding: var(--s-8) 0; }

section.section-dark {
    background: var(--ink-900);
    color: var(--white);
}

section.section-dark h1,
section.section-dark h2,
section.section-dark h3 { color: var(--white); }

section.section-dark p { color: rgba(255, 255, 255, 0.75); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--s-8);
}

.section-head p {
    font-size: 1.08rem;
    margin-top: var(--s-3);
}

/* =========================
   ABOUT BLOCK
========================= */
.about-block {
    max-width: 780px;
    margin: 0 auto;
    text-align: left;
}

.about-block p + p { margin-top: var(--s-4); }

.about-block .lead {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.55;
    margin-bottom: var(--s-5);
}

/* =========================
   SERVICES GRID
========================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-5);
    margin-top: var(--s-7);
}

.service {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s-6);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    position: relative;
    overflow: hidden;
}

.service::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(214, 174, 107, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.service:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-300);
}

.service:hover::before { opacity: 1; }

.service .service-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-100);
    color: var(--ink-900);
    border-radius: 10px;
    margin-bottom: var(--s-2);
}

.service .service-icon svg {
    width: 22px;
    height: 22px;
}

.service h3 {
    font-size: 1.15rem;
    color: var(--text);
}

.service p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.service .service-more {
    margin-top: auto;
    padding-top: var(--s-3);
    color: var(--gold-500);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

.service .service-more .arrow { transition: transform 0.2s ease; }
.service:hover .service-more .arrow { transform: translateX(3px); }

/* =========================
   PROCESS / NUMBERED CARDS
========================= */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-5);
    margin-top: var(--s-7);
    counter-reset: step;
}

.process-step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s-6);
    text-align: left;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.process-step .step-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-500);
    letter-spacing: 0.16em;
    margin-bottom: var(--s-3);
}

.process-step h3 {
    margin-bottom: var(--s-2);
}

/* =========================
   CTA BAND
========================= */
.cta-band {
    background:
        radial-gradient(800px 300px at 50% 0%, rgba(214, 174, 107, 0.18), transparent 60%),
        var(--ink-900);
    color: var(--white);
    text-align: center;
}

.cta-band h2 { color: var(--white); }
.cta-band p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 680px;
    margin: var(--s-3) auto var(--s-6);
}

/* =========================
   QUOTE
========================= */
.founder-quote {
    background: var(--white);
}

.founder-quote blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    line-height: 1.45;
    color: var(--text);
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    font-weight: 500;
    letter-spacing: -0.01em;
    position: relative;
    padding: 0 var(--s-5);
}

.founder-quote blockquote::before {
    content: "“";
    position: absolute;
    left: 50%;
    top: -56px;
    transform: translateX(-50%);
    font-size: 6rem;
    line-height: 1;
    color: var(--gold-300);
    font-family: Georgia, serif;
}

.quote-author {
    text-align: center;
    margin-top: var(--s-5);
    color: var(--text-soft);
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* =========================
   FORM
========================= */
.form-stack {
    max-width: 680px;
    margin: 0 auto;
    display: grid;
    gap: var(--s-5);
    text-align: left;
}

.form-field { display: grid; gap: var(--s-2); }

.form-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea { resize: vertical; min-height: 140px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(214, 174, 107, 0.18);
}

.form-actions { text-align: center; margin-top: var(--s-3); }

.form-status {
    display: none;
    max-width: 680px;
    margin: 0 auto var(--s-5);
    padding: 14px 16px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    background: var(--white);
    font-weight: 600;
}

.form-status.is-visible { display: block; }
.form-status.is-success {
    border-color: rgba(79, 141, 93, 0.4);
    color: #2f6f3d;
}
.form-status.is-error {
    border-color: rgba(184, 72, 72, 0.4);
    color: #9f3434;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================
   FOOTER
========================= */
footer.site-footer {
    background: var(--ink-900);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--s-7) 0 var(--s-5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-4);
}

footer.site-footer .footer-brand {
    color: var(--white);
    font-weight: 600;
    letter-spacing: -0.01em;
}

footer.site-footer p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* =========================
   MEDIA QUERIES
========================= */
@media (max-width: 860px) {
    :root {
        --nav-h: 64px;
    }

    .container,
    .container-narrow {
        width: min(100% - 32px, 720px);
    }

    nav.site-nav .nav-toggle { display: inline-flex; }

    nav.site-nav .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(11, 13, 18, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: var(--s-4) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    nav.site-nav .nav-links.is-open {
        max-height: 480px;
        padding: var(--s-4) 0;
    }

    nav.site-nav .nav-links li { width: 100%; }

    nav.site-nav .nav-links a {
        display: block;
        padding: 14px var(--s-5);
        width: 100%;
    }

    nav.site-nav .nav-links a.active::after { display: none; }

    section { padding: var(--s-7) 0; }

    .hero {
        min-height: calc(100svh - var(--nav-h));
        align-items: flex-end;
    }

    .hero-content {
        width: 100%;
        padding: var(--s-5) 0 var(--s-7);
    }

    .hero-actions {
        width: 100%;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .page-hero {
        padding: var(--s-7) 0 var(--s-6);
        min-height: 380px;
    }

    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .service,
    .process-step {
        padding: var(--s-5);
    }

    .cta-band {
        padding: var(--s-7) 0;
    }

    footer.site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
        line-height: 1.65;
    }

    .container,
    .container-narrow {
        width: min(100% - 24px, 420px);
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.15rem; }

    .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        margin-bottom: var(--s-3);
    }

    .btn {
        min-height: 46px;
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.92rem;
    }

    nav.site-nav .logo {
        font-size: 1.05rem;
    }

    nav.site-nav .logo-mark {
        width: 36px;
        height: 36px;
    }

    nav.site-nav .nav-links a {
        min-height: 46px;
        padding: 13px 24px;
    }

    .hero {
        min-height: calc(100svh - var(--nav-h));
    }

    .hero-content {
        padding: var(--s-4) 0 var(--s-6);
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero p,
    .page-hero p,
    .about-block .lead {
        font-size: 1rem;
    }

    .page-hero {
        min-height: 320px;
        padding: var(--s-6) 0;
    }

    .service,
    .process-step {
        padding: var(--s-5);
    }

    .founder-quote blockquote {
        font-size: 1.2rem;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        min-height: 46px;
    }

    footer.site-footer {
        padding: var(--s-6) 0;
    }
}

/* =========================
   PRINT (basic)
========================= */
@media print {
    nav.site-nav, .hero-video, .cta-band, footer.site-footer { display: none !important; }
    body { padding-top: 0; background: #fff; color: #000; }
}
