/**
 * Base Styles
 * Variables, Reset, Typography
 *
 * @package Rhymefest
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Campaign Colors - ONLY these colors should be used */
    --color-blue: #4cb9dd;
    --color-red: #f15d5e;
    --color-dark-blue: #385164;
    --color-white: #ffffff;
    --color-off-white: #f8f9fa;
    
    /* Derived shades from campaign colors */
    --color-blue-dark: #3a9fc0;
    --color-blue-light: rgba(76, 185, 221, 0.1);
    --color-red-dark: #e04a4b;
    --color-red-light: rgba(241, 93, 94, 0.1);
    --color-dark-blue-deeper: #2a3f4f;
    --color-dark-blue-darkest: #1e2d3a;
    
    /* Neutral tones derived from dark blue */
    --color-gray: #5a6d7a;
    --color-gray-light: #8a9aa6;
    --color-text: #2d3e4a;
    
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    
    --container-max: 1200px;
    --container-padding: 20px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-dark-blue);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark-blue);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-wide {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-blue { color: var(--color-blue); }
.text-red { color: var(--color-red); }
.text-dark-blue { color: var(--color-dark-blue); }
.text-white { color: var(--color-white); }

.bg-blue { background-color: var(--color-blue); }
.bg-red { background-color: var(--color-red); }
.bg-dark-blue { background-color: var(--color-dark-blue); }
.bg-white { background-color: var(--color-white); }
.bg-off-white { background-color: var(--color-off-white); }

.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;
}

/* ============================================
   TOUCH-FRIENDLY DEFAULTS (Mobile First)
   ============================================ */
@media (pointer: coarse) {
    a,
    button,
    .btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
    }
}

/* ============================================
   SMALL SCREEN ADJUSTMENTS
   ============================================ */
@media (max-width: 374px) {
    :root {
        --container-padding: 12px;
    }
    
    html {
        font-size: 14px;
    }
}

/* ============================================
   SCROLL ANIMATIONS (Fast fade-in)
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In */
.fade-in {
    opacity: 0;
    transition: opacity 0.18s ease-out;
}

.fade-in.animated {
    opacity: 1;
}

/* Slide Up */
.slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Left */
.slide-left {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Slide Right */
.slide-right {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale Up */
.scale-up {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.scale-up.animated {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations for grids (minimal delay) */
.stagger-1 { transition-delay: 0.02s; }
.stagger-2 { transition-delay: 0.04s; }
.stagger-3 { transition-delay: 0.06s; }
.stagger-4 { transition-delay: 0.08s; }
.stagger-5 { transition-delay: 0.1s; }
.stagger-6 { transition-delay: 0.12s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .fade-in,
    .slide-up,
    .slide-left,
    .slide-right,
    .scale-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ============================================
   PARALLAX BACKGROUNDS
   ============================================ */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Disable parallax on mobile for performance */
@media (max-width: 1023px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* ============================================
   FLOATING ACCENTS
   ============================================ */
.floating-accent {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.floating-accent-1 {
    width: 200px;
    height: 200px;
    background: var(--color-blue);
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.floating-accent-2 {
    width: 150px;
    height: 150px;
    background: var(--color-red);
    top: 40%;
    right: -75px;
    animation-delay: 2s;
}

.floating-accent-3 {
    width: 100px;
    height: 100px;
    background: var(--color-blue);
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

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

/* ============================================
   ENHANCED CARDS WITH HOVER EFFECTS
   ============================================ */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Gradient border effect */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-red));
    border-radius: 8px 8px 0 0;
}

/* ============================================
   VISUAL ENERGY - ANIMATED ELEMENTS
   ============================================ */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.energy-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .energy-pulse {
        animation: none;
    }
}

/* ============================================
   APPROACH 1: POLISHED ELEGANCE WITH ENERGY
   Subtle but dynamic visual enhancements
   ============================================ */

/* Subtle CTA Button Glow Animation */
/* Approach 2: Bold & Energetic - More dramatic button glow */
@keyframes btn-glow-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(76, 185, 221, 0.4), 0 0 0 0 rgba(76, 185, 221, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 35px rgba(76, 185, 221, 0.6), 0 0 50px rgba(76, 185, 221, 0.3);
        transform: scale(1.02);
    }
}

@keyframes btn-glow-pulse-red {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(241, 93, 94, 0.4), 0 0 0 0 rgba(241, 93, 94, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 35px rgba(241, 93, 94, 0.6), 0 0 50px rgba(241, 93, 94, 0.3);
        transform: scale(1.02);
    }
}

/* Floating background elements animation */
@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

@keyframes gentle-drift {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -5px);
    }
    50% {
        transform: translate(5px, -10px);
    }
    75% {
        transform: translate(-5px, -5px);
    }
}

/* ============================================
   AUDIO WAVE DIVIDERS - Approach 2: Bold & Energetic
   Music-inspired geometric pattern
   ============================================ */
.audio-wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.audio-wave-divider svg {
    width: 100%;
    height: 100%;
}

.audio-wave-divider .wave-bar {
    fill: var(--color-off-white);
    animation: audio-pulse 1.5s ease-in-out infinite;
    transform-origin: bottom center;
}

/* Staggered animation for each bar */
.audio-wave-divider .wave-bar:nth-child(odd) {
    animation-delay: 0s;
}
.audio-wave-divider .wave-bar:nth-child(even) {
    animation-delay: 0.15s;
}
.audio-wave-divider .wave-bar:nth-child(3n) {
    animation-delay: 0.3s;
}
.audio-wave-divider .wave-bar:nth-child(5n) {
    animation-delay: 0.45s;
}

@keyframes audio-pulse {
    0%, 100% { 
        transform: scaleY(1); 
        opacity: 0.85;
    }
    50% { 
        transform: scaleY(0.5); 
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .audio-wave-divider {
        height: 80px;
    }
}

@media (min-width: 1024px) {
    .audio-wave-divider {
        height: 100px;
    }
}

/* Chevron Divider - Bold geometric transition */
.chevron-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.chevron-divider svg {
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .chevron-divider {
        height: 80px;
    }
}

@media (min-width: 1024px) {
    .chevron-divider {
        height: 100px;
    }
}

/* Wave Divider SVG Shape */
.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.wave-divider-top {
    top: 0;
    transform: rotate(180deg);
}

.wave-divider-bottom {
    bottom: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.wave-divider .shape-fill {
    fill: var(--color-white);
}

.wave-divider-dark .shape-fill {
    fill: var(--color-dark-blue-darkest);
}

.wave-divider-blue .shape-fill {
    fill: var(--color-dark-blue);
}

.wave-divider-offwhite .shape-fill {
    fill: var(--color-off-white);
}

@media (min-width: 768px) {
    .wave-divider svg {
        height: 70px;
    }
}

@media (min-width: 1024px) {
    .wave-divider svg {
        height: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wave-divider,
    .audio-wave-divider .wave-bar,
    .btn-glow,
    .gentle-float,
    .btn-primary,
    .btn-secondary,
    .hero-image img {
        animation: none !important;
    }
    
    .hero-section::before,
    .hero-section::after {
        animation: none !important;
    }
}
