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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #B55239;
    color: #F5F0EB;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F0E3;
}
::-webkit-scrollbar-thumb {
    background: #B55239;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9A422E;
}

/* ── Hero Animations ── */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

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

.hero-image-grid {
    animation: fadeIn 1s 0.4s ease forwards;
    opacity: 0;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ── Hero Image Grid ── */
.hero-image-grid {
    position: relative;
    height: 580px;
}

.main-img-wrapper {
    width: 82%;
    height: 460px;
    overflow: hidden;
    border-radius: 0;
}

.main-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.main-img-wrapper:hover img {
    transform: scale(1.03);
}

.accent-img-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 58%;
    height: 240px;
    overflow: hidden;
    border: 6px solid #F9F0E3;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.accent-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.accent-img-wrapper:hover img {
    transform: scale(1.05);
}

.floating-badge {
    position: absolute;
    bottom: 40px;
    left: -20px;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Marquee ── */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Service Cards ── */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Process Steps ── */
.process-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Testimonial Cards ── */
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Section Labels ── */
.section-label {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ── Navbar ── */
#navbar {
    background: rgba(253, 249, 244, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}

#navbar.scrolled {
    background: rgba(253, 249, 244, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

/* ── Mobile Menu ── */
.mobile-link {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Menu Lines Animation ── */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
}

/* ── Nav Links Hover Effect ── */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #B55239;
    transition: width 0.3s ease;
    margin-top: 2px;
}

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

/* ── Smooth Image Loading ── */
img {
    background: linear-gradient(135deg, #F2E0C8 0%, #E8C9A0 100%);
}

/* ── Form Focus States ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ── Utility ── */
@media (max-width: 767px) {
    .hero-image-grid {
        height: auto;
        margin-top: 2rem;
    }
    
    .main-img-wrapper {
        width: 100%;
        height: 320px;
    }
    
    .accent-img-wrapper {
        position: relative;
        width: 100%;
        height: 200px;
        margin-top: 1rem;
        border-width: 4px;
    }
    
    .floating-badge {
        left: 10px;
        bottom: 20px;
    }
}
