/* ============================================================
   MERIDIAN — service & contact page styles
   (loads after styles.css; reuses all its tokens)
   ============================================================ */

/* ---------- shared page scaffolding ---------- */
.page-main { padding-top: 0; }

.breadcrumb {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-dark-3);
}
.breadcrumb a { color: var(--on-dark-2); transition: color .25s; }
.breadcrumb a:hover { color: var(--on-dark); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .cur { color: var(--ember); }

/* ---------- SERVICE HERO ---------- */
.svc-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 86% 24%, var(--h-glow-1, rgba(255,106,43,0.18)), transparent 56%),
    radial-gradient(90% 80% at 6% 80%, var(--h-glow-2, rgba(87,199,232,0.12)), transparent 60%),
    var(--bg);
  padding: clamp(124px, 16vw, 180px) var(--pad) clamp(64px, 8vw, 110px);
}
.svc-hero .hero-grid-overlay { opacity: 0.5; }
.svc-hero-inner {
  max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.svc-hero h1 {
  font-size: clamp(40px, 6vw, 82px); margin: 22px 0 0; letter-spacing: -0.035em;
  color: var(--on-dark);
}
.svc-hero h1 .grad {
  background: linear-gradient(100deg, var(--h-a, var(--ice-soft)), var(--h-b, var(--ember)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc-hero .lead { margin-top: 24px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--on-dark-2); max-width: 500px; }
.svc-hero .hero-cta { margin-top: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.svc-hero .hero-trust { margin-top: 34px; }

/* hero aperture visual */
.aperture {
  position: relative; aspect-ratio: 1; width: min(420px, 80%); margin: 0 auto;
  display: grid; place-items: center;
}
.aperture .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--hairline);
}
.aperture .ring.r2 { inset: 13%; border-color: rgba(243,241,236,0.12); }
.aperture .ring.r3 { inset: 26%; border-color: rgba(243,241,236,0.16); }
.aperture .ring.dash {
  inset: -6%; border: 1px dashed rgba(243,241,236,0.10);
  animation: aprspin 60s linear infinite;
}
@keyframes aprspin { to { transform: rotate(360deg); } }
.aperture .core {
  position: relative; width: 46%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 30% 25%, var(--h-core-1, #FFD0B5), var(--h-core-2, #FF6A2B));
  box-shadow: 0 30px 80px -24px var(--h-shadow, rgba(255,106,43,0.5)), inset 0 2px 10px rgba(255,255,255,0.4);
}
.aperture .core svg { width: 46%; height: 46%; color: #fff; }
.aperture .tick {
  position: absolute; width: 2px; height: 9px; border-radius: 2px;
  background: rgba(243,241,236,0.22); left: 50%; top: 2%;
  transform-origin: 50% calc(420px / 2 * 0.5);
}
.apr-chip {
  position: absolute; z-index: 4;
  background: rgba(20,23,28,0.74); backdrop-filter: blur(10px);
  border: 1px solid var(--hairline); border-radius: 14px; padding: 11px 15px;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7);
}
.apr-chip .ac-num { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--on-dark); }
.apr-chip .ac-num .u { font-size: 0.5em; color: var(--ember); }
.apr-chip .ac-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-3); margin-top: 2px; }
.apr-chip.c1 { top: 8%; right: -4%; }
.apr-chip.c2 { bottom: 10%; left: -6%; }

/* ---------- generic page band ---------- */
.band { padding: clamp(64px, 9vw, 130px) 0; }
.band.light { background: var(--paper); color: var(--ink); }
.band.dark { background: var(--bg); color: var(--on-dark); }
.band.light.round-top { border-radius: 36px 36px 0 0; position: relative; z-index: 2; margin-top: -24px; }
.band .band-head { max-width: 720px; margin-bottom: 48px; }
.band .band-head h2 { font-size: clamp(30px, 4vw, 52px); }
.band.light .band-head h2 { color: var(--ink); }
.band .band-head p { margin-top: 18px; font-size: 16px; line-height: 1.6; }
.band.light .band-head p { color: var(--ink-3); }
.band.dark .band-head p { color: var(--on-dark-2); }

/* ---------- sub-service grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  background: #fff; border: 1px solid var(--line-ink-2); border-radius: 18px;
  padding: 26px 24px 28px; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.feat:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -32px rgba(20,22,26,0.28); border-color: transparent; }
.feat .fic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--paper-2); color: var(--ink); }
.feat .fic svg { width: 23px; height: 23px; }
.feat h3 { font-size: 18.5px; color: var(--ink); letter-spacing: -0.018em; }
.feat p { margin-top: 10px; font-size: 14px; color: var(--ink-3); line-height: 1.55; }

/* tint the feature icon to the system accent */
.feat.heat .fic  { background: linear-gradient(135deg, #FFE6D6, #FFD0B5); color: var(--ember-deep); }
.feat.cool .fic  { background: linear-gradient(135deg, #DCF1F8, #C2E8F4); color: var(--ice-deep); }
.feat.air .fic   { background: linear-gradient(135deg, #E2F2E4, #CDEBD2); color: #2f9b54; }
.feat.smart .fic { background: linear-gradient(135deg, #EBE6F7, #DCD3F0); color: #6a4fb3; }

/* ---------- signs list ---------- */
.signs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--hairline); }
.sign {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 26px 28px; border-bottom: 1px solid var(--hairline);
}
.sign:nth-child(odd) { border-right: 1px solid var(--hairline); }
.sign .si {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: var(--ember);
  background: rgba(255,106,43,0.1); border: 1px solid rgba(255,106,43,0.22);
}
.sign .si svg { width: 20px; height: 20px; }
.sign h4 { font-family: var(--font-display); font-size: 17px; color: var(--on-dark); letter-spacing: -0.015em; }
.sign p { margin-top: 6px; font-size: 14px; color: var(--on-dark-2); line-height: 1.5; }

/* ---------- approach steps ---------- */
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hairline); margin-top: 8px; }
.astep { padding: 30px 28px 34px; border-right: 1px solid var(--hairline); position: relative; }
.astep:last-child { border-right: none; }
.astep .ps-dot { position: absolute; top: -5px; left: 28px; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--ember); }
.astep .as-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; color: var(--ember); }
.astep h3 { font-size: 21px; margin-top: 16px; color: var(--on-dark); }
.astep p { margin-top: 11px; color: var(--on-dark-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- brand strip ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.brands .bchip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--on-dark-2); border: 1px solid var(--hairline);
  padding: 9px 16px; border-radius: 100px; text-transform: uppercase;
}

/* ---------- cross-link cards ---------- */
.xlinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.xlink {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--line-ink-2); background: #fff;
  padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.xlink:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -32px rgba(20,22,26,0.26); border-color: transparent; }
.xlink .xic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; }
.xlink .xic svg { width: 22px; height: 22px; }
.xlink h3 { font-size: 19px; color: var(--ink); letter-spacing: -0.018em; }
.xlink p { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; flex: 1; }
.xlink .xgo { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 7px; transition: gap .3s; }
.xlink:hover .xgo { gap: 11px; }
.xlink.heat .xic  { background: linear-gradient(135deg, #FFE6D6, #FFD0B5); color: var(--ember-deep); }
.xlink.cool .xic  { background: linear-gradient(135deg, #DCF1F8, #C2E8F4); color: var(--ice-deep); }
.xlink.air .xic   { background: linear-gradient(135deg, #E2F2E4, #CDEBD2); color: #2f9b54; }
.xlink.smart .xic { background: linear-gradient(135deg, #EBE6F7, #DCD3F0); color: #6a4fb3; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero {
  background:
    radial-gradient(120% 90% at 86% 20%, rgba(255,106,43,0.16), transparent 55%),
    radial-gradient(90% 90% at 8% 90%, rgba(87,199,232,0.12), transparent 60%),
    var(--bg);
  padding: clamp(124px, 16vw, 172px) var(--pad) clamp(40px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.contact-hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 3; }
.contact-hero h1 { font-size: clamp(38px, 5.4vw, 74px); margin-top: 20px; letter-spacing: -0.035em; color: var(--on-dark); }
.contact-hero h1 .grad { background: linear-gradient(100deg, var(--ice), #fff 55%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-hero .lead { margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--on-dark-2); max-width: 560px; }

.contact-wrap { background: var(--paper); padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); border-radius: 36px 36px 0 0; margin-top: -24px; position: relative; z-index: 2; }
.contact-grid {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad);
  display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 28px; align-items: start;
}

/* form card */
.form-card {
  background: #fff; border: 1px solid var(--line-ink-2); border-radius: 24px;
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: 0 40px 90px -60px rgba(20,22,26,0.4);
}
.form-card .fc-eyebrow { color: var(--ink-3); }

/* segmented toggle */
.seg {
  margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--paper-2); border: 1px solid var(--line-ink-2);
  border-radius: 100px; padding: 4px; position: relative;
}
.seg button {
  position: relative; z-index: 2; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--ink-3);
  padding: 12px 14px; border-radius: 100px; transition: color .3s var(--ease);
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.seg button svg { width: 17px; height: 17px; }
.seg button.active { color: #fff; }
.seg .seg-pill {
  position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px); border-radius: 100px; background: var(--ink);
  transition: transform .42s var(--ease);
}
.seg[data-mode="callback"] .seg-pill { transform: translateX(100%); }

/* fields */
.form-body { margin-top: 28px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 9px; display: flex; align-items: center; gap: 7px;
}
.field label .req { color: var(--ember); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-ink); border-radius: 12px;
  padding: 13px 15px; width: 100%; transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 0.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ember); background: #fff;
  box-shadow: 0 0 0 4px rgba(255,106,43,0.12);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236B6E76' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field.err input, .field.err select, .field.err textarea { border-color: #e0473a; box-shadow: 0 0 0 4px rgba(224,71,58,0.1); }
.field .err-msg { font-size: 12px; color: #d23b2e; margin-top: 7px; display: none; font-family: var(--font-body); }
.field.err .err-msg { display: block; }

/* urgency radio chips */
.chips-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-radio span {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  border: 1px solid var(--line-ink); border-radius: 100px; padding: 11px 16px;
  transition: all .25s var(--ease); background: var(--paper);
}
.chip-radio span .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); transition: all .25s; }
.chip-radio input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip-radio input:checked + span .cdot { background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.chip-radio input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255,106,43,0.14); }

.form-submit { margin-top: 8px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-submit .btn { padding: 16px 30px; font-size: 15.5px; }
.form-note { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.form-note svg { width: 15px; height: 15px; color: #2f9b54; flex: none; }

.mode-fields { display: none; }
.mode-fields.on { display: block; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* success state */
.form-success { display: none; text-align: center; padding: 20px 10px 14px; }
.form-success.on { display: block; animation: fadeUp .5s var(--ease); }
.success-check {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 24px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #43c97f, #2f9b54);
  box-shadow: 0 18px 40px -16px rgba(47,155,84,0.6);
}
.success-check svg { width: 38px; height: 38px; }
.success-check svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h2 { font-size: clamp(26px, 3vw, 36px); color: var(--ink); }
.form-success p { margin-top: 14px; font-size: 16px; color: var(--ink-3); line-height: 1.55; max-width: 440px; margin-inline: auto; }
.success-summary {
  margin: 28px auto 0; max-width: 420px; text-align: left;
  background: var(--paper); border: 1px solid var(--line-ink); border-radius: 16px; padding: 22px 24px;
}
.success-summary .ss-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-ink-2); font-size: 14px; }
.success-summary .ss-row:last-child { border-bottom: none; }
.success-summary .ss-k { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.success-summary .ss-v { color: var(--ink); font-weight: 600; text-align: right; }
.success-next { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* info rail */
.info-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.info-card { background: #fff; border: 1px solid var(--line-ink-2); border-radius: 20px; padding: 26px 26px 28px; }
.info-card.accent {
  background:
    radial-gradient(120% 120% at 85% 10%, rgba(255,106,43,0.22), transparent 55%),
    radial-gradient(120% 120% at 10% 95%, rgba(87,199,232,0.16), transparent 60%),
    var(--surface);
  border-color: var(--hairline); color: var(--on-dark);
}
.info-card .ic-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.info-card.accent .ic-label { color: var(--on-dark-3); }
.info-phone { display: flex; align-items: center; gap: 13px; }
.info-phone .ip-dot { width: 9px; height: 9px; border-radius: 50%; background: #38d27a; box-shadow: 0 0 0 0 rgba(56,210,122,0.6); animation: pulse 2.4s infinite; flex: none; }
.info-phone .ip-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; color: var(--on-dark); }
.info-card.accent .ic-sub { margin-top: 12px; font-size: 14px; color: var(--on-dark-2); line-height: 1.5; }
.info-emerg { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hairline); display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--on-dark-2); }
.info-emerg svg { width: 18px; height: 18px; color: var(--ember); flex: none; }

.hours-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; font-size: 14.5px; color: var(--ink-2); border-bottom: 1px solid var(--line-ink-2); }
.hours-row:last-child { border-bottom: none; }
.hours-row b { color: var(--ink); font-weight: 600; }
.hours-row .open { color: #2f9b54; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chips .achip { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 100px; padding: 7px 13px; }

.info-addr { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.info-addr .ia-name { color: var(--ink); font-weight: 600; }

/* service-area map — keyless Google Maps embed of the HQ (see contact.html) */
.map-embed {
  margin-top: 16px; border-radius: 14px; overflow: hidden;
  height: 168px; border: 1px solid var(--hairline);
  background: var(--bg-2);
}
.map-embed iframe {
  display: block; width: 100%; height: 100%; border: 0;
  filter: grayscale(0.25);
}

/* ============================================================
   MOBILE NAV DRAWER (shared across pages)
   ============================================================ */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 64px 12px auto 12px; z-index: 95;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14,16,20,0.96); backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--hairline); border-radius: 18px; padding: 8px;
    box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
    opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
    display: flex;
  }
  body.nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a {
    font-size: 16px; color: var(--on-dark); padding: 15px 16px; border-radius: 12px;
    transition: background .2s;
  }
  .nav-links a:hover, .nav-links a.cur { background: rgba(255,255,255,0.06); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .feat-grid, .approach, .xlinks { grid-template-columns: repeat(2, 1fr); }
  .approach .astep:nth-child(2) { border-right: none; }
  .approach .astep { border-bottom: 1px solid var(--hairline); }
  .contact-grid { grid-template-columns: 1fr; }
  .info-rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .info-rail .info-card { flex: 1 1 260px; }
}
@media (max-width: 860px) {
  .svc-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .svc-hero .aperture { order: -1; width: min(300px, 70%); }
}
@media (max-width: 620px) {
  .feat-grid, .approach, .xlinks, .signs-grid { grid-template-columns: 1fr; }
  .signs-grid .sign:nth-child(odd) { border-right: none; }
  .approach .astep { border-right: none; }
  .frow { grid-template-columns: 1fr; gap: 0; }
  .info-rail { flex-direction: column; }
}
