@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --black: #0a0a0a;
    --surface: #111111;
    --surface-up: #161616;
    --earth: #4A7043;
    --earth-bright: #5d8d54;
    --tan: #D4C4B0;
    --tan-dim: rgba(212, 196, 176, 0.40);
    --tan-ghost: rgba(212, 196, 176, 0.06);
    --green-glow: rgba(74, 112, 67, 0.30);
    --white: #f0ece6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: var(--tan);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; color: var(--white); font-weight: 600; }

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Grain ── */
.grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Nav ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 48px;
    transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
    height: 80px; overflow: visible;
}
.nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(24px);
    border-bottom-color: var(--tan-ghost);
}
.nav-inner {
    max-width: 1320px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 80px; flex-wrap: nowrap; overflow: hidden;
}
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo {
    width: 40px; height: 40px; background: var(--earth); border-radius: 12px;
    display: grid; place-items: center; color: #fff; font-size: 17px;
    box-shadow: 0 4px 20px var(--green-glow); flex-shrink: 0;
}
.nav-wordmark {
    font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700;
    color: var(--white); letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
    font-size: 14px; font-weight: 500; color: var(--tan-dim);
    text-decoration: none; letter-spacing: 0.3px; transition: color 0.25s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
    padding: 12px 28px; background: var(--earth); color: #fff; border: none;
    border-radius: 9999px; font-family: 'DM Sans', sans-serif; font-size: 13px;
    font-weight: 600; letter-spacing: 0.5px; cursor: pointer; transition: all 0.25s;
    box-shadow: 0 4px 20px var(--green-glow); text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta:hover { background: var(--earth-bright); transform: translateY(-1px); box-shadow: 0 8px 28px var(--green-glow); }

/* ── Hamburger (mobile) ── */
.nav-hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
    z-index: 101;
}
.nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--tan); border-radius: 2px; transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ── */
.nav-mobile-menu {
    display: none; /* hidden by default — JS adds .open to show */
    position: fixed; top: 80px; left: 0; right: 0; z-index: 98;
    background: rgba(10,10,10,0.97); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--tan-ghost);
    padding: 8px 24px 28px;
    flex-direction: column;
    animation: mobileMenuIn 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
.nav-mobile-menu.open {
    display: flex;
}
@keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile-menu a {
    display: block; padding: 16px 0; font-size: 17px; font-weight: 500;
    color: var(--tan); text-decoration: none;
    border-bottom: 1px solid rgba(212,196,176,0.06); transition: color 0.2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--white); }
.nav-mobile-cta {
    margin-top: 16px !important; text-align: center;
    background: var(--earth) !important; color: #fff !important;
    border-radius: 9999px !important; padding: 16px !important;
    font-weight: 600 !important; border-bottom: none !important;
    box-shadow: 0 4px 20px var(--green-glow);
}

/* ── Sections ── */
section { position: relative; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 48px; }

/* ── Divider ── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,196,176,0.08), transparent);
    margin: 0 auto; max-width: 1320px;
}

/* ── Section eyebrow ── */
.section-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 3px;
    text-transform: uppercase; color: var(--earth); margin-bottom: 20px;
}

/* ── Buttons ── */
.btn-primary {
    padding: 18px 40px; background: var(--earth); color: #fff; border: none;
    border-radius: 9999px; font-family: 'DM Sans', sans-serif; font-size: 15px;
    font-weight: 600; cursor: pointer; transition: all 0.3s;
    box-shadow: 0 8px 32px var(--green-glow); display: inline-flex;
    align-items: center; gap: 10px; position: relative; overflow: hidden;
    text-decoration: none;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    background-size: 200% 100%; animation: shimmer 3s ease infinite;
}
.btn-primary:hover {
    background: var(--earth-bright); transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(74,112,67,0.5);
}
.btn-primary:disabled {
    opacity: 0.6; cursor: not-allowed; transform: none;
}
.btn-outline {
    padding: 18px 36px; background: transparent; color: var(--tan);
    border: 1.5px solid rgba(212, 196, 176, 0.2); border-radius: 9999px;
    font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
    cursor: pointer; transition: all 0.3s; display: inline-flex;
    align-items: center; gap: 10px; text-decoration: none;
}
.btn-outline:hover {
    border-color: var(--earth); color: var(--white);
    background: rgba(74, 112, 67, 0.06);
}

/* ── Footer ── */
.footer { padding: 60px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-brand-name {
    font-family: 'Cormorant Garamond', serif; font-size: 22px;
    font-weight: 700; color: var(--white);
}
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--tan-dim); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: rgba(212,196,176,0.25); }

/* ── Form base ── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
    font-size: 12px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--tan-dim);
}
.form-input, .form-select, .form-textarea {
    background: var(--surface); border: 1px solid rgba(212,196,176,0.1);
    border-radius: 12px; padding: 16px 20px; color: var(--white);
    font-family: 'DM Sans', sans-serif; font-size: 15px;
    transition: border-color 0.25s, box-shadow 0.25s; width: 100%;
    -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(212,196,176,0.25); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--earth);
    box-shadow: 0 0 0 3px rgba(74,112,67,0.12);
}
.form-select { cursor: pointer; }
.form-select option { background: var(--surface); }
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Page header (inner pages) ── */
.page-header {
    padding: 160px 0 80px;
    position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(74, 112, 67, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.page-header-content { max-width: 640px; }
.page-header h1 {
    font-size: clamp(40px, 5vw, 64px); line-height: 1.1; letter-spacing: -1px;
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-header p {
    margin-top: 20px; font-size: 18px; color: var(--tan-dim); line-height: 1.8;
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both 0.15s;
}

/* ── Toast notification ── */
.toast {
    position: fixed; bottom: 32px; right: 32px; z-index: 10000;
    padding: 16px 24px; border-radius: 14px;
    font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 12px;
    transform: translateY(80px); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
    max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--earth); color: #fff; box-shadow: 0 8px 32px var(--green-glow); }
.toast.error { background: #8b3535; color: #fff; box-shadow: 0 8px 32px rgba(139,53,53,0.4); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav { padding: 0 20px; }
    .nav-links { display: none !important; }
    .nav-cta { display: none !important; }
    .nav-hamburger { display: flex !important; }
    .nav-wordmark { font-size: 22px; }
    .container { padding: 0 20px; }
    .btn-primary, .btn-outline { padding: 15px 24px; font-size: 14px; width: 100%; justify-content: center; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer-links { gap: 20px; }
    .page-header { padding: 120px 0 48px; }
    .page-header h1 { font-size: clamp(32px, 8vw, 48px); }
    .section-divider { margin: 0 20px; }
    .form-row { grid-template-columns: 1fr; }
}
