@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

/* CSS Variables for easy customization */
:root {
    --primary-blue: #343f71;
    --secondary-blue: #3684c0;
    --accent-orange: #f34c19;
    --accent-yellow: #f8c647;
    --accent-green: #A3E635;
    --text-dark: #343f71;
    --text-gray: #666;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --bg-gray: #eaeaea;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Helvetica', sans-serif;
    overflow-x: hidden;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Top Header with improved gradient */
.top-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    backdrop-filter: blur(10px);
    background-color: rgba(52, 63, 113, 0.95);
}

.top-header .cta-button {
    padding: 8px 24px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    margin-left: 15px;
    color: var(--bg-white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.top-header .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.top-header .cta-button:hover::before {
    left: 100%;
}

.top-header .cta-button.contractor {
    background-color: var(--accent-green);
    color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(163, 230, 53, 0.3);
}

.top-header .cta-button.contractor:hover {
    background-color: #8CCB30;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.4);
}

.top-header .cta-button.qualify {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(248, 198, 71, 0.3);
}

.top-header .cta-button.qualify:hover {
    background-color: #e0b03f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 198, 71, 0.4);
}

/* Main Header */
header {
    background-color: var(--bg-white);
    padding: 0 20px 0 36px;
    position: fixed;
    width: 100%;
    top: 48px;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-lg);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
    margin-left: -10px;
    margin-top: 10px;
    margin-bottom: 0px;
    position: relative;
    transition: transform 0.3s ease;
}

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

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    padding-left: 20px;
    align-items: center;
}

.nav-links li {
    margin-left: 40px;
    position: relative;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

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

.hamburger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger.active {
    transform: rotate(90deg);
}

.header-spacer {
    height: 158px;
}

/* Page Headers with animation */
.page-header {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 48px;
    color: var(--primary-blue);
    text-align: center;
    margin: 40px 0;
    padding: 0 20px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

/* Hero Sections */
.hero-placeholder {
    background-color: var(--bg-light);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(248, 198, 71, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    width: 50%;
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    animation: fadeInLeft 0.8s ease-out;
}

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

.hero-text h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    margin-top: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-text p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* CTA Buttons with enhanced styling */
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button.qualify {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(248, 198, 71, 0.3);
}

.cta-button.qualify:hover {
    background-color: #e0b03f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 198, 71, 0.4);
}

.hero-image {
    width: 50%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    animation: fadeInRight 0.8s ease-out;
}

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

/* Form Styling Improvements */
.rebates-form,
.contact-form {
    background-color: var(--bg-white);
    padding: 50px;
    border: none;
    border-radius: 15px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.rebates-form:hover,
.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.rebates-form input,
.rebates-form textarea,
.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    width: 100%;
    transition: var(--transition);
    background-color: #fafafa;
}

.rebates-form input:focus,
.rebates-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(54, 132, 192, 0.1);
}

.rebates-form input[type="submit"],
.contact-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--bg-white);
    border: none;
    cursor: pointer;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    margin-top: 20px;
}

.rebates-form input[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(54, 132, 192, 0.3);
}

.rebates-form input[type="submit"]:active,
.contact-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Radio button styling */
.radio-group {
    text-align: left;
    margin: 30px 0;
}

.radio-group h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.radio-group label:hover {
    background-color: #f0f0f0;
}

.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

/* Service boxes with enhanced hover effects */
.service-box {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    border: none;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow) 0%, var(--accent-orange) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-box:hover::before {
    transform: scaleX(1);
}

.service-box .service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.service-box:hover .service-image {
    transform: scale(1.05);
}

.service-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-box p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
}

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

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

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

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Footer improvements */
footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a3557 100%);
    color: var(--bg-white);
    padding: 60px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--bg-white);
}

.footer-content p {
    font-size: 18px;
    margin: 10px 0;
    opacity: 0.9;
}

.footer-content a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--accent-green);
}

.footer-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-yellow);
    transform: translateY(-2px);
}

/* Loading states */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--bg-white);
    animation: spin 1s ease-in-out infinite;
}

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

/* Success/Error Messages */
.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    animation: fadeInUp 0.5s ease-out;
}

.form-message.success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.form-message.error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* ========================================
   NEW CSS ENHANCEMENTS START HERE
   ======================================== */

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

/* Scale animations */
@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.8);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

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

/* Pulse animation for CTAs */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(248, 198, 71, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 6px 25px rgba(248, 198, 71, 0.4); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(248, 198, 71, 0.3); }
}

/* Utility Classes */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 10px !important; }
.mt-2 { margin-top: 20px !important; }
.mt-3 { margin-top: 30px !important; }
.mt-4 { margin-top: 40px !important; }
.mt-5 { margin-top: 50px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 10px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mb-3 { margin-bottom: 30px !important; }
.mb-4 { margin-bottom: 40px !important; }
.mb-5 { margin-bottom: 50px !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 10px !important; }
.pt-2 { padding-top: 20px !important; }
.pt-3 { padding-top: 30px !important; }
.pt-4 { padding-top: 40px !important; }
.pt-5 { padding-top: 50px !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 10px !important; }
.pb-2 { padding-bottom: 20px !important; }
.pb-3 { padding-bottom: 30px !important; }
.pb-4 { padding-bottom: 40px !important; }
.pb-5 { padding-bottom: 50px !important; }

/* Text utilities */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.text-primary { color: var(--primary-blue) !important; }
.text-secondary { color: var(--secondary-blue) !important; }
.text-accent { color: var(--accent-yellow) !important; }
.text-gray { color: var(--text-gray) !important; }
.text-white { color: white !important; }

.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-extrabold { font-weight: 800 !important; }

/* Display utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flexbox utilities */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.justify-start { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.align-start { align-items: flex-start !important; }
.align-center { align-items: center !important; }
.align-end { align-items: flex-end !important; }

/* Background utilities */
.bg-primary { background-color: var(--primary-blue) !important; }
.bg-secondary { background-color: var(--secondary-blue) !important; }
.bg-accent { background-color: var(--accent-yellow) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-white { background-color: var(--bg-white) !important; }
.bg-gray { background-color: var(--bg-gray) !important; }

/* Border radius utilities */
.rounded-0 { border-radius: 0 !important; }
.rounded-sm { border-radius: 5px !important; }
.rounded { border-radius: 10px !important; }
.rounded-lg { border-radius: 15px !important; }
.rounded-xl { border-radius: 20px !important; }
.rounded-full { border-radius: 50% !important; }

/* Shadow utilities */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important; }

/* Form Enhancements */
input.error,
textarea.error,
select.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    animation: fadeInUp 0.3s ease-out;
}

/* Form success animation */
.form-success {
    animation: scaleIn 0.5s ease-out;
}

/* Custom checkbox and radio styles */
.custom-checkbox,
.custom-radio {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input,
.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .checkmark,
.custom-radio .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.custom-radio .checkmark {
    border-radius: 50%;
}

.custom-checkbox input:checked ~ .checkmark,
.custom-radio input:checked ~ .checkmark {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.custom-checkbox .checkmark:after,
.custom-radio .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after,
.custom-radio input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid var(--primary-blue);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.custom-radio .checkmark:after {
    left: 9px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-blue);
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-heading {
    height: 32px;
    border-radius: 4px;
    margin-bottom: 20px;
    width: 60%;
}

.skeleton-button {
    height: 50px;
    border-radius: 25px;
    width: 200px;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.spinner:after {
    content: " ";
    display: block;
    width: 32px;
    height: 32px;
    margin: 4px;
    border-radius: 50%;
    border: 3px solid var(--accent-yellow);
    border-color: var(--accent-yellow) transparent var(--accent-yellow) transparent;
    animation: spinner 1.2s linear infinite;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button hover with ripple effect */
.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

/* Card hover lift effect */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image zoom on hover */
.image-zoom {
    overflow: hidden;
    border-radius: 15px;
}

.image-zoom img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible styles */
*:focus-visible {
    outline: 3px solid var(--secondary-blue);
    outline-offset: 2px;
}

/* Screen reader only text */
.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;
}

/* Responsive Design Improvements */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-text,
    .hero-image {
        width: 100%;
    }
    
    .hero-text {
        text-align: center;
        padding: 20px;
    }
    
    .hero-text .cta-button {
        margin: 30px auto 0;
    }
}

@media (max-width: 768px) {
    .top-header {
        justify-content: center;
        padding: 8px 10px;
    }
    
    .top-header .cta-button {
        padding: 6px 18px;
        font-size: 14px;
        margin-left: 10px;
    }
    
    .page-header {
        font-size: 36px;
        margin: 30px 0;
    }
    
    header {
        top: 40px;
        padding: 0 15px 0 15px;
    }
    
    .logo img {
        height: 80px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bg-white);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        border-radius: 0 0 15px 15px;
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 10px 20px;
        display: block;
    }
    
    .hamburger {
        display: block;
        font-size: 32px;
        padding: 10px;
    }
    
    .header-spacer {
        height: 130px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-text h2 {
        font-size: 24px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .rebates-form,
    .contact-form {
        padding: 30px 20px;
    }
    
    .service-box {
        margin-bottom: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links a {
        display: block;
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Hide/show utilities */
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
    
    /* Responsive text sizes */
    .responsive-text-sm { font-size: 14px !important; }
    .responsive-text-md { font-size: 16px !important; }
    .responsive-text-lg { font-size: 20px !important; }
    .responsive-text-xl { font-size: 28px !important; }
    .responsive-text-2xl { font-size: 36px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hide-tablet { display: none !important; }
    .show-tablet { display: block !important; }
}

@media (min-width: 1024px) {
    .hide-desktop { display: none !important; }
    .show-desktop { display: block !important; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cta-button {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 1px solid currentColor;
    }
}

/* Reduced motion support */
@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;
    }
}

/* Print styles */
@media print {
    .top-header,
    header,
    .hamburger,
    .cta-button,
    footer,
    .no-print,
    .newsletter-popup,
    .modal-overlay {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .hero-text,
    .content {
        width: 100%;
        padding: 0;
    }
    
    /* Show link URLs */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 12px;
    }
    
    /* Page breaks */
    .page-break-before {
        page-break-before: always;
    }
    
    .page-break-after {
        page-break-after: always;
    }
    
    .avoid-break {
        page-break-inside: avoid;
    }
}