/* Basic stylesheet for Elite HVAC Solutions - Basic Package Version */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-variation-settings: 'wght' 400;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: #1f2937;
}

h2 {
    font-size: 2.5rem;
    color: #1f2937;
}

h3 {
    font-size: 1.5rem;
    color: #1f2937;
}

p {
    margin-bottom: 1rem;
    color: #6b7280;
    line-height: 1.7;
}

/* Basic Colors */
:root {
    --primary-blue: #2563eb;
    --secondary-gray: #6b7280;
    --dark-gray: #1f2937;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --accent-blue: #3b82f6;
    --hover-blue: #1d4ed8;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
}

/* Basic Button System */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    background: var(--hover-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Header */
.header {
    position: fixed;
    top: 39px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--light-gray);
    padding: 4px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #111827;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.phone-link {
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.phone-link:hover {
    background: var(--hover-blue);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(59, 130, 246, 0.8));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 2rem;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.feature-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Trust Badges */
.trust-badges {
    background: var(--light-gray);
    padding: 64px 0;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.badge-item {
    background: var(--white);
    padding: 32px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-5px);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.badge-item span {
    font-weight: 600;
    color: var(--dark-gray);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    color: #111827;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.service-card,
.testimonial-card,
.step {
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover,
.testimonial-card:hover,
.step:hover {
    transform: translateY(-5px);
}

/* Services Section */
.services {
    padding: 64px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--secondary-gray);
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    color: var(--secondary-gray);
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

/* Process Section */
.process {
    padding: 64px 0;
    background: var(--light-gray);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.step {
    text-align: center;
    padding: 32px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

/* Testimonials */
.testimonials {
    padding: 64px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--light-gray);
    border-left: 4px solid var(--primary-blue);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--warning-orange);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--secondary-gray);
    display: block;
    margin-top: 5px;
}

/* About Section */
.about {
    padding: 64px 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-gray);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-feature .feature-icon {
    background: var(--success-green);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 5px;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Service Areas */
.service-areas {
    padding: 64px 0;
    background: var(--white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.area-item {
    background: var(--light-gray);
    padding: 24px;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    color: #111827;
    transition: all 0.3s ease;
}

.area-item:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* FAQ Section */
.faq {
    padding: 64px 0;
    background: var(--light-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 0 2rem 1.5rem;
    max-height: 200px;
}

/* Contact Section - Display Only */
.contact {
    padding: 64px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Basic Contact Form Display */
.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.contact-form h3 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.contact-form p {
    margin-bottom: 2rem;
    color: var(--secondary-gray);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    object-fit: cover;
    background: #f3f4f6;
    padding: 10px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.footer-description {
    margin-bottom: 2rem;
    color: #d1d5db;
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-badge {
    background: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-contact p {
    margin-bottom: 10px;
    color: #d1d5db;
}

.footer-contact a {
    color: var(--primary-blue);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 32px;
    text-align: center;
}

.footer-legal p {
    color: #9ca3af;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Forged Digital Design link styling */
.footer-legal p a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-legal p a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 15px 0;
}

.footer-legal-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-legal-links a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Privacy Policy and Terms of Service footer styling */
.privacy-footer,
.terms-footer {
    text-align: center;
    padding: 20px;
}

.privacy-footer p,
.terms-footer p {
    margin-bottom: 10px;
}

/* Phone/Email Links */
@media (min-width: 769px) {
    a[href^="tel:"],
    a[href^="mailto:"] {
        pointer-events: none;
        cursor: text;
        text-decoration: none;
    }
   
    .phone-link {
        pointer-events: none;
        cursor: text;
    }
}

@media (max-width: 768px) {
    a[href^="tel:"],
    a[href^="mailto:"] {
        pointer-events: auto;
        cursor: pointer;
    }
   
    .phone-link {
        pointer-events: auto;
        cursor: pointer;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
   .hero-title {
       font-size: 2.5rem;
   }
  
   .hero-subtitle {
       font-size: 1.1rem;
   }
  
   .hero {
       min-height: 60vh;
       padding: 160px 0 40px;
   }
  
   .badges-grid {
       grid-template-columns: repeat(2, 1fr);
       gap: 1rem;
   }
  
   .hero-buttons {
       flex-direction: column;
       align-items: center;
   }
  
   .hero-features {
       flex-direction: column;
       gap: 1.5rem;
   }
  
   .nav-menu {
       position: fixed;
       top: 100%;
       left: 0;
       right: 0;
       background: var(--white);
       flex-direction: column;
       padding: 2rem;
       box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
       transform: translateY(-100%);
       opacity: 0;
       visibility: hidden;
       transition: all 0.3s ease;
   }
  
   .nav-menu.active {
       transform: translateY(0);
       opacity: 1;
       visibility: visible;
   }
  
   .nav-toggle {
       display: flex;
   }
  
   .nav-toggle.active .bar:nth-child(1) {
       transform: rotate(45deg) translate(6px, 6px);
   }
  
   .nav-toggle.active .bar:nth-child(2) {
       opacity: 0;
   }
  
   .nav-toggle.active .bar:nth-child(3) {
       transform: rotate(-45deg) translate(6px, -6px);
   }
  
   .services-grid,
   .process-steps,
   .testimonials-grid {
       grid-template-columns: 1fr;
   }
  
   .about-content,
   .contact-content {
       grid-template-columns: 1fr;
       text-align: center;
   }
  
   .areas-grid {
       grid-template-columns: repeat(2, 1fr);
   }
  
   .footer-content {
       grid-template-columns: 1fr;
       text-align: center;
   }
  
   .footer-legal-links {
       flex-direction: column;
       gap: 1rem;
   }
   
   /* Privacy Policy and Terms of Service footer mobile fixes */
   .privacy-footer,
   .terms-footer {
       text-align: center !important;
       padding: 15px !important;
   }
   
   .privacy-footer p,
   .terms-footer p {
       white-space: nowrap;
       overflow-wrap: break-word;
       word-break: keep-all;
       text-align: center !important;
       margin: 0 auto !important;
       padding: 5px 0 !important;
   }
   
   .privacy-footer a,
   .terms-footer a {
       white-space: nowrap;
   }
}

/* Additional mobile fix for very small screens */
@media (max-width: 480px) {
   .privacy-footer,
   .terms-footer {
       text-align: center !important;
       padding: 10px !important;
       width: 100% !important;
   }
   
   .privacy-footer p,
   .terms-footer p {
       text-align: center !important;
       margin: 0 auto !important;
       padding: 5px 0 !important;
       width: 100% !important;
   }
  
   h1 {
       font-size: 2.5rem;
   }
  
   h2 {
       font-size: 2rem;
   }
  
   .container {
       padding: 0 15px;
   }
  
   .nav-container {
       padding: 2.5rem 15px 1rem;
   }
   
   .contact-item strong {
       display: none;
   }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
   
    .areas-grid,
    .badges-grid {
        grid-template-columns: 1fr;
    }
   
    .service-card,
    .step,
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Image Performance Optimization */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

.logo, .footer-logo-img {
    loading: eager; /* Load logo immediately */
}

/* Optimize background images */
.hero-background {
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* Accessibility Improvements */
.nav-toggle:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.faq-question:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Variable Font Optimization */
h1, h2, h3, h4, h5, h6 {
    font-variation-settings: 'wght' 700;
}

.btn {
    font-variation-settings: 'wght' 600;
}

.nav-link {
    font-variation-settings: 'wght' 500;
}

/* Micro-interactions */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.service-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.hero-buttons .btn {
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.05);
}

/* Emergency banner mobile line break */
@media (max-width: 768px) {
    .mobile-break {
        display: none;
    }
    
    .service-text {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-break {
        display: inline;
    }
    
    .service-text {
        display: inline;
    }
    
    /* Contact Form Styles */
.contact-form-fields {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-note {
    font-size: 0.875rem;
    color: var(--secondary-gray);
    margin-top: 1rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}