/*
Theme Name: Speedy HVAC Repairs
Theme URI: https://speedyhvacrepairs.com
Author: Speedy HVAC
Author URI: https://speedyhvacrepairs.com
Description: Professional one-page HVAC contractor theme for Speedy HVAC Repairs. Features modern hamburger menu, blog functionality, SEO optimization, and conversion-focused layout.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: speedyhvac
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, theme-options, blog-ready
*/

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-steel-navy: #082740;
    --color-hvac-red: #D62828;
    --color-hvac-blue: #1D9BF0;
    --color-slate-gray: #555555;
    --color-white: #FFFFFF;
    --color-light-bg: #F8F9FA;
    --color-emergency-pink: #FFE5E5;
    --color-emergency-red: #E63946;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--color-slate-gray);
    background: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-hvac-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-hvac-red);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--color-steel-navy);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--color-light-bg);
}

/* ============================================
   MODERN HEADER WITH HAMBURGER MENU
   ============================================ */

.site-header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo Styling */
.site-branding {
    flex-shrink: 0;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
}

/* Header Actions (Emergency Badge + Phone) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
    margin-right: 20px;
}

/* Emergency Badge */
.emergency-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-emergency-pink);
    color: var(--color-emergency-red);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.emergency-badge:hover {
    background: var(--color-emergency-red);
    color: var(--color-white);
    border-color: var(--color-emergency-red);
}

.badge-icon {
    font-size: 1.1rem;
}

/* Phone Button */
.phone-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-steel-navy);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-button:hover {
    background: #0a3d5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 39, 64, 0.3);
}

.phone-icon {
    font-size: 1.1rem;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: var(--color-steel-navy);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover .hamburger-line {
    background: var(--color-hvac-red);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

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

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Mobile Navigation Overlay */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-navigation.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-steel-navy);
}

.close-menu {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-slate-gray);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    color: var(--color-hvac-red);
}

.mobile-menu-items {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.mobile-menu-items li {
    margin: 0;
}

.mobile-menu-items a {
    display: block;
    padding: 15px 30px;
    color: var(--color-steel-navy);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-menu-items a:hover {
    background: var(--color-light-bg);
    border-left-color: var(--color-hvac-red);
    color: var(--color-hvac-red);
}

/* Menu Overlay Background */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--color-steel-navy) 0%, #0a3d5f 100%);
    color: var(--color-white);
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-hvac-red);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #b71f1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.3);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-steel-navy);
}

.btn-secondary:hover {
    background: var(--color-light-bg);
    transform: translateY(-2px);
}

/* ============================================
   SERVICE AREAS SECTION
   ============================================ */

.service-areas-section {
    background: var(--color-light-bg);
    padding: 60px 0;
    text-align: center;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.area-tag {
    background: var(--color-white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    color: var(--color-steel-navy);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */

.why-choose-section {
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--color-hvac-red);
    margin-bottom: 15px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
    background: var(--color-light-bg);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-white);
    padding: 35px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--color-hvac-blue);
    margin-bottom: 20px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    background: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.certifications {
    margin-top: 30px;
}

.cert-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.cert-badge {
    background: var(--color-steel-navy);
    color: var(--color-white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    background: var(--color-light-bg);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stars {
    color: #FFC107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--color-slate-gray);
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-steel-navy);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    background: var(--color-steel-navy);
    color: var(--color-white);
}

.contact-section h2 {
    color: var(--color-white);
    text-align: center;
    margin-bottom: 50px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 15px;
}

.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
}

.contact-form h3 {
    color: var(--color-steel-navy);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-steel-navy);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
}

/* ============================================
   BLOG STYLES
   ============================================ */

.blog-section {
    background: var(--color-white);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--color-slate-gray);
    margin-bottom: 10px;
}

.post-card h3 {
    margin-bottom: 15px;
}

.post-card h3 a {
    color: var(--color-steel-navy);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--color-hvac-red);
}

.post-excerpt {
    color: var(--color-slate-gray);
    margin-bottom: 20px;
}

.read-more {
    color: var(--color-hvac-blue);
    font-weight: 600;
}

.read-more:hover {
    color: var(--color-hvac-red);
}

/* Single Post Styles */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.entry-meta {
    color: var(--color-slate-gray);
    font-size: 0.95rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-content img {
    border-radius: 10px;
    margin: 30px 0;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: #000;
    color: var(--color-white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: var(--color-hvac-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
}

/* ============================================
   STICKY CALL BUTTON (MOBILE)
   ============================================ */

.sticky-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-hvac-red);
    color: var(--color-white);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(214, 40, 40, 0.4);
    z-index: 999;
    display: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 5px 20px rgba(214, 40, 40, 0.4); }
    50% { box-shadow: 0 5px 30px rgba(214, 40, 40, 0.7); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section { padding: 50px 0; }
    .hero-section { padding: 60px 0; }
    .hero-content h1 { font-size: 2rem; }
    
    /* Mobile Header */
    .custom-logo { height: 40px; }
    
    .header-actions {
        gap: 8px;
        margin-right: 10px;
    }
    
    .emergency-badge {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .badge-text {
        display: none;
    }
    
    .phone-button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .phone-text {
        display: none;
    }
    
    .phone-button::after {
        content: "Call";
        margin-left: 5px;
    }
    
    .cta-buttons { flex-direction: column; }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .sticky-call-btn { display: block; }
    
    .benefits-grid,
    .services-grid,
    .testimonials-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .custom-logo { height: 35px; }
    
    .badge-icon,
    .phone-icon {
        font-size: 1rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
