/* Best Stretch Ceilings: shared styles */
:root {
  --ink: #0F1B3D;
  --ink-soft: #4A5675;
  --paper: #F4F6FA;
  --white: #FFFFFF;
  --line: #D5DBE8;
  --line-strong: #B7C0D6;
  --accent: #FFB400;
  --accent-text: #3B4A8A;
  --on-dark: #C9D2EA;
  --error: #B3261E;
  --radius: 4px;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Sora', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font-family: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--ink); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.band-white { background: var(--white); }
.band-dark { background: var(--ink); color: var(--white); }
.band-accent { background: var(--accent); color: var(--ink); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }

h1 { font-weight: 700; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-weight: 700; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.lead { font-size: 19px; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.on-dark .muted, .band-dark .muted { color: var(--on-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border: 0; border-radius: var(--radius);
  font-size: 17px; font-weight: 700; line-height: 1.3; cursor: pointer;
}
.btn-yellow { background: var(--accent); color: var(--ink); }
.btn-yellow:hover { background: #FFC433; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav a { font-weight: 600; font-size: 15px; padding: 12px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.header-cta .phone { font-weight: 700; }
.header-cta .btn { padding: 10px 22px; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 64px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 420px; min-width: 0; gap: 24px; }
.hero-copy .lead { max-width: 540px; }
.hero-media { flex: 1 1 380px; min-width: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--line); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 600; color: var(--ink-soft); padding-top: 4px; }

/* Quick links */
.quick { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.quick .wrap { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.quick a, .quick button {
  flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px;
  padding: 16px 20px; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink); cursor: pointer; font-size: 17px; line-height: 1.5;
}
.quick .q-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.quick .q-sub { font-size: 15px; color: var(--ink-soft); }
.quick .q-accent { background: var(--accent); }
.quick .q-accent .q-sub { color: var(--ink); }

/* Generic columns */
.two-col { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.two-col > .col-a { flex: 1 1 320px; min-width: 0; }
.two-col > .col-b { flex: 2 1 420px; min-width: 0; }
.section-head { max-width: 680px; gap: 12px; margin-bottom: 40px; }

/* Cards and lists */
.cards { display: flex; flex-wrap: wrap; gap: 32px 24px; }
.card { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.card .tagged { position: relative; }
.tag { position: absolute; left: 10px; top: 10px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 3px; }
.rules { display: flex; flex-direction: column; }
.rules > li, .rules > div { border-top: 1px solid var(--line); padding: 18px 0; display: flex; flex-direction: column; gap: 4px; }
.rules > li:last-child, .rules > div:last-child { border-bottom: 1px solid var(--line); }
.band-dark .rules > li { border-color: rgba(255, 255, 255, 0.2); }
.finish-grid { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 24px; }
.finish-grid > div { flex: 1 1 250px; min-width: 0; border-top: 1px solid var(--line); padding: 16px 0; }
.finish-grid h3 { font-size: 17px; }
.finish-grid p { margin-top: 4px; font-size: 15px; color: var(--ink-soft); }

/* Steps */
.steps { display: flex; flex-wrap: wrap; gap: 32px 24px; }
.step { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--accent); padding-top: 16px; }
.step .num { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--accent); }
.step p { color: var(--on-dark); }

/* City link cards */
.city-links { display: flex; flex-wrap: wrap; gap: 16px; }
.city-links a { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--paper); border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line); }
.city-links a:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.city-links .c-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.city-links .c-sub { font-size: 15px; color: var(--ink-soft); }

/* Served-area chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; background: var(--white); border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; font-weight: 600; }

/* FAQ */
.faq .item { border-top: 1px solid var(--line); padding: 20px 0; display: flex; flex-direction: column; gap: 4px; }
.faq .item:last-child { border-bottom: 1px solid var(--line); }
.faq h3 { font-size: 18px; }

/* Estimate band */
.estimate .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; padding-top: 64px; padding-bottom: 64px; }
.estimate .copy { flex: 1 1 360px; min-width: 0; gap: 12px; }
.estimate .copy p { font-size: 19px; }
.contact-card { flex: 1 1 320px; min-width: 0; background: var(--white); color: var(--ink); padding: 28px; border-radius: 6px; display: flex; flex-direction: column; gap: 14px; }
.contact-card .label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); display: block; }
.contact-card .value { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; display: block; }
.estimate .btn-dark { align-self: flex-start; }

/* Calculator */
.calc { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.calc-main { flex: 2 1 460px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 28px; }
.calc-side { flex: 1 1 320px; min-width: 0; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.calc h3 { font-size: 17px; margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 16px; border: 0; border-radius: var(--radius); cursor: pointer;
  font-size: 15px; font-weight: 600; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.finish { min-width: 120px; min-height: 56px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.chip.finish .f-name { font-size: 16px; font-weight: 700; }
.chip.finish .f-price { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.chip.finish[aria-pressed="true"] .f-price { color: var(--on-dark); }
.stepper-row { border-top: 1px solid var(--line); padding: 16px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.stepper-row .s-text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.stepper-row .s-title { font-weight: 700; font-size: 16px; }
.stepper-row .s-hint { font-size: 14px; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: var(--radius); cursor: pointer; font-size: 22px; font-weight: 700; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.stepper output { min-width: 84px; text-align: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.calc-lines { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 16px; }
.calc-lines .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-lines .lbl { min-width: 0; color: var(--ink-soft); }
.calc-total { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.calc-total .t-label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.calc-total .t-value { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.site-footer .f-brand { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--white); display: block; margin-bottom: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: flex-start; }
.site-footer nav a { padding: 8px 0; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .legal { flex-basis: 100%; }

/* Dialog form */
.dialog {
  width: calc(100% - 32px); max-width: 480px; padding: 0; border: 0; border-radius: 6px;
  background: var(--white); color: var(--ink);
}
.dialog::backdrop { background: rgba(15, 27, 61, 0.72); }
.dialog form { position: relative; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.dialog-close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dialog h2 { font-size: 26px; padding-right: 40px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 700; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 0; border-radius: var(--radius);
  background: var(--white); color: var(--ink); font-size: 16px; box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.field.has-error input { box-shadow: inset 0 0 0 1.5px var(--error); }
.field .err { display: none; font-size: 14px; font-weight: 600; color: var(--error); }
.field.has-error .err { display: block; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dialog .btn { min-height: 52px; }

/* Thank-you page */
.thanks { min-height: 60vh; display: flex; align-items: center; }
.thanks .wrap { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

@media (max-width: 560px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .calc-main, .calc-side { padding: 20px; }
  .dialog form { padding: 24px; }
}

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