/* ============================
   TOKENS
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Palette */
    --clay:       #8C705F;
    --clay-dark:  #7F534B;
    --clay-light: #C9ADA7;
    --ink:        #1E1A1D;
    --ink-deep:   #140f12;
    --cream:      #FAF7F5;
    --warm-white: #FFFCFA;
    --mist:       #F2EDE9;
    --border:     rgba(140,112,95,.15);

    /* Type */
    --font-display: 'Syne', sans-serif;
    --font-body:    'Inter', Arial, sans-serif;

    /* Spacing */
    --section-gap: 6rem;
}

/* ============================
   RESET / BASE
   ============================ */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Subtle dot-grain texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .045;
    background-image: radial-gradient(#000 0.5px, transparent 0.5px);
    background-size: 5px 5px;
}

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ============================
   HEADER
   ============================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250,247,245,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -.01em;
    color: var(--ink);
}

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--clay);
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    position: relative;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    letter-spacing: .01em;
    transition: color .2s;
}

.main-nav a:not(.nav-cta):hover { color: var(--clay); }

.main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 1.5px;
    background: var(--clay);
    transition: width .25s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    padding: .55rem 1.25rem;
    background: var(--clay);
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: .875rem;
    transition: background .2s, transform .15s;
}
.nav-cta:hover {
    background: var(--clay-dark) !important;
    transform: translateY(-1px);
}

/* ============================
   HERO
   ============================ */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(160deg, rgba(30,26,29,.72) 0%, rgba(30,26,29,.50) 100%),
        url("https://images.unsplash.com/photo-1558981806-ec527fa84c39?auto=format&fit=crop&w=1800&q=80")
        center / cover no-repeat;
    color: #fff;
}

/* Giant ghost word behind content — the aesthetic risk */
.hero-bg-text {
    position: absolute;
    bottom: -1rem;
    right: -2rem;
    font-family: var(--font-display);
    font-size: clamp(7rem, 18vw, 20rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: rgba(255,255,255,.055);
    user-select: none;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    padding: 5rem 0;
}

.hero-content { max-width: 620px; }

.hero-content .eyebrow { margin-bottom: 1.5rem; }

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}

.hero-content .lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Stat stack */
.hero-stat-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 1px solid rgba(255,255,255,.15);
    padding-left: 3rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.stat-label {
    font-size: .8rem;
    color: var(--clay-light);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: .2rem;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,.4);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    animation: hint-bob 2s ease-in-out infinite;
}

@keyframes hint-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================
   BUTTONS
   ============================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.75rem;
    background: var(--clay);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .01em;
    transition: background .2s, transform .15s, box-shadow .2s;
}

.btn:hover {
    background: var(--clay-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(140,112,95,.3);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .85rem 0;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    border-bottom: 1px solid rgba(255,255,255,.3);
    transition: color .2s, border-color .2s;
}

.btn-ghost:hover {
    color: #fff;
    border-color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--clay-dark) !important;
}
.btn-light:hover {
    background: var(--mist);
    color: var(--clay-dark) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* ============================
   EYEBROW
   ============================ */

.eyebrow {
    display: inline-block;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: rgba(201,173,167,.25);
    color: var(--clay-light);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.eyebrow-dark {
    background: rgba(140,112,95,.12);
    color: var(--clay);
}

/* ============================
   TRUST BAR
   ============================ */

.trust-bar {
    background: var(--ink);
    padding: 1.1rem 0;
}

.trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: rgba(255,255,255,.7);
    font-size: .825rem;
    font-weight: 500;
    letter-spacing: .01em;
    padding: .4rem 2rem;
}

.trust-item svg { color: var(--clay-light); flex-shrink: 0; }

.trust-divider {
    width: 1px;
    height: 1.2rem;
    background: rgba(255,255,255,.12);
}

/* ============================
   FEATURES
   ============================ */

.features {
    padding: var(--section-gap) 0;
}

.section-head {
    max-width: 680px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-head .eyebrow { margin-bottom: 1rem; }

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--ink);
    margin-bottom: 1rem;
}

.section-head p {
    color: #777;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Card */
.feature-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,.08);
    border-color: var(--clay-light);
}

.feature-icon-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(140,112,95,.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clay);
}

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

.card-num {
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 700;
    color: var(--clay-light);
    letter-spacing: .08em;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .75rem;
    letter-spacing: -.01em;
}

.feature-card p {
    color: #666;
    font-size: .95rem;
    line-height: 1.8;
    flex: 1;
    margin-bottom: 1.5rem;
}

.card-link {
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    color: var(--clay);
    letter-spacing: .01em;
    transition: color .2s;
    margin-top: auto;
}

.card-link:hover { color: var(--clay-dark); }

/* ============================
   CTA STRIP
   ============================ */

.cta-strip {
    background:
        linear-gradient(135deg, var(--ink-deep) 0%, #2e2028 100%);
    padding: 4rem 0;
}

.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-strip h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.cta-strip p {
    color: rgba(255,255,255,.55);
    font-size: 1rem;
}

/* ============================
   GENERIC PAGE STYLES
   ============================ */

.page { padding: var(--section-gap) 0; }

.page-header { margin-bottom: 3rem; }

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.lead {
    font-size: 1.1rem;
    color: #666;
    max-width: 680px;
    line-height: 1.8;
}

/* ============================
   SERVICES PAGE
   ============================ */

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.service {
    padding: 2rem;
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: .25s ease;
}

.service:hover {
    transform: translateY(-4px);
    border-color: var(--clay-light);
    box-shadow: 0 16px 40px rgba(0,0,0,.07);
}

.service h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--ink);
}

.service p { color: #666; line-height: 1.8; font-size: .95rem; }

/* ============================
   PROCESS PAGE
   ============================ */

.process { margin: 3rem 0; }

.process-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.step-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--clay-light);
    line-height: 1;
}

.process-step h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--ink);
}

.process-step p { color: #666; line-height: 1.8; font-size: .95rem; }

/* ============================
   BLOG
   ============================ */

.post-preview { padding: 2rem 0; }
.post-preview:first-of-type { padding-top: 0; }

.post-preview h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.post-preview h2 a {
    color: var(--ink);
    text-decoration: none;
    transition: color .2s;
}

.post-preview h2 a:hover { color: var(--clay); }

.meta { color: #999; font-size: .875rem; margin-bottom: .75rem; }

.post-preview p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.25rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-weight: 600;
    font-size: .875rem;
    color: var(--clay);
    text-decoration: none;
    transition: color .2s;
}
.read-more:hover { color: var(--clay-dark); }

.post-preview + hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ============================
   ARTICLE
   ============================ */

.article { max-width: 760px; }

.article h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.article h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: .75rem;
}

.article p,
.article li {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
}

.article img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.article a { color: var(--clay); }
.article a:hover { color: var(--clay-dark); }
.article ul { padding-left: 1.5rem; }

/* ============================
   INLINE CTA BLOCK
   ============================ */

.cta {
    margin-top: 4rem;
    padding: 3rem;
    text-align: center;
    background: var(--mist);
    border-radius: 16px;
    border: 1px solid var(--border);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-stat-stack {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,.15);
        padding-left: 0;
        padding-top: 2rem;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .feature-grid { grid-template-columns: 1fr; }

    .trust-divider { display: none; }
    .trust-inner { justify-content: flex-start; gap: 1rem; }
    .trust-item { padding: .3rem 1rem; }

    .cta-strip-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    :root { --section-gap: 4rem; }

    .header-inner {
        flex-wrap: wrap;
        gap: .75rem;
    }

    .main-nav {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-bg-text { display: none; }

    .hero-content h1 { font-size: 2.4rem; }

    .process-step {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
}

/* ============================
   REDUCED MOTION
   ============================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}