/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Glacial Indifference', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Safe area support for iOS/Android devices with notches */
html {
    /* Extend background to safe areas */
    background: var(--background-dark, #000000);
}

body {
    /* Ensure content respects safe areas */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    /* Note: Don't add padding-top here as it interferes with header */
    background: var(--background-dark, #000000);
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, 
    *::before, 
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    /* Primary Brand Colors */
    --primary-color: #52bf40;
    --secondary-color: #337418;
    --accent-color: #337418;
    
    /* Extended Brand Palette */
    --brand-teal: #52bf40;
    --brand-purple: #52bf40;
    --brand-orange: #52bf40;
    --success-color: #52bf40;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #52bf40;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e8e8e8;
    --text-light: #c4c4c4;
    --text-muted: #888888;
    
    /* Background Colors */
    --background-dark: #000000;         /* Keep for headers/footers */
    --background-content: #121212;      /* Main content areas - Spotify inspired */
    --background-darker: #000000;       /* Navigation/header backgrounds */
    --background-card: #1e1e1e;         /* Cards on content background */
    --background-light: #2a2a2a;        /* Lighter cards/elements */
    --background-white: #ffffff;
    --background-gradient: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    
    /* Border & Shadow */
    --border-color: #333333;
    --border-light: #4d4d4d;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 10px 10px -5px rgb(0 0 0 / 0.4);
    
    /* Typography */
    --font-display: 'Glacial Indifference', 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Glacial Indifference', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    --font-brand: 'Glacial Indifference', 'Inter', sans-serif;
    
    /* Font Weights */
    --font-thin: 100;
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0em;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Glacial Indifference Font - Local Files */
@font-face {
    font-family: 'Glacial Indifference';
    src: url('../fonts/GlacialIndifference-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Glacial Indifference';
    src: url('../fonts/GlacialIndifference-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: var(--font-body);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background: var(--background-dark);
    background-attachment: fixed;
    font-weight: var(--font-normal);
    letter-spacing: var(--tracking-normal);
    font-size: var(--text-base);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section titles */
.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--text-primary);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

/* Page hero */
.page-hero {
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* CTA improvements */
.btn-urgency {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    opacity: 0.9;
    margin-top: var(--space-1);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-md);
    margin-top: var(--space-4);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: black;
    border-color: var(--primary-color);
}


/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for accessibility */
*:focus {
    outline: none;
}

.nav-link:focus,
.btn:focus,
.service-card:focus,
.provider-badge:focus {
    outline: none;
    border-radius: var(--radius-md);
}

/* Nav and footer link hover/active states */
.nav-link:focus,
.nav-link:active {
    color: var(--primary-color);
    outline: none;
}

.footer-section a:focus,
.footer-section a:active {
    color: var(--primary-color);
    outline: none;
}

/* Improve focus visibility for buttons that need it */
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(82, 191, 64, 0.2);
}

/* Blog pages should use Inter font for better readability */
.blog-page,
.blog-page *,
.blog-post-active,
.blog-post-active *,
.blog-content,
.blog-content *,
#blog-posts,
#blog-posts *,
.post-content,
.post-content * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Exception: Keep Glacial Indifference for blog page headers and navigation */
.blog-page .header *,
.blog-post-active .header *,
.blog-page .footer .cloudaura-domain-text,
.blog-post-active .footer .cloudaura-domain-text,
.blog-page .section-title,
.blog-post-active .section-title {
    font-family: 'Glacial Indifference', 'Inter', sans-serif !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #f1f5f9;
        --background-dark: #000000;
        --background-card: #1a1a1a;
        --border-color: #ffffff;
    }
}

/* Reusable Premium Gradient Backgrounds */
.gradient-bg-primary {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f2e1c 100%) !important;
    position: relative;
    overflow: hidden;
}

.gradient-bg-subtle {
    background: linear-gradient(135deg, 
        rgba(82, 191, 64, 0.1) 0%, 
        rgba(82, 191, 64, 0.05) 50%,
        rgba(18, 18, 18, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(18, 18, 18, 0.9) 0%, 
        rgba(82, 191, 64, 0.1) 50%,
        rgba(18, 18, 18, 0.9) 100%);
    z-index: 1;
}

.gradient-content {
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .service-card:hover {
        transform: none;
        box-shadow: var(--shadow-lg);
    }
    
    .service-card:hover::before {
        opacity: 0;
    }
    
    .service-card:hover .service-icon {
        transform: none;
    }
    
    .nav-link:hover {
        background: none;
        transform: none;
    }
    
    .footer-section a:hover {
        background: none;
        transform: none;
    }
    
    /* Add touch-specific interactions */
    .service-card:active {
        transform: scale(0.98);
    }
    
    .nav-link:active {
        background: var(--background-card);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}