/* ===== CSS Reset & Base Variables ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode - Oak Harbor Navy & Orange */
    --primary: #001f3f;
    --primary-dark: #001529;
    --primary-light: #003d7a;
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    --accent: #fb923c;
    --bg: #faf8f5;
    --bg-white: #ffffff;
    --bg-cream: #f5f0e8;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --text: #1f1f1f;
    --text-light: #5c5c5c;
    --text-muted: #9c958c;
    --border: #e8e2da;
    --border-light: #f5f2ed;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(31, 31, 31, 0.08);
    --hero-bg: #1a237e;
    --hero-text: #ffffff;
    --hero-muted: rgba(255, 255, 255, 0.75);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.12);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Layout */
    --header-height: 80px;
}

/* Dark Mode - Oak Harbor Navy & Orange */
[data-theme="dark"] {
    --primary: #001f3f;
    --primary-dark: #001529;
    --primary-light: #43b7ff;
    --secondary: #fb923c;
    --secondary-dark: #f97316;
    --accent: #f5e6d3;
    --bg: #1a1f1c;
    --bg-white: #232a26;
    --bg-cream: #2d3530;
    --surface: #232a26;
    --surface-elevated: #2d3530;
    --text: #f5f2ed;
    --text-light: #b8b2a8;
    --text-muted: #6b6b6b;
    --border: #2d3530;
    --border-light: #1a1f1c;
    --glass-bg: rgba(35, 42, 38, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --hero-bg: #0d1642;
    --hero-text: #f5f2ed;
    --hero-muted: rgba(255, 255, 255, 0.7);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.45);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

::selection {
    background: var(--secondary);
    color: white;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-light);
    transition: color 0.3s ease;
}

/* ===== Utility Classes ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: var(--space-3xl) 0;
    background: var(--bg);
    transition: background-color 0.3s ease;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
}

.section-tag svg,
.section-tag img {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin-bottom: var(--space-md);
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
    text-align: center;
    white-space: nowrap;
}

.btn svg,
.btn img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.btn-secondary {
    background: white;
    color: var(--secondary);
    border-color: white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--secondary);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.btn-ghost:hover {
    color: var(--secondary-dark);
}

.btn-ghost svg,
.btn-ghost img {
    transition: var(--transition-base);
}

.btn-ghost:hover svg,
.btn-ghost:hover img {
    transform: translateX(4px);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--surface-elevated);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    padding: var(--space-lg);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.cookie-text p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.cookie-text a {
    color: var(--secondary);
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-text a:hover {
    color: var(--secondary-dark);
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-lg);
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-actions .btn {
        width: 100%;
    }
}
