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

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

body {
    overflow-x: hidden;
}

img {
    display: block;
}

/* ── Custom Properties ── */
:root {
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --cream-50: #FDFBF7;
    --cream-100: #F5F0E8;
}

/* ── Typography ── */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Section Eyebrow ── */
.section-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
}

/* ── Section Title ── */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: #064e3b;
    letter-spacing: -0.02em;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: 3.25rem;
    background: var(--emerald-700);
    color: #FDFBF7;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 2px solid var(--emerald-700);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 120, 87, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: 3.25rem;
    background: transparent;
    color: #FDFBF7;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1.5px solid rgba(253, 251, 247, 0.4);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: rgba(253, 251, 247, 0.8);
    background: rgba(253, 251, 247, 0.1);
    transform: translateY(-2px);
}

/* ── Inputs ── */
.input-field {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: #064e3b;
    background: var(--cream-50);
    border: 1.5px solid #d1fae5;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.input-field::placeholder {
    color: #94a3b8;
}

.input-field:focus {
    border-color: var(--emerald-700);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
    background: white;
}

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

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

/* ── Gallery Item ── */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

/* ── Hero Animations ── */
.hero-eyebrow {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-scroll {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

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

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

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

.marquee-item {
    font-family: 'Playfair Display', Georgia, serif;
}

.marquee-dot {
    color: rgba(185, 243, 215, 0.3);
    font-size: 8px;
    flex-shrink: 0;
}

/* ── Header Scroll State ── */
#header.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
}

#header.scrolled .nav-link {
    color: rgba(6, 78, 59, 0.7) !important;
}

#header.scrolled .nav-link:hover {
    color: #064e3b !important;
}

/* ── Mobile Menu ── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

/* ── Mobile Menu Button Active ── */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero-title {
        font-size: clamp(2.25rem, 10vw, 4rem);
    }
}

@media (min-width: 768px) {
    .btn-primary, .btn-outline {
        padding: 0 2.5rem;
        height: 3.5rem;
    }
}

/* ── Selection ── */
::selection {
    background: rgba(4, 120, 87, 0.2);
    color: #064e3b;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid var(--emerald-700);
    outline-offset: 2px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
