/* ============================================
   ONLLM.DEV - Pastel Zen Design System
   ============================================ */

/* CSS Custom Properties - Vibrant Pastel Zen Theme */
:root {
    /* Primary Colors - Vibrant Lavender */
    --primary: #8B7EC0;           /* Vibrant lavender */
    --primary-light: #A899D4;     /* Lighter lavender */
    --primary-dark: #6A5B9C;      /* Darker lavender */

    /* Secondary Colors - Vibrant Mint */
    --secondary: #5EC4A8;         /* Vibrant mint */
    --secondary-light: #7DD8BE;   /* Light mint */
    --secondary-dark: #3EA88C;    /* Deep mint */

    /* Accent Colors - Vibrant */
    --accent: #F5846A;            /* Vibrant coral */
    --accent-light: #FFB4A2;      /* Light coral */
    --accent-alt: #5BA4E8;        /* Vibrant sky blue */

    /* New Accent Colors */
    --accent-orange: #FF8C42;     /* CTA orange - energetic */
    --accent-green: #7AC74F;      /* Success green - nature */
    --accent-blue: #5BA4E8;       /* Info blue - trust */
    --accent-teal: #4ECDC4;       /* Teal for Bro product */

    /* Neutrals */
    --text: #3D3D3D;              /* Warm charcoal */
    --text-light: #6B6B6B;        /* Soft gray */
    --text-muted: #9A9A9A;        /* Muted gray */

    /* Backgrounds */
    --bg: #FFFBF7;                /* Warm cream */
    --bg-alt: #F8F5F2;            /* Soft warm gray */
    --bg-card: #FFFFFF;           /* Pure white cards */
    --bg-dark: #2D2D2D;           /* Dark sections */

    /* Borders */
    --border: #E8E4E0;            /* Light warm border */
    --border-light: #F0ECE8;      /* Lighter border */

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(139, 126, 192, 0.08);
    --shadow-md: 0 4px 20px rgba(139, 126, 192, 0.12);
    --shadow-lg: 0 8px 40px rgba(139, 126, 192, 0.15);
    --shadow-glow: 0 0 40px rgba(139, 126, 192, 0.2);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;
    --spacing-2xl: 64px;
    --spacing-3xl: 100px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--text-light);
    line-height: 1.7;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--primary);
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-sm {
    padding: var(--spacing-2xl) 0;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(255, 251, 247, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    transition: var(--transition-fast);
}

.logo:hover {
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-bounce);
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-3deg);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary);
    color: white !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

/* Hide header CTA on mobile - it's in the hamburger menu */
@media (max-width: 768px) {
    .header .nav-cta {
        display: none;
    }
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-cta::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
    background: #E67A35;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-md);
}

.btn-ghost:hover {
    color: var(--primary);
    background: rgba(139, 126, 192, 0.08);
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.1rem;
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition-normal);
}

.card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-sm {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.card-flat {
    box-shadow: none;
}

.card-flat:hover {
    transform: none;
}

/* ============================================
   Form Elements
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 126, 192, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   Badges & Tags
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    background: rgba(139, 126, 192, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(94, 196, 168, 0.15);
    color: var(--secondary-dark);
}

.badge-accent {
    background: rgba(232, 165, 152, 0.15);
    color: #C27D70;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-md);
}

.section-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: var(--radius-full);
}

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Footer
   ============================================ */
/* Legacy footer (kept for blog/product pages using footer.php) */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    border-radius: 8px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary-light);
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ============================================
   Footer V2 - Revamped (Landing Page)
   ============================================ */
.footer-v2 {
    background: #1A1A2E;
    color: white;
    position: relative;
}

.footer-accent {
    height: 3px;
    background: linear-gradient(90deg,
        var(--primary) 0%,
        var(--secondary) 35%,
        var(--accent-orange) 65%,
        var(--primary-light) 100%
    );
}

/* Newsletter row */
.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-newsletter-text h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.footer-newsletter-text p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 4px;
    transition: var(--transition-normal);
}

.footer-newsletter-form:focus-within {
    border-color: rgba(139, 126, 192, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 126, 192, 0.1);
}

.footer-newsletter-input {
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    padding: 10px 20px;
    min-width: 220px;
}

.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.footer-newsletter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.footer-newsletter-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 126, 192, 0.3);
}

/* Main footer grid */
.footer-v2-grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    gap: var(--spacing-2xl);
    padding: 56px 0 48px;
}

.footer-v2-brand .footer-brand {
    margin-bottom: var(--spacing-md);
}

.footer-v2-brand .footer-description {
    margin-bottom: 24px;
}

.footer-v2-social {
    display: flex;
    gap: 10px;
}

.footer-v2-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-normal);
}

.footer-v2-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Footer V2 grid uses shared .footer-title and .footer-links */

/* Footer bottom */
.footer-v2-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

.footer-v2-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-v2-bottom-links a {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.footer-v2-bottom-links a:hover {
    color: var(--secondary-light);
}

/* ============================================
   Contact Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-bounce);
    position: relative;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    color: var(--text-light);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

/* ============================================
   Floating Contact Button
   ============================================ */
.floating-btn {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--accent-orange);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.35);
    transition: var(--transition-normal);
    animation: float 3s ease-in-out infinite;
}

.floating-btn:hover {
    background: #E67A35;
    transform: scale(1.05);
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease forwards;
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Initial State for Animations */
[data-animate] {
    opacity: 0;
}

[data-animate].animated {
    opacity: 1;
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-content > * {
    padding: 0 var(--spacing-xl);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

.grid { display: grid; }

.hidden { display: none; }
.visible { display: block; }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-v2-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

    .footer-v2-brand {
        grid-column: 1 / -1;
    }

    .footer-newsletter {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-newsletter-form {
        width: 100%;
        max-width: 420px;
    }

    .footer-newsletter-input {
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-3xl: 64px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-card);
        padding: var(--spacing-lg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active .nav-link {
        padding: var(--spacing-md);
        display: block;
        text-align: center;
    }

    .nav-links.active .nav-cta {
        margin-top: var(--spacing-md);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
        text-align: left;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: var(--spacing-md);
    }

    .footer-brand-section .footer-brand {
        justify-content: center;
    }

    .footer-description {
        max-width: 100%;
        text-align: center;
        font-size: 0.85rem;
        margin: 0 auto;
    }

    .footer-column {
        text-align: center;
    }

    .footer-title {
        font-size: 0.75rem;
        margin-bottom: var(--spacing-sm);
    }

    .footer-links li {
        margin-bottom: 4px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        padding-top: var(--spacing-lg);
    }

    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }

    .floating-btn {
        right: var(--spacing-md);
        bottom: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
        gap: var(--spacing-xs);
    }

    .floating-btn .icon {
        width: 16px;
        height: 16px;
    }

    /* Footer V2 responsive */
    .footer-v2-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 12px;
        padding: 32px 0 24px;
    }

    .footer-v2-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 0;
    }

    .footer-v2-brand .footer-brand {
        justify-content: center;
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .footer-v2-brand .footer-description {
        max-width: 280px;
        text-align: center;
        margin: 0 auto 12px;
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .footer-v2-social {
        justify-content: center;
    }

    .footer-v2-grid .footer-title {
        font-size: 0.7rem;
        margin-bottom: 8px;
        letter-spacing: 0.8px;
    }

    .footer-v2-grid .footer-links li {
        margin-bottom: 4px;
    }

    .footer-v2-grid .footer-links a {
        font-size: 0.8rem;
    }

    .footer-newsletter {
        padding: 24px 0;
    }

    .footer-newsletter-text h3 {
        font-size: 1.05rem;
        margin-bottom: 2px;
    }

    .footer-newsletter-text p {
        font-size: 0.8rem;
    }

    .footer-newsletter-form {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 4px;
        width: 100%;
    }

    .footer-newsletter-input {
        text-align: center;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .footer-newsletter-btn {
        justify-content: center;
        border-radius: calc(var(--radius-lg) - 4px);
        padding: 10px;
    }

    .footer-v2-bottom {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
        padding: 16px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .btn-lg {
        padding: var(--spacing-md) var(--spacing-xl);
    }

    .modal {
        padding: var(--spacing-lg);
        border-radius: var(--radius-lg);
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-btn {
        animation: none;
    }

    .marquee-content {
        animation: none;
    }
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: #333;
        --text-light: #333;
    }
}

/* ============================================
   Icon System
   ============================================ */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Icon Sizes */
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

/* Icon Colors */
.icon-primary { color: var(--primary); }
.icon-secondary { color: var(--secondary); }
.icon-accent { color: var(--accent); }
.icon-accent-orange { color: var(--accent-orange); }
.icon-accent-green { color: var(--accent-green); }
.icon-accent-blue { color: var(--accent-blue); }
.icon-muted { color: var(--text-muted); }
.icon-white { color: white; }

/* Icon with Text - Spacing */
.icon + span,
span + .icon,
.icon + a,
a + .icon {
    margin-left: 0.5em;
}

/* Icon Button Base */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    color: var(--text-light);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    color: var(--primary);
    background: rgba(139, 126, 192, 0.1);
}

/* Vibrant Button Override for Orange CTAs */
.btn-cta {
    background: var(--accent-orange);
    color: white;
}

.btn-cta:hover {
    background: #E67A35;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.35);
}
