/* ==========================================================================
   Brunson Air Conditioning & Heating — Template v4 (Hermes) pilot
   Palette + type derived from brunsonair.com's real brand (see facts.json).
   ========================================================================== */

:root {
  /* upgraded-but-derived palette (see facts.json "colors" entry) */
  --ink: #1e2422;
  --ink-soft: #4c5652;
  --ink-faint: #7c8682;
  --paper: #faf7f1;
  --paper-deep: #f1ebdf;
  --line: #ddd3bf;
  --teal: #2c7478;        /* deepened from their real #68ccd1 */
  --teal-bright: #68ccd1; /* their exact real accent, used sparingly */
  --teal-tint: #d9edea;
  --orange: #c9600f;      /* deepened from their real #f98111 */
  --orange-dark: #9f4c0a;
  --white: #ffffff;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration-color: var(--teal-tint); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- buttons / links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.1;
  min-height: 48px;
}

.btn-call {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 0 var(--orange-dark);
}
.btn-call:hover { background: var(--orange-dark); color: var(--white); }

.btn-quiet {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
  font-weight: 600;
}
.btn-quiet:hover { background: var(--teal); color: var(--white); }

.link-quiet {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.link-quiet:hover { color: var(--orange-dark); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 3.6vw, 1.5rem);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-top: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  min-height: 44px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}

.main-nav {
  display: flex;
  gap: 22px;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a { color: var(--ink-soft); text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--orange); }

.header-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  min-height: 44px;
  justify-content: center;
}
.header-phone .call-label {
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-bright);
  font-weight: 600;
}
.header-phone .call-number {
  font-size: clamp(0.95rem, 3.4vw, 1.2rem);
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.header-phone:hover { background: var(--orange-dark); }
.header-phone:hover .call-label { color: var(--white); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 14px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
}

/* ---------- hero ---------- */

.hero {
  padding: 48px 0 44px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-copy .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-copy h1 { margin-bottom: 0.28em; }
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.credential-line {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--teal-tint);
  border: 1px solid var(--teal-bright);
  display: inline-block;
  padding: 9px 16px;
  border-radius: var(--radius);
  margin-bottom: 26px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.hero-media {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -18px rgba(30, 36, 34, 0.45);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-height: 260px; }
}

/* ---------- emergency band ---------- */

.emergency-band {
  background: var(--ink);
  color: var(--white);
  padding: 16px 0;
}
.emergency-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.emergency-band p {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
}
.emergency-band strong { color: var(--teal-bright); }
.emergency-band .btn-call { box-shadow: none; }

/* ---------- services ---------- */

.services {
  padding: 56px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 30px;
}
.section-head .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 860px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px) {
  .service-grid { grid-template-columns: 1fr; }
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 20px;
}
.service-card h3 { margin-bottom: 6px; }
.service-card .one-line { margin-bottom: 10px; font-size: 0.95rem; }
.service-toggle {
  background: none;
  border: none;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 4px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-toggle:hover { color: var(--orange-dark); }
.service-toggle .chev { transition: transform 0.15s ease; display: inline-block; }
.service-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.service-detail {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
}
.service-detail.is-open { display: block; }

.services-more {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-deep);
  padding: 20px 24px;
}
.services-more h3 { margin-bottom: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tag-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- trust strip ---------- */

.trust-strip {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.trust-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: center;
}
@media (max-width: 640px) {
  .trust-strip .wrap { grid-template-columns: 1fr; text-align: left; }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
@media (max-width: 640px) { .trust-item { justify-content: flex-start; } }
.trust-item .mark {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.trust-item strong { display: block; font-size: 0.95rem; color: var(--ink); }
.trust-item span { display: block; font-size: 0.83rem; color: var(--ink-faint); }

/* ---------- reviews ---------- */

.reviews { padding: 56px 0; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}
.stars { color: var(--orange); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 10px; }
.review-card p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 12px; }
.review-name { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.review-source { font-size: 0.78rem; color: var(--ink-faint); }

/* ---------- service area ---------- */

.service-area {
  padding: 26px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.service-area p { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- receipt / offer block ---------- */

.offer-section { background: var(--paper-deep); padding: 60px 0 68px; }
.offer-banner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 26px;
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.offer-banner .rule {
  border: none;
  border-top: 1px dashed var(--ink-faint);
  margin: 10px auto 0;
  width: 100%;
}

.receipt {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 30px 28px;
  box-shadow: 0 18px 40px -26px rgba(30, 36, 34, 0.4);
}
.receipt-head {
  text-align: center;
  margin-bottom: 6px;
}
.receipt-head .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}
.receipt-head h2 { margin: 6px 0 4px; font-size: clamp(1.35rem, 3.6vw, 1.7rem); }
.receipt-head .sub { font-size: 0.9rem; color: var(--ink-faint); margin-bottom: 0; }

.receipt-tear {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 22px 0 6px;
}

.receipt-list { list-style: none; margin: 0; padding: 0; }
.receipt-item { border-bottom: 1px dashed var(--line); }
.receipt-item:last-child { border-bottom: none; }

.receipt-row {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  background: none;
  border: none;
  padding: 14px 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
}
.receipt-row .check { color: var(--teal); font-weight: 700; margin-right: 8px; }
.receipt-row .item-title { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.receipt-row .item-one-liner {
  display: block;
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 0.83rem;
  margin-top: 2px;
}
.receipt-row .chev { color: var(--ink-faint); transition: transform 0.15s ease; flex-shrink: 0; }
.receipt-row[aria-expanded="true"] .chev { transform: rotate(180deg); }

.receipt-detail {
  display: none;
  padding: 0 0 16px 26px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.receipt-detail.is-open { display: block; }
.receipt-detail a { font-size: 0.85rem; font-weight: 600; }

.receipt-total {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.receipt-total .line {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--ink-soft);
}
.receipt-total .line.total-due {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 1px dashed var(--line);
  margin-top: 6px;
  padding-top: 10px;
}
.receipt-cta {
  margin-top: 22px;
  text-align: center;
}
.receipt-cta .btn { width: 100%; justify-content: center; }
.receipt-fine { text-align: center; font-size: 0.78rem; color: var(--ink-faint); margin-top: 12px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #cdd6d3;
  padding: 46px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-name { color: var(--white); font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; }
.footer-brand p { color: #a9b4b0; font-size: 0.9rem; margin: 10px 0 0; }
.footer-brand .footer-phone {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal-bright);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cdd6d3; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--teal-bright); }

.footer-bottom {
  border-top: 1px solid #333c39;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8a948f;
}
.footer-bottom a { color: #8a948f; }

/* ---------- generic page hero (interior pages) ---------- */

.page-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.page-hero p.lede { font-size: 1.05rem; max-width: 620px; }

/* ---------- about credentials card ---------- */

.credentials-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
  margin: 30px 0 40px;
}
.fact-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.fact-row:last-child { border-bottom: none; }
.fact-row:nth-child(odd) { background: var(--paper); }
@media (max-width: 560px) {
  .fact-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
}
.fact-label {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
}
.fact-value { color: var(--ink); font-weight: 600; }

.quote-line {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-style: italic;
  color: var(--ink);
  border-left: 4px solid var(--teal-bright);
  padding: 4px 0 4px 22px;
  margin: 0 0 40px;
}
.quote-line cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 10px;
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
@media (max-width: 640px) { .about-photos { grid-template-columns: 1fr 1fr; } }
.about-photos img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); }

/* ---------- contact page ---------- */

.contact-hero {
  padding: 44px 0 10px;
}
.contact-call-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 28px;
  margin-bottom: 30px;
  text-align: center;
}
.contact-call-block .label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-call-block .tel-huge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.05;
}
.contact-call-block .tel-huge:hover { color: var(--orange); }
.contact-call-block .tel-note { margin-top: 8px; color: var(--ink-faint); font-size: 0.92rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 46px;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card, .form-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 24px 26px;
}
.info-card dl { margin: 0; }
.info-card dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-top: 16px;
}
.info-card dt:first-child { margin-top: 0; }
.info-card dd { margin: 4px 0 0; color: var(--ink); font-weight: 600; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  min-height: 48px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

.form-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 4px; }
.form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--teal-tint); color: var(--ink); font-size: 0.9rem; }
.form-status.is-visible { display: block; }

/* ballpark estimate module */
.estimate-module {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-deep);
  margin-bottom: 50px;
}
.estimate-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
}
.estimate-toggle h3 { margin: 0 0 4px; }
.estimate-toggle p { margin: 0; font-size: 0.88rem; color: var(--ink-faint); }
.estimate-toggle .chev { color: var(--teal); font-size: 1.4rem; transition: transform 0.15s ease; flex-shrink: 0; }
.estimate-toggle[aria-expanded="true"] .chev { transform: rotate(45deg); }

.estimate-body {
  display: none;
  padding: 0 24px 26px;
}
.estimate-body.is-open { display: block; }
.estimate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 560px) { .estimate-row { grid-template-columns: 1fr; } }
.estimate-body select, .estimate-body input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  min-height: 48px;
}
.estimate-result {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px dashed var(--teal);
  border-radius: var(--radius);
  font-weight: 600;
}
.estimate-result .range { color: var(--teal); font-family: var(--font-head); font-size: 1.4rem; }
.estimate-disclaimer { font-size: 0.78rem; color: var(--ink-faint); margin-top: 10px; }

/* ---------- services page list ---------- */

.services-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 720px) { .services-page-grid { grid-template-columns: 1fr; } }

/* ---------- misc page (privacy) ---------- */

.plain-page { padding: 44px 0 60px; }
.plain-page h2 { margin-top: 34px; }
.plain-page ul { color: var(--ink-soft); }

/* ---------- simple page section spacing ---------- */
section.page-section { padding: 44px 0; }
