/* ==========================================================================
   Avis Plumbing & Air Conditioning — 2026 site stylesheet
   ========================================================================== */
:root{
  --red:#b30000;
  --red-dark:#8a0000;
  --red-light:#fdecec;
  --navy:#0f1b2d;
  --navy-2:#182a45;
  --ink:#1c2230;
  --muted:#5b6473;
  --line:#e3e7ee;
  --bg:#ffffff;
  --bg-soft:#f5f7fa;
  --gold:#f2b705;
  --radius:14px;
  --shadow:0 10px 30px rgba(15,27,45,.08);
  --shadow-lg:0 24px 60px rgba(15,27,45,.16);
  --max:1180px;
  --font:"Inter","Segoe UI",system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:17px;line-height:1.6;color:var(--ink);background:var(--bg)}
img{max-width:100%;height:auto;display:block}
a{color:var(--red);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{line-height:1.15;margin:0 0 .5em;font-weight:800;letter-spacing:-.01em}
h1{font-size:clamp(2.1rem,4.5vw,3.4rem)}
h2{font-size:clamp(1.7rem,3.2vw,2.4rem)}
h3{font-size:1.25rem}
p{margin:0 0 1em}
ul{padding-left:1.2em}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.eyebrow{display:inline-block;font-size:.8rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--red);margin-bottom:.6rem}
.lead{font-size:1.15rem;color:var(--muted)}
.center{text-align:center}
.muted{color:var(--muted)}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.4rem;border-radius:999px;font-weight:700;border:2px solid transparent;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s;white-space:nowrap;font-size:1rem;line-height:1}
.btn:hover{text-decoration:none;transform:translateY(-1px)}
.btn-red{background:var(--red);color:#fff;box-shadow:0 8px 20px rgba(179,0,0,.28)}
.btn-red:hover{background:var(--red-dark)}
.btn-white{background:#fff;color:var(--navy);border-color:#fff}
.btn-outline{border-color:var(--navy);color:var(--navy);background:transparent}
.btn-outline:hover{background:var(--navy);color:#fff}
.btn-outline-white{border-color:rgba(255,255,255,.55);color:#fff;background:transparent}
.btn-outline-white:hover{background:#fff;color:var(--navy)}
.btn svg{width:18px;height:18px;flex:none}
.btn-lg{padding:1.05rem 1.7rem;font-size:1.08rem}

/* Top bar */
.topbar{background:var(--navy);color:#cfd6e2;font-size:.86rem}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:38px}
.topbar a{color:#fff;font-weight:700}
.topbar .pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:#2ecc71;margin-right:.45rem;box-shadow:0 0 0 0 rgba(46,204,113,.6);animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(46,204,113,.6)}70%{box-shadow:0 0 0 8px rgba(46,204,113,0)}100%{box-shadow:0 0 0 0 rgba(46,204,113,0)}}
.topbar .links{display:flex;gap:1.2rem}
@media (max-width:760px){.topbar .links{display:none}}

/* Header */
.header{position:sticky;top:0;z-index:50;background:var(--red);box-shadow:0 2px 14px rgba(0,0,0,.18)}
.header .wrap{display:flex;align-items:center;gap:1rem;min-height:78px;position:relative}
.brand{flex:none;display:block}
.brand img{height:46px;width:auto;max-width:none}
.nav{display:flex;gap:.2rem;margin-left:auto;align-items:center}
.nav a{color:#fff;font-weight:700;padding:.5rem .5rem;border-radius:8px;font-size:.88rem;white-space:nowrap}
.nav a:hover,.nav a[aria-current="page"]{background:rgba(0,0,0,.22);text-decoration:none}
.nav .call{background:#fff;color:var(--red);margin-left:.4rem;padding:.65rem 1rem;display:inline-flex;align-items:center;gap:.45rem}
.nav .call:hover{background:#ffe9e9}
.nav .call svg{width:16px;height:16px}
.burger{display:none;margin-left:auto;background:none;border:0;color:#fff;cursor:pointer;padding:.4rem}
.burger svg{width:30px;height:30px}
@media (max-width:1279px){
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--red-dark);flex-direction:column;align-items:stretch;padding:.6rem 1rem 1.2rem;gap:.15rem;border-top:1px solid rgba(255,255,255,.15)}
  .nav.open{display:flex}
  .nav a{padding:.85rem .8rem;font-size:1.05rem}
  .nav .call{margin:.6rem 0 0;justify-content:center}
  .burger{display:block}
}

/* Hero */
.hero{position:relative;color:#fff;background:linear-gradient(120deg,var(--navy) 0%,var(--navy-2) 55%,#243b63 100%);overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background:radial-gradient(900px 500px at 85% 20%,rgba(179,0,0,.35),transparent 60%);pointer-events:none}
.hero .wrap{position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:3rem;align-items:center;padding-top:4.5rem;padding-bottom:4.5rem}
.hero h1{margin-bottom:1rem}
.hero .lead{color:#c9d3e4;max-width:56ch}
.hero .actions{display:flex;flex-wrap:wrap;gap:.8rem;margin:1.6rem 0 1.4rem}
.hero .chips{display:flex;flex-wrap:wrap;gap:.6rem;font-size:.85rem;color:#dfe6f2}
.hero .chips span{display:inline-flex;align-items:center;gap:.4rem;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);padding:.35rem .7rem;border-radius:999px}
.hero .chips svg{width:14px;height:14px;color:var(--gold)}
.hero-media{position:relative}
.hero-media img{border-radius:20px;box-shadow:var(--shadow-lg);width:100%;object-fit:cover;aspect-ratio:4/3}
.hero-card{position:absolute;left:-18px;bottom:-18px;background:#fff;color:var(--ink);border-radius:14px;padding:.9rem 1.1rem;box-shadow:var(--shadow-lg);display:flex;align-items:center;gap:.8rem;max-width:280px}
.hero-card .stars{color:var(--gold);letter-spacing:.05em;font-size:1.05rem}
.hero-card b{display:block;font-size:1.05rem}
.hero-card small{color:var(--muted)}
.hero.compact .wrap{grid-template-columns:1fr;padding-top:3.4rem;padding-bottom:3.4rem}
.hero.compact .lead{max-width:70ch}
@media (max-width:900px){
  .hero .wrap{grid-template-columns:1fr;padding-top:3rem;padding-bottom:3rem}
  .hero-media{margin:0 10px 18px 18px}
  .hero-media img{aspect-ratio:4/3}
}

/* Emergency strip */
.strip{background:var(--red);color:#fff}
.strip .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1rem 2.5rem;padding:1rem 20px;font-weight:700}
.strip a{color:#fff;font-size:1.15rem;display:inline-flex;align-items:center;gap:.45rem}
.strip a svg{width:18px;height:18px}
.strip .label{opacity:.9;font-weight:600}

/* Sections */
.section{padding:4.5rem 0}
.section.soft{background:var(--bg-soft)}
.section.navy{background:var(--navy);color:#fff}
.section.navy .eyebrow{color:#ff8a8a}
.section.navy .muted{color:#b7c2d4}
.section-head{max-width:720px;margin-bottom:2.4rem}
.section-head.center{margin-left:auto;margin-right:auto}

/* Trust bar */
.trust{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem;padding:2.2rem 0}
.trust div{display:flex;align-items:center;gap:.9rem}
.trust .ico{flex:none;width:48px;height:48px;border-radius:12px;background:var(--red-light);color:var(--red);display:grid;place-items:center}
.trust .ico svg{width:24px;height:24px}
.trust b{display:block;font-size:1.05rem;line-height:1.2}
.trust small{color:var(--muted)}
@media (max-width:900px){.trust{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.trust{grid-template-columns:1fr}}

/* Cards */
.grid{display:grid;gap:1.4rem}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
@media (max-width:980px){.grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.grid-3,.grid-2,.grid-4{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.card img{aspect-ratio:2/1;object-fit:cover;width:100%}
.card .body{padding:1.4rem 1.5rem 1.6rem;display:flex;flex-direction:column;flex:1}
.card h3{margin-bottom:.4rem}
.card p{color:var(--muted);margin-bottom:1rem}
.card ul{color:var(--muted);margin:0 0 1.2rem;padding-left:1.1em;font-size:.95rem}
.card .more{margin-top:auto;font-weight:700;display:inline-flex;align-items:center;gap:.35rem}
.card .more svg{width:16px;height:16px;transition:transform .2s}
.card:hover .more svg{transform:translateX(3px)}

/* Icon tiles */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
@media (max-width:900px){.tiles{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.tiles{grid-template-columns:1fr}}
.tile{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow)}
.tile .ico{width:44px;height:44px;border-radius:10px;background:var(--red-light);color:var(--red);display:grid;place-items:center;margin-bottom:1rem}
.tile .ico svg{width:22px;height:22px}
.tile h3{font-size:1.1rem;margin-bottom:.35rem}
.tile p{color:var(--muted);font-size:.97rem;margin:0}
.navy .tile{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12);box-shadow:none}
.navy .tile p{color:#b7c2d4}
.navy .tile .ico{background:rgba(255,255,255,.1);color:#ff8a8a}

/* Split */
.split{display:grid;grid-template-columns:1fr 1fr;gap:3.5rem;align-items:center}
@media (max-width:900px){.split{grid-template-columns:1fr;gap:2rem}}
.split img{border-radius:18px;box-shadow:var(--shadow-lg);width:100%;object-fit:cover}
.checks{list-style:none;padding:0;margin:1.2rem 0 1.6rem;display:grid;gap:.55rem}
.checks li{display:flex;gap:.65rem;align-items:flex-start}
.checks svg{flex:none;width:20px;height:20px;color:var(--red);margin-top:.2rem}
.navy .checks svg{color:#ff8a8a}

/* Stats */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:2rem}
.stats div{text-align:center;padding:1.4rem 1rem;border-radius:var(--radius);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}
.stats b{display:block;font-size:2.2rem;line-height:1;color:#fff}
.stats small{color:#b7c2d4;font-weight:600}
@media (max-width:700px){.stats{grid-template-columns:repeat(2,1fr)}}

/* Reviews */
.reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
@media (max-width:900px){.reviews{grid-template-columns:1fr}}
.review{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.6rem;box-shadow:var(--shadow)}
.review .stars{color:var(--gold);letter-spacing:.08em;margin-bottom:.6rem}
.review p{font-style:italic;color:var(--ink)}
.review footer{font-size:.9rem;color:var(--muted);font-weight:600}
.rating-badge{display:inline-flex;align-items:center;gap:.9rem;background:#fff;border:1px solid var(--line);border-radius:999px;padding:.6rem 1.2rem .6rem .8rem;box-shadow:var(--shadow);margin-bottom:1.6rem}
.rating-badge .num{font-size:1.9rem;font-weight:900;color:var(--navy)}
.rating-badge .stars{color:var(--gold);font-size:1.05rem}
.rating-badge small{display:block;color:var(--muted)}

/* Promotions */
.promo{position:relative;border:2px dashed var(--red);border-radius:var(--radius);padding:1.6rem 1.6rem 1.4rem;background:#fff}
.promo .amt{font-size:2.3rem;font-weight:900;color:var(--red);line-height:1}
.promo h3{margin:.4rem 0 .4rem}
.promo p{color:var(--muted);font-size:.95rem;margin-bottom:1rem}
.promo small{display:block;color:var(--muted);font-size:.78rem}
.promo .tag{position:absolute;top:-12px;right:16px;background:var(--red);color:#fff;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:.25rem .65rem;border-radius:999px}

/* Service area */
.area{display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center}
@media (max-width:900px){.area{grid-template-columns:1fr}}
.cities{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem}
.cities span{background:#fff;border:1px solid var(--line);padding:.45rem .9rem;border-radius:999px;font-weight:600;font-size:.92rem}
.phones{display:grid;gap:1rem;margin-top:1.4rem}
.phone-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem 1.4rem;box-shadow:var(--shadow);display:flex;align-items:center;gap:1rem}
.phone-card .ico{flex:none;width:46px;height:46px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center}
.phone-card .ico svg{width:22px;height:22px}
.phone-card small{display:block;color:var(--muted);font-weight:600}
.phone-card a{font-size:1.35rem;font-weight:900;color:var(--navy)}

/* CTA band */
.cta{background:linear-gradient(120deg,var(--red) 0%,#d81e1e 100%);color:#fff}
.cta .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.5rem;padding-top:3rem;padding-bottom:3rem}
.cta h2{margin:0 0 .3rem}
.cta p{margin:0;opacity:.92}
.cta .btns{display:flex;flex-wrap:wrap;gap:.8rem}

/* Detail page blocks */
.service-block{scroll-margin-top:110px;padding:2.4rem 0;border-top:1px solid var(--line)}
.service-block:first-of-type{border-top:0}
.service-block .split{gap:2.5rem}
.service-block img{aspect-ratio:2/1}
.subnav{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.4rem}
.subnav a{background:#fff;border:1px solid var(--line);padding:.45rem .9rem;border-radius:999px;font-weight:600;font-size:.9rem;color:var(--navy)}
.subnav a:hover{border-color:var(--red);color:var(--red);text-decoration:none}

/* FAQ */
.faq details{border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 1.2rem;margin-bottom:.7rem}
.faq summary{cursor:pointer;font-weight:700;padding:1rem 0;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.4rem;color:var(--red);font-weight:400}
.faq details[open] summary::after{content:"\2013"}
.faq details p{color:var(--muted);padding-bottom:1rem;margin:0}

/* Forms */
.form{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:2rem;box-shadow:var(--shadow)}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
@media (max-width:600px){.form .row{grid-template-columns:1fr}}
.form label{display:block;font-weight:700;font-size:.9rem;margin:0 0 .35rem}
.form input,.form select,.form textarea{width:100%;font:inherit;padding:.8rem .9rem;border:1.5px solid #cfd6e0;border-radius:10px;background:#fff;margin-bottom:1rem;color:var(--ink)}
.form input:focus,.form select:focus,.form textarea:focus{outline:none;border-color:var(--red);box-shadow:0 0 0 3px rgba(179,0,0,.12)}
.form textarea{min-height:130px;resize:vertical}
.form .note{font-size:.85rem;color:var(--muted)}
.form .ok{display:none;background:#e8f8ee;border:1px solid #9fdcb5;color:#14532d;padding:1rem;border-radius:10px;margin-top:1rem}
.form .err{display:none;background:#fdecec;border:1px solid #f3b4b4;color:#7a1010;padding:1rem;border-radius:10px;margin-top:1rem}
.form button[disabled]{opacity:.7;cursor:wait}

/* Info list */
.info{display:grid;gap:1.2rem}
.info > div{display:flex;gap:.9rem}
.info .ico{flex:none;width:42px;height:42px;border-radius:10px;background:var(--red-light);color:var(--red);display:grid;place-items:center}
.info .ico svg{width:20px;height:20px}
.info b{display:block}
.info a{font-weight:700;color:var(--navy)}
.map{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line);margin-top:1.6rem}
.map iframe{display:block;width:100%;height:300px;border:0}

/* Articles */
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
@media (max-width:900px){.posts{grid-template-columns:1fr}}
.post{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;box-shadow:var(--shadow)}
.post small{color:var(--muted);font-weight:600}
.post h3{font-size:1.05rem;margin:.4rem 0}
.post p{color:var(--muted);font-size:.95rem;margin:0}

/* Footer */
.footer{background:var(--navy);color:#b7c2d4;padding:3.5rem 0 1.5rem;font-size:.95rem}
.footer .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2.5rem;margin-bottom:2.5rem}
@media (max-width:900px){.footer .cols{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.footer .cols{grid-template-columns:1fr}}
.footer h4{color:#fff;font-size:.9rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:1rem}
.footer a{color:#dfe6f2}
.footer ul{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
.footer .brand img{height:46px;width:auto;max-width:none;margin-bottom:1rem}
.footer .social{display:flex;gap:.6rem;margin-top:1rem}
.footer .social a{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.08);display:grid;place-items:center}
.footer .social a:hover{background:var(--red)}
.footer .social svg{width:18px;height:18px;fill:#fff}
.footer .bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:1.4rem;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.8rem;font-size:.85rem}
.footer .lic{font-weight:700;color:#fff}

/* Mobile sticky call bar */
.mobile-call{display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--navy);padding:.6rem .8rem;padding-bottom:calc(.6rem + env(safe-area-inset-bottom));gap:.6rem}
.mobile-call a{flex:1;justify-content:center;padding:.85rem .6rem;font-size:.95rem}
@media (max-width:760px){.mobile-call{display:flex}body{padding-bottom:74px}}

/* Reveal */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}.card:hover{transform:none}}

/* Breadcrumbs */
.crumbs{background:var(--navy);color:#9fb0c8;font-size:.85rem;border-bottom:1px solid rgba(255,255,255,.08)}
.crumbs .wrap{padding-top:.55rem;padding-bottom:.55rem;display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}
.crumbs a{color:#dfe6f2;font-weight:600}
.crumbs .sep{opacity:.5}
.crumbs span[aria-current]{color:#fff;font-weight:600}
.cities a{background:#fff;border:1px solid var(--line);padding:.45rem .9rem;border-radius:999px;font-weight:600;font-size:.92rem;color:var(--navy)}
.cities a:hover{border-color:var(--red);color:var(--red);text-decoration:none}
.footer h4 a{color:#fff}
.footer .bottom a{color:#dfe6f2}
.city-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
@media (max-width:900px){.city-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.city-grid{grid-template-columns:1fr}}
.city-card{display:block;color:inherit;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem 1.5rem;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.city-card:hover{text-decoration:none;transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.city-card h3{margin-bottom:.3rem}
.city-card p{color:var(--muted);font-size:.95rem;margin:0 0 .6rem}
.city-card small{color:var(--red);font-weight:700}
.prose{max-width:760px}
.prose h2{margin-top:2rem}
