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

/* ── Custom Properties ── */
:root {
    --terra-500: #C0603A;
    --terra-600: #A84E2E;
    --sand-100: #FAF5EC;
    --sand-200: #F5ECDA;
    --cream: #FDF8F0;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    background: var(--terra-500);
    color: #fff;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(192, 96, 58, 0.3);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary:hover {
    background: var(--terra-600);
    box-shadow: 0 12px 32px rgba(192, 96, 58, 0.4);
    transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    background: #fff;
    color: #A84E2E;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    border: 2px solid #F5ECDA;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-secondary:hover {
    border-color: #F9A88C;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ── Inputs ── */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #F5ECDA;
    border-radius: 0.75rem;
    background: #FAF5EC;
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #44403C;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input-field::placeholder { color: #A8A29E; }
.input-field:focus {
    border-color: var(--terra-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(192, 96, 58, 0.1);
}
.input-field.error { border-color: #EF4444; background: #FEF2F2; }

/* ── Cards ── */
.card { overflow: hidden; }
.card img { transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

/* ── Why Cards ── */
.why-card { transition: transform 0.2s, background 0.2s; }
.why-card:hover { transform: translateY(-4px); }

/* ── Nav Links ── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--terra-500);
    border-radius: 9999px;
    transition: width 0.2s, left 0.2s;
}
.nav-link:hover::after { width: 60%; left: 20%; }

.mob-link { border-radius: 0.75rem !important; }

/* ── Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.animate-float { animation: float 3s ease-in-out infinite; }

.animate-bounce-slow { animation: bounce-slow 2.5s ease-in-out infinite; }
@keyframes bounce-slow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.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; }

/* ── Mobile Menu Transition ── */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.35s;
}
#mobileMenu.open {
    max-height: 400px;
    padding: 0;
}

/* ── Responsive ── */
@media (max-width: 639px) {
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
