/* ===== Master Service HVAC — Tulsa ===== */
@font-face{
  font-family:"Archivo";
  src:url("./fonts/archivo-latin.woff2") format("woff2");
  font-weight:500 800;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"Source Sans 3";
  src:url("./fonts/sourcesans3-latin.woff2") format("woff2");
  font-weight:400 600;font-style:normal;font-display:swap;
}

:root{
  /* palette — steel-blue comfort + warm clay heat on cool paper */
  --ink:        #16242f;   /* deep slate text */
  --steel:      #1f3a52;   /* primary brand blue (cooling) */
  --steel-deep: #142935;   /* darker section */
  --steel-soft: #e7eef3;   /* tinted panel */
  --clay:       #c5552d;   /* warm accent (heating) — NOT terracotta cream pairing */
  --clay-deep:  #a8431f;
  --paper:      #f3f4f1;   /* cool warm-grey paper, not cream */
  --paper-2:    #fbfcfb;
  --line:       #d8dcd6;
  --muted:      #5c6b73;
  --gold:       #d9962a;   /* review stars */
  --white:      #ffffff;

  --r:   14px;
  --r-sm:10px;
  --shadow:   0 1px 2px rgba(20,41,53,.06), 0 10px 30px -14px rgba(20,41,53,.28);
  --shadow-lg:0 24px 60px -28px rgba(20,41,53,.45);

  --wrap: 1120px;
  --pad:  clamp(1.1rem, 4vw, 2rem);
  --sec:  clamp(3.6rem, 8vw, 6rem);

  --f-disp:"Archivo", "Source Sans 3", system-ui, sans-serif;
  --f-body:"Source Sans 3", system-ui, sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;font-family:var(--f-body);color:var(--ink);
  background:var(--paper);line-height:1.62;font-size:1.02rem;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--steel);text-decoration:none}
h1,h2,h3,h4{font-family:var(--f-disp);font-weight:800;line-height:1.05;letter-spacing:-.02em;margin:0}
h1{font-size:clamp(2.5rem,6.4vw,4.4rem)}
h2{font-size:clamp(1.85rem,4.2vw,2.85rem)}
h3{font-size:1.22rem;letter-spacing:-.01em}
p{margin:0 0 1rem}

.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--pad)}
.section{padding-block:var(--sec)}
.skip{position:absolute;left:-999px;top:0;background:var(--steel);color:#fff;padding:.6rem 1rem;z-index:200;border-radius:0 0 var(--r-sm) 0}
.skip:focus{left:0}

.eyebrow{
  font-family:var(--f-disp);text-transform:uppercase;letter-spacing:.16em;
  font-size:.74rem;font-weight:700;color:var(--clay);margin:0 0 .9rem;
}
.section-head{max-width:46rem;margin-bottom:2.6rem}
.section-sub{color:var(--muted);font-size:1.08rem;margin-top:.4rem}

/* ---- focus ---- */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible{outline:3px solid var(--clay);outline-offset:2px;border-radius:4px}

/* ---- buttons ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  font-family:var(--f-disp);font-weight:700;letter-spacing:-.01em;
  padding:.82rem 1.3rem;border-radius:var(--r-sm);min-height:48px;
  cursor:pointer;border:2px solid transparent;transition:transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-size:1rem;text-align:center;
}
.btn-lg{padding:1rem 1.6rem;font-size:1.08rem;min-height:54px}
.btn-call{background:var(--clay);color:#fff;box-shadow:var(--shadow)}
.btn-call:hover{background:var(--clay-deep);transform:translateY(-2px)}
.btn-ghost{background:transparent;color:var(--steel);border-color:var(--steel)}
.btn-ghost:hover{background:var(--steel);color:#fff;transform:translateY(-2px)}
.ico{width:1.15em;height:1.15em;fill:currentColor;flex:none}

/* ===== brand / dial signature ===== */
.brand{display:inline-flex;align-items:center;gap:.65rem;color:var(--ink)}
.dial{display:inline-grid;place-items:center}
.dial svg{display:block}
.dial-ring{fill:none;stroke:var(--line);stroke-width:1.5}
.dial-arc{stroke:var(--steel);stroke-width:3.4;stroke-linecap:round}
.dial-needle{stroke:var(--clay);stroke-width:2.8;stroke-linecap:round}
.dial-hub{fill:var(--steel)}
.brand-text{display:flex;flex-direction:column;line-height:1}
.brand-text strong{font-family:var(--f-disp);font-weight:800;font-size:1.18rem;letter-spacing:-.02em}
.brand-text em{font-style:normal;font-size:.72rem;color:var(--muted);letter-spacing:.04em;margin-top:.18rem}

/* ===== header ===== */
.site-header{
  position:sticky;top:0;z-index:100;background:rgba(243,244,241,.86);
  backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;gap:1.4rem;min-height:70px}
.main-nav{display:flex;gap:1.5rem;margin-left:auto}
.main-nav a{font-family:var(--f-disp);font-weight:600;font-size:.96rem;color:var(--ink);position:relative}
.main-nav a::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:var(--clay);transform:scaleX(0);transform-origin:left;transition:transform .2s ease}
.main-nav a:hover::after{transform:scaleX(1)}
.header-call{margin-left:0;font-size:.95rem;padding:.6rem 1rem;min-height:42px}

/* ===== hero ===== */
.hero{
  position:relative;overflow:hidden;
  padding-block:clamp(2.8rem,6vw,4.6rem) clamp(3rem,7vw,5.2rem);
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(31,58,82,.10), transparent 55%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
}
/* faint comfort-gauge arcs behind hero — the quiet signature, restrained */
.hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;
  background:
    radial-gradient(closest-side, transparent 78%, rgba(31,58,82,.07) 79% 80%, transparent 81%) -180px -160px / 620px 620px no-repeat,
    radial-gradient(closest-side, transparent 84%, rgba(197,85,45,.06) 85% 86%, transparent 87%) -120px -120px / 760px 760px no-repeat;
}
.hero-grid{position:relative;display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,3.6rem);align-items:center}
.hero h1{margin:.2rem 0 1.1rem}
.lede{font-size:clamp(1.08rem,1.6vw,1.28rem);color:#33454f;max-width:34rem}
.hero-cta{display:flex;flex-wrap:wrap;gap:.85rem;margin:1.6rem 0 1.8rem}
.trust-strip{display:flex;flex-wrap:wrap;gap:.4rem 2rem;list-style:none;margin:0;padding:1.1rem 0 0;border-top:1px solid var(--line)}
.trust-strip li{font-size:.96rem;color:var(--muted)}
.trust-strip .stat{display:block;font-family:var(--f-disp);font-weight:800;font-size:1.18rem;color:var(--steel);letter-spacing:-.02em}

.hero-figure{margin:0;position:relative}
.hero-figure img{border-radius:var(--r);box-shadow:var(--shadow-lg);width:100%;object-fit:cover}
.hero-figure figcaption{margin-top:.7rem;font-size:.86rem;color:var(--muted);font-style:italic}

/* ===== services ===== */
.services{background:var(--paper-2);border-block:1px solid var(--line)}
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
.svc{
  background:var(--white);border:1px solid var(--line);border-radius:var(--r);
  padding:1.6rem 1.5rem;transition:transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  position:relative;
}
.svc:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#c3cbd2}
.svc-ico{width:38px;height:38px;fill:none;stroke:var(--steel);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin-bottom:1rem}
.svc h3{margin-bottom:.45rem}
.svc p{margin:0;color:var(--muted);font-size:.98rem}

/* ===== why ===== */
.why{background:var(--steel-deep);color:#e9eef2}
.why .eyebrow{color:#f0a079}
.why h2{color:#fff}
.why-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2rem,5vw,4rem);align-items:center}
.why-copy p{color:#b9c6cf}
.why-list{list-style:none;margin:1.6rem 0 2rem;padding:0;display:grid;gap:1.05rem}
.why-list li{display:flex;gap:.85rem;align-items:flex-start}
.why-list div{color:#cdd8df;font-size:1rem}
.why-list strong{color:#fff;font-weight:600}
.why-mark{flex:none;width:26px;height:26px;border-radius:50%;background:var(--clay);color:#fff;display:grid;place-items:center;font-size:.85rem;font-weight:700;margin-top:.1rem}
.why-media{display:grid;grid-template-columns:1fr;gap:1rem}
.why-media figure{margin:0}
.media-tall img,.media-wide img{border-radius:var(--r);box-shadow:var(--shadow-lg);width:100%;object-fit:cover}
.media-tall img{aspect-ratio:5/6}
.media-wide img{aspect-ratio:16/10}
.why-media figcaption{margin-top:.5rem;font-size:.82rem;color:#9fb1bb;font-style:italic}

/* ===== work gallery ===== */
.work{background:var(--paper)}
.gallery{columns:3;column-gap:1rem}
.gallery figure{margin:0 0 1rem;break-inside:avoid}
.gallery img{border-radius:var(--r-sm);box-shadow:var(--shadow);width:100%}

/* ===== reviews ===== */
.reviews{background:var(--steel-soft);border-block:1px solid var(--line)}
.review-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.1rem}
.review{
  margin:0;background:var(--white);border:1px solid var(--line);border-radius:var(--r);
  padding:1.7rem 1.6rem;position:relative;
}
.stars{color:var(--gold);letter-spacing:.12em;font-size:1.05rem;margin-bottom:.7rem}
.review p{font-size:1.04rem;color:var(--ink);margin:0 0 1rem}
.review cite{font-style:normal;font-family:var(--f-disp);font-weight:700;color:var(--steel);font-size:.95rem}
.reviews-link{margin:1.8rem 0 0;text-align:center}
.reviews-link a{font-family:var(--f-disp);font-weight:700;color:var(--steel)}

/* ===== area ===== */
.area{background:var(--paper-2)}
.area-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,3.4rem);align-items:center}
.area-copy p{color:var(--muted)}
.area-list{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;padding:0;margin:1.4rem 0}
.area-list li{background:var(--steel-soft);color:var(--steel);font-family:var(--f-disp);font-weight:600;font-size:.9rem;padding:.4rem .85rem;border-radius:999px;border:1px solid #cdd9e1}
.hours{display:grid;grid-template-columns:auto 1fr;gap:.35rem 1.3rem;margin:1.6rem 0;font-size:1rem}
.hours dt{font-family:var(--f-disp);font-weight:700;color:var(--ink)}
.hours dd{margin:0;color:var(--muted)}
.area-map{border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow-lg);border:1px solid var(--line)}
.area-map iframe{display:block;width:100%;height:100%;min-height:380px;border:0}

/* ===== contact ===== */
.contact{background:var(--steel);color:#fff}
.contact .eyebrow{color:#f0a079}
.contact h2{color:#fff}
.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(2rem,5vw,3.6rem);align-items:start}
.contact-copy p{color:#cdd8df}
.contact-copy .btn{margin-top:.6rem}
.contact-form{
  background:var(--paper-2);border-radius:var(--r);padding:1.7rem;
  display:grid;grid-template-columns:1fr 1fr;gap:1rem;box-shadow:var(--shadow-lg);
}
.field{display:flex;flex-direction:column;gap:.35rem}
.field-full{grid-column:1/-1}
.field label{font-family:var(--f-disp);font-weight:700;font-size:.88rem;color:var(--ink)}
.field .opt{color:var(--muted);font-weight:400;font-size:.8rem}
.field input,.field select,.field textarea{
  font-family:var(--f-body);font-size:1rem;padding:.72rem .85rem;color:var(--ink);
  border:1.5px solid var(--line);border-radius:var(--r-sm);background:#fff;width:100%;
}
.field textarea{resize:vertical}
.btn-submit{grid-column:1/-1;width:100%}
.form-note{grid-column:1/-1;margin:0;font-size:.82rem;color:var(--muted);text-align:center}
.form-status{grid-column:1/-1;margin:0;font-family:var(--f-disp);font-weight:700;text-align:center;
  padding:.7rem;border-radius:var(--r-sm);background:#e3f1e6;color:#1f6b35}
.form-status.err{background:#fbe6e2;color:#a8431f}

/* ===== footer ===== */
.site-footer{background:var(--steel-deep);color:#aebdc6;padding-top:var(--sec)}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:2rem;padding-bottom:2.4rem}
.foot-brand .brand-text strong{color:#fff}
.foot-brand p{margin-top:1rem;font-size:.94rem;max-width:24rem}
.site-footer .dial-ring{stroke:#3a5366}
.foot-col h4{font-family:var(--f-disp);color:#fff;font-size:.92rem;text-transform:uppercase;letter-spacing:.1em;margin-bottom:.7rem}
.foot-col p{font-size:.96rem;line-height:1.7;margin:0}
.foot-col a,.foot-brand a{color:#cdd8df}
.foot-col a:hover{color:#fff}
.foot-base{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;
  border-top:1px solid #2a3f4d;padding-block:1.4rem;font-size:.86rem;color:#8da0ab}
.rating-foot{color:var(--gold)}

/* ===== mobile call bar ===== */
.call-bar{display:none}

/* ===== reveal motion ===== */
.js .reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease, transform .6s ease}
.js .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .js .reveal{opacity:1;transform:none;transition:none}
  .btn,.svc,.main-nav a::after{transition:none}
}

/* ===== responsive ===== */
@media (max-width:980px){
  .hero-grid,.why-grid,.area-grid,.contact-grid{grid-template-columns:1fr}
  .hero-figure{order:-1}
  .svc-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .gallery{columns:2}
  .why-media{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .main-nav{display:none}
  .header-call{margin-left:auto}
}
@media (max-width:620px){
  :root{--sec:clamp(2.8rem,11vw,3.6rem)}
  .svc-grid{grid-template-columns:1fr}
  .review-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .why-media{grid-template-columns:1fr}
  .gallery{columns:1}
  .contact-form{grid-template-columns:1fr;padding:1.3rem}
  .foot-base{justify-content:flex-start}
  body{padding-bottom:72px} /* room for call bar */
  .call-bar{
    display:flex;align-items:center;justify-content:center;gap:.55rem;
    position:fixed;left:0;right:0;bottom:0;z-index:120;
    background:var(--clay);color:#fff;font-family:var(--f-disp);font-weight:700;
    font-size:1.08rem;padding:.95rem;min-height:60px;
    box-shadow:0 -6px 20px -8px rgba(20,41,53,.5);
  }
  .call-bar .ico{width:1.2em;height:1.2em}
  .header-call{display:none}
}
