/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Outfit', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ===== NAV ===== */
.nav { background: transparent; transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
.nav.scrolled { background: rgba(253, 240, 235, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 20px rgba(0,0,0,0.08); }
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: #df4418; transition: width 0.3s; }
.nav-link:hover::after { width: 100%; }
.nav.scrolled .nav-link { color: #4a4236; }
.nav.scrolled .nav-link:hover { color: #df4418; }
.nav.scrolled .font-display { color: #211e18; }
.nav.scrolled .text-terra-600 { color: #c22f0e; }

/* Mobile menu */
.mobile-menu-open #mobileMenu { opacity: 1 !important; pointer-events: all !important; }
.mobile-menu-open body { overflow: hidden; }
.mobile-link { transition: color 0.2s; }

/* ===== HERO ===== */
.hero { position: relative; }
.hero-bg { position: absolute; inset: 0; }
.hero-img { animation: heroZoom 20s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-scrim { background: linear-gradient(135deg, rgba(33,30,24,0.72) 0%, rgba(33,30,24,0.45) 50%, rgba(33,30,24,0.65) 100%); }
.hero-shape { animation: float 6s ease-in-out infinite; }
.hero-shape--circle1 { animation-delay: 0s; }
.hero-shape--circle2 { animation-delay: -2s; }
.hero-shape--sq { animation-delay: -4s; }
.hero-shape--sq2 { animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(-20px) rotate(45deg); } }
.hero-shape--sq2 { animation-name: float2; }
@keyframes float2 { 0%, 100% { transform: translateY(0) rotate(12deg); } 50% { transform: translateY(-15px) rotate(12deg); } }

.hero-content { opacity: 1; }
.hero-title { opacity: 1; }
.hero-subtitle { opacity: 1; }
.hero-badge { opacity: 1; }
.hero-ctas { opacity: 1; }

.hero-badge { animation: fadeDown 0.8s ease both; }
.hero-title { animation: fadeUp 0.8s ease 0.15s both; }
.hero-subtitle { animation: fadeUp 0.8s ease 0.3s both; }
.hero-ctas { animation: fadeUp 0.8s ease 0.45s both; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.hero-scroll { animation: fadeUp 0.8s ease 0.7s both; }

/* ===== BUTTONS ===== */
.cta-primary { box-shadow: 0 8px 32px rgba(223,68,24,0.35); }
.cta-secondary { transition: all 0.3s; }
.btn-submit { transition: all 0.3s; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(223,68,24,0.4); }

/* ===== SECTIONS ===== */
.section { position: relative; }

/* ===== GEOMETRIC SHAPES ===== */
.geo { position: absolute; pointer-events: none; }

/* ===== BADGES ===== */
.badge-terra { background: rgba(223,68,24,0.1); color: #c22f0e; padding: 6px 16px; border-radius: 9999px; }
.badge-sand { background: rgba(208,138,40,0.15); color: #8a5119; padding: 6px 16px; border-radius: 9999px; }

/* ===== CARDS ===== */
.card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.06); transition: transform 0.35s, box-shadow 0.35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
.card-img-wrap { position: relative; overflow: hidden; }
.card-img { transition: transform 0.5s; }
.card:hover .card-img { transform: scale(1.08); }
.card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(33,30,24,0.15), transparent 40%); }
.card-body { }

/* ===== GALLERY ===== */
.gallery-item { border-radius: 20px; overflow: hidden; }
.gallery-img-wrap { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.gallery-overlay { position: absolute; top: 16px; left: 16px; }
.tag { display: inline-block; padding: 4px 14px; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.tag--before { background: rgba(160,80,50,0.85); color: #fff; backdrop-filter: blur(4px); }
.tag--after { background: rgba(22,163,74,0.85); color: #fff; backdrop-filter: blur(4px); }

/* ===== REVIEW CARDS ===== */
.review-card { background: #fff; border-radius: 20px; padding: 2rem; box-shadow: 0 4px 24px rgba(0,0,0,0.06); transition: transform 0.35s, box-shadow 0.35s; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.review-stars { display: flex; gap: 4px; }
.review-text { min-height: 96px; }
.review-avatar { font-family: 'Playfair Display', serif; }

/* ===== CONTACT ===== */
.contact-info-card { transition: transform 0.2s; }
.contact-icon { }
.form-card { }
.input { transition: all 0.2s; }
.input:focus { border-color: #df4418; box-shadow: 0 0 0 4px rgba(223,68,24,0.1); }
.input:invalid:not(:placeholder-shown) { border-color: #dc2626; }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(40px);
}
@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal-state="hidden"] {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
.reveal[data-reveal-state="hidden"].reveal-delay-1 { transition-delay: 0.1s; }
.reveal[data-reveal-state="hidden"].reveal-delay-2 { transition-delay: 0.2s; }
.reveal[data-reveal-state="hidden"].reveal-delay-3 { transition-delay: 0.3s; }
.reveal[data-reveal-state="hidden"].reveal-delay-4 { transition-delay: 0.4s; }
.reveal[data-reveal-state="hidden"].reveal-delay-5 { transition-delay: 0.5s; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .nav { background: rgba(253,240,235,0.97); backdrop-filter: blur(12px); box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
    .nav.scrolled { background: rgba(253,240,235,0.97); }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
