/* ── Custom Properties ── */
:root {
    --terracotta-500: #e85028;
    --sand-500: #e0ad3f;
    --cream: #FDF8F0;
    --warm: #FAF5EF;
}

/* ── Base & Typography ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Navbar Scroll State ── */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-playfair {
    color: #1c1917 !important;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #e85028;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* ── Mobile Menu ── */
.mobile-link {
    display: block;
    width: 100%;
}

#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero Animations ── */
.hero-anim {
    opacity: 1;
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.15s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.45s; }

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Floating Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ── Geometric Shapes ── */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 80, 40, 0.08) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(224, 173, 63, 0.1) 0%, transparent 70%);
    bottom: 10%;
    right: 40%;
    border-radius: 50%;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 80, 40, 0.06) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    border-radius: 50%;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(232, 80, 40, 0.15);
    border-radius: 24px;
    top: 20%;
    right: 5%;
    transform: rotate(15deg);
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(224, 173, 63, 0.1);
    bottom: 20%;
    left: 5%;
    transform: rotate(-20deg);
}

/* ── Dot Grid Pattern ── */
.dot-grid {
    background-image: radial-gradient(circle, #e85028 1px, transparent 1px);
    background-size: 20px 20px;
    width: 120px;
    height: 120px;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero-anim {
        opacity: 1;
        animation: none;
    }
    
    .animate-float {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ── Selection Color ── */
::selection {
    background: rgba(232, 80, 40, 0.2);
    color: #1c1917;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF8F0;
}

::-webkit-scrollbar-thumb {
    background: #d93a18;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b52d12;
}

/* ── Form Styles ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid #e85028;
    outline-offset: 2px;
}

/* ── Responsive Tweaks ── */
@media (max-width: 1023px) {
    #hero img {
        border-radius: 0;
        opacity: 0.3;
        position: absolute;
        inset: 0;
    }
}

@media (max-width: 767px) {
    .font-playfair {
        line-height: 1.1;
    }
}
