/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}
#navbar.scrolled {
    background: rgba(107, 29, 42, 0.97);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
#navbar:not(.scrolled) .nav-link { color: rgba(253, 248, 245, 0.85); }
#navbar:not(.scrolled) .nav-link:hover { color: #F5E6E0; }
#navbar:not(.scrolled) a[href^="tel"] { border-color: rgba(253,248,245,0.5); color: #FDF8F5; }
#navbar:not(.scrolled) a[href^="tel"]:hover { background: rgba(253,248,245,0.1); border-color: rgba(253,248,245,0.8); }

/* ── Mobile Menu ── */
#mobileMenu.open { opacity: 1; pointer-events: all; }
#mobileMenu.closed { opacity: 0; pointer-events: none; }
.mobile-link { transition: opacity 0.3s ease, transform 0.3s ease; }
.mobile-link:hover { opacity: 0.8; }

/* ── Hero ── */
.hero-bg { position: relative; }
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(42, 11, 17, 0.82) 0%,
        rgba(107, 29, 42, 0.70) 50%,
        rgba(42, 11, 17, 0.85) 100%
    );
}
.hero-bg img {
    transition: transform 8s ease;
}
.hero-bg:hover img { transform: scale(1.03); }

/* ── Hero Animations ── */
.hero-subtitle { animation: fadeUp 0.8s ease forwards 0.3s; }
.hero-title { animation: fadeUp 0.8s ease forwards 0.6s; }
.hero-desc { animation: fadeUp 0.8s ease forwards 0.9s; }
.hero-cta { animation: fadeUp 0.8s ease forwards 1.2s; }
.hero-scroll { animation: fadeUp 0.8s ease forwards 1.6s; }

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

/* ── Section Reveals ── */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.section-reveal:nth-child(2) { transition-delay: 0.1s; }
.section-reveal:nth-child(3) { transition-delay: 0.2s; }
.section-reveal:nth-child(4) { transition-delay: 0.3s; }
.section-reveal:nth-child(5) { transition-delay: 0.4s; }
.section-reveal:nth-child(6) { transition-delay: 0.5s; }

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

/* ── Gallery ── */
.gallery-item {
    cursor: pointer;
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(107, 29, 42, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}
.gallery-item:hover::after { background: rgba(107, 29, 42, 0.15); }

/* ── Form ── */
input:focus, textarea:focus, select:focus {
    outline: none;
}
select option {
    background: #FDF8F5;
    color: #3a0f17;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F5; }
::-webkit-scrollbar-thumb { background: #C9A96E; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B8944F; }

/* ── Responsive ── */
@media (max-width: 767px) {
    .hero-title { font-size: 2.8rem; }
    .hero-desc { font-size: 1rem; }
    section { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
    .service-card { padding: 2rem 1.5rem !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    section { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}
