/* ── Custom Properties ── */
:root {
    --color-midnight: #0a1628;
    --color-midnight-light: #122238;
    --color-mint: #0d9488;
    --color-mint-light: #14b8a6;
    --color-mint-pale: #ccfbf1;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

/* ── Tailwind Config ── */
tailwind.config = {
    theme: {
        extend: {
            colors: {
                mint: {
                    50: '#f0fdfa',
                    100: '#ccfbf1',
                    200: '#99f6e4',
                    300: '#5eead4',
                    400: '#2dd4bf',
                    500: '#14b8a6',
                    600: '#0d9488',
                    700: '#0f766e',
                    800: '#115e59',
                    900: '#134e4a',
                },
                midnight: {
                    900: '#0a1628',
                    800: '#122238',
                    700: '#1a2f4a',
                }
            },
            fontFamily: {
                serif: ['var(--font-serif)', 'Georgia', 'serif'],
                sans: ['var(--font-sans)', 'system-ui', 'sans-serif'],
            }
        }
    }
};

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

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #0a1628 0%, #0f2744 30%, #0d3b3e 60%, #0a1628 100%);
}

.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 40px 40px;
}

/* ── Hero Animations ── */
.hero-badge {
    animation: heroFadeUp 0.8s ease-out both;
}
.hero-headline {
    animation: heroFadeUp 0.8s 0.15s ease-out both;
}
.hero-subtitle {
    animation: heroFadeUp 0.8s 0.3s ease-out both;
}
.hero-ctas {
    animation: heroFadeUp 0.8s 0.45s ease-out both;
}
.hero-stats {
    animation: heroFadeUp 0.8s 0.6s ease-out both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hero Headline ── */
.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
}

.hero-stat-number {
    font-family: 'Playfair Display', Georgia, serif;
}

.hero-stat-label {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-brand-text {
    color: rgba(255,255,255,0.9);
    transition: color 0.4s ease;
}
#navbar.scrolled .nav-brand-text {
    color: #0a1628;
}
.nav-link {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}
#navbar.scrolled .nav-link {
    color: #475569;
}
#navbar.scrolled .nav-link:hover {
    color: #0d9488;
}
#navbar .btn-primary {
    background: #0d9488;
    color: #fff;
}
#navbar.scrolled .btn-primary {
    background: #0a1628;
    color: #fff;
}
#navbar .btn-secondary {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

/* ── Buttons ── */
.btn-primary {
    background: #0d9488;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: #0f766e;
}
.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* ── Section Styles ── */
.section-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
}
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}
.section-desc {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Service Cards ── */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(13, 148, 136, 0.12);
}

/* ── Input Fields ── */
.input-field {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
}
.input-field::placeholder {
    color: #94a3b8;
}
.input-field:hover {
    border-color: #99f6e4;
}
.input-field:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* ── Mobile Menu ── */
.mobile-menu-link {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-about-stat {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .reveal-about-stat.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-about-stat {
        opacity: 1;
        transform: none;
    }
    .hero-badge, .hero-headline, .hero-subtitle, .hero-ctas, .hero-stats {
        animation: none;
        opacity: 1;
    }
}
