/* ── Reset & Base ── */
*, *::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;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F9F7F4;
}
::-webkit-scrollbar-thumb {
    background: #CBB89E;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B85A38;
}

/* ── Selection ── */
::selection {
    background: #B85A38;
    color: #fff;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-logo {
    transition: color 0.5s ease;
}

#navbar:not(.scrolled) .nav-logo {
    color: #fff;
}

#navbar.scrolled .nav-logo {
    color: #2A2A2A;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #B85A38;
    transition: width 0.3s ease;
}

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

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #fff;
}

/* ── Mobile Menu ── */
.menu-line {
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

body.menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

body.menu-open .menu-line:last-child {
    width: 24px;
    opacity: 0;
}

#mobileMenu {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-link {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

/* ── Hero ── */
.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

.hero-text {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

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

/* ── Reveal Animations (below-fold only) ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal {
    transform: translateY(40px);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        transform: translateY(40px);
        opacity: 1;
    }
}

/* ── Service Cards ── */
.service-card {
    transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

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

/* ── Form Focus States ── */
input:focus,
textarea:focus {
    border-bottom-color: #B85A38 !important;
}

/* ── Button Hover ── */
button[type="submit"],
a[href="#contact"],
a[href="tel:+16107630364"] {
    position: relative;
    overflow: hidden;
}

/* ── Map Container ── */
.map-container {
    position: relative;
    overflow: hidden;
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(203, 184, 158, 0.4);
    pointer-events: none;
}

/* ── Decorative Lines ── */
.deco-line {
    position: absolute;
    background: rgba(184, 90, 56, 0.15);
}

/* ── Utility ── */
.text-balance {
    text-wrap: balance;
}

/* ── Print ── */
@media print {
    #navbar, .animate-bounce {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
