/* Urban Heating Solutions — shared styles
   ----------------------------------------
   Trustworthy, family-run navy & cream with copper accent.
   Type: Newsreader (display) + Geist (body).
*/

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');

:root {
  /* palette — anchored to the pewter/leather medallion */
  --navy-900: #16181d;        /* warm anthracite (deep dark) */
  --navy-800: #1f2229;
  --navy-700: #2a2e36;
  --navy-200: #c5c4be;
  --navy-100: #e6e4dd;
  --navy-50:  #f1efe7;

  --leather:  #0e0f12;        /* near-black leather */
  --leather-2:#1a1c20;

  --pewter:   #8a8d92;        /* aged pewter / silver */
  --pewter-d: #5e6168;
  --pewter-l: #b8bcc2;

  --cream:    #f7f1e4;        /* parchment cream */
  --cream-2:  #ede4cf;
  --paper:    #fefcf7;

  --ink:      #1c1d22;
  --ink-2:    #34363d;
  --mute:     #6c6e75;
  --mute-2:   #9b9da5;
  --hairline: #ddd3bd;

  --copper:   #a8783c;        /* aged bronze (replacing bright copper) */
  --copper-d: #855e2c;
  --gold:     #c9a96e;
  --gas-yellow: #ffd900;

  /* type */
  --serif: 'Newsreader', 'Source Serif 4', Georgia, serif;
  --sans:  'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* layout */
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
  --radius: 6px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Type ---------- */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow.muted { color: var(--mute); }
.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--navy-700);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--navy-900); letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 600; }

p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }

.grid { display: grid; gap: 24px; }
.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: 880px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}

.divider { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ---------- Utility bar + Header ---------- */
.utility {
  background-color: var(--leather);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.025) 0, transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.008) 0 2px, transparent 2px 6px);
  color: var(--pewter-l);
  font-size: 13px;
  border-bottom: 1px solid #000;
}
.utility .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0;
  gap: 24px;
}
.utility .grp { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.utility a { color: var(--cream); }
.utility a:hover { color: #fff; }
.utility .pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); color: var(--leather);
  font-weight: 600; font-size: 12px;
  padding: 3px 10px; border-radius: 999px;
}
.utility .pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--leather); }

.header {
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 40;
}
.header .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif);
}
.brand .mark {
  width: 84px; height: 84px; border-radius: 50%;
  background: transparent;
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  /* soft vignette fades the dark medallion edge into the cream chrome */
  -webkit-mask-image: radial-gradient(circle, #000 78%, transparent 100%);
          mask-image: radial-gradient(circle, #000 78%, transparent 100%);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.brand .mark::after {
  /* subtle inner highlight to lift the medallion off the cream */
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18) 0, transparent 50%);
  pointer-events: none;
}
.brand .mark img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.brand .mark svg { width: 100%; height: 100%; display: block; }
.footer .brand .mark { -webkit-mask-image: none; mask-image: none; }
.footer .brand .mark::after { display: none; }
.brand .name {
  font-size: 18px; font-weight: 600; color: var(--navy-900); line-height: 1.1; letter-spacing: -0.005em;
}
.brand .sub {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--mute); margin-top: 5px;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand .sub::before, .brand .sub::after {
  content: ""; width: 14px; height: 1px; background: var(--mute-2); opacity: 0.6;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  position: relative; padding: 6px 0;
}
.nav a:hover { color: var(--navy-900); }
.nav a.active { color: var(--navy-900); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--copper);
}
.header .actions { display: flex; align-items: center; gap: 12px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .utility .grp.secondary { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--copper); color: #fff; }
.btn--primary:hover { background: var(--copper-d); }
.btn--navy { background: var(--navy-900); color: var(--cream); }
.btn--navy:hover { background: var(--navy-800); }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn--ghost:hover { background: var(--navy-900); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--navy-900); border-color: var(--hairline); }
.btn--light:hover { background: #fff; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn .arr { display: inline-block; transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 18px 36px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.trust-strip .item { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.trust-strip .item strong { color: var(--navy-900); font-weight: 600; }
.trust-strip svg { width: 22px; height: 22px; color: var(--copper); }

/* Gas Safe Register — official-style badge */
.gas-safe {
  display: inline-flex; align-items: stretch;
  border-radius: 4px; overflow: hidden;
  font-family: var(--sans); line-height: 1;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,0.08);
}
.gas-safe .y {
  background: #ffd900;
  color: #000;
  padding: 10px 14px 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.gas-safe .y .flame {
  width: 26px; height: 30px; flex-shrink: 0;
}
.gas-safe .y .txt {
  display: flex; flex-direction: column; gap: 3px;
}
.gas-safe .y .t1 {
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  font-family: var(--sans);
}
.gas-safe .y .t2 {
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #000; opacity: 0.85;
}
.gas-safe .n {
  background: #111; color: #fff;
  padding: 10px 14px;
  display: flex; flex-direction: column; justify-content: center;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  font-family: var(--sans);
}
.gas-safe .n .num {
  font-size: 16px; letter-spacing: 0.02em; text-transform: none; font-weight: 700; margin-top: 3px;
  color: #ffd900;
}

/* Larger variant for prominent placement */
.gas-safe--lg .y { padding: 14px 18px 14px 14px; }
.gas-safe--lg .y .flame { width: 34px; height: 40px; }
.gas-safe--lg .y .t1 { font-size: 19px; }
.gas-safe--lg .y .t2 { font-size: 10px; }
.gas-safe--lg .n { padding: 14px 18px; }
.gas-safe--lg .n .num { font-size: 19px; }

/* Compact inline gas safe (small chip) */
.gs-inline {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ffd900; color: #000;
  font-weight: 800; font-size: 11px;
  padding: 4px 9px 4px 7px; border-radius: 3px;
  letter-spacing: 0.04em;
  font-family: var(--sans);
}
.gs-inline svg { width: 11px; height: 13px; }

/* ---------- Card ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--navy-200); }
.card .icn {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--navy-50); color: var(--navy-900);
  display: grid; place-items: center; margin-bottom: 18px;
  border: 1px solid var(--navy-100);
}
.card .icn svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-weight: 600; font-size: 13.5px; color: var(--copper);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--leather);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.02) 0, transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.4) 0 2px, transparent 2px 6px);
  color: var(--pewter-l);
  padding: 72px 0 28px;
}
.footer h4 { color: var(--gold); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { color: var(--pewter-l); display: block; padding: 5px 0; font-size: 14.5px; }
.footer a:hover { color: var(--cream); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 880px) { .footer .cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer .brand .name { color: #fff; }
.footer .brand .sub { color: var(--mute-2); }
.footer .brand .sub::before, .footer .brand .sub::after { background: var(--mute); opacity: 0.5; }
.footer .blurb { margin-top: 16px; font-size: 14px; color: var(--pewter); max-width: 32ch; }
.footer .bot {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--pewter);
}

/* ---------- Icons (line, 1.5 stroke) ---------- */
.ico { width: 1em; height: 1em; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ico--filled { fill: currentColor; stroke: none; }

/* ---------- Section header ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 56px; }
.section-head .lede { margin-top: 14px; }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Page header (non-home) ---------- */
.page-head {
  background-color: var(--leather);
  background-image:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.04) 0, transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(255,255,255,0.025) 0, transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.4) 0 2px, transparent 2px 6px);
  color: var(--cream);
  padding: 80px 0 96px;
  border-bottom: 1px solid #000;
  position: relative; overflow: hidden;
}
.page-head .crumb { font-size: 13px; color: var(--pewter); letter-spacing: 0.04em; margin-bottom: 18px; }
.page-head .crumb a:hover { color: var(--cream); }
.page-head h1 { color: var(--cream); font-size: clamp(40px, 5vw, 64px); max-width: 16ch; }
.page-head .lede { color: var(--pewter-l); margin-top: 18px; max-width: 56ch; }
.page-head .ornament {
  position: absolute; right: -80px; top: -40px; width: 420px; opacity: .08; pointer-events: none;
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 8px;
  padding: 12px 14px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(22,51,89,0.08);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--mute-2); }

/* ---------- Tweaks panel anchor ---------- */
#tweaks-root { position: fixed; bottom: 20px; right: 20px; z-index: 100; }

/* ---------- Image slot styling overrides ---------- */
image-slot[data-filled] {
  --slot-ring: transparent;
}
image-slot {
  display: block;
  width: 100%;
  font-family: var(--sans) !important;
}
image-slot::part(frame) { background: var(--cream-2); }

/* small SVG ornament */
.orn-rule {
  display: flex; align-items: center; gap: 14px; color: var(--gold);
  margin-bottom: 22px;
}
.orn-rule::before, .orn-rule::after { content: ""; height: 1px; background: var(--hairline); flex: 1; }
.orn-rule span { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--mute); }
