@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lato:wght@300;400;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Utilities */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #0f172a 0%, #d97706 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* Staggered delays for reveal children */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* Animations */
.animate-delay-100 {
    animation-delay: 100ms;
}

.animate-delay-200 {
    animation-delay: 200ms;
}

.animate-delay-300 {
    animation-delay: 300ms;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .animate-pulse,
    .animate-bounce,
    .animate-ping,
    .animate-spin {
        animation: none !important;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* WhatsApp floating button — always visible regardless of GSAP state */
.whatsapp-float {
    visibility: visible !important;
    opacity: 1 !important;
}
.whatsapp-float svg {
    fill: #ffffff !important;
}

/* ================================================================
   DARK MODE OVERRIDES
   Uses html.dark (class strategy) set by dark-mode.js
   ================================================================ */

html.dark {
    color-scheme: dark;
}

/* ── Body ──────────────────────────────────────────────────────── */
html.dark body {
    background-color: #0f172a;
    color: #94a3b8;
}

/* ── Custom utilities ──────────────────────────────────────────── */
html.dark .glass {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(51, 65, 85, 0.5);
}

html.dark .text-gradient {
    background-image: linear-gradient(135deg, #e2e8f0 0%, #f59e0b 100%);
}

html.dark .card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
html.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}
html.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}
html.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ── Background colors ─────────────────────────────────────────── */
html.dark .bg-white {
    background-color: #1e293b !important;
}
html.dark .bg-slate-50 {
    background-color: #0f172a !important;
}
html.dark .bg-slate-100 {
    background-color: #1e293b !important;
}
html.dark .from-slate-50 {
    --tw-gradient-from: #0f172a var(--tw-gradient-from-position) !important;
}
html.dark .to-white {
    --tw-gradient-to: #1e293b var(--tw-gradient-to-position) !important;
}
html.dark .via-white {
    --tw-gradient-via: #1e293b var(--tw-gradient-via-position) !important;
}

/* Dropdown & overlay backgrounds */
html.dark .bg-white\/95,
html.dark [class*="bg-white/95"] {
    background-color: rgba(30, 41, 59, 0.97) !important;
}

/* ── Text colors ───────────────────────────────────────────────── */
html.dark .text-slate-900 {
    color: #f1f5f9 !important;
}
html.dark .text-slate-800 {
    color: #e2e8f0 !important;
}
html.dark .text-slate-700 {
    color: #cbd5e1 !important;
}
html.dark .text-slate-600 {
    color: #94a3b8 !important;
}
html.dark .text-slate-500 {
    color: #64748b !important;
}

/* ── Border colors ─────────────────────────────────────────────── */
html.dark .border-slate-100 {
    border-color: #334155 !important;
}
html.dark .border-slate-200 {
    border-color: #334155 !important;
}
html.dark .border-brand-100 {
    border-color: #1e3a5f !important;
}

/* ── Hover state overrides ─────────────────────────────────────── */
html.dark .hover\:bg-slate-50:hover {
    background-color: #1e293b !important;
}
html.dark .hover\:bg-slate-100:hover {
    background-color: #334155 !important;
}
html.dark .hover\:border-slate-100:hover {
    border-color: #475569 !important;
}

/* ── Ring/shadow for form inputs in dark ───────────────────────── */
html.dark .ring-slate-200 {
    --tw-ring-color: #334155 !important;
}
html.dark input,
html.dark textarea,
html.dark select {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155;
}
html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #475569 !important;
}

/* ── Secondary white buttons (outline style) ───────────────────── */
html.dark .border-slate-200.bg-white {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* ── Mobile menu panel ─────────────────────────────────────────── */
html.dark #mobile-menu {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
html.dark #mobile-menu .h-px {
    background-color: #334155 !important;
}

/* ── Divider lines ─────────────────────────────────────────────── */
html.dark .bg-slate-100.h-px,
html.dark .h-px.bg-slate-100 {
    background-color: #334155 !important;
}

/* ── Theme toggle button ───────────────────────────────────────── */
html.dark .theme-toggle-btn {
    color: #94a3b8;
}
html.dark .theme-toggle-btn:hover {
    color: #f59e0b;
    background-color: #1e293b;
}
