/* ── Brand tokens ────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300&family=Roboto+Condensed:wght@700;800&display=swap");

:root {
    --green: #549e39;
    --green-dark: #0a7d00;
    --green-light: #e8f5e2;
    --accent: #0da9ff;
    --accent-light: #e0f4ff;
    --peach: #ffdaae;
    --peach-dark: #d4863a;
    --peach-light: #fff5ea;
    --page: #f7f9f5;
    --border: #d8e8d0;
    --border-mid: #c0d8b4;
    --text: #1a2318;
    --text-muted: #5a6e54;
    --text-dim: #8ea386;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: var(--page);
    color: var(--text);
    overflow-x: hidden;
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.75);
    }
}

/* ── Hero animations (staggered) ─────────────────────────── */
.hero-eyebrow {
    animation: fadeUp 0.6s var(--ease-out) both;
}
.hero h1 {
    animation: fadeUp 0.7s 0.1s var(--ease-out) both;
}
.hero-sub {
    animation: fadeUp 0.7s 0.2s var(--ease-out) both;
}
.hero-actions {
    animation: fadeUp 0.7s 0.3s var(--ease-out) both;
}
.hero-stats {
    animation: fadeUp 0.7s 0.4s var(--ease-out) both;
}

.eyebrow-dot {
    animation: pulse 2s ease infinite;
}

/* ── Hero background ─────────────────────────────────────── */
.hero {
    /*background: linear-gradient(160deg, #ffffff 0%, #eef6e8 50%, #fdf6ee 100%);*/
    background: url("../hero.png") center/cover;
}

.hero-blob-1 {
    background: radial-gradient(circle, rgba(84, 158, 57, 0.12) 0%, transparent 70%);
}

.hero-blob-2 {
    background: radial-gradient(circle, rgba(255, 218, 174, 0.3) 0%, transparent 70%);
}

/* ── Nav ─────────────────────────────────────────────────── */
nav {
    background: rgba(247, 249, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow 0.3s;
}

nav.scrolled {
    box-shadow: 0 2px 16px rgba(30, 60, 20, 0.1);
}

/* ── Logo icon shadow ────────────────────────────────────── */
.logo-icon {
    box-shadow: 0 2px 8px rgba(84, 158, 57, 0.35);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    box-shadow: 0 3px 12px rgba(84, 158, 57, 0.35);
    transition:
        transform 0.2s,
        background-color 0.2s,
        box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(84, 158, 57, 0.4);
}
.btn-primary svg {
    transition: transform 0.2s;
}
.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-ghost {
    transition:
        border-color 0.2s,
        color 0.2s,
        background-color 0.2s;
}

.btn-white {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.btn-white svg {
    transition: transform 0.2s;
}
.btn-white:hover svg {
    transform: translateX(3px);
}

/* ── Nav CTA ─────────────────────────────────────────────── */
.nav-cta {
    box-shadow: 0 2px 8px rgba(84, 158, 57, 0.3);
    transition:
        background-color 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(84, 158, 57, 0.35);
}

/* ── h1 sizing (clamp — not available in Tailwind v3 CDN) ── */
.hero h1 {
    font-size: clamp(52px, 7vw, 90px);
    line-height: 1;
    letter-spacing: -0.025em;
}

/* ── Section title sizing ────────────────────────────────── */
.section-title {
    font-size: clamp(30px, 4vw, 50px);
    letter-spacing: -0.02em;
}

/* ── Pricing card top stripe ─────────────────────────────── */
.pricing-card {
    position: relative;
    overflow: hidden;
    box-shadow:
        0 12px 40px rgba(30, 60, 20, 0.12),
        0 4px 12px rgba(30, 60, 20, 0.06);
}
.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--green-dark));
}

/* ── Pillar cards ────────────────────────────────────────── */
.pillar {
    transition:
        border-color 0.25s,
        box-shadow 0.25s,
        transform 0.25s;
}
.pillar:hover {
    border-color: var(--green);
    box-shadow: 0 4px 16px rgba(30, 60, 20, 0.1);
    transform: translateY(-3px);
}

/* ── Testimonial carousel ────────────────────────────────── */
.testimonials-track {
    position: relative;
    /* Overflow hidden clips the fade overlays cleanly */
    overflow: hidden;
}

.testimonials-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 48px 24px;
    /* Hide scrollbar visually but keep it functional */
    scrollbar-width: none;
    justify-content: center;
}
.testimonials-scroll::-webkit-scrollbar {
    display: none;
}

.tcard {
    /* Fixed width so cards peek into view */
    flex: 0 0 360px;
    scroll-snap-align: start;
    transition:
        box-shadow 0.25s,
        transform 0.25s,
        border-color 0.25s;
}
.tcard:hover {
    box-shadow: 0 4px 16px rgba(30, 60, 20, 0.1);
    transform: translateY(-4px);
    border-color: var(--green);
}

/* Fade-out edges so it looks like more cards continue off-screen */
.testimonials-fade-left,
.testimonials-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 2;
}
.testimonials-fade-left {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}
.testimonials-fade-right {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

/* ── CTA strip background ────────────────────────────────── */
.cta-strip {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    position: relative;
    overflow: hidden;
}
.cta-strip::after {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

/* ── FAQ accordion ───────────────────────────────────────── */
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.4s var(--ease-out),
        padding-bottom 0.3s;
}
.faq-item.open .faq-a {
    max-height: 220px;
    padding-bottom: 22px;
}

.faq-chevron {
    transition:
        transform 0.3s var(--ease-out),
        stroke 0.2s;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}
.faq-item.open .faq-q {
    color: var(--green-dark);
}

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.65s var(--ease-out),
        transform 0.65s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal:nth-child(2) {
    transition-delay: 0.08s;
}
.reveal:nth-child(3) {
    transition-delay: 0.16s;
}
.reveal:nth-child(4) {
    transition-delay: 0.24s;
}

/* ── Mobile responsive overrides ────────────────────────── */

/* Tighter card width on small screens so cards are still peekable */
@media (max-width: 640px) {
    .tcard {
        flex: 0 0 280px;
    }

    .testimonials-scroll {
        padding: 8px 24px 24px;

    }

    .testimonials-fade-left,
    .testimonials-fade-right {
        width: 40px;
    }
}

/* Mobile menu open state */
#mobile-menu.open {
    transform: translateY(0);
}

/* Hamburger → X when open */
#nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
#nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#nav-toggle span {
    transform-origin: center;
    transition:
        transform 0.3s,
        opacity 0.2s;
}
