/* ─── Base & Typography ─── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #047857;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.3);
}

.btn-primary:hover {
    background: #065f46;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #047857;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    border: 1.5px solid rgba(4, 120, 87, 0.3);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
    background: rgba(4, 120, 87, 0.06);
    border-color: #047857;
    transform: translateY(-1px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #047857;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 0.875rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 0.875rem;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* ─── Navigation ─── */
.nav-fixed {
    transition: box-shadow 0.3s, background 0.3s;
}

.nav-scrolled {
    box-shadow: 0 1px 20px rgba(5, 77, 49, 0.08);
    background: rgba(250, 249, 246, 0.97) !important;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.2s;
    border-radius: 1px;
}

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

/* ─── Mobile Menu ─── */
.mobile-link {
    display: block;
}

/* ─── Floating Cards ─── */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float-slow {
    animation: float-slow 4s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 3.2s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 2.6s ease-in-out infinite;
}

/* ─── Scroll Indicator ─── */
@keyframes scroll-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-line {
    animation: scroll-line 1.5s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* ─── FAQ ─── */
.faq-btn {
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-btn:hover .font-display {
    color: #059669;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-content {
    max-height: 200px;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* ─── Focus States ─── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ─── Selection ─── */
::selection {
    background: rgba(5, 150, 105, 0.15);
    color: #064e3b;
}

/* ─── Responsive tweaks ─── */
@media (max-width: 640px) {
    .font-display {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}
