/* ── 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;
}

/* ── Typography ── */
.font-cormorant {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

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

/* ── Header ── */
#header {
    background: transparent;
}

#header.scrolled {
    background: rgba(245, 243, 237, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 1;
}

#mobile-menu .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu .mobile-link:nth-child(4) { animation-delay: 0.2s; }

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

/* ── Hero ── */
.hero-eyebrow {
    animation: fadeIn 0.8s ease 0.2s both;
}

.hero-title {
    animation: fadeIn 0.8s ease 0.4s both;
}

.hero-subtitle {
    animation: fadeIn 0.8s ease 0.6s both;
}

.hero-cta {
    animation: fadeIn 0.8s ease 0.8s both;
}

.hero-scroll-line {
    animation: growLine 1s ease 1.2s both;
}

.hero-scroll-text {
    animation: fadeIn 0.8s ease 1.4s both;
}

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

@keyframes growLine {
    from { height: 0; }
    to { height: 96px; }
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* ── Service Cards ── */
.service-card {
    transition: background-color 0.5s ease, color 0.5s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #064E3B;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s ease;
    z-index: -1;
}

/* ── Focus Styles ── */
input:focus, textarea:focus, button:focus {
    outline: none;
}

input::placeholder, textarea::placeholder {
    color: rgba(6, 78, 59, 0.3);
}

/* ── Writing Mode (vertical text) ── */
.writing-mode-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* ── Selection ── */
::selection {
    background: rgba(6, 78, 59, 0.15);
    color: #064E3B;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F5F3ED;
}

::-webkit-scrollbar-thumb {
    background: rgba(6, 78, 59, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 78, 59, 0.5);
}
