@font-face {
  font-family: Barlow;
  src: url('./assets/barlow-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('./assets/barlow-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #171d2e;
  --navy-deep: #111626;
  --ink: #1c2334;
  --muted: #515969;
  --accent: #a6323d;
  --accent-hover: #872731;
  --rose: #fa8a8c;
  --paper: #fff;
  --canvas: #f6f6f8;
  --line: #d8dbe2;
  --header: 64px;
  --gutter: clamp(20px, 5.5vw, 76px);
  --pad-block: clamp(48px, 6.5vw, 88px);
  --radius: 10px;
  --shadow: 0 1px 2px rgb(17 22 38 / 4%), 0 12px 34px rgb(17 22 38 / 6%);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font: 16px/1.55 Barlow, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: calc(var(--header) + 16px);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 3px solid #bd4150; outline-offset: 4px; }
::selection { background: #f6cbd0; color: var(--navy); }

.shell { width: min(calc(100% - 2 * var(--gutter)), 1190px); margin-inline: auto; }
.section { padding-block: var(--pad-block); }
.skip { position: fixed; top: -100px; left: 12px; z-index: 20; padding: 10px 16px; background: white; }
.skip:focus { top: 12px; }
h1, h2, h3, strong { font-weight: 600; }
h1, h2 { line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(2.25rem, 4.25vw, 3.75rem); text-wrap: balance; }
h3 { line-height: 1.15; }
p { max-width: 62ch; text-wrap: pretty; }
.section-head { margin-bottom: clamp(24px, 3vw, 38px); }
.section-head > p, .intake-copy > p { margin-top: 13px; font-size: 1.125rem; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-hover); }
.secondary { border-color: #b8bdcb; color: var(--ink); background: var(--paper); }
.secondary:hover { border-color: var(--accent); color: var(--accent); }

.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid #e4e6ec;
}
@supports (backdrop-filter: blur(12px)) {
  .mast { background: rgb(255 255 255 / 90%); backdrop-filter: blur(14px); }
}
.bar { position: relative; display: flex; min-height: var(--header); align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { display: block; flex: none; }
.brand-name { display: grid; gap: 1px; }
.brand strong { font-size: 1.575rem; line-height: 1; letter-spacing: -.025em; }
.brand small { color: var(--muted); line-height: 1.05; font-size: .75rem; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 3.6vw, 48px); margin-inline: auto; }
.desktop-nav a, .foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.desktop-nav a { transition: color 160ms ease; }
.desktop-nav a:hover { color: var(--accent); }
.header-brief { min-height: 44px; white-space: nowrap; }
.mobile-menu { display: none; }
.mobile-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 7px; }
.mobile-menu[open] summary { background: var(--canvas); color: var(--accent); }
.menu-line-top, .menu-line-bottom { transition: transform 180ms ease; transform-origin: center; }
.mobile-menu[open] .menu-line-top { transform: translateY(4px) rotate(45deg); }
.mobile-menu[open] .menu-line-bottom { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu .disclosure-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgb(17 22 38 / 13%);
}
.mobile-menu nav {
  padding: 8px;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.mobile-menu nav a { display: flex; align-items: center; min-height: 44px; padding-inline: 13px; border-radius: 5px; font-weight: 600; }
.mobile-menu nav a:hover { background: var(--canvas); color: var(--accent); }

.landing {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: clamp(460px, 42vw, 608px);
  background: var(--navy-deep);
  color: #fff;
}
.hero-backdrop { position: absolute; inset: 0; z-index: -2; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.landing::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #111626 0%, rgb(17 22 38 / 93%) 19%, rgb(17 22 38 / 62%) 43%, rgb(17 22 38 / 6%) 72%),
    linear-gradient(0deg, rgb(17 22 38 / 52%), transparent 44%);
}
.hero-copy { padding-block: clamp(50px, 6vw, 82px); }
.hero-copy h1 { font-size: clamp(3.4rem, 6.15vw, 5.45rem); }
.hero-copy h1::before { content: ""; display: block; width: 38px; height: 3px; background: var(--rose); margin-bottom: 20px; }
.hero-copy h1 span { display: block; margin-top: .12em; font-size: .64em; }
.hero-copy p { margin-top: 20px; font-size: clamp(1.125rem, 1.6vw, 1.35rem); max-width: 35ch; color: #e1e4ed; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.hero-actions .primary { background: #a93641; }
.hero-actions .primary:hover { background: #a02d37; }
.hero-actions .secondary { color: #fff; border-color: #a1a8b9; background: rgb(17 22 38 / 48%); }
.hero-actions .secondary:hover { background: #30384d; border-color: #fff; }
.landing :focus-visible, .process :focus-visible, .footer :focus-visible { outline-color: var(--rose); }

.services { background: var(--canvas); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.service-column { display: grid; gap: 14px; }
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.service-card:hover, .service-card[open] { border-color: #b4a0a5; box-shadow: var(--shadow); }
.service-card summary { position: relative; min-height: 114px; display: grid; align-content: center; gap: 6px; padding: 20px 73px 20px 24px; border-radius: var(--radius); }
.service-card summary h3 { font-size: clamp(1.28rem, 2vw, 1.58rem); }
.service-card summary p { color: var(--muted); line-height: 1.42; }
.service-expand {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: #f9edf0;
}
.service-expand::before, .service-expand::after { content: ""; position: absolute; width: 10px; height: 1.5px; background: currentColor; }
.service-expand::after { transform: rotate(90deg); transition: transform 240ms var(--ease-out); }
.service-card[open] .service-expand::after { transform: rotate(0); }
.service-list { list-style: none; padding: 0 24px 8px; }
.service-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; }
.service-list strong { display: block; line-height: 1.25; }
.service-list p { color: var(--muted); font-size: .9375rem; line-height: 1.4; margin-top: 4px; }
.service-add { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 1px 10px; border-radius: 6px; white-space: nowrap; }
.service-add:hover { background: #f9edf0; }
.help-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 24px; padding: 19px 0 0; border-top: 1px solid var(--line); }
.help-row h3 { font-size: 1.15rem; }
.help-row p { color: var(--muted); margin-top: 5px; }

.process { overflow: clip; color: #fff; background: var(--navy); }
.process-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 84px); align-items: center; padding-block: var(--pad-block); }
.process-copy h2 { max-width: 13ch; }
.process-steps { list-style: none; padding: 0; display: grid; gap: 17px; }
.process-steps li { display: flex; align-items: start; gap: 14px; }
.step-number { flex: 0 0 31px; display: grid; place-items: center; min-height: 31px; border: 1px solid #9b515c; color: #ffb1b4; border-radius: 50%; font-weight: 600; }
.process-steps h3 { font-size: 1.175rem; }
.process-steps p { margin-top: 4px; color: #d4d8e4; }
.process-photo { aspect-ratio: 5 / 4; overflow: clip; border-radius: var(--radius); outline: 1px solid rgb(255 255 255 / 12%); outline-offset: -1px; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 76% 50%; }

.estimate { background: var(--canvas); }
.intake { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; gap: clamp(28px, 7vw, 96px); }
.intake-copy { padding-top: 17px; }
.intake-copy h2 { max-width: 12ch; }
#brief { min-width: 0; padding: clamp(18px, 3vw, 39px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
#brief h3 { font-size: 1.55rem; }
#brief-note { color: var(--muted); margin: 6px 0 20px; }
#brief label { display: block; font-weight: 600; margin: 15px 0 5px; }
.optional { color: var(--muted); font-weight: 400; }
#brief input, #brief select, #brief textarea {
  display: block;
  color-scheme: light;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b9becb;
  border-radius: 6px;
  background: #fdfdfe;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
#brief input:focus, #brief select:focus, #brief textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(166 50 61 / 10%);
}
#brief textarea { resize: vertical; }
.form-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; margin-top: 18px; }
.plain-button { min-height: 44px; padding: 7px; border: 0; background: transparent; color: var(--accent); font-weight: 600; }
.plain-button:hover { text-decoration: underline; }
.field-hint, #feedback { margin-top: 12px; color: var(--muted); }
.field-hint:empty, #feedback:empty { display: none; }
#result { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
#summary { margin-top: 12px; }
#summary div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 10px; padding: 7px 0; }
#summary dt { font-weight: 600; }
#summary dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.location { border-block: 1px solid var(--line); background: var(--paper); }
.location-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(28px, 6vw, 90px); }
.location-copy address { margin-block: 18px 22px; font-size: clamp(1.125rem, 2vw, 1.4rem); font-style: normal; color: var(--muted); }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.location-map { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #e9ebed; box-shadow: var(--shadow); }
.map-view { display: grid; grid-template-columns: minmax(0, 1fr); }
.map-view > * { grid-area: 1 / 1; }
.map-loading { display: grid; place-items: center; color: var(--muted); }
.location-map iframe { display: block; width: 100%; height: clamp(280px, 34vw, 390px); border: 0; }

.faq { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: clamp(24px, 7vw, 96px); }
.faq h2 { max-width: 11ch; }
.repair-faq details { border-block-start: 1px solid var(--line); }
.repair-faq details:last-child { border-block-end: 1px solid var(--line); }
.repair-faq summary { position: relative; padding: 17px 36px 17px 0; font-weight: 600; font-size: 1.125rem; transition: color 180ms ease; }
.repair-faq summary:hover, .repair-faq details[open] summary { color: var(--accent); }
.repair-faq summary::before, .repair-faq summary::after { content: ""; position: absolute; right: 8px; top: 27px; width: 12px; height: 2px; background: var(--accent); }
.repair-faq summary::after { transform: rotate(90deg); transition: transform 220ms var(--ease-out); }
.repair-faq details[open] summary::after { transform: rotate(0); }
.repair-faq details p { padding: 0 14px 17px 0; color: var(--muted); }
.footer { padding-block: 33px; color: #fff; background: var(--navy-deep); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.foot strong { font-size: 1.15rem; }
.footer-address { display: block; margin-top: 5px; color: #c9cfde; transition: color 180ms ease; }
.footer-address:hover { color: #fff; text-decoration: underline; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot nav a:hover { color: #ffb1b4; }

.disclosure-panel { display: grid; grid-template-rows: 1fr; }
.disclosure-panel > * { min-height: 0; }

@keyframes disclosure-open {
  from { grid-template-rows: 0fr; opacity: 0; overflow: clip; }
  to { grid-template-rows: 1fr; opacity: 1; overflow: clip; }
}

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
  :is(.service-card, .repair-faq details)[open] > .disclosure-panel {
    animation: disclosure-open 240ms var(--ease-out);
  }
  .mobile-menu[open] > .disclosure-panel { animation: menu-open 180ms ease-out; }
}

@keyframes menu-open {
  from { opacity: 0; translate: 0 -5px; }
}

@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    :is(.service-card, .repair-faq details) {
      interpolate-size: allow-keywords;
    }
    :is(.service-card, .repair-faq details)::details-content {
      block-size: 0;
      opacity: 0;
      overflow: clip;
      transition: block-size 240ms var(--ease-out), opacity 180ms ease, content-visibility 240ms allow-discrete;
    }
    :is(.service-card, .repair-faq details)[open]::details-content {
      block-size: auto;
      opacity: 1;
    }
    :is(.service-card, .repair-faq details)[open] > .disclosure-panel {
      animation: none;
    }
  }
}

@media (max-width: 1000px) {
  .landing::before { background: linear-gradient(90deg, #111626 0%, rgb(17 22 38 / 88%) 35%, rgb(17 22 38 / 42%) 75%, rgb(17 22 38 / 16%) 100%); }
}
@media (max-width: 760px) {
  :root { --header: 62px; }
  .bar { gap: 9px; }
  .desktop-nav { display: none; }
  .header-brief { margin-left: auto; font-size: .9375rem; padding-inline: 12px; }
  .mobile-menu { display: block; }
  .process-layout { grid-template-columns: 1fr; gap: 28px; }
  .process-photo { aspect-ratio: 16 / 9; }
  .intake, .location-layout, .faq { grid-template-columns: 1fr; gap: 24px; }
  .intake-copy { padding-top: 0; }
}
@media (max-width: 720px) {
  .landing { display: block; min-height: 0; padding-bottom: clamp(155px, 41vw, 275px); }
  .landing::before {
    inset: auto 0 0;
    height: clamp(195px, 51vw, 320px);
    background: linear-gradient(180deg, #111626 0%, rgb(17 22 38 / 67%) 17%, transparent 56%);
  }
  .hero-backdrop { inset: auto 0 0; height: clamp(195px, 51vw, 320px); }
  .hero-backdrop img { object-position: center 61%; }
  .hero-copy { padding-block: 34px 12px; }
  .hero-copy h1 { font-size: clamp(2.85rem, 8.8vw, 4.25rem); }
  .hero-copy h1::before { margin-bottom: 16px; }
  .hero-copy p { margin-top: 14px; max-width: 32ch; }
  .hero-actions { margin-top: 21px; }
  .hero-actions .button { padding-inline: 14px; }
}
@media (max-width: 580px) {
  .service-grid, .service-column { gap: 11px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card summary { min-height: 92px; padding: 16px 58px 16px 17px; }
  .service-expand { right: 14px; }
  .service-list { padding-inline: 17px; }
}
@media (max-width: 470px) {
  .help-row, .foot { align-items: flex-start; flex-direction: column; }
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: 1.35rem; }
}
@media (max-width: 350px) {
  .hero-actions .button { flex: 1 1 100%; }
  .header-brief { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0s !important; transition-duration: 0s !important; }
}
