/* SA Metro Roofing & Sheetmetal, LLC
   Palette: navy #1b365d, gold #c4a574, paper #f6f3ed
   Contrast (WCAG AA+):
   - Navy on paper 10.95:1
   - Paper/white on navy 10.95–12.12:1
   - Gold on navy 5.18:1 (AA for normal text; used as accent, not body)
   - Navy on gold 5.18:1 (badge / gold buttons)
   - Ink #1a1a1a on paper 15.72:1
   - Body muted #2c3a4d on paper 10.42:1
   Gold on paper is 2.11:1 — never used for text.
   Name color is #ffffff on navy/hero, or navy on paper — never gray. */

:root {
  --navy: #1b365d;
  --navy-dark: #12243f;
  --gold: #c4a574;
  --gold-bright: #d4b896; /* 6.41:1 on navy; large accent only */
  --paper: #f6f3ed;
  --ink: #1a1a1a;
  --ink-muted: #2c3a4d;
  --white: #ffffff;
  --cream: #e8e2d6; /* 9.40:1 on navy — body on dark */
  --focus-gold: #e8d5b5;
  --radius: 6px;
  --wrap: 68rem;
  --gutter: 1.25rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, "Segoe UI", Calibri, Arial, sans-serif;
  font-size: 1rem; /* 16px */
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  min-width: 0;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: #12243f;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.hero a:focus-visible,
.site-header a:focus-visible,
.site-footer a:focus-visible,
.btn:focus-visible {
  outline-color: var(--focus-gold);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 80;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  min-height: 48px;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

/* ---------- Sticky top bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  padding: 0.45rem 0;
  min-height: 3.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-width: 0;
}

.logo-header {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

a.header-brand {
  text-decoration: none;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

a.header-brand:hover {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.site-header h1,
.site-header .site-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.9375rem; /* 15px — one heading, natural wrap only */
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  min-width: 0;
}

.header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  margin-left: auto;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.4rem 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  white-space: nowrap;
}




.lang-nudge {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.lang-nudge a {
  color: var(--gold-bright);
}

.header-phone:hover {
  background: rgba(196, 165, 116, 0.16);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

@media (max-width: 639px) {
  /* Compact call chip — easy tap, not a full-width banner */
  .header-cta {
    flex: 0 0 auto;
    margin-left: auto;
    align-items: flex-end;
  }

  .header-phone {
    width: auto;
    min-height: 2.25rem;
    padding: 0.28rem 0.55rem;
    font-size: 0.8125rem; /* 13px */
    font-weight: 600;
    border-width: 1px;
  }

}

/* ---------- Photo hero (video kept as fallback) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  min-height: calc(100svh - 7rem);
  min-height: calc(100dvh - 7rem);
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 8px solid var(--gold);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  background-color: var(--navy-dark);
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-crossfade 16s ease-in-out infinite;
}

.hero-slide-b {
  animation-delay: -8s;
}

/* Base visibility: house shows even if animation is blocked */
.hero-slide-a {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  animation: hero-ken 16s ease-in-out infinite alternate;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: 2;
  /* Lighter so the Big Sky house reads clearly behind the type */
  background: linear-gradient(
    180deg,
    rgba(18, 36, 63, 0.55) 0%,
    rgba(27, 54, 93, 0.62) 45%,
    rgba(18, 36, 63, 0.78) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 2.25rem 0 2.75rem;
  max-width: 42rem;
  margin-inline: auto 0;
}

.logo-hero {
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.hero-place {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.125rem; /* 18px — lead line on the hero */
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-name {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.125rem; /* 18px on phone — modest, max 1.25rem */
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  margin-bottom: 0.75rem;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.lead {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.5;
  color: var(--cream);
  max-width: 40rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-actions .btn {
  width: 100%;
  max-width: 22rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  border-radius: var(--radius);
  text-align: center;
  width: 100%;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border: 2px solid var(--navy);
}

.btn-gold:hover {
  background: var(--gold-bright);
  color: var(--navy-dark);
  border-color: var(--navy-dark);
}

button.btn-gold,
a.btn-gold {
  border: 2px solid var(--navy);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  border: 2px solid var(--gold);
}

.btn-ghost:hover {
  background: rgba(196, 165, 116, 0.15);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

/* ---------- GAF trust — slim strip, quiet ---------- */
.gaf {
  background: var(--paper);
  border-bottom: 1px solid #ddd6c8;
  padding: 0.75rem 0;
}

.gaf-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
}

.gaf-badge {
  display: block;
  width: 104px;
  height: auto;
  background: transparent;
  flex-shrink: 0;
}

.gaf-copy {
  min-width: 0;
}

.gaf-mark {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem; /* 16px */
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.gaf p,
.gaf-line {
  color: var(--ink-muted);
  margin-bottom: 0;
  font-size: 0.9375rem; /* 15px — keeps three lines beside the diamond on phones */
  line-height: 1.35;
}

.gaf-line + .gaf-line {
  margin-top: 0.1rem;
}

.gaf-mark {
  line-height: 1.2;
}

.gaf-link {
  display: inline;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Services ---------- */
.services {
  background: var(--paper);
  padding: 2.25rem 0 2.5rem;
}

.services h2,
.repairs-first h2,
.area h2,
.claims h2,
.contact h2,
.paths h2,
.page-body h2,
.prose h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  max-width: 40rem;
}

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.card {
  background: var(--white);
  border: 1px solid #ddd6c8;
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem;
  min-width: 0;
}

.card h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.1875rem; /* 19px */
  font-weight: 700;
  color: var(--navy);
  margin: 0.35rem 0 0.35rem;
}

.card p {
  color: var(--ink-muted);
  font-size: 1rem;
}

.icon {
  display: block;
  width: 52px;
  height: 52px;
  color: var(--navy);
}

.icon svg,
.icon img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
}


/* ---------- Service area + claims + repairs-first ---------- */
.area,
.claims,
.repairs-first {
  background: #efe9df;
  padding: 2.25rem 0;
}

.area-inner,
.claims-inner,
.repairs-first-inner {
  max-width: 40rem;
}

.area p,
.claims p,
.repairs-first p {
  color: var(--ink);
  font-size: 1.0625rem;
}

.claims p + p,
.repairs-first p + p {
  margin-top: 0.75rem;
}

.claims,
.repairs-first {
  border-top: 1px solid #ddd6c8;
}

.claim-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  max-width: min(100%, 36rem);
  justify-items: stretch;
}

.claim-card {
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid #d5cec2;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(18, 36, 63, 0.06);
  cursor: zoom-in;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.claim-card img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.claim-pair__hint {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #5c6570;
}

@media (min-width: 768px) {
  .claim-pair {
    max-width: 42rem;
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .claim-pair {
    max-width: 48rem;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .claim-pair__hint {
    display: none;
  }
}

/* Claim page enlarge (tap / click) */
.claim-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 22, 40, 0.88);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.claim-lightbox[hidden] {
  display: none !important;
}

.claim-lightbox__img {
  display: block;
  max-width: min(100%, 52rem);
  width: auto;
  height: auto;
  margin: auto;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  background: #f6f3ed;
}

.claim-lightbox__close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1001;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 243, 237, 0.95);
  color: #12243f;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

body.claim-lightbox-open {
  overflow: hidden;
}


/* ---------- Work photos ---------- */
.work-band {
  background: #efe9df;
  padding: 0 0 2.25rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.work-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.area {
  padding-top: 1.5rem;
  padding-bottom: 1.75rem;
}

.area h2 {
  font-size: 1.25rem;
}

.area p {
  font-size: 1rem;
  color: var(--ink-muted);
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-grid img {
    height: auto;
  }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--paper);
  padding: 2.25rem 0 2.5rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.contact-hit {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid #ddd6c8;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}

a.contact-hit:hover {
  border-left-color: var(--navy);
  background: #fffdf9;
  color: var(--ink);
}

.contact-static {
  margin: 0;
}

.contact-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.contact-value {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  word-break: break-word;
}

a.contact-hit .contact-value {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}


.contact-form {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid #ddd6c8;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
}

.form-row label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.form-row .optional {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
}

.form-hint {
  grid-column: 1 / -1;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cfc6b6;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.form-row textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-actions {
  margin: 0.25rem 0 0;
}

.form-actions .btn {
  cursor: pointer;
  width: 100%;
  /* keep .btn-gold navy border — do not strip it */
  border: 2px solid var(--navy);
}

@media (min-width: 700px) {
  .contact-form {
    grid-template-columns: 1fr 1fr;
    padding: 1.15rem 1.25rem;
  }

  .form-row-full,
  .form-actions {
    grid-column: 1 / -1;
  }

  .form-actions .btn {
    width: auto;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #c5cdd6;
  padding: 1.5rem 0 1.75rem;
  font-size: 0.9375rem;
  border-top: 3px solid var(--gold);
}

.footer-name {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  margin-bottom: 0.35rem;
}


.footer-phone,
.site-footer a.footer-phone {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-decoration: none;
}

.site-footer a.footer-phone:hover {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Keep the full phone number together so it wraps to the next line as one unit */
a[href^="tel:"]:not(.btn) {
  white-space: nowrap;
}

.contact-value {
  white-space: nowrap;
}


/* ---------- Tablet 768 ---------- */
@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: 4rem;
    padding: 0.45rem 0;
  }

  .logo-header {
    width: 56px;
    height: 56px;
  }

  .site-header h1,
  .site-header .site-title {
    font-size: 1rem; /* 16px */
    overflow-wrap: normal;
  }

  .hero {
    min-height: calc(100svh - 4.25rem);
    min-height: calc(100dvh - 4.25rem);
  }

  .hero-inner {
    padding: 3rem 0 3.5rem;
  }

  .logo-hero {
    width: 112px;
    height: 112px;
  }

  .hero-place {
    font-size: 1.25rem; /* 20px */
  }

  .hero-name {
    font-size: 1.25rem; /* 20px — still modest */
  }

  .lead {
    font-size: 1.125rem; /* 18px */
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn {
    width: auto;
    min-width: 14rem;
  }

  .gaf {
    padding: 0.9rem 0;
  }

  .gaf-mark {
    font-size: 1.0625rem;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services h2,
  .repairs-first h2,
  .area h2,
  .claims h2,
  .contact h2,
  .paths h2,
  .page-body h2,
  .prose h2 {
    font-size: 1.75rem;
  }
}

/* ---------- Desktop 1100 / 1280 ---------- */
@media (min-width: 1100px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  :root {
    --gutter: 2.5rem;
  }

  .site-header h1,
  .site-header .site-title {
    font-size: 1.125rem; /* 18px */
  }

  .hero-name {
    font-size: 1.25rem; /* 20px — never a billboard */
  }

  .logo-hero {
    width: 112px;
    height: 112px;
  }

  .card {
    padding: 1.15rem 1rem 1.25rem;
  }
}

@keyframes hero-crossfade {
  0%,
  40% {
    opacity: 1;
  }
  50%,
  90% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes hero-ken {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.06) translate(-1.2%, -0.8%);
  }
}

/* Phones: freeze hero motion, shorter hero, no giant GPU layers — those hitch into GAF. */
@media (max-width: 767px) {
  .hero {
    /* Tall house backdrop like live — not a short navy strip */
    min-height: min(92svh, 42rem);
    min-height: min(92dvh, 42rem);
  }

  .hero-inner {
    padding: 1.75rem 0 2.25rem;
  }

  .hero-slide {
    animation: none;
  }

  .hero-slide-a {
    opacity: 1;
  }

  .hero-slide-b {
    display: none;
  }

  .hero-slide img {
    animation: none;
    transform: none;
  }

  .logo-hero {
    width: 72px;
    height: 72px;
    margin-bottom: 0.5rem;
    filter: none;
  }

  .lead {
    margin-bottom: 1rem;
  }

  .site-header {
    position: static;
  }

  /* Mobile: form + header/footer phone is enough — no triple contact stack */
  .contact-list {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-slide {
    animation: none;
    opacity: 0;
  }

  .hero-slide-a {
    opacity: 1;
  }

  .hero-slide img {
    animation: none;
    transform: none;
  }

  .hero-video {
    display: none !important;
  }
}
/* ---------- Inner pages ---------- */
.page-head {
  background: var(--navy);
  color: #ffffff;
  padding: 1.75rem 0 2rem;
  border-bottom: 6px solid var(--gold);
}

.page-head h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  margin-bottom: 0.5rem;
}

.page-head .lede {
  color: var(--cream);
  max-width: 40rem;
  font-size: 1.0625rem;
}

.page-body {
  background: var(--paper);
  padding: 2rem 0 2.5rem;
}

.prose {
  max-width: 40rem;
}

.prose p,
.prose ul,
.prose ol {
  color: var(--ink);
  font-size: 1.0625rem;
  margin-bottom: 0.9rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose h2 {
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}


.prose figure {
  margin: 1.1rem 0 1.35rem;
}

.prose figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.prose figcaption {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 0.4rem;
}

.prose h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.25rem 0 0.4rem;
}

.note {
  background: var(--white);
  border: 1px solid #ddd6c8;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 1.1rem 0;
  color: var(--ink);
}

.note p:last-child {
  margin-bottom: 0;
}

.link-cards {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.link-cards a {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.link-cards .card:hover {
  border-top-color: var(--gold);
  background: #fffdf9;
}

.crumb {
  font-size: 0.875rem;
  color: var(--cream);
  margin-bottom: 0.65rem;
}

.crumb a {
  color: var(--gold-bright);
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.75rem;
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
}

.page-cta .btn {
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 768px) {
  .prose .page-cta .btn,
  .page-cta .btn {
    width: auto;
    min-width: 12rem;
  }
}

.btn-navy {
  background: var(--navy);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  border: 2px solid var(--navy);
  text-decoration: none;
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.area-links,
.home-area-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 1rem;
  padding: 0;
}

.area-links a,
.home-area-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  background: var(--white);
  border: 1px solid #ddd6c8;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
}

.area-links a:hover,
.home-area-links a:hover {
  border-color: var(--gold);
  background: #fffdf9;
}

.caption {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}

.work-band--tight {
  padding-top: 0.25rem;
}

.footer-nav {
  margin: 0.75rem 0;
}

.footer-nav a {
  color: var(--gold-bright);
  text-decoration: none;
  margin-right: 0.85rem;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: var(--gold-bright);
}

@media (min-width: 768px) {
  .page-head h1 {
    font-size: 1.75rem;
  }

  .link-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .link-cards.thirds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.prose ul.link-cards,
.prose ul.area-links,
.prose ul.home-area-links {
  padding-left: 0;
  list-style: none;
}

.prose .page-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.75rem;
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
}

.prose .note p {
  margin-bottom: 0.5rem;
}

/* ---------- Site nav + hamburger (phone & tablet) ---------- */
/* Row 1: logo + name. Row 2: sandwich left, phone right. Panel opens to the right. */
.header-inner {
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}

.header-brand {
  flex: 1 1 100%;
  order: 0;
}

.site-nav {
  flex: 0 0 auto;
  order: 2;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0;
}

.site-nav a:hover {
  color: var(--gold-bright);
  -webkit-text-fill-color: var(--gold-bright);
  background: rgba(196, 165, 116, 0.12);
}

.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
  -webkit-text-fill-color: var(--gold-bright);
}

.header-cta {
  order: 3;
  margin-left: auto;
}

.nav-fold {
  min-width: 0;
  position: relative;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.nav-toggle::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  box-shadow: 0 -7px 0 var(--gold), 0 7px 0 var(--gold);
}

.nav-fold.is-open > .nav-toggle {
  background: rgba(196, 165, 116, 0.15);
}

/* Sandwich left; panel opens to the right */
.nav-menu {
  display: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: auto;
  z-index: 60;
  width: min(16rem, calc(100vw - (var(--gutter) * 2)));
  min-width: 11rem;
  padding: 0;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.nav-fold.is-open > .nav-menu {
  display: flex;
}

.nav-menu li {
  margin: 0;
  border-bottom: 1px solid rgba(196, 165, 116, 0.45);
}

.nav-menu li:last-child {
  border-bottom: 0;
}

.nav-menu a {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  border-radius: 0;
}

/* Desktop: inline links, no hamburger */
@media (min-width: 1024px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .header-brand {
    flex: 1 1 auto;
  }

  .site-nav {
    flex: 1 1 auto;
    order: 0;
    justify-content: center;
  }

  .header-cta {
    order: 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .nav-menu[hidden] {
    display: flex !important;
  }

  .nav-menu li {
    border-bottom: 0;
  }

  .nav-menu a {
    width: auto;
    min-height: 44px;
    border-radius: var(--radius);
  }
}


/* ---------- Homepage path cards ---------- */
.paths {
  background: var(--paper);
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid #ddd6c8;
}

.paths .link-cards {
  margin-top: 0.25rem;
}

/* ---------- Roof map (original SVG, not GAF art) ---------- */
.roof-map {
  margin: 1.25rem 0 1.5rem;
  background: var(--white);
  border: 1px solid #ddd6c8;
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem 1rem;
}

.prose figure.roof-map {
  max-width: none;
}

.prose figure.roof-map img,
.roof-map img,
.roof-map svg {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
  background: #f6f3ed;
  border-radius: 4px;
}

.roof-map figcaption p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0.65rem 0 0.55rem;
}

.roof-map-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: roof;
  display: grid;
  gap: 0.45rem;
}

.prose ol.roof-map-legend {
  padding-left: 0;
  list-style: none;
}

.roof-map-legend li {
  counter-increment: roof;
  position: relative;
  padding-left: 2.1rem;
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
}

.roof-map-legend li::before {
  content: counter(roof);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .roof-map-legend {
    grid-template-columns: 1fr 1fr;
  }
}


.commercial-teaser {
  padding: 2rem 0 2.25rem;
  background: var(--paper, #f7f5f1);
  border-bottom: 1px solid rgba(15, 32, 56, 0.08);
}

.commercial-teaser h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 0.4rem;
}

.commercial-teaser a {
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.commercial-video {
  margin: 0 0 1.25rem;
}

.commercial-video video {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius, 6px);
  background: #0f2038;
}

.commercial-video-note {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  color: rgba(15, 32, 56, 0.72);
  text-align: center;
  line-height: 1.35;
}

.commercial-grid figure {
  margin: 0;
}

.commercial-grid {
  margin-bottom: 1.75rem;
}

.commercial-grid img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: var(--radius, 6px);
  display: block;
  background: #efe9df;
}

.commercial-grid figcaption {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  color: rgba(15, 32, 56, 0.72);
  line-height: 1.35;
}

/* ========== Revamp: mega-menu, dense footer, service pages, matrix, galleries ========== */

.nav-parent {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  background: transparent;
  border: 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}

.nav-parent::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  margin-top: -0.2rem;
}

.has-mega {
  position: relative;
}

.mega {
  display: none;
}

.mega-mobile {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
  background: rgba(0, 0, 0, 0.18);
  display: none;
}
.has-mega.is-mega-open > .mega-mobile {
  display: block;
}
.has-mega.is-mega-open > .nav-parent::after {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}

.mega-mobile a {
  padding-left: 1.35rem !important;
  font-size: 0.95rem;
  color: var(--cream) !important;
  -webkit-text-fill-color: var(--cream) !important;
}

.nav-lang a {
  color: var(--gold-bright) !important;
  -webkit-text-fill-color: var(--gold-bright) !important;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .nav-parent {
    width: auto;
    min-height: 44px;
    border-radius: var(--radius);
    padding: 0.45rem 0.7rem;
  }

  .nav-parent:hover,
  .has-mega:focus-within > .nav-parent {
    background: rgba(196, 165, 116, 0.15);
    color: var(--gold-bright);
    -webkit-text-fill-color: var(--gold-bright);
  }

  .mega-mobile {
    display: none !important;
  }

  /* Invisible bridge so the pointer can move from Services into the panel without closing */
  .has-mega::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    top: 100%;
    height: 0.55rem;
  }

  .mega {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-35%);
    top: calc(100% + 0.35rem);
    z-index: 70;
    background: var(--white);
    color: var(--ink);
    border: 2px solid var(--navy);
    border-radius: var(--radius);
    padding: 1.1rem 1.15rem;
    min-width: min(92vw, 48rem);
    box-shadow: 0 14px 32px rgba(18, 36, 63, 0.28);
  }

  .has-mega:hover > .mega,
  .has-mega:focus-within > .mega,
  .has-mega.is-mega-open > .mega {
    display: block;
  }

  .mega-grid {
    display: grid;
    gap: 1rem 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mega h4 {
    color: var(--navy);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.45rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.25rem;
  }

  .mega ul {
    list-style: none;
  }

  .mega a {
    color: var(--ink-muted) !important;
    -webkit-text-fill-color: var(--ink-muted) !important;
    text-decoration: none;
    display: block;
    padding: 0.28rem 0;
    font-size: 0.92rem;
    min-height: 0;
    width: auto;
  }

  .mega a:hover {
    color: var(--navy) !important;
    -webkit-text-fill-color: var(--navy) !important;
    text-decoration: underline;
  }

  .nav-menu {
    align-items: center;
  }

  .nav-lang a {
    font-size: 0.9rem;
  }
}

/* Dense footer columns */
.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  padding: 2.5rem 0 0.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  }
}

.footer-grid h3 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.site-footer .footer-grid a {
  color: var(--gold-bright);
  text-decoration: none;
}

.site-footer .footer-grid a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-hours,
.footer-gaf {
  margin-top: 0.65rem;
  color: var(--cream);
  line-height: 1.45;
}

.footer-gaf span {
  opacity: 0.85;
  font-size: 0.9rem;
}

.footer-meta {
  margin-top: 1.5rem;
  padding: 1.15rem 0 0.35rem;
  border-top: 1px solid rgba(196, 165, 116, 0.3);
  font-size: 0.9rem;
  color: #c5cdd6;
}

.site-footer .footer-inner {
  /* legacy single-column footers still ok */
}

/* Service page shells */
.page-hero {
  background: linear-gradient(145deg, var(--navy) 0%, #163050 45%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 2.5rem 0 2.75rem;
  border-bottom: 4px solid var(--gold);
}

.page-hero h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  margin: 0.4rem 0 0.75rem;
  color: #ffffff;
}

.page-hero .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.page-hero .lede {
  color: var(--cream);
  max-width: 40rem;
  margin-bottom: 1.15rem;
}

.page-hero .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold-bright);
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(212, 184, 150, 0.15);
  color: var(--white);
}

.section-block {
  padding: 2.75rem 0;
}

.section-block.alt {
  background: rgba(27, 54, 93, 0.04);
}

.section-block h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.section-block .lede,
.section-intro-wide {
  color: var(--ink-muted);
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

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

@media (min-width: 640px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .svc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.svc-card,
a.svc-card,
li.svc-card {
  background: var(--white);
  border: 1px solid rgba(27, 54, 93, 0.14);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.svc-card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(18, 36, 63, 0.12);
  color: inherit;
}

.svc-card h3,
a.svc-card h3,
li.svc-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.svc-card p,
a.svc-card p,
li.svc-card p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: var(--white);
  border: 1px solid rgba(27, 54, 93, 0.18);
  color: var(--navy);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
}

a.chip:hover {
  border-color: var(--gold);
  background: #fffaf0;
  color: var(--navy);
}

.chip-static {
  cursor: default;
}

/* Photo galleries */
.photo-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .photo-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .photo-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .photo-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.photo-card {
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(27, 54, 93, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #efe9df;
}

.photo-card.portrait img {
  aspect-ratio: 3 / 4;
}

.photo-card.wide img {
  aspect-ratio: 16 / 9;
}

.photo-card figcaption {
  padding: 0.55rem 0.7rem 0.7rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.commercial-strip {
  background: linear-gradient(90deg, var(--navy), var(--navy-dark));
  color: var(--cream);
  padding: 1.35rem 0;
}

.commercial-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.commercial-strip p {
  margin: 0;
  max-width: 40rem;
}

/* How it works */
.how-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  counter-reset: how;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-step {
  background: var(--white);
  border: 1px solid rgba(27, 54, 93, 0.12);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.2rem;
  position: relative;
  padding-left: 3.4rem;
}

.how-step::before {
  counter-increment: how;
  content: counter(how);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.how-step h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.how-step p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}



/* ---------- Robust repair vs replace matrix ---------- */
.matrix-section {
  padding: 2.5rem 0 3rem;
  background: var(--paper);
  border-top: 1px solid #ddd6c8;
  border-bottom: 1px solid #ddd6c8;
}
.matrix-section h2 {
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.matrix-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.35rem 0 1.5rem;
}
@media (min-width: 768px) {
  .matrix-summary {
    grid-template-columns: 1fr 1fr;
  }
}
.matrix-card {
  background: #fff;
  border: 2px solid rgba(27, 54, 93, 0.18);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.15rem;
}
.matrix-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
}
.matrix-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-muted, #2c3a4d);
}
.matrix-card li { margin-bottom: 0.4rem; }
.matrix-card--repair { border-top: 4px solid var(--navy); }
.matrix-card--replace { border-top: 4px solid var(--gold); }

/* Keep table layout; fit viewport — no sideways scroll */
.matrix-wrap {
  overflow-x: visible;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  background: #fff;
  margin-bottom: 1.25rem;
}
.matrix {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.875rem;
  line-height: 1.45;
}
.matrix th,
.matrix td {
  padding: 0.7rem 0.65rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(27, 54, 93, 0.12);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.matrix thead th {
  background: var(--navy);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
}
.matrix tbody th {
  background: rgba(27, 54, 93, 0.06);
  color: var(--navy);
  font-weight: 700;
  width: 18%;
}
.matrix td:nth-child(2) { width: 34%; }
.matrix td:nth-child(3),
.matrix td:nth-child(4) { width: 24%; }
.matrix .tag-repair,
.matrix .tag-replace {
  display: inline-block;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  margin-bottom: 0.3rem;
  margin-right: 0.25rem;
}
.matrix .tag-repair {
  background: var(--navy);
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.matrix .tag-replace {
  background: var(--gold);
  color: var(--navy-dark);
  -webkit-text-fill-color: var(--navy-dark);
}
.matrix-footnote { color: var(--ink-muted, #2c3a4d); }
.matrix-footnote p { margin-bottom: 0.85rem; }
.matrix-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.matrix-btn {
  width: auto;
  min-width: 10rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (max-width: 767px) {
  .matrix {
    font-size: 0.8125rem;
  }
  .matrix th,
  .matrix td {
    padding: 0.55rem 0.45rem;
  }
}


/* Mobile hero CTAs: centered and nudged down so they sit cleaner on the house */
@media (max-width: 767px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding-top: 1.85rem;
    padding-bottom: 2.6rem;
  }
  .hero-inner .logo-hero {
    margin-inline: auto;
  }
  .hero-actions,
  .hero-ctas {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.15rem;
    margin-bottom: 0.25rem;
  }
  .hero-actions .btn,
  .hero-ctas .btn {
    width: 100%;
    max-width: 18.5rem;
    margin-inline: auto;
  }
}




/* Header tools: EN|ES + sandwich + phone clustered top-right */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  order: 3;
  flex: 0 0 auto;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}
.lang-switch a {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-decoration: none;
  padding: 0.28rem 0.55rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  line-height: 1;
  box-sizing: border-box;
}
.lang-switch a[aria-current="true"] {
  color: var(--gold-bright);
  -webkit-text-fill-color: var(--gold-bright);
  border-color: var(--gold-bright);
  background: rgba(196, 165, 116, 0.14);
}
.lang-switch a:hover {
  color: var(--gold-bright);
  -webkit-text-fill-color: var(--gold-bright);
  border-color: var(--gold-bright);
}
.lang-switch .lang-sep {
  display: none;
}
/* Tablet: larger ENG/ESP chips (unchanged) + brand 30% bigger */
@media (min-width: 768px) and (max-width: 1023px) {
  .lang-switch {
    gap: 0.55rem;
    font-size: 0.95rem;
  }
  .lang-switch a {
    min-height: 44px;
    padding: 0.4rem 0.85rem;
    border-width: 2px;
    font-size: 0.95rem;
  }
  .logo-header {
    width: 73px; /* 56px × 1.3 */
    height: 73px;
  }
  .site-header h1,
  .site-header .site-title {
    font-size: 1.3rem; /* 16px × 1.3 */
    line-height: 1.2;
  }
}
/* Phone only: 25% smaller than prior phone+tablet size */
@media (max-width: 767px) {
  .lang-switch {
    gap: 0.41rem;
    font-size: 0.71rem;
  }
  .lang-switch a {
    min-height: 33px;
    padding: 0.3rem 0.64rem;
    border-width: 2px;
    font-size: 0.71rem;
  }
}
.header-tools .nav-toggle {
  order: 0;
}
.header-tools .header-phone {
  margin-left: 0.15rem;
}
/* On small screens: brand full width on top; tools row right-aligned */

@media (min-width: 1024px) {
  .header-tools {
    order: 0;
  }
}


@media (max-width: 1023px) {
  .header-right {
    display: contents;
  }
  .site-nav,
  .header-tools {
    margin-left: 0;
  }
  .header-inner {
    justify-content: flex-start;
  }
  
}


/* Mobile/tablet top bar: sandwich left | EN|ES centered in the gap | phone right */
@media (max-width: 1023px) {
  .header-inner {
    display: grid;
    /* auto | 1fr | auto = EN|ES sits in the true middle of the space between sandwich and phone */
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand brand brand"
      "nav lang phone";
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.45rem;
  }
  .header-brand {
    grid-area: brand;
    flex: unset;
    width: 100%;
    order: unset;
  }
  .site-nav {
    grid-area: nav;
    justify-self: start;
    margin-left: 0 !important;
    order: unset;
    flex: unset;
  }
  .header-tools {
    display: contents; /* let EN|ES and phone sit in the grid */
  }
  .lang-switch {
    grid-area: lang;
    justify-self: center;
    transform: none;
  }
  .header-tools .header-phone,
  .header-phone {
    grid-area: phone;
    justify-self: end;
  }
  /* Keep menu panel opening from the left sandwich */
  .nav-fold {
    position: relative;
  }
  .nav-menu {
    left: 0;
    right: auto;
  }
}


/* Tablet: row1 logo+name | ENG/ESP ; row2 sandwich | phone */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand brand lang"
      "nav   .     phone";
    align-items: center;
    column-gap: 0.55rem;
    row-gap: 0.4rem;
  }
  .header-brand {
    grid-area: brand;
    width: auto;
    max-width: 100%;
    padding-right: 0.35rem;
  }
  .site-nav {
    grid-area: nav;
    justify-self: start;
  }
  .header-tools {
    display: contents;
  }
  .lang-switch {
    grid-area: lang;
    justify-self: end;
    align-self: center;
    transform: none;
  }
  .header-tools .header-phone,
  .header-phone {
    grid-area: phone;
    justify-self: end;
    align-self: center;
    margin-left: 0;
  }
}

@media (min-width: 1024px) {
  .header-tools {
    display: flex;
  }
}


.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}


.gallery-cta {
  gap: 1rem 1.35rem;
}
.gallery-cta .btn {
  margin: 0;
}


/* Fence sampler chips + page CTA spacing */
a.chip {
  background: var(--white);
  border: 1px solid rgba(27, 54, 93, 0.18);
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
a.chip:hover {
  border-color: var(--gold);
  background: #fffaf0;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
}
.fence-page-cta {
  margin-top: 1.35rem;
}
.fence-sampler-chips {
  gap: 0.55rem 0.65rem;
}


/* fence wood types showcase */
.wood-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0.25rem;
}
.wood-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  line-height: 1.1;
}
.wood-jump a:hover {
  background: rgba(196, 165, 116, 0.14);
  border-color: var(--gold-bright);
}

.wood-jump--detail {
  margin-top: 0.85rem;
}
.wood-jump--detail a {
  align-items: flex-start;
  max-width: 17.5rem;
  padding: 0.65rem 0.95rem;
}
.wood-jump-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.wood-jump-copy strong {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}
.wood-jump-copy span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  line-height: 1.25;
}
.wood-jump-static {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border: 2px dashed rgba(27, 54, 93, 0.22);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.wood-jump .wood-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  font-size: 0.85rem;
}
.wood-hero-figure {
  margin: 1.5rem 0 0;
}
.wood-hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid rgba(196, 165, 116, 0.45);
  border-radius: 8px;
  background: #efe9df;
}
.wood-hero-figure figcaption {
  margin-top: 0.55rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.wood-board {
  scroll-margin-top: 5.5rem;
  padding: 2.5rem 0;
}
.wood-board:nth-of-type(even) {
  background: rgba(27, 54, 93, 0.04);
}
.wood-board-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .wood-board-grid {
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 2.25rem;
  }
  .wood-board--flip .wood-board-grid {
    grid-template-columns: 1fr minmax(140px, 220px);
  }
  .wood-board--flip .wood-board-photo { order: 2; }
  .wood-board--flip .wood-board-copy { order: 1; }
}
.wood-board-photo {
  margin: 0;
  text-align: center;
}
.wood-board-photo img {
  width: min(100%, 220px);
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid rgba(196, 165, 116, 0.5);
  background: linear-gradient(180deg, #f4efe6, #e7dfd0);
  box-shadow: 0 12px 28px rgba(27, 54, 93, 0.12);
}
.wood-board-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}
.wood-board-kicker .wood-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  font-size: 1.05rem;
  border: 2px solid var(--navy);
}
.wood-board-kicker .wood-tag {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.wood-board h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  color: var(--navy);
  margin: 0 0 0.55rem;
}
.wood-board .lede {
  color: var(--ink-muted);
  max-width: 38rem;
  margin-bottom: 1rem;
}
.wood-specs {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.15rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) {
  .wood-specs {
    grid-template-columns: 1fr 1fr;
  }
}
.wood-specs li {
  background: var(--white);
  border: 1px solid rgba(27, 54, 93, 0.12);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}
.wood-specs strong {
  display: block;
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.wood-warranty {
  border-left: 4px solid var(--gold);
  background: rgba(196, 165, 116, 0.12);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 40rem;
}
.wood-warranty strong {
  color: var(--navy);
}
.wood-close {
  padding: 2.75rem 0 3rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--cream);
}
.wood-close h2 {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 0.65rem;
}
.wood-close p {
  max-width: 40rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.15rem;
}
.wood-close .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}


/* gaf shingles showcase */
.shingle-jump { display:flex; flex-wrap:wrap; gap:0.55rem; margin:1.25rem 0 0.25rem; }
.shingle-jump a {
  display:inline-flex; align-items:center; gap:0.45rem; text-decoration:none;
  color:var(--navy); font-weight:800; font-size:0.9rem; padding:0.55rem 0.9rem;
  border:2px solid var(--gold); border-radius:var(--radius); background:var(--white); line-height:1.1;
}
.shingle-jump a:hover { background:rgba(196,165,116,0.14); border-color:var(--gold-bright); }
.shingle-jump .wood-num {
  display:inline-flex; align-items:center; justify-content:center;
  width:1.55rem; height:1.55rem; border-radius:50%; background:var(--gold); color:var(--navy);
  font-weight:900; font-size:0.85rem;
}
.shingle-hero-figure { margin:1.5rem 0 0; }
.shingle-hero-figure img {
  width:100%; height:auto; display:block; border:2px solid rgba(196,165,116,0.45);
  border-radius:8px; background:#efe9df; aspect-ratio:16/9; object-fit:cover;
}
.shingle-hero-figure figcaption { margin-top:0.55rem; color:var(--ink-muted); font-size:0.9rem; }
.shingle-line { scroll-margin-top:5.5rem; padding:2.5rem 0; }
.shingle-line:nth-of-type(even) { background:rgba(27,54,93,0.04); }
.shingle-line-grid { display:grid; gap:1.5rem; align-items:center; }
@media (min-width:800px) {
  .shingle-line-grid { grid-template-columns:minmax(220px, 1.05fr) 1fr; gap:2.25rem; }
  .shingle-line--flip .shingle-line-grid { grid-template-columns:1fr minmax(220px, 1.05fr); }
  .shingle-line--flip .shingle-line-photo { order:2; }
  .shingle-line--flip .shingle-line-copy { order:1; }
}
.shingle-line-photo { margin:0; }
.shingle-line-photo img {
  width:100%; height:auto; display:block; border-radius:8px;
  border:2px solid rgba(196,165,116,0.5); aspect-ratio:4/3; object-fit:cover;
  box-shadow:0 12px 28px rgba(27,54,93,0.12); background:#efe9df;
}
.shingle-note {
  margin-top:1rem; max-width:42rem; color:var(--ink-muted); font-size:0.95rem;
}

.shingle-preferred {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
  vertical-align: middle;
}

.fence-wood-anchor {
  scroll-margin-top: 5.5rem;
  height: 0;
}

/* PC mouse + sandwich (tablet width): Services opens on hover like desktop */
@media (hover: hover) and (pointer: fine) and (max-width: 1023px) {
  .nav-fold.is-open .has-mega:hover > .mega-mobile,
  .nav-fold.is-open .has-mega:focus-within > .mega-mobile {
    display: block;
  }
  .nav-fold.is-open .has-mega:hover > .nav-parent::after,
  .nav-fold.is-open .has-mega:focus-within > .nav-parent::after {
    transform: rotate(225deg);
    margin-top: 0.15rem;
  }
}

/* ========== PC home: hero CTAs + What we do cards ========== */
@media (min-width: 1024px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-inner .hero-place,
  .hero-inner .hero-name,
  .hero-inner .lead,
  .hero-inner .hero-actions {
    width: min(100%, 34rem);
  }
  .hero-inner .hero-actions,
  .hero-inner .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.75rem;
  }
  .hero-inner .hero-actions .btn,
  .hero-inner .hero-ctas .btn {
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .services .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
  }
  .services .card-link:hover,
  .services .card-link:focus {
    text-decoration: none;
    color: inherit;
  }
  .services .card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  }
  .services .card:hover,
  .services .card:focus-within {
    border-color: var(--gold);
    border-top-color: var(--gold);
    background: #fffdf8;
    box-shadow: 0 0 0 2px rgba(196, 165, 116, 0.55), 0 12px 28px rgba(18, 36, 63, 0.14);
    transform: translateY(-2px);
  }
  .services .card-link h3 {
    text-decoration: none;
  }
}


/* PC header: brand left, nav center, tools right (phone not flush edge) */
@media (min-width: 1024px) {
  .header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem 1rem;
    width: 100%;
  }
  .header-brand {
    flex: 0 1 auto;
    margin-right: 0;
    margin-left: 0.85rem; /* sit a little in from the far left */
    max-width: min(30rem, 44%);
    gap: 0.7rem;
  }
  /* Diamond ~30% bigger than the prior 56px desktop size → ~73px */
  .logo-header {
    width: 73px;
    height: 73px;
  }
  .site-nav {
    flex: 1 1 auto;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
  }
  .header-tools {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.95rem; /* keep ENG/ESP clear of the phone chip */
    margin-left: auto;
    margin-right: 0.85rem; /* pull phone group slightly off the far edge */
    order: 3;
    flex: 0 0 auto;
    justify-content: flex-end;
  }
  .header-tools .lang-switch {
    order: 0;
    margin-right: 0.15rem;
  }
  .header-tools .header-phone,
  .header-phone {
    order: 1;
    margin-left: 0;
  }
}
