/* ChattanoogaTNelectrician.com: base styles (tokens, reset, typography, layout primitives).
   components.css holds UI components; responsive.css holds breakpoints, reduced motion and print. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal-950: #062624;
  --teal-900: #0a3533;
  --teal-800: #0d4743;
  --teal-700: #13605a;
  --teal-600: #1b7a72;
  --teal-100: #e1eeec;
  --teal-50: #f0f7f6;
  --charcoal: #1e2325;
  --ink: #2a3033;
  --muted: #566064;
  --line: #e3dfd6;
  --line-strong: #cfc9bc;
  --cream: #f7f5f0;
  --sand: #efe9dd;
  --white: #ffffff;
  --amber: #f2a01e;
  --amber-600: #e08c0b;
  --amber-100: #fdf0d8;
  --red: #b3261e;
  --red-100: #fbe9e7;
  --green: #1d6b3a;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(10, 30, 30, .06), 0 2px 8px rgba(10, 30, 30, .05);
  --shadow: 0 6px 24px rgba(10, 35, 33, .10);
  --shadow-l: 0 18px 50px rgba(6, 30, 28, .18);
  --gutter: 16px;
  --maxw: 1240px;
  --section: 64px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  overflow-wrap: break-word;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-900); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
main:focus { outline: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { color: var(--charcoal); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.35rem); }
h3 { font-size: 1.22rem; line-height: 1.3; }
h3 a { color: inherit; text-decoration: none; }
h3 a:hover { color: var(--teal-700); text-decoration: underline; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--charcoal); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-s); font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding: var(--section) 0; }
.section:not([class*="band--"]) + .section:not([class*="band--"]) { padding-top: 0; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--muted); }

.band--cream { background: var(--cream); }
.band--teal { background: var(--teal-800); color: #e7f1ef; }
.band--dark { background: var(--teal-950); color: #dbe9e7; }
.band--emergency { background: linear-gradient(135deg, #2a1310 0%, #3d1813 60%, #4a1d14 100%); color: #f7e7e3; }
.band--teal h2, .band--teal h3, .band--dark h2, .band--dark h3, .band--emergency h2, .band--emergency h3 { color: var(--white); }
.band--teal a:not(.btn), .band--dark a:not(.btn) { color: #ffd38a; }
.band--teal a:not(.btn):hover, .band--dark a:not(.btn):hover { color: var(--white); }

.section__head { max-width: 720px; margin-bottom: 2rem; }
.section__head--wide { max-width: 860px; }
.section__head p:last-child { margin-bottom: 0; }
.group-head { display: grid; gap: .5rem 2.5rem; margin-bottom: 1.75rem; align-items: end; }
.group-head h2 { margin-bottom: 0; }
.group-head > p { margin: 0; color: var(--muted); max-width: 560px; }

.eyebrow {
  font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700); margin: 0 0 .75rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); display: inline-block; }
.eyebrow--light { color: #ffd38a; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); line-height: 1.6; color: var(--ink); max-width: 640px; }

.split { display: grid; gap: 2rem; align-items: center; }
.split > *, .hero-split > *, .hero-dark > *, .content-layout > *, .faq-layout > *, .cta-final__inner > * { min-width: 0; }
.split__media img, .split > div > .photo { border-radius: var(--radius-l); box-shadow: var(--shadow); width: 100%; }

.content-layout { display: grid; gap: 2.5rem; }
.prose { min-width: 0; max-width: 760px; }
.prose > section { margin-bottom: 2.5rem; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 1.95rem); }
.prose h3 { font-size: 1.12rem; }
.sidebar { display: grid; gap: 1.25rem; align-content: start; }

.tiles { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
