/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ========== HERO ========== */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(37, 32, 25, 0.82) 0%,
        rgba(61, 52, 44, 0.72) 40%,
        rgba(140, 80, 55, 0.55) 100%
    );
}

.hero-title {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-title {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-subtitle {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-ctas {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

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

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

/* ========== NAVBAR ========== */
.nav-logo-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-scrolled .nav-logo-text {
    text-shadow: none;
}

/* ========== BUTTONS ========== */
.cta-primary {
    box-shadow: 0 4px 20px rgba(196, 112, 75, 0.3);
}

.cta-primary:hover {
    box-shadow: 0 8px 32px rgba(196, 112, 75, 0.4);
}

.cta-light {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-light:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* ========== INPUTS ========== */
.input-field {
    transition: all 0.3s ease;
}

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.1);
}

/* ========== SERVICE CARDS ========== */
.service-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-icon-wrap {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fdf0eb 0%, #f9ddd3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #C4704B 0%, #e06f55 100%);
}

.service-card:hover .service-icon svg {
    color: white;
}

/* ========== GALLERY ========== */
.gallery-item {
    cursor: pointer;
}

/* ========== TAG LABELS ========== */
.tag-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C4704B;
    background: linear-gradient(135deg, #fdf0eb 0%, #f9ddd3 100%);
    padding: 0.4em 1em;
    border-radius: 100px;
}

.tag-label-dark {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #f4beae;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.4em 1em;
    border-radius: 100px;
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: #252019;
    line-height: 1.15;
}

.section-title-light {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #9a8878;
    line-height: 1.7;
}

.section-subtitle-light {
    font-size: 1.125rem;
    color: #b8a898;
    line-height: 1.7;
}

/* ========== STEP NUMBERS ========== */
.step-number-wrap {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal:hover .step-number-wrap {
    transform: scale(1.1);
    background: rgba(196, 112, 75, 0.3);
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* ========== MOBILE MENU ========== */
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    transition: all 0.3s ease;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* ========== SELECTION ========== */
::selection {
    background: #f4beae;
    color: #5e3226;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(37, 32, 25, 0.75) 0%,
            rgba(37, 32, 25, 0.85) 100%
        );
    }
}
