/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5efe0; }
::-webkit-scrollbar-thumb { background: #059669; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #047857; }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #059669;
    color: #fff;
    padding: 14px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #059669;
    cursor: pointer;
}
.btn-primary:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #059669;
    padding: 14px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #059669;
    cursor: pointer;
}
.btn-secondary:hover {
    background: #ecfdf5;
    transform: translateY(-2px);
}

/* ── Navbar ── */
#navbar {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
}
#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    box-shadow: 0 4px 24px rgba(5, 150, 105, 0.08);
}

/* ── Nav Links ── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
.mobile-nav-link {
    position: relative;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}
.mobile-nav-link:last-child { border-bottom: none; }

/* ── Hero Badge ── */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

/* ── Hero Text ── */
.hero-title {
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stats {
    animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-image {
    animation: fadeIn 1s ease 0.4s both;
}

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

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

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

/* ── Service Cards ── */
.service-card {
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px);
}

/* ── FAQ ── */
.faq-item {
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08);
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-content.open {
    max-height: 300px;
}
.faq-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

/* ── Floating Accent ── */
.floating-accent {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ── Form Inputs ── */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .font-serif { font-size: 2rem; }
    h2.font-serif { font-size: 2.25rem; }
}

/* ── Selection ── */
::selection {
    background: #a7f3d0;
    color: #064E3B;
}
