/* Aero Flow Solar Attic Fans - Website Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* CSS Custom Properties for Parameterization */
:root {
    /* Colors */
    --primary-blue: #1e40af;
    --light-blue: #3b82f6;
    --accent-orange: #ea580c;
    --light-orange: #fb923c;
    --dark-blue: #1e3a8a;
    --gray-light: #f8fafc;
    --gray-medium: #000000;
    --white: #ffffff;
    --black: #000000;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.25rem;
    --spacing-xxl: 1.5rem;
    --spacing-xxxl: 2rem;
    --spacing-xxxxl: 3rem;

    /* Font Sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-xxl: 1.5rem;
    --font-size-xxxl: 1.875rem;
    --font-size-xxxxl: 2.25rem;
    --font-size-hero: 2.5rem;

    /* Layout */
    --container-padding: var(--spacing-xxl);
    --section-padding: var(--spacing-xxxxl);
    --navbar-height: 7.5rem; /* 120px / 16px */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 3rem;
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    --box-shadow-md: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

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

.section-spacing-top {
    margin-top: 2rem;
}

.subsection-spacing-top {
    margin-top: 0.5rem;
}

.cursor-pointer {
    cursor: pointer;
}

.footer-disclaimer {
    font-size: 0.75rem;
    margin-top: 1.5rem;
    opacity: 0.8;
}

/* Skip Navigation Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 500;
    opacity: 0;
    transition: top 0.2s ease, opacity 0.2s ease;
}

.skip-link:focus {
    top: 0;
    opacity: 1;
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Container */
.container {
    max-width: 75rem; /* 1200px / 16px */
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem; /* 20px */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.9375rem; /* 15px */
    }
}

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

/* Top Navigation Bar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--box-shadow-md);
    z-index: 1000;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
}


.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 87.5rem; /* 1400px / 16px */
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

/* Logo on the left */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.navbar-logo {
    height: 6.5rem;
    width: auto;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Navigation links */
.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
}

.nav-item:hover {
    background: var(--gray-light);
    color: var(--accent-orange);
    transform: translateY(-2px);
}

.nav-item.active {
    background: var(--accent-orange);
    color: white;
}

/* Login button on the right */
.navbar-login {
    display: flex;
    align-items: center;
}

.contractor-login-btn {
    display: block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contractor-login-btn:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
}

/* Navbar login spacer - invisible element to center navigation links */
.navbar-login-spacer {
    width: 5.25rem; /* Approximate width of "Login" button */
    height: 2.75rem; /* Approximate height of login button */
    visibility: hidden;
}

/* Hamburger menu for mobile */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Hide mobile login on desktop */
.mobile-login-item {
    display: none;
}

/* Main Content Styles */
.main-content {
    margin-top: 120px;
    min-height: calc(100vh - 120px);
    transition: all 0.3s ease;
    width: 100%;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   RESPONSIVE VISIBILITY
   ========================================== */

/* Hide desktop navigation on mobile */
@media (max-width: 1175px) {
    .navbar-nav {
        position: fixed;
        top: var(--navbar-height);
        right: -300px;
        width: 300px;
        height: calc(100vh - var(--navbar-height));
        background: var(--white);
        border-left: none;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: none;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        align-items: flex-start !important;
    }

    .navbar-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        width: 100%;
        display: flex !important;
        align-items: stretch !important;
    }
    
    .nav-list > li {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        display: block !important;
    }
    
    .nav-item {
        padding: 1rem 0.25rem 1rem 1rem !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 0;
        text-align: left;
        width: 100%;
        display: block !important;
    }
    
    .nav-item:hover {
        background: var(--gray-light);
        transform: none;
    }
    
    .nav-item.active {
        background: var(--accent-orange);
        color: white;
    }
    
    /* Mobile login button styling */
    .mobile-login-item {
        display: block;
        margin: 0;
        padding: 1rem 0.25rem 1rem 1rem;
        border-top: 2px solid rgba(0, 0, 0, 0.1);
    }
    
    .mobile-login-item .contractor-login-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .navbar-login,
    .navbar-login-spacer {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .main-content {
        margin-top: var(--navbar-height);
        padding: 1rem;
    }

    .navbar-logo {
        height: 6.5rem;
    }
    
    .navbar-container {
        padding: 0 0.5rem;
    }
}

/* Landscape mobile fix - ensure menu doesn't get covered by navbar */
@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
    .navbar-nav {
        top: var(--navbar-height);
        height: calc(100vh - var(--navbar-height));
        padding: 2rem 0 0 0 !important;
        margin: 0 !important;
    }
    
    .nav-list {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .nav-item {
        padding: 0.75rem 0.25rem 0.75rem 1rem !important;
        margin: 0 !important;
    }
    
    .mobile-login-item {
        padding: 0.75rem 0.25rem 0.75rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
}

/* ==========================================
   SITE HEADER & NAVIGATION
   ========================================== */

/* Hide old navigation elements completely */
.site-header,
.site-navigation,
.nav-header-bar,
.desktop-nav,
.mobile-nav-panel,
.mobile-menu-overlay,
.mobile-menu-toggle {
    display: none !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: var(--navbar-height) 0 3.75rem; /* 60px */
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
    transition: padding-top 0.3s ease;
}

@media (max-width: 768px) {
    .hero-section {
        padding: var(--navbar-height) 0 3.125rem; /* 50px bottom */
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: var(--navbar-height) 0 2.5rem; /* 40px bottom */
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50rem; /* 800px */
    margin: 0 auto;
    padding: 0 1.25rem; /* 20px */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--light-orange);
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-content p a {
    color: var(--light-orange);
    text-decoration: none;
    font-weight: bold;
}

.hero-content p a:hover {
    text-decoration: underline;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-orange), var(--light-orange));
    color: var(--white);
    border: none;
    padding: 1.125rem 2.25rem; /* 18px 36px */
    font-size: var(--font-size-lg);
    font-weight: bold;
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.9375rem rgba(234, 88, 12, 0.3);
    min-height: 3.5rem; /* 56px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .cta-button {
        padding: 0.9375rem 1.875rem; /* 15px 30px */
        min-height: 3rem; /* 48px */
        font-size: 1rem;
    }
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/Copilot_roofer_installing.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

/* Section Styles */
section {
    padding: 3rem 0; /* 48px */
}

section:nth-child(even) {
    background-color: var(--gray-light);
}

/* Standard paragraph styles across all sections */
section p,
.contractor-content p,
.homeowner-intro,
.training-intro,
.warranty-content > p,
.contact-info p,
.how-it-works-text p,
.contractor-text p {
    font-size: 1.1rem;
    color: var(--gray-medium);
    line-height: 1.6;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    font-weight: bold;
    line-height: 1.2;
}

@media (max-width: 768px) {
    section {
        padding: 2.5rem 0; /* 40px */
    }

    h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2rem 0; /* 32px */
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }
}

/* Products Section */
.products-section {
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .products-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.8rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--box-shadow-lg);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-orange);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .product-card {
        padding: 2rem;
    }
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

/* Product Image Styles */
.product-image {
    margin: 1.5rem 0;
    text-align: center;
}

.product-img {
    max-width: 100%;
    height: 12.5rem; /* 200px */
    object-fit: cover;
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .product-img {
        height: 10rem; /* 160px */
    }
}

@media (max-width: 480px) {
    .product-img {
        height: 8.75rem; /* 140px */
    }
}

/* Easy Installation Section */
.section-divider {
    border: none;
    border-top: 2px solid var(--accent-orange);
    margin: 1rem auto 2rem;
    max-width: 200px;
}

.easy-installation-section {
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.easy-installation-section h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.easy-installation-section p {
    margin-bottom: 2rem;
}

/* Easy Installation Grid - Two Column Layout */
.easy-installation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.installation-text {
    text-align: left;
}

.installation-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.installation-text li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-medium);
    line-height: 1.6;
    font-size: 1.1rem;
}

.installation-text li::before {
    content: '•';
    color: var(--accent-orange);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

.installation-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.installation-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease;
    box-shadow: var(--box-shadow-md);
}

.installation-img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .easy-installation-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .installation-text li {
        font-size: 1rem;
    }
    
    .installation-images {
        gap: 1.5rem;
    }
    
    .easy-installation-section h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-divider {
        margin: 0.5rem auto 1.5rem;
    }
    
    .easy-installation-grid {
        gap: 1.5rem;
    }
    
    .installation-images {
        gap: 1rem;
    }
    
    .installation-text li {
        font-size: 0.95rem;
    }
}

.spec-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem; /* 12px 24px */
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-height: 2.75rem; /* 44px */
    margin-top: auto;
}

@media (max-width: 768px) {
    .spec-btn {
        padding: 0.625rem 1.25rem; /* 10px 20px */
        min-height: 2.5rem; /* 40px */
    }
}

.spec-btn:hover {
    background: linear-gradient(135deg, var(--accent-orange), var(--light-orange));
    transform: scale(1.05);
}

/* Contractors Section */
.contractors-section {
    background: linear-gradient(135deg, var(--gray-light), #e2e8f0);
}

.contractor-content {
    max-width: 800px;
    margin: 2rem auto 0;
}

.contractor-content > p {
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .contractor-content {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .contractor-content {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contractor-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contractor-content {
        gap: 2rem;
        margin-top: 1rem;
    }
}

.contractor-text {
    color: var(--gray-medium);
    font-size: 1.2rem;
}

.contractor-text h3 {
    color: var(--primary-blue);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.contractor-text ul {
    list-style: none;
    padding: 0;
}

.contractor-text li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.contractor-text li::before {
    content: '•';
    color: var(--accent-orange);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

.contractor-text p {
    margin-bottom: 1.5rem;
}

.contractor-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    border-top: 4px solid var(--accent-orange);
}

@media (max-width: 768px) {
    .contractor-form {
        padding: 2rem;
    }
}

.contractor-form h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* How Solar Attic Fans Work Educational Section */
.how-it-works-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--accent-orange);
}

.how-it-works-section h3 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Grid Cell 1: Left - Image and Contact */
.grid-cell-image {
    text-align: center;
}

/* Grid Cell 2: Right - Main Description */
.grid-cell-description {
    text-align: left;
}

/* Centered Content Below Grid */
.how-it-works-centered-content {
    max-width: 900px;
    margin: 0 auto;
}

.centered-info-block {
    margin-bottom: 2.5rem;
    text-align: left;
}

.centered-info-block h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.centered-info-block ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.centered-info-block li {
    padding: 0.5rem 0;
    color: var(--gray-medium);
    line-height: 1.6;
}

.centered-info-block li strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Shared styles for educational image */
.educational-img {
    max-width: 80%;
    width: 80%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    transition: transform 0.3s ease;
}

.enlarged-educational-img {
    max-width: 80%;
    width: 80%;
}

.educational-img:hover {
    transform: scale(1.02);
}

.click-to-enlarge-text {
    display: block;
    margin-top: 0.75rem;
    color: var(--primary-blue);
    font-size: 0.95rem;
    text-decoration: underline;
    text-align: center;
    transition: color 0.3s ease;
}

.click-to-enlarge-text:hover {
    color: var(--accent-orange);
}

/* Text styling for grid cells */
.grid-cell-description p,
.grid-cell-image p:not(.click-to-enlarge-text) {
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Maximize Efficiency Section */
.maximize-efficiency-section {
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.maximize-efficiency-section h4 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.maximize-efficiency-section p {
    color: var(--gray-medium);
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
}

/* Benefits of Solar Attic Fans Section */
.benefits-section {
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.benefits-section h4 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.benefits-section ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 0 55%;
    max-width: 450px;
    text-align: left;
    transform: translateX(-50%);
}

.benefits-section li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--gray-medium);
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: left;
}

.benefits-section li::before {
    content: '✓';
    color: var(--accent-orange);
    font-size: 1.3rem;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive: Stack to single column on tablets and mobile */
@media (max-width: 1024px) {
    .benefits-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .how-it-works-centered-content {
        max-width: 100%;
    }
    
    .centered-info-block {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .how-it-works-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }
    
    .how-it-works-section h3 {
        font-size: 1.75rem;
    }
    
    .how-it-works-content {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .how-it-works-section {
        margin-top: 2rem;
    }
    
    .how-it-works-section h3 {
        font-size: 1.5rem;
    }
    
    .how-it-works-text h4 {
        font-size: 1.1rem;
    }
}

/* Why Aeroflow Section */
.why-aeroflow-section {
    background-color: var(--white);
}

.why-aeroflow-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.why-aeroflow-content h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    text-align: center;
}

.why-aeroflow-content h3:first-child {
    margin-top: 0;
}

.why-aeroflow-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.why-aeroflow-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-medium);
    line-height: 1.6;
}

.why-aeroflow-content li::before {
    content: '•';
    color: var(--accent-orange);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

.why-aeroflow-content p {
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.why-aeroflow-content p a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.why-aeroflow-content p a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .why-aeroflow-content h3 {
        font-size: 1.3rem;
    }
    
    .why-aeroflow-content p {
        font-size: 1rem;
    }
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
    .form-row {
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .form-row {
        gap: 0.8rem;
        margin-bottom: 0.8rem;
    }
}

.form-group {
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 1rem;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-medium);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem; /* 12px */
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease;
    min-height: 3rem; /* 48px */
    line-height: 1.4;
}

@media (max-width: 900px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem; /* 10px */
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.5625rem; /* 9px */
        min-height: 2.75rem; /* 44px */
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.5rem; /* 8px */
        min-height: 2.5rem; /* 40px */
        font-size: 0.85rem;
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-orange), var(--light-orange));
    color: var(--white);
    border: none;
    padding: 0.9375rem 1.875rem; /* 15px 30px */
    font-size: var(--font-size-base);
    font-weight: bold;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 3rem; /* 48px */
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .submit-btn {
        padding: 0.75rem 1.5625rem; /* 12px 25px */
        min-height: 2.75rem; /* 44px */
    }
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    transform: translateY(-1px);
}

.submit-btn:disabled,
.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
    vertical-align: middle;
}

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

/* Homeowners Section */
.homeowners-section {
    background-color: var(--white);
}

.homeowner-content {
    max-width: 800px;
    margin: 0 auto;
}

.homeowner-intro {
    text-align: left;
    margin-bottom: 3rem;
    color: var(--gray-medium);
    font-size: 1.1rem;
}

.homeowner-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--accent-orange);
}

.homeowner-form h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.disclaimer {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray-medium);
    font-style: italic;
}

/* Training Section */
.training-section {
    background: linear-gradient(135deg, var(--gray-light), #e2e8f0);
}

.training-content {
    max-width: 800px;
    margin: 0 auto;
}

.training-intro {
    text-align: left;
    margin-bottom: 3rem;
    color: var(--gray-medium);
    font-size: 1.1rem;
}

.training-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--accent-orange);
}

.training-form h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Warranty Section */
.warranty-section {
    background-color: var(--white);
}

.warranty-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.warranty-content > p {
    font-size: 1.1rem;
    color: var(--gray-medium);
    margin-bottom: 2rem;
}

.warranty-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--accent-orange);
    text-align: left;
}

.warranty-form h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, var(--gray-light), #e2e8f0);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    color: var(--gray-medium);
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}


/* Contact Section */
.contact-section {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .contact-content {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .contact-content {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-content {
        gap: 2rem;
        margin-top: 1rem;
    }
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--gray-medium);
}

.contact-info a {
    color: var(--accent-orange);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--accent-orange);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
    }
}

.contact-form h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.2rem;
    }
}

/* Footer */
.main-footer {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.main-footer p {
    margin: 0;
    line-height: 1.6;
}

.trademark {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
}

.main-footer .us-manufacturing {
    margin-top: 0.5rem;
    opacity: 0.95;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.us-manufacturing p {
    font-size: 0.95rem;
    margin: 0.25rem 0 0 0;
}

.us-flag {
    height: 3em;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 1.5rem 0;
    }
    
    .main-footer .us-manufacturing {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 1.25rem 0;
    }
    
    .main-footer .us-manufacturing {
        font-size: 0.85rem;
    }
}

.modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    overflow: auto;
}

.modal.hidden {
    display: none !important;
}

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

.modal-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 37.5rem; /* 600px */
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    text-align: left;
    margin: auto;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
        width: 95%;
        max-width: none;
        max-height: calc(100vh - 2rem);
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        width: 98%;
        max-height: calc(100vh - 2rem);
    }
}



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

.close {
    color: var(--gray-medium);
    float: right;
    font-size: 1.75rem; /* 28px */
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 0.9375rem; /* 15px */
    right: 1.25rem; /* 20px */
}

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

/* Image Lightbox Modal */
#imageLightboxModal {
    background-color: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    width: auto;
    max-width: 95vw;
    max-height: 95vh;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: none;
}

.image-modal-content .close {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0.625rem; /* 10px */
    right: 0.625rem; /* 10px */
    font-size: 1.5rem; /* 24px */
}

.image-modal-content .close:hover {
    background: var(--accent-orange);
}

#lightboxImage {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .image-modal-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    #lightboxImage {
        max-height: 98vh;
    }
}

/* Product Specifications Modal Content */
.specs-content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-size: 1.3rem;
}

.specs-content h3:first-child {
    margin-top: 0;
}

.specs-content ul {
    margin-bottom: 1.5rem;
    padding: 0;
    list-style: none;
}

.specs-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--gray-medium);
    padding-left: 1.5rem;
    position: relative;
}

.specs-content li::before {
    content: '•';
    color: var(--accent-orange);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.specs-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

/* Alternating row colors for entire rows */
.specs-table tr:nth-child(odd) {
    background: #e3f2fd; /* Light blue */
}

.specs-table tr:nth-child(even) {
    background: #f5f5f5; /* Light gray */
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--primary-blue);
    width: 40%;
}

.specs-table td:last-child {
    color: var(--gray-medium);
}

.download-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.download-btn {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 160px;
}

.download-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Additional Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 43.75rem; /* 700px */
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .container {
        padding: 0 1.5625rem; /* 25px */
    }
}



/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .spec-btn:hover {
        transform: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .submit-btn:hover {
        transform: none;
    }
}