/* ==========================================================================
   EverClear Homepage - Optimized & Performance-Focused
   ========================================================================== */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff !important;
}

.hero .subheadline {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #2c5aa0;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.btn-secondary:hover {
    background: #2c5aa0;
    color: white;
}

/* Value Proposition Strip */
.value-props {
    background: #f8f9fa;
    padding: 3rem 2rem;
}

.value-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
}

.value-item h3 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.value-item p {
    color: #555;
    font-size: 0.95rem;
}

/* Section Styles */
section {
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    text-align: center;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #555;
}

/* Lens Preview Section */
.lens-preview {
    background: white;
    padding: 2.5rem 2rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.preview-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.preview-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f8f9fa;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-content {
    padding: 1rem;
    text-align: center;
}

.preview-card h3 {
    color: #2c5aa0;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    font-weight: 600;
}

.preview-card p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.preview-link {
    color: #2c5aa0;
    font-weight: 600;
    font-size: 0.85rem;
}

.preview-card:hover .preview-link {
    text-decoration: underline;
}

.preview-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Why EverClear */
.why-everclear {
    background: #f8f9fa;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.why-item h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.why-item p {
    color: #555;
    line-height: 1.7;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.final-cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.final-cta .btn {
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subheadline {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .value-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero .subheadline {
        font-size: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .preview-image {
        height: 80px;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* === Unified Blue Hero Rectangle === */
:root{ --hero-height-desktop:480px; --hero-height-mobile:340px; }
.hero,.hero-small,.product-hero{
  min-height:var(--hero-height-desktop);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.hero>*,.hero-small>*,.product-hero>*{margin:0 auto;}
@media(max-width:768px){
  .hero,.hero-small,.product-hero{
    min-height:var(--hero-height-mobile);
    padding:3rem 1.5rem;
  }
}
