:root {
    /* Color Palette - Bespoke Editorial */
    --bg-primary: #faf8f5;     /* Warm Cream */
    --bg-secondary: #f4f0e6;   /* Warm Sand */
    --brand-primary: #1b3b32;  /* Deep Pine Green */
    --brand-dark: #122923;
    --accent-gold: #b89355;    /* Antique Gold */
    --accent-gold-light: #d4bc91;
    
    --text-main: #222b28;      /* Deep Charcoal Green */
    --text-muted: #5c6b65;     /* Slate Grey */
    --white: #ffffff;
    
    --border-soft: #e2ddd3;
    --border-focus: #b89355;
    
    --shadow-soft: 0 8px 30px rgba(27, 59, 50, 0.08);
    --shadow-medium: 0 12px 40px rgba(27, 59, 50, 0.12);
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo a {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--brand-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s ease;
}

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

/* --- Layout Components --- */

.topbar {
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-soft);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo a {
    font-size: 1.7rem;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav a:hover {
    color: var(--accent-gold);
}

.nav-toggle {
    display: none;
}

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

/* --- Hero Section --- */

.hero {
    min-height: 85vh;
    background: 
        linear-gradient(rgba(250, 248, 245, 0.7), rgba(250, 248, 245, 0.4)),
        url('/static/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    width: 100%;
    padding: 100px 0;
}

.hero-text {
    max-width: 800px;
}

.badge {
    display: inline-block;
    background: var(--brand-primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 24px;
    font-weight: 500;
    font-style: italic;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 0; /* Elegant sharp corners */
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
}

.btn-secondary:hover {
    background: var(--brand-primary);
    color: var(--white);
}

.hero-points {
    margin-top: 48px;
    display: flex;
    gap: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-primary);
}

/* --- Sections & Cards --- */

.section {
    padding: 100px 0;
}

.section.alt {
    background: var(--bg-secondary);
}

.section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    font-style: italic;
}

.cards {
    display: grid;
    gap: 40px;
}

.cards.three {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--white);
    padding: 50px 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.pricing .price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--accent-gold);
    margin: 20px 0;
}

.pricing ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    color: var(--text-muted);
}

.pricing li {
    margin-bottom: 6px;
    padding-left: 24px;
    position: relative;
}

.pricing li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.featured {
    background: var(--brand-primary);
    color: var(--white);
    transform: scale(1.05);
    z-index: 2;
}

.featured h3, .featured .price {
    color: var(--white);
}

.featured li {
    color: rgba(255, 255, 255, 0.8);
}

.cta-box {
    background: var(--bg-secondary);
    padding: 80px 40px;
    text-align: center;
}

.cta-box h2 {
    font-size: 3.5rem;
}

/* --- Form Styles --- */

.form-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
}

.step-progress::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-soft);
    z-index: 1;
}

.step-node {
    width: 32px;
    height: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    transition: all 0.4s ease;
}

.step-node.active {
    background: var(--brand-primary);
    color: var(--white);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 6px rgba(27, 59, 50, 0.1);
}

.step-node.completed {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--white);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 18px 0;
    border: none;
    border-bottom: 1px solid var(--border-soft);
    font-family: var(--font-body);
    font-size: 1rem;
    background: transparent;
    transition: border-color 0.4s ease;
    border-radius: 0;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

.form-grid textarea {
    min-height: 100px;
    resize: vertical;
}

.full {
    grid-column: 1 / -1;
}

.group-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Chip style checkboxes */
.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-grid label {
    padding: 10px 20px;
    border: 1px solid var(--border-soft);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-grid label:has(input:checked) {
    background: var(--brand-primary);
    color: var(--white);
    border-color: var(--brand-primary);
}

.checkbox-grid input {
    display: none;
}

.notice {
    padding: 24px;
    background: var(--bg-secondary);
    font-style: italic;
    color: var(--text-muted);
}

.consent-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.consent-box label {
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.form-actions.between {
    justify-content: space-between;
}

/* --- Success & Legal --- */

.success-box, .legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.summary-card {
    margin: 40px 0;
    padding: 40px;
    background: var(--bg-secondary);
}

/* --- Footer --- */

.footer {
    background: var(--brand-primary);
    color: rgba(250, 248, 245, 0.7);
    padding: 100px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 80px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer li {
    margin-bottom: 12px;
}

.footer a:hover {
    color: var(--accent-gold);
}

/* --- Mobile --- */

@media (max-width: 900px) {
    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        width: min(320px, 92vw);
        padding: 12px;
        background: var(--bg-primary);
        border: 1px solid var(--border-soft);
        box-shadow: var(--shadow-medium);
        flex-direction: column;
        gap: 0;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 12px 16px;
    }

    .nav a:hover,
    .nav a:focus-visible {
        background: var(--bg-secondary);
        color: var(--brand-primary);
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        color: var(--brand-primary);
        background: transparent;
        border: 1px solid var(--border-soft);
        cursor: pointer;
    }

    .nav-toggle:focus-visible {
        outline: 2px solid var(--accent-gold);
        outline-offset: 3px;
    }

    .nav-toggle-icon,
    .nav-toggle-icon span {
        display: block;
    }

    .nav-toggle-icon {
        width: 22px;
        height: 16px;
        position: relative;
    }

    .nav-toggle-icon span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: currentColor;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav-toggle-icon span:nth-child(1) {
        top: 0;
    }

    .nav-toggle-icon span:nth-child(2) {
        top: 7px;
    }

    .nav-toggle-icon span:nth-child(3) {
        top: 14px;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .logo a {
        font-size: clamp(1.25rem, 5vw, 1.7rem);
    }
    
    .cards.three, .footer-grid, .form-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section h2 {
        font-size: 2.2rem;
    }
    
    .featured {
        transform: none;
    }
}
