/* ============================================================
   Aire-Flo Heating & Air Conditioning — estilos del sitio
   ============================================================ */

:root {
    --red:        #b81b23;   /* rojo de botones / acentos — 5.5:1 con blanco (WCAG AA) */
    --red-dark:   #9a161d;
    --navy:       #2d3142;   /* footer / títulos oscuros */
    --text:       #595959;   /* texto de párrafo — 7:1 sobre blanco (WCAG AA) */
    --heading:    #333a45;   /* títulos de sección */
    --gray-band:  #ececec;   /* franjas grises */
    --maxw:       1200px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* Accesibilidad: salto al contenido + foco visible (WCAG 2.4.1 / 2.4.7) */
.skip-link {
    position: absolute;
    left: 8px;
    top: -50px;
    z-index: 1000;
    background: var(--red);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 6px 6px;
    font-size: 14px;
    transition: top .15s ease;
}
.skip-link:focus { top: 0; }
#main-content:focus { outline: none; }

a:focus-visible,
button:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
}

h1, h2, h3, h4 {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--heading);
    margin: 0 0 .5em;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    font-family: 'Roboto', Arial, sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 26px;
    color: #fff;
    transition: background .2s ease;
    cursor: pointer;
}
.btn-red  { background: var(--red); }
.btn-red:hover  { background: var(--red-dark); }
.btn-gray { background: #6f7480; }
.btn-gray:hover { background: #5b606b; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img { width: 150px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .5px;
    color: #555;
    transition: color .15s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--red); }
.main-nav a.phone {
    color: var(--red);
    font-weight: 700;
    font-size: 20px;
}

/* Dropdown SERVICES */
.has-dropdown { position: relative; }
.has-dropdown .dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 230px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    border-top: 3px solid var(--red);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .18s ease;
    z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.has-dropdown .dropdown li a {
    display: block;
    padding: 9px 20px;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}
.has-dropdown .dropdown li a:hover { color: var(--red); background: #f7f7f7; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 22px;
    color: var(--navy);
    cursor: pointer;
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
        url('../img/Aire-flo-Building.webp') center / cover no-repeat;
    text-shadow: 0 1px 6px rgba(0,0,0,.55);
}
.hero-content { padding: 40px 20px; max-width: 760px; }
.hero .eyebrow {
    font-size: 19px;
    letter-spacing: 1px;
    margin-bottom: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}
.hero h1 {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 1.12;
    text-transform: uppercase;
    margin: 0 0 34px;
}
.hero h1 span { display: block; }

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
section { position: relative; }
.section { padding: 70px 0; }
.section--gray { background: var(--gray-band); }

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 45px;
}

/* ---------- Grid de servicios (home) ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.service-card { text-align: left; }
.service-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    margin-bottom: 18px;
}
.service-card p { font-size: 15px; margin: 0 0 20px; }
.service-card .btn { font-size: 13px; padding: 11px 26px; }

/* ---------- Dos columnas (estimates / emergency) ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: center;
}
.two-col h3 { font-size: 26px; font-weight: 500; color: var(--heading); margin-bottom: 16px; }
.two-col p  { font-size: 16px; margin-bottom: 26px; }

/* ---------- Carrusel de marcas ---------- */
.brands { text-align: center; }
.brand-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}
.brand-track {
    display: flex;
    overflow: hidden;
    width: 100%;
}
.brand-track .brand {
    flex: 0 0 33.333%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}
.brand-track .brand img { max-height: 60px; width: auto; }
.brand-arrow {
    background: none;
    border: 0;
    font-size: 20px;
    color: #767676;   /* 4.5:1 sobre blanco (control UI) */
    cursor: pointer;
    padding: 8px;
}
.brand-arrow:hover { color: var(--red); }
.brand-dots { margin-top: 14px; display: flex; gap: 8px; justify-content: center; }
.brand-dots button {
    width: 12px; height: 12px; border-radius: 50%; padding: 0;
    border: 0; background: #767676; cursor: pointer;
}
.brand-dots button.active { background: var(--red); }

/* Fila de marcas estática (products) */
.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
    flex-wrap: wrap;
    padding: 30px 0;
}
.brand-row img { max-height: 52px; width: auto; }

/* ---------- Serving area (home) ---------- */
.serving {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
}
.serving h3 { font-size: 26px; font-weight: 500; margin-bottom: 16px; }
.serving p  { font-size: 16px; }
.serving .link-red { color: var(--red); font-weight: 700; font-style: italic; font-size: 16px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

.divider { border-top: 1px solid #ddd; max-width: var(--maxw); margin: 0 auto; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--gray-band); padding: 50px 0; }
.cta-inner { text-align: center; }
.cta-band h2 { font-size: 32px; font-weight: 700; color: var(--heading); margin-bottom: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: #aeb2bd; padding: 45px 0 55px; }
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.footer-logo { width: 120px; margin-bottom: 22px; }
.footer-nav { font-size: 14px; line-height: 2.1; color: #b0b5c0; }
.footer-nav a { color: #b0b5c0; }
.footer-nav a:hover { color: #fff; }
.footer-right h4 { color: #d0d4dc; font-size: 15px; letter-spacing: 1px; margin-bottom: 18px; }
.footer-right p { font-size: 14px; color: #b0b5c0; margin: 0 0 12px; }

/* ============================================================
   PÁGINA: SERVICES
   ============================================================ */
.page-title {
    text-align: center;
    font-size: 46px;
    font-weight: 700;
    color: var(--navy);
    margin: 65px 0 55px;
}
.svc-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1040px;
    margin: 0 auto 70px;
}
.svc-card {
    background: #f4f4f5;
    border-radius: 6px;
    padding: 50px 45px;
    text-align: center;
}
.svc-card .icon { font-size: 46px; color: var(--red); margin-bottom: 22px; }
.svc-card h2 { font-family: 'Roboto', Arial, sans-serif; font-size: 26px; font-weight: 700; color: var(--heading); margin: 0 0 18px; }
.svc-card p  { font-size: 16px; margin-bottom: 30px; }
.svc-card .btn { background: var(--red); }

/* ============================================================
   PÁGINA: PRODUCTS & PARTS
   ============================================================ */
.parts-hero {
    background: url('../img/HVAC-parts-scaled.webp') center / cover no-repeat;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.parts-card {
    background: rgba(255,255,255,.92);
    text-align: center;
    padding: 40px 46px;
    max-width: 430px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.parts-card h1 { font-size: 38px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.parts-card p { font-size: 16px; margin-bottom: 20px; }
.parts-card .label { font-weight: 600; color: var(--heading); margin-bottom: 16px; }
.parts-card .btn { background: var(--red); font-size: 20px; padding: 15px 36px; letter-spacing: 2px; }

.need-part {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 950px;
    margin: 0 auto;
}
.need-part .icon { color: var(--red); font-size: 38px; text-align: center; margin-bottom: 14px; }
.need-part h3 { text-align: center; font-size: 26px; font-weight: 500; margin-bottom: 16px; }
.need-part p  { font-size: 16px; text-align: center; }
.need-part .phone-line { text-align: center; }
.need-part .phone-line a { color: var(--red); font-weight: 700; }

/* Reviews */
.reviews { background: linear-gradient(#fff, #f1f1f1); padding: 55px 0; }
.reviews .section-title { font-size: 34px; }
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px 70px;
    max-width: 980px;
    margin: 0 auto;
}
.review { text-align: center; font-size: 15px; }
.review p { margin: 0 0 10px; font-style: italic; color: #666; }
.review .name { color: var(--red); font-weight: 700; font-style: normal; letter-spacing: .5px; }
.review .role { font-size: 12px; color: #5f5f5f; text-transform: uppercase; letter-spacing: 1px; }
.review hr { border: 0; border-top: 1px solid #d8d8d8; width: 38px; margin: 10px auto; }

/* ============================================================
   PÁGINA: ABOUT
   ============================================================ */
.about-title { text-align: center; color: var(--red); font-size: 38px; font-weight: 700; margin: 60px 0 45px; }
.about-banner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    max-width: 1000px;
    margin: 0 auto 55px;
}
.about-banner img { width: 100%; height: 100%; object-fit: cover; }
.about-since {
    background: var(--red);
    color: #fff;
    padding: 38px 34px;
    text-align: right;
}
.about-since .small { font-style: italic; font-size: 19px; line-height: 1.3; }
.about-since .big { font-family: 'Roboto', sans-serif; font-weight: 900; font-style: italic; font-size: 64px; line-height: 1; margin: 8px 0 18px; }
.about-since p { font-size: 14px; color: #ffe2e2; margin: 0; }

.about-block {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}
.about-block.reverse { grid-template-columns: 150px 1fr; }
.about-block h3 { font-size: 26px; font-weight: 500; color: var(--heading); margin-bottom: 14px; }
.about-block p { font-size: 16px; }
.about-block .link-red { color: var(--red); font-weight: 700; }
.about-icon {
    width: 130px; height: 130px;
    background: var(--red);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 52px;
    margin: 0 auto;
}

/* ============================================================
   PÁGINA: CONTACT
   ============================================================ */
.contact-hero {
    background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url('../img/Aire-flo-Building.webp') center / cover no-repeat;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.contact-hero h1 { color: #fff; font-size: 56px; font-weight: 400; margin: 0; }
.contact-hero .call { font-size: 38px; font-weight: 700; }
.contact-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 60px auto;
}
.contact-cols h3 { font-size: 26px; font-weight: 500; color: var(--heading); margin-bottom: 20px; }
.hours-table { border-collapse: collapse; width: 100%; max-width: 360px; }
.hours-table td {
    border: 1px solid #ddd;
    padding: 11px 18px;
    font-size: 15px;
}
.hours-table td:first-child { font-style: italic; color: #666; }
.contact-van { margin-top: 30px; max-width: 300px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }

/* ============================================================
   PÁGINA: COMMERCIAL
   ============================================================ */
.comm-hero {
    background: url('../img/commercial-HVAC-units-1.webp') center / cover no-repeat;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 40px 0;
}
.comm-hero-card {
    background: rgba(255,255,255,.94);
    padding: 38px 42px;
    max-width: 420px;
    margin-left: calc((100vw - var(--maxw)) / 2 + 20px);
    box-shadow: 0 4px 22px rgba(0,0,0,.18);
}
.comm-hero-card h1 { font-size: 38px; font-weight: 700; color: var(--heading); line-height: 1.15; margin-bottom: 16px; }
.comm-hero-card p  { font-size: 16px; margin-bottom: 24px; }

.years-block {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 50px;
    align-items: center;
    max-width: 950px;
    margin: 0 auto;
}
.years-num { text-align: center; }
.years-num .num {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 96px;
    line-height: 1;
    color: var(--red);
}
.years-num .label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--heading);
    font-size: 14px;
    margin-top: 6px;
}
.years-block p { font-size: 16px; }

.serving-red { color: var(--red); font-size: 28px; font-weight: 700; }
.serving-phone { font-size: 26px; font-weight: 700; color: var(--heading); margin: 6px 0; }

.comm-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1050px;
    margin: 0 auto;
}
.comm-card {
    background: #fff;
    padding: 45px 32px;
    text-align: center;
}
.comm-card .icon { font-size: 44px; color: var(--red); margin-bottom: 20px; }
.comm-card h3 { font-size: 22px; font-weight: 500; color: var(--heading); margin-bottom: 18px; line-height: 1.25; }
.comm-card p  { font-size: 15px; }
.comm-quote-btn { font-size: 18px; padding: 16px 70px; }

/* ============================================================
   PÁGINA DE TEXTO (Accessibility / legal)
   ============================================================ */
.text-page { max-width: 820px; margin: 60px auto 70px; }
.text-page h1 { font-size: 40px; font-weight: 700; color: var(--navy); margin-bottom: 28px; }
.text-page h2 { font-size: 24px; font-weight: 700; color: var(--heading); margin: 36px 0 12px; }
.text-page p  { font-size: 16px; margin: 0 0 16px; }
.text-page ul { font-size: 16px; padding-left: 22px; margin: 0 0 16px; }
.text-page li { margin-bottom: 8px; }
.text-page a  { color: var(--red); font-weight: 600; }
.text-page a:hover { text-decoration: underline; }
.text-page a.btn { color: #fff; }
.text-page a.btn:hover { text-decoration: none; }
.text-page code { background: #f1f1f1; padding: 1px 6px; border-radius: 4px; font-size: 14px; }
.text-page-date { font-size: 14px; color: #6b6b6b; font-style: italic; margin-top: 30px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .svc-cards, .two-col, .serving, .need-part, .reviews-grid,
    .about-banner, .about-block, .about-block.reverse, .contact-cols,
    .years-block, .comm-cards {
        grid-template-columns: 1fr;
    }
    .about-block .about-icon { margin-bottom: 10px; }
    .footer-inner { grid-template-columns: 1fr; }
    .comm-hero-card { margin-left: 20px; margin-right: 20px; }
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 20px 20px;
        box-shadow: 0 6px 14px rgba(0,0,0,.1);
    }
    body.nav-open .main-nav { display: flex; }
    .main-nav a { padding: 10px 0; width: 100%; }
    .has-dropdown { width: 100%; }
    .has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: 0;
        padding: 0 0 6px 14px;
        min-width: 0;
    }
    .hero h1 { font-size: 36px; }
    .services-grid { grid-template-columns: 1fr; }
}
