/* Old School Painting — craftsman contractor theme */

:root {
  --navy: #1a2744;
  --navy-deep: #0f1829;
  --charcoal: #2c3340;
  --warm: #c4783a;
  --warm-hover: #a8622c;
  --cream: #f7f3ec;
  --sand: #e8e0d4;
  --white: #ffffff;
  --muted: #5c6570;
  --line: #d4cdc2;
  --success: #2d6a4f;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(15, 24, 41, 0.12);
  --shadow-sm: 0 4px 14px rgba(15, 24, 41, 0.06);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  /* ~1280 fits 1080p well (incl. 100–125% Windows scaling) without sparse side gutters */
  --max: 1280px;
  --prose: 42rem;
  --header-h: 90px;
}

::selection {
  background: rgba(196, 120, 58, 0.28);
  color: var(--navy-deep);
}

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

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

html {
  scroll-behavior: smooth;
  /* Keep layout locked to device width (no “pinched” letterboxed page). */
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Full-bleed shell: never wider than the viewport */
#main,
.site-header,
.site-footer,
.cta-band,
.hero,
.section,
.page-hero,
.page-body {
  width: 100%;
  max-width: 100%;
}

img,
svg,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

a {
  color: var(--warm);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--warm-hover);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 25, "opsz" 72;
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.4em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }
ul { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 42em;
}

.container {
  /* Padding model is more reliable on mobile than width: calc(100% - …) */
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left, 0px))
    max(1rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

@media (min-width: 1100px) {
  .container {
    padding-inline: max(1.5rem, env(safe-area-inset-left, 0px))
      max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  /* Never clip logo serifs / shadows at the edges */
  overflow: visible;
}

.site-header .header-inner {
  position: relative;
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.15rem;
  min-height: var(--header-h);
  padding-block: 0.55rem;
  flex-wrap: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  line-height: 1.15;
  /* Keep the full wordmark — never crush/ellipsis the company name */
  flex: 0 0 auto;
  min-width: max-content;
  overflow: visible;
}

.brand:hover { color: var(--navy); }

.brand-icon {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  filter: drop-shadow(0 2px 6px rgba(15, 24, 41, 0.1));
}

.brand-icon svg {
  display: block;
  width: 64px;
  height: 64px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: max-content;
  padding-top: 0.02rem;
  overflow: visible;
}

/* Two-line lockup: quieter "Old School" + hero "Painting" */
.brand-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.06rem;
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.1;
  white-space: nowrap;
  font-optical-sizing: auto;
  overflow: visible;
}

.brand-name-top {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--warm);
  font-variation-settings: "SOFT" 40, "opsz" 36;
  line-height: 1.15;
}

.brand-name-main {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  font-variation-settings: "SOFT" 30, "opsz" 144;
  line-height: 1.05;
  /* Fraunces glyphs can paint slightly outside the box */
  padding-bottom: 0.06em;
}

.brand-tag {
  font-family: var(--font);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  margin-top: 0.1rem;
  /* Full tag when shown — do not ellipsize mid-word */
  overflow: visible;
}

.brand .custom-logo-link,
.site-header .custom-logo-link {
  display: block;
  line-height: 0;
}

.brand .custom-logo,
.site-header .custom-logo {
  max-height: 64px;
  width: auto;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  cursor: pointer;
  color: var(--navy);
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.primary-nav ul,
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.1rem 0.95rem;
  align-items: center;
  justify-content: center;
}

.primary-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--warm);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.header-phone {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.header-phone:hover { color: var(--warm); }

/* Desktop: full "Free Estimate"; mobile: short "Estimate" */
.btn-estimate .label-short { display: none; }
.btn-estimate .label-full { display: inline; }

/* Tagline only when the full desktop chrome has room (true 1080p / wide laptop) */
@media (max-width: 1320px) {
  .brand-tag {
    display: none;
  }
}

/* Mid desktop / scaled displays: free space before hamburger */
@media (max-width: 1180px) {
  .header-phone {
    display: none;
  }

  .primary-nav ul,
  .primary-nav .menu {
    gap: 0.05rem 0.7rem;
  }

  .primary-nav a {
    font-size: 0.85rem;
  }

  .brand-name-main {
    font-size: 1.55rem;
  }

  .brand-icon svg {
    width: 58px;
    height: 58px;
  }
}

/* —— 1080p / full HD desktop polish (1920×1080 & similar) —— */
@media (min-width: 1280px) {
  :root {
    --header-h: 96px;
  }

  .header-inner {
    gap: 1rem 1.5rem;
    padding-block: 0.65rem;
  }

  .brand {
    gap: 0.85rem;
  }

  .brand-icon svg {
    width: 68px;
    height: 68px;
  }

  .brand-name-top {
    font-size: 1rem;
  }

  .brand-name-main {
    font-size: 1.85rem;
  }

  .brand-tag {
    font-size: 0.7rem;
    letter-spacing: 0.09em;
  }

  .primary-nav ul,
  .primary-nav .menu {
    gap: 0.15rem 1.15rem;
  }

  .primary-nav a {
    font-size: 0.95rem;
  }

  .header-phone {
    font-size: 0.95rem;
  }

  .btn-estimate {
    padding: 0.72rem 1.35rem;
  }

  /* Hero fills a confident band of a 1080p viewport without feeling empty */
  .hero {
    padding: clamp(3.75rem, 10vh, 5.75rem) 0;
    min-height: min(48vh, 480px);
    display: flex;
    align-items: center;
  }

  .hero .container {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 3.1vw, 3.15rem);
    max-width: 17ch;
    line-height: 1.12;
  }

  .hero-sub {
    font-size: 1.18rem;
    max-width: 40em;
  }

  .hero-kicker {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .trust-strip {
    max-width: 48rem;
    gap: 0.55rem;
  }

  .section {
    padding: clamp(3.25rem, 7vh, 5.25rem) 0;
  }

  .section-head {
    max-width: 44rem;
    margin-bottom: 2.25rem;
  }

  .section-head p {
    font-size: 1.08rem;
  }

  /* Always 3 equal service cards on 1080p — no awkward 2+1 wrap */
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .card {
    padding: 1.75rem 1.6rem 1.55rem;
  }

  .card h3 {
    font-size: 1.28rem;
  }

  .about-band {
    gap: 2.5rem;
    grid-template-columns: 1.15fr 0.95fr;
  }

  .about-panel {
    padding: 2.25rem 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem 3rem;
  }

  .cta-band {
    padding: 3.25rem 0;
  }

  .cta-band h2 {
    font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  }
}

/* Taller 1080p windows — hero can breathe a bit more vertically */
@media (min-width: 1280px) and (min-height: 900px) {
  .hero {
    min-height: min(52vh, 540px);
    padding: clamp(4rem, 11vh, 6rem) 0;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--warm);
  color: var(--white);
  border-color: var(--warm);
}

.btn-primary:hover {
  background: var(--warm-hover);
  border-color: var(--warm-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* —— Hero —— */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(15, 24, 41, 0.88) 0%, rgba(26, 39, 68, 0.75) 50%, rgba(196, 120, 58, 0.35) 100%),
    linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(196, 120, 58, 0.25), transparent 65%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.85rem;
}

.hero h1 {
  color: var(--white);
  max-width: 18ch;
  margin-bottom: 0.55em;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 38em;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.35rem;
  max-width: 44rem;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-strip span::before {
  content: "✓";
  color: var(--warm);
  font-weight: 700;
}

/* —— Sections —— */
.section {
  padding: clamp(2.75rem, 6vw, 4.75rem) 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin-top: 0;
  margin-bottom: 0.45em;
  text-wrap: balance;
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 1.05rem;
}

.section-note {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* —— Cards —— */
.cards-3,
.cards-4 {
  display: grid;
  gap: 1.25rem;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.45rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.section-alt .card {
  background: var(--cream);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c9c0b3;
}

.card-featured {
  border-color: rgba(196, 120, 58, 0.55);
  background: linear-gradient(165deg, #fffaf4 0%, #fff 55%);
  box-shadow: 0 8px 28px rgba(196, 120, 58, 0.1);
}

.section-alt .card-featured {
  background: linear-gradient(165deg, #fffaf4 0%, var(--cream) 70%);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.card h3 a:hover { color: var(--warm); }

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1 1 auto;
  margin-bottom: 1rem;
}

.card .text-link {
  margin-top: auto;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--sand);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--navy);
  border: 1px solid rgba(26, 39, 68, 0.08);
}

.card-icon-svg {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.card-icon-featured,
.card-featured .card-icon {
  background: rgba(196, 120, 58, 0.16);
  color: var(--warm-hover);
  border-color: rgba(196, 120, 58, 0.25);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.text-link:hover {
  gap: 0.35rem;
}

/* —— About band —— */
.about-band {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .about-band {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-panel {
  background:
    linear-gradient(160deg, var(--navy) 0%, #152238 55%, #2a2118 120%);
  color: rgba(255, 255, 255, 0.9);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-panel h2 { color: var(--white); margin-top: 0; font-size: 1.45rem; }
.about-panel p { color: rgba(255, 255, 255, 0.82); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--white);
}

.stat span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* —— Gallery —— */
.gallery-grid {
  display: grid;
  /* min() prevents a fixed 220px track from forcing horizontal overflow on narrow phones */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.85rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, var(--sand), var(--line));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}

.gallery-item img,
.gallery-item .gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.gallery-item.has-photo {
  padding: 0;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
}

a.gallery-item.has-photo {
  position: relative;
}

a.gallery-item.has-photo:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.gallery-item.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 24, 41, 0.25), transparent 45%);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

a.gallery-item.has-photo:hover::after {
  opacity: 1;
}

/* WordPress [gallery] on gallery page */
.entry-content .gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.entry-content .gallery .gallery-item {
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sand);
}

.entry-content .gallery .gallery-icon {
  margin: 0;
  height: 100%;
}

.entry-content .gallery .gallery-icon a {
  display: block;
  height: 100%;
}

.entry-content .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.entry-content .gallery .gallery-caption {
  display: none;
}

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, #3d2a1a);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 1.25rem;
  max-width: 32em;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* —— Page content —— */
.page-hero {
  background:
    linear-gradient(135deg, rgba(15, 24, 41, 0.97) 0%, rgba(26, 39, 68, 0.92) 60%, rgba(61, 42, 26, 0.88) 100%);
  color: var(--white);
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 3px solid var(--warm);
}

.page-hero-inner {
  max-width: var(--prose);
}

.page-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.7);
}

.page-hero h1 {
  color: var(--white);
  margin: 0 0 0.35em;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  text-wrap: balance;
}

.page-hero-sub,
.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 36em;
  font-size: 1.05rem;
}

.page-body {
  background: var(--cream);
}

.entry-content {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 6vw, 4rem);
  max-width: var(--prose);
}

.entry-content.wide {
  max-width: none;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.entry-content h2:first-child {
  margin-top: 0;
}

.entry-content ul {
  padding-left: 1.15rem;
}

.entry-content li {
  margin-bottom: 0.55rem;
  padding-left: 0.15rem;
}

.entry-content li::marker {
  color: var(--warm);
}

.entry-content .lead {
  margin-bottom: 1.35rem;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--charcoal);
  line-height: 1.55;
}

.service-grid {
  margin: 2rem 0;
}

.cta-inline {
  margin-top: 2.25rem;
  padding: 1.35rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.cta-inline .btn {
  margin: 0;
}

.phone-lg {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--display);
}

.phone-lg a {
  color: var(--navy);
  text-decoration: none;
}

.phone-lg a:hover { color: var(--warm); }

/* Click-to-call phone links */
a.phone-link,
a[href^="tel:"] {
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a.phone-link:hover,
a[href^="tel:"]:hover {
  border-bottom-color: currentColor;
}

/* Make big contact number feel tappable on mobile */
.phone-lg a {
  display: inline-block;
  padding: 0.15rem 0;
  -webkit-tap-highlight-color: rgba(196, 120, 58, 0.2);
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 1.5rem;
  }
}

.contact-details,
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem;
  box-shadow: var(--shadow-sm);
}

.contact-details h2,
.contact-form-wrap h2 {
  margin-top: 0;
  border: 0;
  padding: 0;
  font-size: 1.15rem;
}

.form-placeholder {
  background: var(--sand);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-note {
  background: var(--white);
  border-left: 4px solid var(--warm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

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

.entry-content .small-print {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.entry-content a[href*="texcote.com"] {
  font-weight: 600;
}

/* Manufacturer logo strip (TEX-COTE / COOLWALL) */
.mfr-brand-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem 2.75rem;
  padding: 1.6rem 1.75rem;
  margin: 0 0 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(15, 24, 41, 0.04);
}

.mfr-brand-bar-footer {
  margin: 1.75rem 0 1.25rem;
  gap: 1.35rem 2rem;
  padding: 1.25rem 1.35rem;
}

.mfr-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  transition: opacity 0.15s;
}

.mfr-logo-link:hover {
  opacity: 0.85;
}

.mfr-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.mfr-logo-texcote {
  max-height: 56px;
  width: auto;
  max-width: min(320px, 75vw);
}

/* Tall COOLWALL® badge — keep large enough to read KYNAR / system text */
.mfr-logo-coolwall {
  max-height: 168px;
  width: auto;
  max-width: min(280px, 72vw);
}

/* Mid-page footer strip: slightly smaller so it doesn’t dominate */
.mfr-brand-bar-footer .mfr-logo-texcote {
  max-height: 48px;
  max-width: min(280px, 70vw);
}

.mfr-brand-bar-footer .mfr-logo-coolwall {
  max-height: 120px;
  max-width: min(200px, 50vw);
}

.mfr-brand-caption {
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

@media (max-width: 520px) {
  .mfr-brand-bar {
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.25rem 1rem;
  }

  .mfr-logo-texcote {
    max-height: 44px;
  }

  .mfr-logo-coolwall {
    max-height: 140px;
    max-width: min(240px, 78vw);
  }

  .mfr-brand-bar-footer .mfr-logo-coolwall {
    max-height: 110px;
    max-width: min(200px, 70vw);
  }
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.site-footer a:hover { color: var(--warm); }

.footer-brand .brand-name {
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 32em;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-license {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

/* License number + verify icon control */
.osp-license-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.osp-license-num {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.osp-license-verify {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem 0.28rem 0.45rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  border: 1px solid rgba(232, 184, 109, 0.55);
  background: rgba(232, 184, 109, 0.12);
  color: var(--warm, #e8b86d);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.osp-license-verify:hover,
.osp-license-verify:focus-visible {
  background: rgba(232, 184, 109, 0.28);
  color: #fff;
  border-color: var(--warm, #e8b86d);
  outline: none;
}

.osp-verify-icon {
  flex-shrink: 0;
  display: block;
}

.osp-license-verify-label {
  white-space: nowrap;
}

/* About / contact (light backgrounds) */
.license-verify-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 1rem 0;
}

.osp-license-verify--about,
.osp-license-verify--inline,
.entry-content .osp-license-verify,
.page-content .osp-license-verify {
  color: var(--ink, #1a1a1a);
  border-color: rgba(26, 26, 26, 0.22);
  background: rgba(26, 26, 26, 0.04);
}

.osp-license-verify--about:hover,
.osp-license-verify--about:focus-visible,
.osp-license-verify--inline:hover,
.osp-license-verify--inline:focus-visible,
.entry-content .osp-license-verify:hover,
.entry-content .osp-license-verify:focus-visible,
.page-content .osp-license-verify:hover,
.page-content .osp-license-verify:focus-visible {
  color: #fff;
  background: var(--ink, #1a2a3a);
  border-color: var(--ink, #1a2a3a);
}

.osp-license-verify--about {
  padding: 0.45rem 0.9rem 0.45rem 0.65rem;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-license {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.footer-bottom .osp-license-verify {
  padding: 0.2rem 0.55rem 0.2rem 0.35rem;
  font-size: 0.78rem;
}

.footer-bottom a:not(.osp-license-verify) {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:not(.osp-license-verify):hover {
  color: #fff;
}

/* Visually hidden helper if theme has none */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* —— Verify license page (live CSLB summary) —— */
.license-verify-page {
  max-width: 42rem;
}

.license-card {
  background: var(--white, #fff);
  border: 1px solid rgba(26, 42, 58, 0.1);
  border-radius: 1rem;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  box-shadow: 0 10px 36px rgba(20, 30, 40, 0.06);
  margin-bottom: 1.75rem;
}

.license-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.license-card-icon {
  color: var(--warm, #c4923a);
  flex-shrink: 0;
}

.license-card-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(26, 42, 58, 0.55);
}

.license-card-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  line-height: 1.2;
}

.license-card-num {
  margin: 0.25rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.license-status-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(26, 42, 58, 0.08);
  color: var(--ink, #1a2a3a);
  white-space: nowrap;
}

.license-status-pill.is-active {
  background: rgba(34, 140, 80, 0.14);
  color: #146b38;
}

.license-status-pill.is-muted {
  background: rgba(26, 42, 58, 0.06);
  color: rgba(26, 42, 58, 0.55);
}

.license-status-line {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
}

.license-status-line.is-active {
  color: #146b38;
  font-weight: 600;
}

.license-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(26, 42, 58, 0.08);
  border-bottom: 1px solid rgba(26, 42, 58, 0.08);
}

.license-dl dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(26, 42, 58, 0.5);
}

.license-dl dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.license-block {
  margin-bottom: 1rem;
}

.license-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.license-block p {
  margin: 0;
}

.license-block-muted {
  color: rgba(26, 42, 58, 0.78);
  font-size: 0.92rem;
}

.license-class-list {
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
}

.license-class-list li {
  margin-bottom: 0.25rem;
}

.license-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.35rem 0 1rem;
}

.license-card-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.license-footnote {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(26, 42, 58, 0.62);
}

.btn-primary.osp-cslb-official {
  gap: 0.4rem;
}

/* —— Compact / tablet+mobile header ——
   Collapse earlier than before so logo + nav never fight for space.
   Row 1: logo / name
   Row 2: Free Estimate + Menu
*/
@media (max-width: 980px) {
  :root {
    --header-h: auto;
  }

  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.75rem;
    padding-block: 0.65rem;
    min-height: 0;
  }

  /* Row 1 — brand full width, full wordmark */
  .brand {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    gap: 0.75rem;
  }

  .brand-icon svg {
    width: 60px;
    height: 60px;
  }

  .brand-tag {
    display: none;
  }

  .brand-text {
    min-width: 0;
    flex: 0 1 auto;
  }

  .brand-name {
    max-width: 100%;
  }

  .brand-name-top {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
  }

  .brand-name-main {
    font-size: clamp(1.4rem, 6.5vw, 1.65rem);
  }

  /* Nav is off-canvas dropdown */
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
    /* Inside header stacking context; header itself is z-index 100 */
    z-index: 200;
    width: 100%;
    order: 3;
    justify-content: stretch;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul,
  .primary-nav .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

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

  /* Row 2 — Estimate + Menu */
  .header-actions {
    flex: 1 1 100%;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .header-cta {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-cta .header-phone {
    display: none;
  }

  .btn-estimate {
    display: flex;
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }

  /* Mobile still gets the full phrase — room enough on row 2 */
  .btn-estimate .label-full { display: inline; }
  .btn-estimate .label-short { display: none; }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
  }
}

/* —— Area list —— */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.area-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0;
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
}

.area-list a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.area-list a:hover {
  color: var(--warm);
}

.section-alt .area-list li {
  background: var(--cream);
}

.osp-seo-city-list {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Dark mode (Dark Mode Toggle / darkmode-js)
   Plugin uses mix-blend-mode: difference on a full-page layer. That inverts
   whatever sits under it — so light text we set without isolation becomes dark
   again (unreadable). Fix: isolate chrome we design, then paint intentional colors.
   ========================================================================== */

/* Isolation only — do NOT force position/z-index here.
   Earlier versions set position:relative + z-index:1 on every
   .darkmode-ignore block. That flattened the sticky header to
   relative and put hero/page content in the same stacking band
   as the header, so the mobile menu opened underneath the hero
   (looked like the Menu button did nothing). */
.darkmode-ignore {
  isolation: isolate;
}

/* Header must stay above page content (dropdown lives here). */
.site-header.darkmode-ignore {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Content bands that opt out of invert still need a local stacking
   context for their own children, but below the header. */
.hero.darkmode-ignore,
.cta-band.darkmode-ignore,
.page-hero.darkmode-ignore,
.site-footer.darkmode-ignore {
  position: relative;
  z-index: 0;
}

/* —— Full header: craftsman night palette (desktop + mobile) ——
   Deep brand navy (not pure black) + warm stone type + copper accent.
   Feels like the site’s navy family at night, not a generic dark UI. */
.darkmode--activated .site-header {
  /* Surfaces */
  --dm-bar: rgba(18, 26, 42, 0.97);       /* deep navy glass */
  --dm-bar-solid: #152033;
  --dm-bar-edge: rgba(196, 168, 120, 0.14); /* faint warm hairline */
  --dm-surface: rgba(247, 243, 236, 0.06);
  --dm-surface-hover: rgba(247, 243, 236, 0.1);
  /* Type */
  --dm-ink: #ebe4d8;                      /* warm stone */
  --dm-ink-soft: #9a958a;                 /* muted taupe secondary */
  --dm-ink-bright: #f7f3ec;               /* cream for hero word */
  /* Accent — brand copper family, slightly lifted for dark */
  --dm-copper: #d4924a;
  --dm-copper-soft: #c9a06a;
  --dm-copper-hot: #e0a85c;

  background:
    linear-gradient(180deg, rgba(28, 38, 58, 0.4) 0%, transparent 100%),
    var(--dm-bar);
  border-bottom: 1px solid var(--dm-bar-edge);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 32px rgba(8, 12, 22, 0.4);
  color: var(--dm-ink);
}

/* Logo lockup */
.darkmode--activated .site-header .brand,
.darkmode--activated .site-header .brand:hover {
  color: var(--dm-ink-bright);
}

.darkmode--activated .site-header .brand-name {
  color: var(--dm-ink-bright);
}

.darkmode--activated .site-header .brand-name-top {
  color: var(--dm-copper-soft);
  letter-spacing: 0.07em;
  font-weight: 600;
}

.darkmode--activated .site-header .brand-name-main {
  color: var(--dm-ink-bright);
  text-shadow: 0 1px 2px rgba(8, 12, 22, 0.35);
}

.darkmode--activated .site-header .brand-tag {
  color: var(--dm-ink-soft);
  letter-spacing: 0.1em;
}

.darkmode--activated .site-header .brand-icon {
  filter: drop-shadow(0 3px 14px rgba(8, 12, 22, 0.5));
  border-radius: 16px;
}

/* Primary nav — soft stone links, copper hover (less “neon”) */
.darkmode--activated .site-header .primary-nav a {
  color: var(--dm-ink);
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 1;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.darkmode--activated .site-header .primary-nav a:hover {
  color: var(--dm-copper-hot);
}

.darkmode--activated .site-header .primary-nav .current-menu-item > a {
  color: var(--dm-copper);
  font-weight: 600;
}

/* Phone — quieter than the CTA, still clear */
.darkmode--activated .site-header .header-phone {
  color: var(--dm-ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.darkmode--activated .site-header .header-phone:hover {
  color: var(--dm-copper-hot);
}

/* Free Estimate — brand copper pill, deep navy label */
.darkmode--activated .site-header .btn-estimate {
  background: linear-gradient(165deg, #dca05a 0%, var(--dm-copper) 55%, #c47e3a 100%);
  border-color: transparent;
  color: #1a2336;
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 14px rgba(196, 120, 58, 0.28);
}

.darkmode--activated .site-header .btn-estimate:hover {
  background: linear-gradient(165deg, #e8b06a 0%, var(--dm-copper-hot) 50%, #d4924a 100%);
  border-color: transparent;
  color: #121a2c;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 6px 18px rgba(196, 120, 58, 0.35);
}

/* Menu button (tablet/mobile) */
.darkmode--activated .site-header .nav-toggle {
  background: var(--dm-surface);
  border: 1px solid rgba(235, 228, 216, 0.14);
  color: var(--dm-ink);
  font-weight: 600;
}

.darkmode--activated .site-header .nav-toggle:hover {
  background: var(--dm-surface-hover);
  border-color: rgba(212, 146, 74, 0.4);
  color: var(--dm-copper-hot);
}

/* Mobile dropdown — same navy family */
.darkmode--activated .site-header .primary-nav.is-open {
  background: var(--dm-bar-solid);
  border-bottom: 1px solid var(--dm-bar-edge);
  box-shadow: 0 18px 40px rgba(8, 12, 22, 0.55);
}

.darkmode--activated .site-header .primary-nav.is-open a {
  color: var(--dm-ink);
  border-bottom-color: rgba(235, 228, 216, 0.08);
  opacity: 1;
}

.darkmode--activated .site-header .primary-nav.is-open a:hover {
  color: var(--dm-copper-hot);
}

.darkmode--activated .site-header .primary-nav.is-open .current-menu-item > a {
  color: var(--dm-copper);
}

/* Cards / panels that look harsh after invert */
.darkmode--activated .card,
.darkmode--activated .cta-inline,
.darkmode--activated .contact-details,
.darkmode--activated .contact-form-wrap,
.darkmode--activated .mfr-brand-bar,
.darkmode--activated .about-panel,
.darkmode--activated .license-card,
.darkmode--activated .gallery-item {
  box-shadow: none;
}

.darkmode--activated .card,
.darkmode--activated .mfr-brand-bar,
.darkmode--activated .license-card {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Manufacturer logos are <img> (already isolated) — soft plate behind them */
.darkmode--activated .mfr-brand-bar {
  background: #f7f3ec;
}

.darkmode--activated .mfr-brand-caption {
  opacity: 0.92;
}

.darkmode--activated .text-link,
.darkmode--activated .entry-content a {
  text-decoration-thickness: 1.5px;
}

/* Footer — intentional dark (ignored) */
.darkmode--activated .site-footer {
  background: #0a0e16;
  color: rgba(247, 243, 236, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.darkmode--activated .site-footer a {
  color: #e8a86a;
}

.darkmode--activated .site-footer a:hover {
  color: #f5d0a0;
}

.darkmode--activated .footer-brand .brand-name {
  color: #f7f3ec;
}

.darkmode--activated .footer-license,
.darkmode--activated .footer-bottom {
  color: rgba(247, 243, 236, 0.55);
}

.darkmode--activated .osp-license-verify {
  color: #e8a86a;
  border-color: rgba(232, 168, 106, 0.45);
  background: rgba(232, 168, 106, 0.12);
}

.darkmode--activated .osp-license-verify:hover,
.darkmode--activated .osp-license-verify:focus-visible {
  color: #0a0e16;
  background: #e8a86a;
  border-color: #e8a86a;
}

/* —— Hero + bottom CTA + page heroes: craftsman night (match header) ——
   Isolated from invert blend; intentional deep navy, no loud orange wash. */
.darkmode--activated .hero,
.darkmode--activated .cta-band,
.darkmode--activated .page-hero {
  isolation: isolate;
  position: relative;
  z-index: 0;
  /* Drop the light-mode copper flare — too loud against the new header */
  background:
    radial-gradient(ellipse 80% 70% at 85% 110%, rgba(196, 120, 58, 0.12), transparent 55%),
    linear-gradient(165deg, #121a2c 0%, #182338 48%, #1a2438 100%);
  color: #ebe4d8;
  box-shadow: none;
}

.darkmode--activated .hero::after {
  /* Soft copper glow, much quieter than light mode */
  background: radial-gradient(circle, rgba(196, 120, 58, 0.14), transparent 68%);
  opacity: 0.85;
}

.darkmode--activated .hero-kicker,
.darkmode--activated .page-kicker {
  color: #c9a06a;
  letter-spacing: 0.14em;
}

.darkmode--activated .hero h1,
.darkmode--activated .page-hero h1,
.darkmode--activated .cta-band h2 {
  color: #f7f3ec;
  text-shadow: 0 1px 2px rgba(8, 12, 22, 0.35);
}

.darkmode--activated .hero-sub,
.darkmode--activated .page-hero-sub,
.darkmode--activated .page-hero p,
.darkmode--activated .cta-band p {
  color: rgba(235, 228, 216, 0.86);
}

/* Primary CTA stays copper; outlines are soft stone on navy */
.darkmode--activated .hero .btn-primary,
.darkmode--activated .cta-band .btn-primary {
  background: linear-gradient(165deg, #dca05a 0%, #d4924a 55%, #c47e3a 100%);
  border-color: transparent;
  color: #1a2336;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 4px 16px rgba(196, 120, 58, 0.25);
}

.darkmode--activated .hero .btn-primary:hover,
.darkmode--activated .cta-band .btn-primary:hover {
  background: linear-gradient(165deg, #e8b06a 0%, #e0a85c 50%, #d4924a 100%);
  color: #121a2c;
}

.darkmode--activated .hero .btn-outline,
.darkmode--activated .cta-band .btn-outline {
  color: #ebe4d8;
  border-color: rgba(235, 228, 216, 0.35);
  background: transparent;
}

.darkmode--activated .hero .btn-outline:hover,
.darkmode--activated .cta-band .btn-outline:hover {
  background: rgba(247, 243, 236, 0.1);
  color: #f7f3ec;
  border-color: rgba(235, 228, 216, 0.55);
}

/* Trust chips */
.darkmode--activated .trust-strip {
  color: rgba(235, 228, 216, 0.9);
  border-top-color: rgba(235, 228, 216, 0.12);
}

.darkmode--activated .trust-strip span {
  background: rgba(247, 243, 236, 0.06);
  border-color: rgba(235, 228, 216, 0.12);
  color: #ebe4d8;
}

.darkmode--activated .trust-strip span::before {
  color: #d4924a;
}

/* Page hero warm rule → subtle copper line */
.darkmode--activated .page-hero {
  border-bottom-color: rgba(196, 120, 58, 0.45);
}

.darkmode--activated .area-list li {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.darkmode--activated :focus-visible {
  outline-color: #d4924a;
}

/* Mobile polish for hero buttons */
@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero h1 {
    max-width: none;
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stat {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
    padding: 0.7rem 0.9rem;
  }

  .stat strong {
    font-size: 1.15rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .osp-license-badge {
    max-width: 100%;
  }
}

/* Overflow safety for content blocks */
.entry-content,
.page-body,
.about-band,
.footer-grid,
.cards-3,
.service-grid,
.contact-grid {
  min-width: 0;
  max-width: 100%;
}

.entry-content img,
.entry-content figure,
.entry-content pre,
.entry-content table {
  max-width: 100%;
}

.entry-content pre,
.entry-content table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Long unbroken strings (URLs, etc.) don't push the layout wider */
.entry-content a,
.entry-content p,
.footer-brand p {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
