/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F2;
}
::-webkit-scrollbar-thumb {
    background: #D4C8BC;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C07050;
}

/* Selection */
::selection {
    background: #C07050;
    color: #FDF8F2;
}

/* ── Navbar ── */
.nav-text {
    color: #5C4E42;
}
.nav-link {
    color: #7A6A5C;
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C07050;
    transition: width 0.3s ease;
}
.nav-link:hover {
    color: #C07050;
}
.nav-link:hover::after {
    width: 100%;
}

/* Dark navbar when scrolled */
nav.scrolled .nav-text { color: #FDF8F2; }
nav.scrolled .nav-link { color: #D4C8BC; }
nav.scrolled .nav-link:hover { color: #ECCEBC; }

nav.scrolled .nav-menu-icon { stroke: #FDF8F2; }
nav:not(.scrolled) .nav-menu-icon { stroke: #5C4E42; }

/* Mobile menu */
#mobile-menu {
    backdrop-filter: blur(20px);
    background: rgba(253, 248, 242, 0.97);
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-menu-link {
    transition: color 0.3s ease;
}

/* ── Hero ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(253, 248, 242, 0.12);
    border: 1px solid rgba(253, 248, 242, 0.2);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #FDF0E8;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-btn-primary,
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.35s ease;
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-btn-primary {
    background: #C07050;
    color: #FDF8F2;
    border: 1px solid #C07050;
}
.hero-btn-primary:hover {
    background: #A85A3E;
    border-color: #A85A3E;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(192, 112, 80, 0.35);
}

.hero-btn-secondary {
    background: transparent;
    color: #FDF8F2;
    border: 1px solid rgba(253, 248, 242, 0.35);
}
.hero-btn-secondary:hover {
    background: rgba(253, 248, 242, 0.1);
    border-color: rgba(253, 248, 242, 0.6);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(253, 248, 242, 0.6);
    animation: bounce 2.5s ease infinite;
}
.hero-scroll-indicator svg {
    animation: bounce 2.5s ease infinite;
}
.hero-scroll-indicator span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 300;
}

/* ── Service Cards ── */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* ── CTA Buttons ── */
.cta-btn-primary,
.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.35s ease;
}

.cta-btn-primary {
    background: #FDF8F2;
    color: #C07050;
    border: 1px solid #FDF8F2;
}
.cta-btn-primary:hover {
    background: transparent;
    color: #FDF8F2;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.cta-btn-secondary {
    background: transparent;
    color: #FDF8F2;
    border: 1px solid rgba(253, 248, 242, 0.4);
}
.cta-btn-secondary:hover {
    background: rgba(253, 248, 242, 0.1);
    border-color: rgba(253, 248, 242, 0.7);
    transform: translateY(-2px);
}

/* ── Testimonial Stars ── */
.star {
    flex-shrink: 0;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .service-reveal,
    .about-reveal,
    .gallery-reveal,
    .testimonial-reveal,
    .cta-reveal,
    .contact-reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }

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

    /* Stagger children */
    .service-reveal:nth-child(1) { transition-delay: 0s; }
    .service-reveal:nth-child(2) { transition-delay: 0.08s; }
    .service-reveal:nth-child(3) { transition-delay: 0.16s; }
    .service-reveal:nth-child(4) { transition-delay: 0.24s; }
    .service-reveal:nth-child(5) { transition-delay: 0.32s; }
    .service-reveal:nth-child(6) { transition-delay: 0.4s; }
}

/* ── Form ── */
select option {
    background: #FDF8F2;
    color: #3E342C;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-title br {
        display: none;
    }
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    .about-image-wrap img {
        height: 350px;
    }
    .service-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    .font-serif.text-4xl {
        font-size: 2rem;
    }
}
