/* 
   Carolina Climate Control - Bold Trade Service Design
   Aesthetic: Industrial, Trustworthy, Action-Oriented
*/

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --blue: #0ea5e9;
    --blue-dark: #0284c7;
    --white: #ffffff;
    --gray: #f1f5f9;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 0.75rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Inter', -apple-system, sans-serif; 
    color: var(--text); 
    background: var(--white);
    line-height: 1.7;
}

h1, h2, h3 { 
    font-family: 'Russo One', sans-serif;
    color: var(--navy);
    line-height: 1.1;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; font-weight: 700; }

h1 span, h2 span { color: var(--orange); }

p { margin-bottom: 1rem; color: var(--text-light); }
a { color: var(--navy); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--orange); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   EMERGENCY BAR
   ============================================ */
.emergency-bar {
    background: var(--orange);
    color: var(--white);
    padding: 0.75rem 0;
}

.emergency-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emergency-text { font-weight: 600; }

.emergency-phone {
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: var(--white);
    position: sticky;
    top: 60px;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 3px solid var(--navy);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Russo One', sans-serif;
    font-size: 1.3rem;
    color: var(--navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.logo-icon { font-size: 1.5rem; }
.logo span { color: var(--orange); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--navy);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--navy);
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 115px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 999;
    border-bottom: 3px solid var(--orange);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    display: block;
    padding: 1rem;
    color: var(--navy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--orange);
}

.mobile-nav .mobile-phone {
    color: var(--orange);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--navy);
    color: var(--white);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-orange {
    background: var(--orange);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.btn-orange:hover {
    background: var(--orange-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg { padding: 1.1rem 2.25rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-outline-light {
    background: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.5);
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-icon { font-size: 1.25rem; }

/* ============================================
   HERO
   ============================================ */
.hero {
    background: var(--navy);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1585771724684-38269d6639fd?auto=format&fit=crop&q=80&w=1200') center/cover;
    opacity: 0.2;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--orange), var(--orange) 50px, var(--navy) 50px, var(--navy) 100px);
}

.hero-content {
    position: relative;
    max-width: 700px;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: var(--orange);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.trust-icon {
    width: 24px;
    height: 24px;
    background: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 5rem 0; }
.bg-soft { background: var(--gray); }
.bg-dark { background: var(--navy); color: var(--white); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    border-color: var(--orange);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: block;
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-link {
    color: var(--orange);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.why-content h2 { color: var(--white); margin-bottom: 1rem; }
.why-content p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

.features-list { }

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.feature-item:last-child { border-bottom: none; }

.feature-num {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    color: var(--orange);
    min-width: 50px;
}

.feature-item h4 { color: var(--white); margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.9rem; margin-bottom: 0; color: rgba(255,255,255,0.7); }

.why-image {
    position: relative;
}

.why-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--orange);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
}

.exp-number {
    display: block;
    font-family: 'Russo One', sans-serif;
    font-size: 2.5rem;
}

.exp-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: var(--orange);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item { color: var(--white); }

.stat-number {
    display: block;
    font-family: 'Russo One', sans-serif;
    font-size: 2.5rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.testimonial-stars {
    color: var(--orange);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1rem;
    color: var(--text);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author strong {
    display: block;
    color: var(--navy);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   BRANDS
   ============================================ */
.brands-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.brand-item {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    color: var(--navy);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.brand-item:hover { opacity: 1; }

/* ============================================
   CTA
   ============================================ */
.cta-section {
    background: var(--navy);
    padding: 5rem 0;
    text-align: center;
}

.cta-content h2 { color: var(--white); margin-bottom: 1rem; }
.cta-content p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 2rem; }

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SERVICE AREA
   ============================================ */
.area-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.area-list span {
    background: var(--gray);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.area-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.page-hero {
    background: var(--navy);
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.contact-section { padding-top: 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 3rem;
    margin-top: -3rem;
}

.contact-form-wrap {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.form-header { margin-bottom: 2rem; }
.form-header h2 { margin-bottom: 0.5rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1rem;
}

.sidebar-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.sidebar-card h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.sidebar-card.highlight {
    background: var(--orange);
    color: var(--white);
    border: none;
}

.sidebar-card.highlight h4 { color: var(--white); }
.sidebar-card.highlight p { color: rgba(255,255,255,0.9); }

.sidebar-card .phone-cta {
    display: block;
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-flex;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.license {
    color: var(--orange);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Russo One', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--orange); }

.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-phone {
    font-family: 'Russo One', sans-serif;
    font-size: 1.25rem;
    color: var(--orange) !important;
}

.footer-hours { font-size: 0.85rem !important; }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    
    .why-image { order: -1; }
    .experience-badge { position: static; margin-top: 1rem; display: inline-block; }
}

@media (max-width: 768px) {
    header { top: 50px; padding: 0.75rem 0; }
    
    /* SHOW emergency bar on mobile - it's important */
    .emergency-bar { 
        display: block;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        z-index: 99;
        background: var(--orange);
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Prevent truncation on small screens by prioritizing the phone CTA */
    .emergency-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .emergency-text { display: none; }

    .emergency-bar a {
        color: var(--white);
        font-weight: 700;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    header { top: 95px; }
    
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    header .btn-primary { display: none; }
    
    .mobile-nav { top: 160px !important; }
    
    /* UNIQUE HERO: EMERGENCY URGENCY STYLE */
    /* Big phone button, trust badges prominent, skewed bottom */
    .hero { 
        padding: 1.5rem 0 3rem;
        margin-top: 45px;
    }
    
    .hero::after {
        height: 40px;
    }
    
    .hero-content { text-align: center; }
    
    .hero-badge {
        font-size: 0.6rem;
        padding: 0.4rem 0.75rem;
        background: rgba(255,255,255,0.15);
        border: 1px solid var(--orange);
        color: var(--orange);
        margin-bottom: 1rem;
    }
    
    .hero h1 { 
        font-size: 1.65rem; 
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .hero h1 span { color: var(--orange); }
    
    .hero p { 
        font-size: 0.9rem; 
        margin-bottom: 1.25rem;
        color: rgba(255,255,255,0.8);
    }
    
    .hero-ctas { 
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* BIG PHONE BUTTON */
    .hero-ctas .btn-orange { 
        width: 100%; 
        justify-content: center;
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 8px;
        animation: pulse-glow 2s ease-in-out infinite;
    }
    
    @keyframes pulse-glow {
        0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0.4); }
        50% { box-shadow: 0 0 0 10px rgba(255,107,0,0); }
    }
    
    .hero-ctas .btn-outline-light { 
        width: 100%; 
        justify-content: center;
        border-color: rgba(255,255,255,0.4);
    }
    
    /* Trust badges in row */
    .hero-trust { 
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .trust-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        background: rgba(255,255,255,0.1);
        padding: 0.5rem 1rem;
        border-radius: 4px;
    }
    
    .trust-badge .trust-icon {
        color: var(--orange);
    }
    
    .services-grid,
    .testimonials-grid,
    .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .service-card { padding: 1.5rem; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .footer { padding: 2.5rem 0 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    
    .section { padding: 2.5rem 0; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.5rem; }
    
    .page-hero { padding: 2rem 0; }
    .page-hero h1 { font-size: 1.75rem; }
    
    .contact-form-wrap { padding: 1.5rem; margin-top: 0; }
    .contact-grid { margin-top: 0; gap: 1.5rem; }
    
    .cta-full { padding: 3rem 0; }
    .cta-full h2 { font-size: 1.5rem; }
    .cta-buttons { flex-direction: column; gap: 0.75rem; }
    .cta-buttons a { width: 100%; justify-content: center; }
}

/* Extra small screens */
@media (max-width: 375px) {
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 1.5rem; }
}
