/* ─── Custom Properties ─── */
:root {
    --cream: #F7F5EE;
    --cream-light: #FDFCFA;
    --emerald-950: #042F23;
    --emerald-900: #064E3B;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-300: #6EE7B7;
    --emerald-100: #D1FAE5;
    --emerald-50: #ECFDF5;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background-color: var(--cream); color: var(--emerald-950); }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

/* ─── Utility ─── */
.font-serif { font-family: var(--serif); }
.font-sans { font-family: var(--sans); }
.text-cream { color: var(--cream); }
.text-dark-green { color: var(--emerald-950); }

/* ─── Navigation ─── */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
#site-header.scrolled {
    background: rgba(247, 245, 238, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(4, 47, 35, 0.08);
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-700);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile Menu */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu.closed { opacity: 0; pointer-events: none; }
.mobile-nav-link { transition: opacity 0.3s ease; }

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--emerald-700);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 100px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    background: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.3);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--emerald-950);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 100px;
    border: 2px solid var(--emerald-950);
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: var(--emerald-950);
    color: var(--cream);
}

/* ─── Section Eyebrow & Title ─── */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--emerald-950);
    letter-spacing: -0.02em;
}

/* ─── Divider ─── */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--emerald-200), transparent);
}

/* ─── Link Underline ─── */
.link-underline {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--emerald-700);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}
.link-underline:hover { color: var(--emerald-600); }

/* ─── Hero Animations ─── */
.hero-eyebrow { animation: slideUp 0.8s ease forwards; animation-delay: 0.1s; opacity: 0; }
.hero-headline { animation: slideUp 0.8s ease forwards; animation-delay: 0.25s; opacity: 0; }
.hero-subtext { animation: slideUp 0.8s ease forwards; animation-delay: 0.4s; opacity: 0; }
.hero-cta { animation: slideUp 0.8s ease forwards; animation-delay: 0.55s; opacity: 0; }
.hero-image-wrapper { animation: fadeIn 1s ease forwards; animation-delay: 0.5s; opacity: 0; }

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

/* ─── Cards ─── */
.card-group {
    transition: transform 0.4s ease;
}
.card-group:hover { transform: translateY(-4px); }
.card-img-inner { transition: transform 0.7s ease; }
.card-img:hover .card-img-inner { transform: scale(1.05); }

/* ─── Services ─── */
.service-item {
    transition: background 0.3s ease;
}
.service-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.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; }

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .hero-stat-card { display: none !important; }
    .about-image-accent { display: none; }
}
