@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&family=Space+Mono&display=swap');

:root {
    --stone: #EDE7DC;
    --stone-deep: #E2DACB;
    --ink: #26302A;
    --ink-soft: #4B554D;
    --sage: #6F8266;
    --sage-deep: #4E5E46;
    --clay: #D9A98C;
    --line: #C9C0AE;
    --paper: #F7F4EC;
    --max-width: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--stone);
    color: var(--ink);
    font-family: 'Work Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage-deep);
}

h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }

/* ---------- NAV ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(237, 231, 220, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.3s;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }

/* Brand Logo Alignment */
.brand { display: flex; align-items: center; gap: 12px; }
.logo-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
.wordmark { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: var(--ink); }
.wordmark span { color: var(--sage); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.nav-item { font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a.nav-item:hover { color: var(--ink); }
.nav-cta {
    font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
    background: var(--ink); color: var(--paper); padding: 10px 20px; border-radius: 100px;
    white-space: nowrap; transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.nav-cta:hover { background: var(--ink-soft); }
.nav-cta:active { transform: scale(0.97); }

/* ---------- SECTION VIEWS (Routing) ---------- */
.page-view { display: none; }
#home:target, #contact:target { display: block; }
/* Fallback to show Home if no valid hash is selected */
#home { display: block; }
#home:has(~ #contact:target) { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 80px 0 60px; overflow: hidden; background: var(--stone); }
.nest-rings { position: absolute; top: -60px; right: -60px; width: 480px; height: 480px; z-index: 0; opacity: 0.25; pointer-events: none; }
.nest-rings circle { fill: none; stroke: var(--sage); stroke-width: 1.2; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { margin-bottom: 24px; display: inline-flex; align-items: center; gap: 8px; background: rgba(111, 130, 102, 0.1); padding: 6px 14px; border-radius: 100px; }
.hero h1 { font-size: 42px; margin-bottom: 24px; font-weight: 400; line-height: 1.12; }
.hero h1 em { font-style: normal; color: var(--sage-deep); border-bottom: 3px solid var(--clay); padding-bottom: 4px; }
.hero p.sub { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 36px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.btn-primary {
    background: var(--sage-deep); color: var(--paper); font-weight: 600; font-size: 15px;
    padding: 16px 28px; border-radius: 100px; display: inline-block; transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.btn-primary:hover { opacity: 0.95; }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
    border: 1px solid var(--ink); color: var(--ink); font-weight: 500; font-size: 15px;
    padding: 15px 28px; border-radius: 100px; display: inline-block; transition: background-color 0.2s, transform 0.1s;
}
.btn-ghost:hover { background: rgba(38, 48, 42, 0.05); }
.btn-ghost:active { transform: scale(0.98); }

.trust-row { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); border-top: 1px solid rgba(201, 192, 174, 0.5); pt: 32px; padding-top: 32px; }
.trust-row div { display: flex; align-items: center; gap: 10px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); shrink-0: true; }

/* ---------- WEAVE DIVIDER ---------- */
.weave { height: 64px; position: relative; overflow: hidden; background: rgba(237, 231, 220, 0.3); }
.weave svg { width: 100%; height: 100%; display: block; }
.weave path { fill: none; stroke: var(--sage); stroke-width: 1.4; opacity: 0.5; }
.weave path:nth-child(2) { stroke: var(--clay); opacity: 0.6; }

/* ---------- SECTION CONFIG ---------- */
section { padding: 80px 0; }
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: 36px; max-width: 24ch; margin-top: 12px; font-weight: 400; }

/* ---------- WHO ITS FOR ---------- */
#who { background: var(--stone); }
.who-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.who-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
    padding: 32px; display: flex; gap: 20px; align-items: flex-start; transition: box-shadow 0.3s;
}
.who-card:hover { box-shadow: 0 4px 12px rgba(38, 48, 42, 0.03); }
.who-card .mark {
    font-family: 'Fraunces', serif; font-size: 18px; color: var(--sage-deep);
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sage);
    display: flex; align-items: center; justify-content: center; flex: none;
}
.who-card h3 { font-size: 18px; margin-bottom: 8px; font-weight: 600; font-family: 'Work Sans', sans-serif; }
.who-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; font-weight: 300; }

/* ---------- SERVICES ---------- */
#services { background: rgba(237, 231, 220, 0.6); }
.tiers { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
.tier {
    border-radius: 20px; padding: 40px 32px; border: 1px solid var(--line); background: var(--paper);
    position: relative; display: flex; flex-direction: column; justify-content: space-between; transition: box-shadow 0.3s;
}
.tier:hover { box-shadow: 0 4px 16px rgba(38, 48, 42, 0.04); }
.tier.featured { background: var(--sage-deep); color: var(--paper); border-color: var(--sage-deep); box-shadow: 0 8px 24px rgba(78, 94, 70, 0.15); }
.tier.featured .label { color: #DCE4D6; }
.tier-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.tier h3 { font-size: 24px; font-weight: 400; }
.tier .price { font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 600; text-transform: uppercase; }
.tier.featured .price { color: var(--clay); }
.tier .price-not-featured { color: var(--sage-deep); }
.tier p.desc { font-size: 15px; line-height: 1.6; margin-bottom: 24px; color: var(--ink-soft); font-weight: 300; }
.tier.featured p.desc { color: #DCE4D6; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: auto; border-top: 1px solid rgba(201, 192, 174, 0.2); padding-top: 24px; }
.tier li { font-size: 14px; padding-left: 20px; position: relative; line-height: 1.5; font-weight: 300; }
.tier li::before { content: "—"; position: absolute; left: 0; color: var(--sage); }
.tier.featured li::before { color: var(--clay); }
.badge {
    position: absolute; top: -12px; right: 30px; background: var(--clay); color: var(--ink);
    font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 100px; font-weight: 500; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ---------- PROCESS ---------- */
#process { background: var(--stone); }
.process { display: grid; grid-template-columns: 1fr; gap: 16px; }
.step { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.step:last-child { border-bottom: none; }
.step .num { font-family: 'Space Mono', monospace; font-size: 14px; color: var(--sage-deep); font-weight: 600; padding-top: 4px; }
.step h3 { font-size: 18px; margin-bottom: 8px; font-weight: 600; font-family: 'Work Sans', sans-serif; }
.step p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; max-width: 64ch; font-weight: 300; }

/* ---------- TESTIMONIAL ---------- */
#testimonial { background: var(--stone); }
.testimonial {
    background: var(--stone-deep); border-radius: 24px; padding: 60px 40px; border: 1px solid var(--line);
    text-align: center; max-width: 800px; margin: 0 auto; box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.testimonial p.quote { font-family: 'Fraunces', serif; font-size: 24px; line-height: 1.45; margin-bottom: 24px; font-style: italic; font-weight: 400; }
.testimonial .who { font-size: 11px; color: var(--ink-soft); font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- CTA BLOCK ---------- */
#book-cta { background: var(--stone); }
.cta-block {
    background: var(--ink); color: var(--paper); border-radius: 24px; padding: 60px 40px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    position: relative; overflow: hidden; box-shadow: 0 8px 32px rgba(38,48,42,0.15);
}
.cta-block::before {
    content: ""; position: absolute; bottom: -80px; left: -80px; width: 220px; height: 220px;
    border: 1px solid rgba(247,244,236,0.08); border-radius: 50%; pointer-events: none;
}
.cta-block::after {
    content: ""; position: absolute; top: -80px; right: -80px; width: 220px; height: 220px;
    border: 1px solid rgba(247,244,236,0.08); border-radius: 50%; pointer-events: none;
}
.cta-block h2 { color: var(--paper); font-size: 36px; margin-bottom: 16px; max-width: 20ch; font-weight: 400; }
.cta-block p { font-size: 15px; color: #CFCABF; margin-bottom: 32px; line-height: 1.6; max-width: 48ch; font-weight: 300; }
.cta-block .btn-primary { background: var(--clay); color: var(--ink); font-weight: 600; }

/* ---------- CONTACT PAGE ---------- */
#contact { background: var(--stone); padding: 80px 0; }
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 40px 0;
}
.contact-info { display: flex; flex-direction: column; justify-content: center; }
.contact-info h1 { font-size: 44px; margin-bottom: 20px; font-weight: 400; }
.contact-info p { font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 32px; max-width: 45ch; font-weight: 300; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-method { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.contact-method .icon-wrap {
    width: 44px; height: 44px; background: var(--stone-deep); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--sage-deep);
    font-size: 16px; font-weight: bold; box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.contact-method p.method-title { font-family: 'Space Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--ink-soft); letter-spacing: 0.05em; }
.contact-method p.method-desc { font-weight: 500; color: var(--ink); }

.contact-form-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02); position: relative;
}
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block; font-family: 'Space Mono', monospace; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; color: var(--ink);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px; border: 1px solid var(--line); background: var(--stone);
    border-radius: 12px; font-family: inherit; font-size: 14px; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage);
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(38, 48, 42, 0.4);
}
.form-group textarea { resize: none; min-height: 120px; }
.submit-btn {
    width: 100%; background: var(--sage-deep); color: var(--paper); border: none;
    font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 15px;
    padding: 16px; border-radius: 100px; cursor: pointer; transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.submit-btn:hover { opacity: 0.95; }
.submit-btn:active { transform: scale(0.98); }

/* Success Message Container styling */
.success-container {
    display: none; flex-direction: column; align-items: center; text-align: center; padding: 40px 10px;
}
.success-badge {
    width: 60px; height: 60px; background: rgba(111, 130, 102, 0.1); color: var(--sage-deep);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 24px;
}
.success-container h3 { font-family: 'Fraunces', serif; font-size: 24px; margin-bottom: 12px; font-weight: 500; }
.success-container p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; max-width: 42ch; margin-bottom: 32px; font-weight: 300; }
.success-reset-btn {
    border: 1px solid var(--line); background: transparent; font-family: 'Space Mono', monospace;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 24px;
    border-radius: 100px; cursor: pointer; color: var(--ink); transition: background-color 0.2s;
}
.success-reset-btn:hover { background: var(--stone); }

/* ---------- FOOTER ---------- */
footer { padding: 60px 0; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); background: var(--stone); }
footer .footer-inner { display: flex; flex-direction: column; gap: 32px; justify-content: space-between; align-items: flex-start; }
footer .footer-brand { display: flex; flex-direction: column; gap: 12px; }
footer .footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-family: 'Space Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sage-deep); }
footer .footer-nav a:hover { color: var(--ink); }
footer .footer-bottom {
    border-top: 1px solid rgba(201, 192, 174, 0.4); margin-top: 40px; padding-top: 24px;
    display: flex; flex-direction: column; sm:flex-row justify-content: space-between; gap: 16px;
    font-size: 11px; color: rgba(75, 85, 77, 0.6); font-weight: 300;
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */
@media(min-width:768px) {
    .who-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .tiers { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .hero h1 { font-size: 54px; }
    .hero { padding: 120px 0 80px; }
    .contact-container { grid-template-columns: 1fr 1.2fr; gap: 64px; }
    footer .footer-inner { flex-direction: row; align-items: center; }
    .tier.featured { transform: translateY(-8px); }
}

@media(min-width:1024px) {
    .process { grid-template-columns: repeat(2, 1fr); column-gap: 64px; row-gap: 16px; }
    .step { padding: 40px 0; }
}
