:root {
  --ink: #17191b;
  --muted: #5c6369;
  --line: #dfe3e6;
  --paper: #ffffff;
  --soft: #f4f6f6;
  --dark: #222527;
  --red: #d74734;
  --red-dark: #aa2f20;
  --teal: #087b72;
  --gold: #b57618;
  --shadow: 0 18px 50px rgba(23, 25, 27, 0.13);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(780px, 100%);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(223, 227, 230, 0.85);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  color: #3c4247;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--red-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: #34383b;
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.5);
  background: var(--paper);
  color: var(--ink);
}

.btn-outline {
  border-color: #aeb5ba;
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.header-call {
  flex: 0 0 auto;
}

.hero,
.page-hero {
  position: relative;
  min-height: min(720px, calc(100svh - 76px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
}

.page-hero {
  min-height: 600px;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after,
.page-hero::after {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 15, 0.66);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 92px 0 82px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 16px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #f4aa9f;
}

.hero-lead {
  max-width: 700px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-proof div {
  min-width: 0;
  padding: 18px;
  background: rgba(16, 18, 19, 0.72);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  font-size: 0.9rem;
}

.hero-proof span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

.breadcrumb-wrap {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--ink);
  text-decoration: none;
}

.promise-band {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.promise-item {
  min-width: 0;
  padding: 24px 22px;
  border-left: 1px solid var(--line);
}

.promise-item:last-child {
  border-right: 1px solid var(--line);
}

.promise-item strong,
.promise-item span {
  display: block;
}

.promise-item strong {
  font-size: 0.91rem;
}

.promise-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

section {
  padding: 96px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  background: var(--dark);
  color: var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 46px;
}

.section-head > p {
  color: var(--muted);
}

.section-dark .section-head > p {
  color: rgba(255, 255, 255, 0.66);
}

.intro-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  min-height: 440px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split-copy > p:not(.section-kicker) {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.04rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

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

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

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

.service-card,
.info-card,
.decision-card,
.area-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.card-body p,
.info-card p,
.decision-card p,
.area-card p {
  margin-top: 14px;
  color: var(--muted);
}

.card-body .text-link {
  margin-top: auto;
  padding-top: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.info-card,
.decision-card,
.area-card {
  padding: 30px;
}

.info-card.accent-red {
  border-top: 4px solid var(--red);
}

.info-card.accent-teal {
  border-top: 4px solid var(--teal);
}

.info-card.accent-gold {
  border-top: 4px solid var(--gold);
}

.number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.83rem;
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 0.16em;
  left: 0;
  color: var(--teal);
  font-weight: 900;
  content: "✓";
}

.plain-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.plain-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: 0;
}

.decision-card {
  border-top: 5px solid var(--line);
}

.decision-card.repair {
  border-top-color: var(--teal);
}

.decision-card.upgrade {
  border-top-color: var(--gold);
}

.decision-card.replace {
  border-top-color: var(--red);
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.process {
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.process-item {
  position: relative;
  min-width: 0;
  padding: 34px 28px;
  background: var(--dark);
  counter-increment: steps;
}

.process-item::before {
  display: block;
  margin-bottom: 24px;
  color: #f4aa9f;
  font-size: 0.78rem;
  font-weight: 900;
  content: "0" counter(steps);
}

.process-item p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.result-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  border: 1px solid var(--line);
}

.result-strip div {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.result-strip div:last-child {
  border-right: 0;
}

.result-strip strong,
.result-strip span {
  display: block;
}

.result-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.87rem;
}

.callout {
  margin-top: 34px;
  padding: 24px 28px;
  border-left: 5px solid var(--red);
  background: var(--soft);
  color: #3e4449;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.diagnostic-table {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
  background: var(--paper);
}

.diagnostic-table th,
.diagnostic-table td {
  padding: 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.diagnostic-table th {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.83rem;
}

.warning-box {
  margin-top: 28px;
  padding: 24px 28px;
  border-left: 5px solid var(--gold);
  background: #fff8e8;
  color: #5d4316;
}

.source-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.source-list a {
  color: var(--red-dark);
  font-weight: 700;
}

.article-body {
  width: min(820px, 100%);
}

.article-body > * + * {
  margin-top: 22px;
}

.article-body h2 {
  margin-top: 54px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.article-body h3 {
  margin-top: 36px;
}

.article-body p,
.article-body li {
  color: #40464b;
}

.article-body .check-list,
.article-body .plain-list {
  margin-top: 18px;
}

.quote-band {
  padding: 62px 0;
  background: var(--teal);
  color: var(--paper);
}

.quote-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.quote-band h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 52px 22px 0;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 20px;
  right: 4px;
  color: var(--red);
  font-size: 1.4rem;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 850px;
  padding: 0 0 24px;
  color: var(--muted);
}

.contact-section {
  padding: 96px 0;
  background: var(--dark);
  color: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
}

.contact-copy > p:not(.section-kicker) {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.68);
}

.contact-methods {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.contact-methods a,
.contact-methods > span {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-methods a:hover {
  color: #f4aa9f;
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.09);
  color: #f4aa9f;
  font-size: 1.1rem;
  font-weight: 900;
}

.form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 34px;
  background: var(--paper);
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.84rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #bfc5ca;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(8, 123, 114, 0.14);
}

.form-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status {
  display: none;
  padding: 13px 15px;
  border-left: 4px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-status.is-success,
.form-status.is-error {
  display: block;
}

.form-status.is-success {
  border-color: var(--teal);
  background: #e9f7f4;
  color: #075f58;
}

.form-status.is-error {
  border-color: var(--red);
  background: #fff0ed;
  color: #8d281c;
}

.form .btn:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.site-footer {
  border-top: 1px solid #353a3e;
  background: #17191b;
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0;
}

.footer-title {
  display: block;
  margin-bottom: 12px;
  color: var(--paper);
  font-weight: 900;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 8px;
  font-size: 0.86rem;
}

.footer-col a {
  color: inherit;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid #2d3033;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.75rem;
}

.mobile-bar {
  display: none;
}

@media (max-width: 980px) {
  .site-header {
    backdrop-filter: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header-call {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 99;
    display: none;
    width: 100%;
    height: calc(100dvh - 76px);
    max-height: calc(100dvh - 76px);
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    margin: 0;
    padding: 16px max(20px, calc((100% - 1160px) / 2)) 90px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    box-shadow: 0 22px 40px rgba(23, 25, 27, 0.16);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 6px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.05rem;
  }

  .nav-links a::after {
    color: #9aa1a6;
    font-size: 1.15rem;
    content: "›";
  }

  .nav-links a[aria-current="page"] {
    color: var(--red-dark);
  }

  .nav-links a[aria-current="page"]::after {
    color: var(--red);
  }

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

  .promise-item:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .promise-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section-head,
  .intro-grid,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .section-head {
    align-items: start;
  }

  .split.reverse .split-media {
    order: initial;
  }

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

@media (max-width: 680px) {
  body {
    padding-bottom: 62px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    min-height: 68px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
  }

  .hero,
  .page-hero {
    min-height: 650px;
  }

  .hero-media {
    object-position: 60% center;
  }

  .hero-content {
    padding: 76px 0 48px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

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

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof div {
    padding: 13px 16px;
  }

  .promise-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .process,
  .result-strip,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .promise-item {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .promise-item:last-child {
    border-bottom: 0;
  }

  section,
  .contact-section {
    padding: 70px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .split-media,
  .split-media img {
    min-height: 330px;
  }

  .card-body,
  .info-card,
  .decision-card,
  .area-card {
    padding: 24px;
  }

  .result-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .diagnostic-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .result-strip div:last-child {
    border-bottom: 0;
  }

  .quote-band .container {
    align-items: stretch;
    flex-direction: column;
  }

  .form {
    padding: 22px;
  }

  .mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 110;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #2d3033;
    background: var(--ink);
  }

  .mobile-bar a {
    min-height: 62px;
    display: grid;
    place-items: center;
    color: var(--paper);
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-bar a:first-child {
    border-right: 1px solid #3d4144;
  }

  .mobile-bar a:last-child {
    background: var(--red);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
