/* LocalMind™ Theme */

/* Adobe Typekit - Spaghetti Western Fonts
   NOTE: If fonts don't load, add this link tag to header.html:
   <link rel="stylesheet" href="https://use.typekit.net/lwz2wox.css">
*/
@import url('https://use.typekit.net/lwz2wox.css');

/* Google Fonts - Inter for body text */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Lenis Smooth Scroll - Required CSS */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* =================================================================
   THEME CONFIGURATION - Mental Health Wellness Coaching
   Based on DESIGN_SYSTEM.md specifications
   ================================================================= */
:root {
    /* ============================================================
       COLOR PALETTE - LocalMinds
       ============================================================ */

    /* Primary Colors - Matched to Logo */
    --brand-primary: #5B6FE6;        /* Royal Blue/Indigo - CTAs, headings, icons (from logo) */
    --brand-dark: #4456CC;           /* Deep Indigo - Hovers, darker elements */
    --brand-light: #E8ECFA;          /* Soft Lavender - Backgrounds, cards */
    --brand-accent: #F4C430;         /* Warm Yellow/Gold - Accents, highlights (from logo center) */

    /* Neutrals */
    --color-white: #FFFFFF;          /* Pure white */
    --color-background: #FAFAFA;     /* Light gray background */
    --color-text-primary: #2C3E50;   /* Dark slate - primary text */
    --color-text-secondary: #6B7A8F; /* Medium gray - secondary text (from logo tagline) */
    --color-border: #E5E7EB;         /* Light border color */
    --brand-neutral: #6B7A8F;        /* Text Secondary (alias) */

    /* Dark Theme Colors */
    --color-dark-bg: #1a1a1a;        /* Dark background - footer main */
    --color-dark-bg-deep: #0a0a0a;   /* Deeper dark - footer brand section */
    --color-dark-text: rgba(255, 255, 255, 0.9);      /* Primary text on dark */
    --color-dark-text-secondary: rgba(255, 255, 255, 0.7);  /* Secondary text on dark */
    --color-dark-text-muted: rgba(255, 255, 255, 0.6);      /* Muted text on dark */
    --color-dark-border: rgba(255, 255, 255, 0.15);   /* Borders on dark */
    --color-dark-surface: rgba(255, 255, 255, 0.1);   /* Surface elements on dark */

    /* ============================================================
       TYPOGRAPHY SYSTEM - Spaghetti Western & Inter
       ============================================================ */

    /* Font Families */
    --font-heading: "cc-spaghetti-western-sans", sans-serif;
    --font-heading-script: "cc-spaghetti-western-script", sans-serif;
    --font-heading-swash: "cc-spaghetti-western-swash", sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font Sizes - Desktop (Design System Specs) */
    --text-h1: 3.5rem;      /* 56px - H1 Desktop */
    --text-h2: 2.625rem;    /* 42px - H2 Desktop */
    --text-h3: 2rem;        /* 32px - H3 Desktop */
    --text-h4: 1.5rem;      /* 24px - H4 Desktop */
    --text-body: 1rem;      /* 16px - Body text */
    --text-body-lg: 1.125rem; /* 18px - Large body text */
    --text-button: 1rem;    /* 16px - Button text */

    /* Font Sizes - Mobile */
    --text-h1-mobile: 2.25rem;  /* 36px - H1 Mobile */
    --text-h2-mobile: 1.75rem;  /* 28px - H2 Mobile */
    --text-h3-mobile: 1.5rem;   /* 24px - H3 Mobile */
    --text-body-mobile: 1rem;   /* 16px - Body Mobile */

    /* Legacy font size support */
    --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;
    --text-7xl: 4.5rem;

    /* Font Weights */
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;

    /* Line Heights */
    --line-height-tight: 1.3;    /* Headings */
    --line-height-normal: 1.6;   /* Body text minimum */
    --line-height-relaxed: 1.7;  /* Body text comfortable */
    --line-height-loose: 1.8;    /* Body text maximum */

    /* ============================================================
       SPACING SYSTEM - 8px Base Unit
       ============================================================ */

    --space-tight: 0.5rem;      /* 8px - Tight */
    --space-small: 1rem;        /* 16px - Small */
    --space-medium: 1.5rem;     /* 24px - Medium */
    --space-comfortable: 2rem;  /* 32px - Comfortable */
    --space-large: 3rem;        /* 48px - Large */
    --space-section: 4rem;      /* 64px - Section */
    --space-hero: 6rem;         /* 96px - Hero */
    --space-major: 8rem;        /* 128px - Major sections */

    /* Legacy spacing support */
    --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;
    --space-24: 6rem;
    --space-32: 8rem;

    /* ============================================================
       LAYOUT SYSTEM
       ============================================================ */

    /* Container */
    --container-max-width: calc(100% - 8rem);
    --container-padding-mobile: 1.5rem;  /* 24px */
    --container-padding-desktop: 5rem;   /* 80px */

    /* Breakpoints (for reference in media queries) */
    --breakpoint-mobile: 767px;
    --breakpoint-tablet: 1023px;
    --breakpoint-desktop: 1024px;

    /* ============================================================
       COMPONENT STYLES
       ============================================================ */

    /* Border Radius - Design System Specs */
    --radius-button: 0.5rem;    /* 8px - Buttons, inputs */
    --radius-card: 0.75rem;     /* 12px - Cards, images */

    /* Legacy radius support */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows - Design System Specs */
    --shadow-button: 0 4px 12px rgba(64, 181, 173, 0.2);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.08);

    /* Legacy shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 6px 10px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.06);

    /* ============================================================
       TRANSITIONS & INTERACTIONS
       ============================================================ */

    --transition-default: all 0.3s ease;
    --transition-slow: all 0.6s ease-out;
    --transition-button-hover: transform 0.2s ease, box-shadow 0.3s ease;

    /* ============================================================
       GRADIENTS
       ============================================================ */

    --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    --gradient-soft: linear-gradient(135deg, #E5F7F6 0%, #FFFFFF 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(64, 181, 173, 0.1) 0%, rgba(229, 247, 246, 0.05) 100%);

    /* ============================================================
       LEGACY SUPPORT - Backward Compatibility
       ============================================================ */

    --color-sage: #40B5AD;
    --color-sage-v2: #40B5AD;
    --color-blush: #E5F7F6;
    --color-terracotta: #2D8A83;
    --color-sand: #E5F7F6;
    --color-slate: #2C3E50;
    --color-charcoal: #2C3E50;
    --image-border: #40B5AD;
}

/* =================================================================
   UNIVERSAL CMS CLASSES - Required for Faster CMS
   ================================================================= */

/* Scoped Reset - Only affects theme components */
#ai_header *,
#ai_body *,
#ai_footer *,
.ai-page-content * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles - scoped to avoid conflicts */
#ai_header,
#ai_body,
#ai_footer,
.ai-page-content {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--brand-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Background Colors - CMS Required */
.cms-bg-primary { background-color: var(--brand-primary) !important; }
.cms-bg-dark { background-color: var(--brand-dark) !important; }
.cms-bg-light { background-color: var(--brand-light) !important; }
.cms-bg-accent { background-color: var(--brand-accent) !important; }
.cms-bg-neutral { background-color: var(--brand-neutral) !important; }
.cms-bg-white { background-color: #FFFFFF !important; }

/* Text Colors - CMS Required */
.cms-text-primary { color: var(--brand-primary) !important; }
.cms-text-dark { color: var(--brand-dark) !important; }
.cms-text-light { color: var(--brand-light) !important; }
.cms-text-accent { color: var(--brand-accent) !important; }
.cms-text-neutral { color: var(--brand-neutral) !important; }
.cms-text-white { color: #FFFFFF !important; }

/* Border Colors - CMS Required */
.cms-border-primary { border-color: var(--brand-primary) !important; }
.cms-border-dark { border-color: var(--brand-dark) !important; }
.cms-border-light { border-color: var(--brand-light) !important; }
.cms-border-accent { border-color: var(--brand-accent) !important; }
.cms-border-neutral { border-color: var(--brand-neutral) !important; }

/* ============================================================
   BUTTON COMPONENTS - Design System Aligned
   ============================================================ */

/* Base Button Styles */
.cms-btn {
    display: inline-block;
    padding: 1rem 2rem;              /* 16px 32px - Design System */
    font-family: var(--font-heading);
    font-size: var(--text-button);   /* 16px */
    font-weight: var(--font-medium);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-button); /* 8px - Design System */
    transition: var(--transition-button-hover);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1;
}

/* Primary Button - Design System Specs */
.cms-btn-primary {
    background: var(--brand-primary);    /* #40B5AD */
    color: var(--color-white);
    box-shadow: var(--shadow-button);    /* 0 4px 12px rgba(64,181,173,0.2) */
}

.cms-btn-primary:hover {
    background: var(--brand-dark);       /* #2D8A83 - Design System hover */
    transform: scale(1.02);              /* Design System hover effect */
    box-shadow: var(--shadow-card-hover);
    color: var(--color-white);
}

/* Secondary Button - Design System Specs */
.cms-btn-secondary {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.cms-btn-secondary:hover {
    background: var(--brand-light);      /* #E5F7F6 - Design System hover */
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* ============================================================
   CARD COMPONENTS - Design System Aligned
   ============================================================ */

.cms-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);  /* #E5E7EB - Design System */
    border-radius: var(--radius-card);      /* 12px - Design System */
    padding: var(--space-comfortable);      /* 32px - Design System */
    box-shadow: var(--shadow-card);         /* 0 2px 8px rgba(0,0,0,0.04) */
    transition: var(--transition-default);
}

.cms-card:hover {
    transform: translateY(-4px);            /* Design System hover effect */
    box-shadow: var(--shadow-card-hover);   /* Lifted shadow on hover */
}

/* ============================================================
   FORM CONTROLS - Design System Aligned
   ============================================================ */

.cms-form-control {
    width: 100%;
    padding: 0.875rem 1rem;                 /* 14px 16px - Design System */
    font-family: var(--font-body);
    font-size: var(--text-body);            /* 16px */
    border: 1px solid var(--color-border);  /* #E5E7EB - Design System */
    border-radius: var(--radius-button);    /* 8px - Design System */
    background: var(--color-white);
    transition: var(--transition-default);
    color: var(--color-text-primary);
}

.cms-form-control:focus {
    outline: none;
    border-color: var(--brand-primary);     /* #40B5AD - Design System focus */
    box-shadow: 0 0 0 3px rgba(64, 181, 173, 0.15);
}

.cms-form-control::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.6;
}

/* ============================================================
   CONTAINER - Design System Aligned
   ============================================================ */

.container {
    max-width: var(--container-max-width);  /* 1200px - Design System */
    margin: 0 auto;
    padding: 0 var(--container-padding-mobile); /* 24px mobile */
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--container-padding-desktop); /* 80px desktop */
    }
}

/* ============================================================
   RESPONSIVE TYPOGRAPHY - Design System Mobile Specs
   ============================================================ */

/* Mobile Typography: H1:36px, H2:28px, H3:24px, Body:16px */
@media (max-width: 767px) {
    #ai_header h1, #ai_body h1, #ai_footer h1, .ai-page-content h1 {
        font-size: var(--text-h1-mobile); /* 36px */
    }
    #ai_header h2, #ai_body h2, #ai_footer h2, .ai-page-content h2 {
        font-size: var(--text-h2-mobile); /* 28px */
    }
    #ai_header h3, #ai_body h3, #ai_footer h3, .ai-page-content h3 {
        font-size: var(--text-h3-mobile); /* 24px */
    }
    #ai_header h4, #ai_body h4, #ai_footer h4, .ai-page-content h4 {
        font-size: var(--text-xl);
    }
    #ai_header h5, #ai_body h5, #ai_footer h5, .ai-page-content h5 {
        font-size: var(--text-lg);
    }
    #ai_header h6, #ai_body h6, #ai_footer h6, .ai-page-content h6 {
        font-size: var(--text-body);
    }

    #ai_header p, #ai_body p, #ai_footer p, .ai-page-content p {
        font-size: var(--text-body-mobile); /* 16px */
    }

    .container {
        padding: 0 var(--container-padding-mobile);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

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

/* Transformation-Inspired Elements - Global utility class */
.joy-burst {
    background: radial-gradient(circle at center, var(--brand-primary) 0%, transparent 70%);
    opacity: 0.08;
    position: absolute;
    pointer-events: none;
}

