/* ============================================
   Dr. Daniel Kramer — Custom Styles
   Clean minimalist · Forest green + off-white
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #2a3f1b;
    color: #f5f4ef;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f4ef;
}
::-webkit-scrollbar-thumb {
    background: #9fbc7e;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #568033;
}

/* ── Hero Animations ── */
.hero-eyebrow {
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-headline {
    animation: slideInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtext {
    animation: slideInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    animation: slideInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

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

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Content below the fold gets initial hidden state via JS only */
@media (prefers-reduced-motion: no-preference) {
    .reveal:not(.revealed) {
        opacity: 1;
        transform: translateY(24px);
    }
}

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

.service-card:hover {
    background-color: #f2f7f0;
}

/* ── Navbar Scroll State ── */
.nav-scrolled {
    background: rgba(250, 250, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(42, 63, 27, 0.08);
}

.nav-scrolled .menu-line {
    background: #2a3f1b !important;
}

/* ── Mobile Menu ── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

/* ── Button Focus States ── */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #568033;
    outline-offset: 2px;
}

/* ── Input Autofill ── */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f5f4ef inset !important;
    -webkit-text-fill-color: #223316 !important;
}

/* ── Responsive Tweaks ── */
@media (max-width: 640px) {
    .hero-headline {
        font-size: 3rem;
    }
    
    .hero-headline span {
        font-size: 3rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-headline {
        font-size: 4rem;
    }
    
    .hero-headline span {
        font-size: 4rem;
    }
}
