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

/* ── Hero Gradient ─────────────────────────────────────────── */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(41,67,34,0.7) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(81,131,58,0.5) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(50,82,40,0.6) 0%, transparent 65%),
        linear-gradient(160deg, #111c0e 0%, #1a2e14 30%, #22371d 55%, #2d4a25 80%, #111c0e 100%);
}

/* Subtle dot pattern overlay */
.hero-dots {
    background-image: radial-gradient(rgba(250,249,246,0.8) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ── Hero Animations ───────────────────────────────────────── */
.hero-tag   { opacity: 0; transform: translateY(16px); animation: fadeUp .8s .2s forwards; }
.hero-title { opacity: 0; transform: translateY(20px); animation: fadeUp .9s .4s forwards; }
.hero-sub   { opacity: 0; transform: translateY(16px); animation: fadeUp .8s .6s forwards; }
.hero-cta   { opacity: 0; transform: translateY(12px); animation: fadeUp .8s .8s forwards; }
.hero-scroll{ opacity: 0; animation: fadeIn 1s 1.4s forwards; }
.hero-scroll-line {
    width: 1px; height: 40px; background: currentColor;
    animation: scrollLine 2s 1.6s infinite;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    background: #faf9f6; color: #22371d;
    border: none; border-radius: 100px;
    font-size: .875rem; font-weight: 500; letter-spacing: .02em;
    transition: background .3s, color .3s, transform .3s, box-shadow .3s;
}
.btn-primary:hover {
    background: #e3ecd9; color: #1a2e14; transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(17,28,14,.2);
}
.btn-arrow { transition: transform .3s; }
.btn-primary:hover .btn-arrow { transform: translate(3px, -3px); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 24px;
    border: 1px solid rgba(250,249,246,.3); border-radius: 100px;
    transition: border-color .3s, background .3s;
}
.btn-ghost:hover { border-color: rgba(250,249,246,.6); background: rgba(250,249,246,.08); }

/* ── Input Fields ──────────────────────────────────────────── */
.input-field {
    background: #faf9f6; border: 1px solid #d9d3c8; border-radius: 10px;
    padding: 13px 16px; font-size: .9375rem; color: #22371d;
    font-family: inherit; outline: none;
    transition: border-color .25s, box-shadow .25s;
}
.input-field::placeholder { color: #bfb8a8; }
.input-field:focus {
    border-color: #72a356;
    box-shadow: 0 0 0 3px rgba(114,163,86,.15);
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ── Service Cards ─────────────────────────────────────────── */
.service-card {
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(41,67,34,.08);
    background: rgba(250,249,246,.6);
    transition: border-color .35s, box-shadow .35s, transform .35s;
}
.service-card:hover {
    border-color: rgba(41,67,34,.18);
    box-shadow: 0 12px 40px rgba(17,28,14,.08);
    transform: translateY(-4px);
}

/* ── Frame Cards ───────────────────────────────────────────── */
.frame-card {
    box-shadow: 0 2px 12px rgba(17,28,14,.08);
    transition: box-shadow .35s, transform .35s;
}
.frame-card:hover {
    box-shadow: 0 16px 48px rgba(17,28,14,.16);
}

/* ── Visit Section ─────────────────────────────────────────── */
.visit-pattern {
    background-image:
        radial-gradient(rgba(250,249,246,0.6) 1px, transparent 1px);
    background-size: 28px 28px;
}
.visit-item { padding-left: 1rem; border-left: 1px solid rgba(114,163,86,.3); }

/* ── Header Scroll State ───────────────────────────────────── */
#site-header.scrolled {
    background: rgba(250,249,246,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(41,67,34,.08);
}
#site-header.scrolled .font-serif { color: #22371d; }

/* ── Mobile Nav ────────────────────────────────────────────── */
#mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}
body.nav-open { overflow: hidden; }
