/* === IMPORT FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Prompt:wght@300;400;600;700;800&display=swap');

/* === BASE STYLES === */
:root {
    --primary-green: #28a745;
    --primary-green-hover: #218838;
    --black: #000000;
    --dark-bg: #1a1a1a;
    --light-gray: #f8f9fa;
    --wide-width: 1440px;
    
    /* Font Variables */
    --font-heading: 'Prompt', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    margin: 0;
    color: #333;
    line-height: 1.6;
    background-color: #efefef;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container-wide {
    max-width: var(--wide-width);
    width: 95%;
    margin: 0 auto;
}

img.placeholder {
    background-color: #ddd;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* === UTILITY CLASSES === */
.text-dark { color: #333; }
.text-center { text-align: center; }
.flex-1 { flex: 1; }

/* Focus states for accessibility */
a:focus-visible, 
button:focus-visible {
    outline: 2px dashed var(--primary-green);
    outline-offset: 4px;
}

/* === HEADER & NAVIGATION === */
header {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
}

.logo img { 
    height: 30px; 
    width: auto; 
    display: block; 
    padding: 10px;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    margin-left: 30px;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover { 
    color: var(--primary-green); 
}

.btn-contact {
    background: var(--primary-green);
    color: white !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background-color: var(--primary-green-hover);
}

/* === HAMBURGER MENU === */
.hamburger {
    display: none; 
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--black);
    transition: all 0.3s ease-in-out;
}

/* === HERO SECTION === */
.hero {
    max-width: var(--wide-width);
    width: 95%;
    aspect-ratio: 16 / 9; 
    min-height: 600px; 
    margin: 25px auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 20px;
    background-color: #000;
}

.hero-video-background {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    z-index: 1;
}

.mobile-optimized-video {
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    filter: brightness(0.4);
    pointer-events: none; 
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 60px;
    color: white;
    font-family: var(--font-heading); 
}

.hero-content p {
    font-size: 24px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

.hero-content h1 {
    font-size: 60px;
    line-height: 1;
    margin: 15px 0;
    font-weight: 600;
    max-width: 1440px;
}

/* === SECTION CARDS === */
.section-card {
    background: white;
    margin: 30px 0;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

h2 {
    text-align: center;
    color: var(--black);
    margin-bottom: 50px;
    font-size: 36px;
}

/* === BENEFIT ACCORDION === */
.benefit-accordion {
    max-width: 900px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.accordion-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.accordion-header h3 {
    margin: 0;
    font-size: 20px; 
    font-weight: 600;
    color: var(--black);
    font-family: var(--font-heading);
}

.accordion-header .icon {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fafafa;
}

.accordion-content p {
    margin: 0;
    padding: 10px 25px 25px 25px;
    color: #555;
    font-size: 16px;
    font-family: var(--font-body);
}

.accordion-item.active {
    border-color: var(--primary-green);
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}

/* === PRODUCT COMPARISON (CHARTS) === */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.chart-box {
    text-align: center;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.chart-box img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.chart-box p {
    color: #888;
    font-size: 14px;
}

/* === PARTNERSHIP === */
.partner-logo-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 40px;
}

.partner-logo-container img {
    height: 80px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.partner-logo-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* === SPECS === */
.specs-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
}

table tr { 
    border-bottom: 1px solid #eee; 
}

table td { 
    padding: 18px 10px; 
}

table td:first-child { 
    font-weight: 600; 
    width: 200px; 
    font-family: var(--font-heading);
}

/* === FOOTER === */
footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    font-size: 14px;
}

/* === CHART SECTION & LIGHTBOX (NEW) === */

/* Reduces padding from 60px to 30px */
.compact-card {
    padding: 30px 60px;
}

/* Make image look clickable */
.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.zoomable-image:hover {
    transform: scale(1.02);
}

/* The Modal (background) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.85); 
    align-items: center;
    justify-content: center;
}

/* Modal Image */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoom 0.3s ease;
}

/* Animation for zoom */
@keyframes zoom {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

/* The Close Button */
.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-green);
    text-decoration: none;
    cursor: pointer;
}

/* Mobile tweak for compact card */
@media (max-width: 768px) {
    .compact-card {
        padding: 20px;
    }
    .close-modal {
        top: 10px;
        right: 20px;
    }
}

/* === RESPONSIVE (MOBILE) === */
@media (max-width: 768px) {
    
    /* Hamburger Menu Animation */
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Mobile Navigation Drawer */
    .nav-links { 
        position: absolute;
        top: 60px; 
        left: -100%; 
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease; 
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-links.active { left: 0; }
    
    .nav-links a {
        margin: 15px 0;
        display: block;
    }

    /* Layout Adjustments */
    .comparison-grid, 
    .specs-container {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .hero { 
        aspect-ratio: unset; 
        min-height: 400px; 
    }

    .hero-content {
        padding: 0 30px;
    }

    .hero-content h1 { 
        font-size: 42px; 
    }
    
    .section-card { 
        padding: 30px; 
    }
    
    .accordion-header { 
        padding: 15px 20px; 
    }

    .accordion-header h3 { 
        font-size: 18px; 
    }
}