/* =========================================
   Grant's Plumbing and Heating
   Mobile-first
   ========================================= */

:root {
  /* Palette */
  --ink: #17130D;
  --navy: #1B2A45;
  --navy-deep: #101A2E;
  --navy-ink: #0A1220;
  --copper: #B26B37;
  --copper-text: #96562A; /* copper darkened to pass 4.5:1 as text on paper/cream */
  --copper-light: #CD8A50;
  --brass: #C79A5B;
  --emergency: #C2401F;
  --emergency-dark: #A3341A;

  --paper: #F3EFE6;
  --paper-2: #EBE4D6;
  --cream: #FBF8F1;
  --white: #FFFFFF;

  --text: #211C14;
  --text-soft: #574F41;
  --text-mute: #6E6656;
  --line: #DCD3C2;
  --line-strong: #CABFA8;

  --on-dark: #F3EFE6;
  --on-dark-soft: rgba(243,239,230,0.66);
  --line-dark: rgba(243,239,230,0.15);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --header-h: 60px;
  --util-h: 34px;

  --wrap: 1200px;
  --gutter: 20px;

  --shadow-sm: 0 1px 3px rgba(23,19,13,0.08);
  --shadow-md: 0 10px 30px rgba(23,19,13,0.12);
  --shadow-lg: 0 24px 60px rgba(23,19,13,0.22);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ===== SHARED TYPE ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-text);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--copper);
  display: inline-block;
}
.eyebrow-light { color: var(--copper-light); }
.eyebrow-light::before { background: var(--copper-light); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--navy);
  font-optical-sizing: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--copper-text);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: gap 0.2s, border-color 0.2s, color 0.2s;
}
.text-link span { transition: transform 0.2s; }
.text-link:hover { border-color: var(--copper-text); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  padding: 10px 16px;
}
.skip-link:focus { top: 12px; }
.text-link:hover span { transform: translateX(4px); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  min-height: 52px;
  border-radius: 2px;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--emergency);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(194,64,31,0.28);
}
.btn-primary:hover { background: var(--emergency-dark); box-shadow: 0 10px 26px rgba(194,64,31,0.34); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(243,239,230,0.4);
}
.btn-ghost:hover { background: rgba(243,239,230,0.1); border-color: rgba(243,239,230,0.75); }

.btn-emergency {
  background: var(--cream);
  color: var(--emergency);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 18px 40px;
  min-height: 64px;
  box-shadow: var(--shadow-lg);
}
.btn-emergency:hover { background: var(--white); transform: translateY(-2px); }

/* ===== UTILITY BAR ===== */
.utility-bar {
  background: var(--navy-ink);
  color: var(--on-dark-soft);
  height: var(--util-h);
  font-size: 0.78rem;
  position: relative;
  z-index: 60;
}
.utility-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  white-space: nowrap;
}
.util-loc { display: none; align-items: center; gap: 7px; color: var(--on-dark-soft); }
.util-loc svg { color: var(--copper-light); }
.util-right { display: flex; align-items: center; gap: 16px; }
.util-hours { display: inline-flex; align-items: center; gap: 7px; color: var(--on-dark-soft); }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #46C97E;
  box-shadow: 0 0 0 0 rgba(70,201,126,0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .pulse-dot { animation: pulse 2.4s infinite; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(70,201,126,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(70,201,126,0); }
  100% { box-shadow: 0 0 0 0 rgba(70,201,126,0); }
}
.util-phone { color: var(--on-dark); font-weight: 600; letter-spacing: 0.01em; }
.util-phone:hover { color: var(--white); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(243,239,230,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.wordmark-icon { color: var(--navy); display: flex; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.wordmark-text span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 2px;
}

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--copper);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after { width: 100%; }

.header-cta {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 2px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--navy-deep); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav.open {
  display: block;
  position: absolute;
  top: var(--header-h); left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 8px var(--gutter) 16px;
}
.main-nav.open ul { flex-direction: column; gap: 0; }
.main-nav.open a {
  display: block;
  padding: 15px 4px;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.main-nav.open li:last-child a { border-bottom: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  background: var(--navy-ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,18,32,0.55) 0%, rgba(10,18,32,0.15) 35%, rgba(10,18,32,0.55) 72%, rgba(10,18,32,0.92) 100%),
    linear-gradient(90deg, rgba(10,18,32,0.7) 0%, rgba(10,18,32,0.2) 55%, rgba(10,18,32,0) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 54px;
}
.hero-content { max-width: 660px; }
.hero-content .eyebrow { margin-bottom: 20px; }
.hero h1 {
  color: var(--cream);
  font-weight: 500;
  font-size: clamp(2.5rem, 8.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
}
.hero-sub {
  color: rgba(243,239,230,0.82);
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  line-height: 1.55;
  max-width: 540px;
  margin: 22px 0 30px;
}
.hero-ctas { display: flex; flex-direction: column; gap: 12px; }
.hero-ctas .btn { width: 100%; }

/* ===== FACTS BAR ===== */
.facts-bar {
  background: var(--navy);
  border-bottom: 1px solid var(--navy-deep);
}
.facts-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.fact {
  padding: 22px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid var(--line-dark);
  border-right: 1px solid var(--line-dark);
}
.fact:nth-child(2n) { border-right: none; }
.fact:nth-child(n+3) { border-bottom: none; }
.fact strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--brass);
  line-height: 1;
}
.fact span { font-size: 0.82rem; color: var(--on-dark-soft); }

/* ===== STATEMENT ===== */
.statement {
  padding: clamp(56px, 9vw, 110px) var(--gutter);
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.statement-text .eyebrow { margin-bottom: 24px; }
.statement-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 20ch;
}
.statement-body {
  margin-top: 22px;
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 46ch;
}
.statement-text .text-link { margin-top: 26px; }
.statement-media {
  position: relative;
}
.statement-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.statement-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--navy);
  color: var(--cream);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.statement-badge strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--brass);
  line-height: 1;
}
.statement-badge span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

/* ===== SECTION HEAD ===== */
.section-head {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 500;
}
.section-lead {
  margin-top: 16px;
  font-size: clamp(1.02rem, 2vw, 1.14rem);
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 52ch;
}

/* ===== SERVICES ===== */
.services {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: clamp(60px, 9vw, 104px) 0;
}
.services .section-head { margin-bottom: clamp(36px, 5vw, 56px); }

/* Three equal pillars */
.pillars {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 18px;
}
.pillar {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}
.pillar-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.pillar:hover .pillar-media img { transform: scale(1.04); }
.pillar-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px;
}
.pillar-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: -52px 0 18px;
  background: var(--navy);
  color: var(--brass);
}
.pillar-body h3 {
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 500;
  margin-bottom: 10px;
}
.pillar-body > p {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.pillar-list {
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}
.pillar-list li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text);
}
.pillar-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--copper);
}
.pillar .text-link { margin-top: auto; align-self: flex-start; }

/* Emergency strip (24/7 is a differentiator, not a fourth service) */
.emergency-strip {
  max-width: var(--wrap);
  margin: 18px auto 0;
  padding: 0 var(--gutter);
}
.es-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: var(--navy);
  border-left: 4px solid var(--emergency);
  padding: 26px 24px;
}
.es-text {
  color: var(--on-dark-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 60ch;
}
.es-text strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--cream);
}

/* ===== GALLERY ===== */
.gallery {
  background: var(--navy-deep);
  color: var(--on-dark);
  padding: clamp(56px, 8vw, 96px) 0;
  overflow: hidden;
}
.gallery-head {
  max-width: var(--wrap);
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding: 0 var(--gutter);
}
.gallery-head .eyebrow { margin-bottom: 16px; }
.gallery-head h2 {
  color: var(--cream);
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  font-weight: 500;
}
.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 14px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gtile {
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy-ink);
}
.gtile img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.4s;
}
.gtile:hover img { transform: scale(1.04); filter: saturate(1.05); }

/* ===== CREDIBILITY ===== */
.credibility {
  background: var(--navy);
  color: var(--on-dark);
  padding: clamp(64px, 10vw, 116px) 0 0;
}
.cred-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(56px, 8vw, 92px);
}
.cred-lead h2 {
  color: var(--cream);
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
  font-weight: 500;
  margin: 20px 0 22px;
}
.cred-lead p {
  color: var(--on-dark-soft);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 52ch;
}
.cred-pull {
  margin-top: 30px;
  padding-left: 22px;
  border-left: 2px solid var(--copper);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.4;
  color: var(--cream);
}
.cred-pull cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brass);
}
.cred-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.stat {
  padding: 26px 22px;
  border-bottom: 1px solid var(--line-dark);
  border-right: 1px solid var(--line-dark);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  line-height: 1;
  color: var(--brass);
  margin-bottom: 10px;
}
.stat span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--on-dark-soft);
}

/* ===== REVIEWS ===== */
.reviews {
  background: var(--paper);
  padding: clamp(64px, 10vw, 116px) 0;
}
.reviews-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.reviews-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.reviews-rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stars { color: var(--brass); font-size: 1.15rem; letter-spacing: 2px; }
.star-half {
  background: linear-gradient(90deg, var(--brass) 30%, var(--line-strong) 30%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reviews-rating > span { font-size: 0.9rem; color: var(--text-soft); }

.review-feature {
  border-top: 2px solid var(--navy);
  padding-top: 30px;
  margin-bottom: 44px;
}
.review-feature p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.8vw, 2.15rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.review-feature footer {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.review-feature footer strong {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.review-feature footer span { font-size: 0.82rem; color: var(--text-mute); }

.review-pair {
  display: grid;
  gap: 28px;
  padding-top: 8px;
}
.review-small { border-top: 1px solid var(--line); padding-top: 22px; }
.review-stars { color: var(--brass); font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 14px; }
.review-small p {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--text);
  margin-bottom: 16px;
}
.review-small footer { display: flex; align-items: baseline; gap: 10px; }
.review-small footer strong { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.review-small footer span { font-size: 0.78rem; color: var(--text-mute); }

.reviews-cta { margin-top: 40px; }

/* ===== SERVICE AREA ===== */
.area {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: clamp(64px, 10vw, 116px) 0;
}
.area-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.area-media { overflow: hidden; background: var(--paper-2); }
.area-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.area-content { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.area-head .eyebrow { margin-bottom: 18px; }
.area-head h2 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 500;
  margin-bottom: 16px;
}
.area-head p { color: var(--text-soft); font-size: 1.05rem; max-width: 40ch; }
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  border-top: 1px solid var(--line);
}
.area-list li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 4.5vw, 2.1rem);
  color: var(--navy);
  letter-spacing: -0.01em;
  padding: 14px 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color 0.2s, padding-left 0.2s;
}
.area-list li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.area-list li:hover { color: var(--navy); padding-left: 8px; }
.area-list li:hover::before { background: var(--copper); }
.area-list .area-primary { color: var(--navy); }
.area-list .area-primary::before { background: var(--copper); }
.area-more {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 52ch;
}
.area-more strong { color: var(--navy); font-weight: 600; }
.area-more a {
  color: var(--copper-text);
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
}

/* ===== EMERGENCY CTA ===== */
.emergency {
  position: relative;
  overflow: hidden;
  background: var(--emergency-dark);
  color: var(--cream);
  text-align: center;
}
.emergency-media { position: absolute; inset: 0; z-index: 0; }
.emergency-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.4);
}
.emergency::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 90% at 50% 40%, rgba(178,58,28,0.55), rgba(122,36,16,0.9));
}
.emergency-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 11vw, 120px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.emergency .eyebrow { justify-content: center; margin-bottom: 20px; color: #F6C9AE; }
.emergency .eyebrow::before { background: #F6C9AE; }
.emergency h2 {
  color: var(--cream);
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  font-weight: 500;
  line-height: 0.98;
}
.emergency p {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: rgba(251,248,241,0.9);
  max-width: 44ch;
  margin: 20px 0 34px;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--paper);
  padding: clamp(64px, 10vw, 116px) 0;
}
.contact-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}
.contact-info .eyebrow { margin-bottom: 18px; }
.contact-info h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 500;
  margin-bottom: 18px;
}
.contact-info > p {
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 30px;
}
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-details li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 1rem;
}
.contact-details li:last-child { border-bottom: 1px solid var(--line); }
.contact-details svg { color: var(--copper); flex-shrink: 0; }
.contact-info { min-width: 0; }
.contact-details a { color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.contact-details a:hover { color: var(--copper-text); }

/* Form */
.contact-form {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 40px);
}
.form-row { display: grid; gap: 0; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
input, select, textarea {
  font: inherit;
  color: var(--text);
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line-strong);
  padding: 10px 2px;
  border-radius: 0;
  transition: border-color 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--text-mute); opacity: 0.7; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--copper);
}
textarea { resize: vertical; min-height: 96px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B26B37' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
  cursor: pointer;
}
.form-group label .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.btn-submit { width: 100%; margin-top: 4px; }
.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-top: 16px;
}
.form-note a { color: var(--emergency); font-weight: 600; }
.form-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-mute);
  text-align: center;
  overflow-wrap: anywhere;
}
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border-left: 3px solid var(--navy);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.form-status a { color: var(--emergency); font-weight: 700; text-decoration: underline; }

.form-success {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: clamp(28px, 5vw, 44px);
  color: var(--text-soft);
}
.form-success p { font-size: 1.02rem; line-height: 1.6; }
.form-success a { color: var(--emergency); font-weight: 700; }

.thanks-page { padding-bottom: 0; }
.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px var(--gutter);
}
.thanks .form-success { max-width: 560px; }
.thanks h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 500; margin-bottom: 12px; }
.thanks-back { margin-top: 22px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-ink);
  color: var(--on-dark-soft);
  padding: clamp(52px, 8vw, 84px) 0 24px;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cream);
  line-height: 1;
}
.footer-wordmark span { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-top: 8px; }
.footer-tag { margin: 18px 0; font-size: 0.95rem; line-height: 1.6; max-width: 34ch; }
.footer-phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--cream);
  display: inline-block;
}
.footer-phone:hover { color: var(--brass); }
.footer-hours { color: var(--brass); font-size: 0.85rem; font-weight: 600; margin-top: 6px; }
.footer-heading {
  font-family: var(--font-sans);
  line-height: 1.4;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 16px;
}
.footer-links a { display: inline-block; padding: 7px 0; font-size: 0.95rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--on-dark-soft);
}

/* ===== MOBILE CALL BAR ===== */
.mobile-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 45;
  background: var(--emergency);
  box-shadow: 0 -4px 20px rgba(23,19,13,0.18);
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--cream);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px;
  min-height: 56px;
}
.mobile-call-bar a:active { background: var(--emergency-dark); }
body { padding-bottom: 56px; }

/* =========================================
   TABLET — 680px+
   ========================================= */
@media (min-width: 680px) {
  :root { --gutter: 32px; }

  .utility-inner { justify-content: space-between; }
  .util-loc { display: inline-flex; }

  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { width: auto; }

  .facts-inner { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: none; }
  .fact:nth-child(n+3) { border-bottom: none; }
  .fact:last-child { border-right: none; }

  .statement { grid-template-columns: 1.05fr 0.95fr; }

  .pillar { flex-direction: row; }
  .pillar-media { flex: 0 0 40%; aspect-ratio: auto; }
  .pillar-icon { margin-top: 0; }

  .es-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
  .es-inner .btn { flex-shrink: 0; }

  .cred-inner { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .cred-stats { grid-template-columns: 1fr 1fr; }

  .review-pair { grid-template-columns: 1fr 1fr; gap: 36px; }

  .gallery-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    max-width: var(--wrap);
    margin: 0 auto;
  }
  /* Wide tile takes its height from its row-mates, not from its own image */
  .gtile-wide { grid-column: span 2; aspect-ratio: auto; position: relative; }
  .gtile-wide img { position: absolute; inset: 0; }

  .area-inner { grid-template-columns: 0.9fr 1.1fr; }
  .area-list li { width: 100%; }

  .contact-inner { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 20px; }

  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .mobile-call-bar { display: none; }
  body { padding-bottom: 0; }
}

/* =========================================
   DESKTOP — 980px+
   ========================================= */
@media (min-width: 980px) {
  :root { --header-h: 68px; --gutter: 40px; }

  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }

  .hero { min-height: min(90vh, 820px); }
  .hero-inner { padding-bottom: 64px; }

  .statement { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }

  .pillars { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pillar { flex-direction: column; }
  .pillar-media { flex: none; aspect-ratio: 4 / 3; }
  .pillar-icon { margin-top: -52px; }

  .cred-stats { grid-template-columns: repeat(4, 1fr); }
  .stat strong { font-size: 2.9rem; }

  .gallery-strip { gap: 18px; }

  .area-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .area-list li { width: auto; }
}

/* =========================================
   WIDE — 1280px+
   ========================================= */
@media (min-width: 1280px) {
  .hero h1 { font-size: 5.2rem; }
}

/* =========================================
   ANIMATIONS
   ========================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  }
  .reveal.visible { opacity: 1; transform: none; }
}

/* =========================================
   ACCESSIBILITY
   ========================================= */
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
/* Copper disappears against the red panels, so switch to cream there */
.emergency :focus-visible,
.mobile-call-bar :focus-visible { outline-color: var(--cream); }
@media (forced-colors: active) {
  .btn { border: 2px solid; }
}
