/* ─── Base & Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Typography ─── */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

/* ─── Utility Labels ─── */
.label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #c2785a;
    background: #fdf0eb;
    border: 1px solid #f3bfb8;
    padding: .35em .9em;
    border-radius: 999px;
}
.label-light {
    color: #f9ddd3;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
}

/* ─── Section Titles ─── */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: #61372d;
}
.section-title-light {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: #ffffff;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #c2785a;
    color: #ffffff;
    padding: .7rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .25s, transform .2s, box-shadow .25s;
}
.btn-primary:hover {
    background: #a86048;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(194,120,90,.35);
    color: #ffffff;
}

.btn-hero-primary {
    background: #ffffff;
    color: #61372d;
}
.btn-hero-primary:hover {
    background: #fdf6ee;
    color: #61372d;
}

.btn-hero-secondary {
    background: rgba(255,255,255,.12);
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,.35);
    backdrop-filter: blur(4px);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,.22);
    color: #ffffff;
}

/* ─── Badges ─── */
.badge-terra {
    display: inline-block;
    background: rgba(194,120,90,.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .3em .75em;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.badge-sand {
    display: inline-block;
    background: rgba(224,166,98,.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .3em .75em;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

/* ─── Nav ─── */
#site-header {
    background: transparent;
    transition: background .4s, box-shadow .4s, padding .4s;
}
#site-header.scrolled {
    background: rgba(254,252,249,.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(97,55,45,.08);
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c2785a;
    border-radius: 2px;
    transition: width .25s;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link {
    color: #61372d;
}
#site-header:not(.scrolled) .nav-link {
    color: rgba(255,255,255,.9);
}
#site-header:not(.scrolled) .nav-link:hover {
    color: #ffffff;
}
#site-header:not(.scrolled) .nav-link::after {
    background: #f9ddd3;
}
#site-header:not(.scrolled) .btn-primary {
    background: rgba(255,255,255,.2);
    border: 1.5px solid rgba(255,255,255,.4);
    color: #ffffff;
    backdrop-filter: blur(4px);
}
#site-header:not(.scrolled) .btn-primary:hover {
    background: #ffffff;
    color: #61372d;
}

/* ─── Mobile Link ─── */
.mobile-link {
    display: block;
}

/* ─── Intro Stats ─── */
.intro-stat {
    padding: .5rem;
}

/* ─── Cards ─── */
.card-elevated {
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
}
.card-elevated:hover {
    transform: translateY(-6px);
}

/* ─── Scroll Reveal ─── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(28px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Animations ─── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-down {
    animation: fadeDown .7s cubic-bezier(.4,0,.2,1) both;
}

/* ─── Focus Styles ─── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #c2785a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .section-title, .section-title-light {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
}
