/* ==========================================================================
   SOLAR - PREMIUM SOLAR ENERGY TEMPLATE
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-primary: #10b981;        /* Emerald green */
    --color-primary-light: #34d399;
    --color-primary-dark: #059669;
    --color-secondary: #fbbf24;      /* Amber/Yellow */
    --color-secondary-light: #fcd34d;
    --color-secondary-dark: #f59e0b;
    --color-accent: #3b82f6;         /* Blue */

    /* Neutral Colors - Light Mode */
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-surface: #ffffff;
    --color-text: #111827;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Typography Scale */
    --text-hero: clamp(3rem, 8vw, 5.5rem);
    --text-display: clamp(2.5rem, 5vw, 4rem);
    --text-h1: clamp(2rem, 4vw, 3rem);
    --text-h2: clamp(1.5rem, 3vw, 2.25rem);
    --text-h3: clamp(1.25rem, 2vw, 1.5rem);
    --text-h4: 1.125rem;
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-xs: 0.75rem;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Spacing Scale (8px base) */
    --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;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Glow Effects */
    --glow-green: 0 0 60px rgba(16, 185, 129, 0.3);
    --glow-yellow: 0 0 60px rgba(251, 191, 36, 0.3);
    --glow-green-lg: 0 0 100px rgba(16, 185, 129, 0.4);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Colors */
.dark {
    --color-bg: #0a0a0a;
    --color-bg-alt: #111827;
    --color-surface: #1f2937;
    --color-text: #ffffff;
    --color-text-muted: #9ca3af;
    --color-border: #374151;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--text-body);
    font-weight: var(--font-normal);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color var(--transition-base), color var(--transition-base);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: var(--font-bold);
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

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

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

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

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: white;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

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

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

.sr-only:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    z-index: 9999;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-smooth),
                transform var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all var(--transition-smooth);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all var(--transition-smooth);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-smooth);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: all var(--transition-smooth);
}

.reveal-blur.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================================================
   HOVER ANIMATIONS
   ========================================================================== */

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hover-shine:hover::before {
    left: 100%;
}

/* ==========================================================================
   CONTINUOUS ANIMATIONS
   ========================================================================== */

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

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

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-rotate-slow {
    animation: rotate 20s linear infinite;
}

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

.animate-shine {
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.dark nav {
    background-color: rgba(10, 10, 10, 0.8);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: none;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: var(--font-medium);
    font-size: var(--text-small);
    transition: color var(--transition-base);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
}

.mobile-menu-button {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-6);
    flex-direction: column;
    gap: var(--space-4);
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    font-weight: var(--font-semibold);
    font-size: var(--text-small);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg), var(--glow-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    color: #1f2937;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-lg), var(--glow-yellow);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(16, 185, 129, 0.05);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-body);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #fef3c7 100%);
}

.dark .hero {
    background: linear-gradient(135deg, #064e3b 0%, #78350f 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(at 40% 20%, rgba(16, 185, 129, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(251, 191, 36, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(52, 211, 153, 0.15) 0px, transparent 50%);
    opacity: 0.5;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-6);
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content h1 {
    font-size: var(--text-hero);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

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

.hero-content p {
    font-size: var(--text-h4);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-6);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-size: var(--text-h2);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    display: block;
}

.hero-stat-label {
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl), var(--glow-green-lg);
}

.solar-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl), var(--glow-yellow);
}

.solar-icon-1 {
    top: 10%;
    left: -5%;
    animation: float 6s ease-in-out infinite;
}

.solar-icon-2 {
    bottom: 15%;
    right: -5%;
    animation: float 6s ease-in-out infinite 1s;
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */

section {
    padding: var(--space-20) 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
    font-size: var(--text-small);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-display);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-h4);
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.benefit-card {
    padding: var(--space-8);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.benefit-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    box-shadow: var(--glow-green);
}

.benefit-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.benefit-card h3 {
    font-size: var(--text-h3);
    margin-bottom: var(--space-3);
}

.benefit-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */

.how-it-works {
    background-color: var(--color-bg-alt);
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: grid;
    gap: var(--space-8);
    margin-bottom: var(--space-16);
    align-items: center;
}

@media (min-width: 768px) {
    .step {
        grid-template-columns: 1fr 1fr;
    }

    .step:nth-child(even) .step-content {
        order: 2;
    }
}

.step-number {
    font-size: 5rem;
    font-weight: var(--font-bold);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.step h3 {
    font-size: var(--text-h2);
    margin-bottom: var(--space-4);
}

.step p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: var(--text-h4);
}

.step-visual {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(251, 191, 36, 0.1));
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.step-icon {
    width: 8rem;
    height: 8rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-green-lg);
}

.step-icon svg {
    width: 4rem;
    height: 4rem;
    color: white;
}

/* ==========================================================================
   SAVINGS CALCULATOR
   ========================================================================== */

.calculator {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.calculator .section-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.calculator .section-title,
.calculator .section-description {
    color: white;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calculator-inputs {
    display: grid;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.input-group label {
    font-weight: var(--font-semibold);
    font-size: var(--text-small);
}

.input-group input,
.input-group select {
    padding: var(--space-4);
    background-color: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-size: var(--text-body);
    transition: all var(--transition-base);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3);
}

.input-value {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: white;
    font-weight: var(--font-semibold);
}

.calculator-results {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
}

.result-main {
    font-size: var(--text-display);
    font-weight: var(--font-bold);
    color: var(--color-secondary);
    margin-bottom: var(--space-2);
}

.result-label {
    font-size: var(--text-h4);
    margin-bottom: var(--space-6);
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item {
    text-align: center;
}

.result-item-value {
    font-size: var(--text-h3);
    font-weight: var(--font-bold);
    display: block;
    margin-bottom: var(--space-1);
}

.result-item-label {
    font-size: var(--text-small);
    opacity: 0.9;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.testimonial-card {
    padding: var(--space-8);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.testimonial-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-h3);
    font-weight: var(--font-bold);
}

.testimonial-author h4 {
    font-size: var(--text-body);
    margin-bottom: var(--space-1);
}

.testimonial-location {
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

.testimonial-rating {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.testimonial-rating svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-secondary);
}

.testimonial-text {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-style: italic;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta {
    background: linear-gradient(135deg, #f0fdf4 0%, #fef3c7 100%);
}

.dark .cta {
    background: linear-gradient(135deg, #064e3b 0%, #78350f 100%);
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-16);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
}

.dark .cta-container {
    background-color: rgba(0, 0, 0, 0.3);
}

.cta h2 {
    font-size: var(--text-display);
    margin-bottom: var(--space-6);
}

.cta p {
    font-size: var(--text-h4);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    padding: var(--space-16) 0 var(--space-8);
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .footer-brand {
        grid-column: span 2;
    }
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
    display: inline-block;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    max-width: 400px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

.social-link:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: var(--text-body);
    margin-bottom: var(--space-4);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: var(--text-small);
    transition: color var(--transition-base);
}

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

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-links a {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    transition: color var(--transition-base);
}

.footer-bottom-links a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

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

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

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

    .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.hover-lift,
.hover-zoom img,
.animate-float,
.solar-icon {
    transform: translateZ(0);
    will-change: transform;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    nav,
    .mobile-menu,
    .theme-toggle,
    footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}
