/* Cox Roofing & Restoration — site styles
   Palette from the materials: weathered zinc, slate, copper (their specialty), verdigris for confirmed states. */

:root {
  --zinc: #ECEEEF;
  --zinc-2: #DCE0E2;
  --zinc-3: #C3C9CC;
  --white: #FFFFFF;
  --ink: #1B2426;
  --ink-2: #33403F;
  --ink-3: #5D6C6B;
  --copper: #B5642A;
  --copper-2: #8E4B1D;
  --copper-tint: #F3E3D5;
  --patina: #3E7D70;
  --patina-tint: #DCEBE6;
  --alert: #B23A2B;
  --alert-tint: #F6DDD9;

  --display: 'Big Shoulders', 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 4px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1180px;
  --measure: 62ch;

  /* Shingle courses: two staggered rows of tabs, drawn once as a tile. The one decorative idea on the site. */
  --courses: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80'%3E%3Cg fill='none' stroke='%231B2426' stroke-opacity='.12' stroke-width='1.2'%3E%3Cpath d='M0 39.5H120M0 79.5H120'/%3E%3Cpath d='M0.6 0V40M60.5 40V80'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--zinc);
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--copper-2); text-underline-offset: 3px; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
button { font: inherit; }
::selection { background: var(--copper-tint); }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 8vw, 6.75rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.05; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); }
.small { font-size: 0.875rem; color: var(--ink-3); }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section + .section { border-top: 1px solid var(--zinc-3); }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { margin: 0; }

/* ---------- buttons ---------- */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn { background: var(--copper); color: var(--white); border-color: var(--copper); }
.btn:hover { background: var(--copper-2); border-color: var(--copper-2); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-lg { min-height: 3.5rem; padding-inline: 1.75rem; font-size: 1.05rem; }
.btn[disabled], .btn-ghost[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-quiet { background: none; border: 0; padding: 0.5rem 0; color: var(--ink-3); text-decoration: underline; cursor: pointer; }

/* ---------- ticker + header ---------- */
.ticker {
  background: var(--copper); color: var(--white); font-size: 0.9rem; font-weight: 600;
  overflow: hidden; white-space: nowrap; min-height: 2.1rem; display: flex; align-items: center;
}
.ticker ul { display: flex; gap: 3rem; margin: 0; padding: 0 1.5rem; list-style: none; animation: ticker 40s linear infinite; }
.ticker li::before { content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.6rem; background: var(--white); transform: rotate(45deg); }
.ticker:hover ul { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--zinc-3);
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; min-height: 4.5rem; padding-block: 0.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
.brand svg { width: 34px; height: 22px; flex: 0 0 auto; color: var(--copper); }
.brand span span { color: var(--ink-3); font-weight: 600; }
.site-nav { display: flex; gap: 1.25rem; margin-left: 0.5rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 0.25rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--copper); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.phone { font-family: var(--display); font-size: 1.35rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: 0.02em; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.4rem 0.8rem; font-weight: 600; cursor: pointer; }

@media (max-width: 1100px) {
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--zinc-3); padding: 0.5rem var(--gutter) 1rem; margin: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--zinc-2); }
  .nav-toggle { display: inline-block; }
  .header-actions .btn { display: none; }
  .brand { font-size: 1.3rem; }
  .phone { font-size: 1.15rem; }
}
@media (max-width: 480px) {
  .site-header .wrap { gap: 0.75rem; }
  .brand span span { display: none; }
  .phone { font-size: 1.05rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; background: var(--courses);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.15) 70%, transparent);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.15) 70%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 8vw, 6.5rem); }
.hero h1 { max-width: 12ch; }
.hero .lead { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.cred { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--ink-3); font-size: 0.9rem; }
.cred li { display: flex; align-items: center; gap: 0.4rem; }
.cred li::before { content: ''; width: 0.55rem; height: 0.55rem; background: var(--copper); transform: rotate(45deg); }

.quick-start {
  background: var(--white); border: 1px solid var(--zinc-3); border-top: 5px solid var(--copper);
  border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem);
}
.quick-start h2 { font-size: 2.25rem; margin-bottom: 0.25rem; }
.quick-start p { color: var(--ink-2); margin-bottom: 1.25rem; }
.quick-start .btn { width: 100%; margin-top: 0.5rem; }
.fine { font-size: 0.85rem; color: var(--ink-3); margin: 0.75rem 0 0; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ---------- price board ---------- */
.board { border-top: 3px solid var(--ink); margin: 0; }
.board-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1.6fr) auto; gap: 1.5rem; align-items: center; padding: 1.35rem 0; border-bottom: 1px solid var(--zinc-3); }
.board-row h3 { margin: 0; }
.board-row .price { font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1; color: var(--copper-2); }
.board-row .price small { display: block; font-family: var(--body); font-size: 0.8rem; font-weight: 400; color: var(--ink-3); margin-top: 0.25rem; }
.board-row p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .board-row { grid-template-columns: 1fr 1fr; }
  .board-row p { grid-column: 1 / -1; }
  .board-row .board-cta { grid-column: 1 / -1; }
}

/* ---------- process (a real sequence, so it is numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem 2rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.5rem; border-top: 1px solid var(--zinc-3); }
.steps li::before { content: counter(step); position: absolute; top: 0.5rem; left: 0; font-family: var(--display); font-size: 2.75rem; font-weight: 800; line-height: 1; color: var(--copper); }
.steps h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- difference / offices ---------- */
.dark { background: var(--ink); color: var(--zinc); }
.dark h2, .dark h3 { color: var(--white); }
.dark p { color: var(--zinc-2); }
.dark a { color: var(--copper-tint); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.promises li { padding: 1.5rem; border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); }
.promises strong { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 800; line-height: 1; margin-bottom: 0.5rem; color: var(--white); }
.promises span { color: var(--zinc-2); }

.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.offices li { padding: 1.5rem; background: var(--white); border: 1px solid var(--zinc-3); border-radius: var(--radius); }
.offices h3 { font-size: 1.6rem; margin-bottom: 0.35rem; }
.offices p { margin: 0; color: var(--ink-2); }
.areas { columns: 3 12rem; column-gap: 2rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.areas li { break-inside: avoid; padding: 0.15rem 0; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.reviews blockquote { margin: 0; padding: 1.5rem; background: var(--white); border-left: 4px solid var(--copper); border-radius: var(--radius); }
.reviews blockquote p { margin: 0 0 0.75rem; }
.reviews cite { font-style: normal; font-weight: 600; color: var(--ink-3); }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--copper); color: var(--white); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--copper-tint); }
.cta-band .btn { background: var(--white); color: var(--copper-2); border-color: var(--white); }
.cta-band .btn:hover { background: var(--copper-tint); }
.cta-band .btn-ghost { color: var(--white); border-color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--copper-2); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }

.site-footer { background: var(--white); border-top: 1px solid var(--zinc-3); padding-block: 3rem 2rem; font-size: 0.925rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.2rem 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--copper); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--zinc-2); padding-top: 1.25rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }

/* ---------- generic page (services, about) ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem 3rem; }
.spec { border-top: 3px solid var(--ink); margin: 0; }
.spec div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--zinc-3); }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--zinc-3); padding: 0.9rem 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 0.6rem 0 0; color: var(--ink-2); }

/* ---------- forms ---------- */
.field { display: grid; gap: 0.35rem; margin-bottom: 1.1rem; }
.field > label, .field > .label { font-weight: 600; }
.field .hint { font-size: 0.85rem; color: var(--ink-3); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.85rem;
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--ink-3); border-radius: var(--radius);
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--copper); outline: 3px solid var(--copper-tint); outline-offset: 0; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--alert); }
.error { color: var(--alert); font-size: 0.9rem; margin: 0.35rem 0 0; }
.notice { background: var(--alert-tint); color: var(--alert); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 1rem; }
.notice.ok { background: var(--patina-tint); color: var(--patina); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 0.55rem 0.95rem; border: 1.5px solid var(--ink-3); border-radius: 999px; font-weight: 600; background: var(--white); }
.chip input:checked + span { background: var(--copper); border-color: var(--copper); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.radio-row label { display: flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- intake ---------- */
.intake { max-width: 760px; margin: 0 auto; padding-block: clamp(2rem, 5vw, 4rem); }
.intake h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.rail { display: flex; gap: 0.25rem; list-style: none; margin: 1.5rem 0 2.5rem; padding: 0; counter-reset: rail; }
.rail li { counter-increment: rail; flex: 1; height: 6px; background: var(--zinc-3); border-radius: 3px; position: relative; }
.rail li.done { background: var(--patina); }
.rail li.current { background: var(--copper); }
.rail li span { position: absolute; top: 10px; left: 0; right: 4px; font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail li.current span { color: var(--copper-2); font-weight: 700; }
@media (max-width: 640px) { .rail li span { display: none; } .rail li.current span { display: block; right: auto; overflow: visible; } }
.step { display: none; }
.step.active { display: block; }
.step h2 { font-size: clamp(2rem, 5vw, 3rem); }
.step > p.lead { margin-bottom: 1.5rem; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; }

.drop {
  border: 2px dashed var(--ink-3); border-radius: var(--radius); background: var(--white);
  padding: 2rem 1.5rem; text-align: center; cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--copper); background: var(--copper-tint); }
.drop input { display: none; }
.drop strong { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 800; }
.drop span { color: var(--ink-3); font-size: 0.9rem; }
.tips { margin: 1rem 0 0; padding: 0 0 0 1.1rem; color: var(--ink-2); font-size: 0.925rem; }
.tips li { margin: 0.2rem 0; }

.photos { display: grid; gap: 1rem; margin-top: 1.5rem; }
.photo { display: grid; grid-template-columns: 128px 1fr; gap: 1rem; background: var(--white); border: 1px solid var(--zinc-3); border-radius: var(--radius); padding: 0.75rem; }
.photo img { width: 128px; height: 128px; object-fit: cover; border-radius: 3px; background: var(--zinc-2); }
.photo .status { color: var(--ink-3); font-size: 0.9rem; }
.photo .status.reading::before { content: ''; display: inline-block; width: 0.8rem; height: 0.8rem; border: 2px solid var(--copper); border-right-color: transparent; border-radius: 50%; margin-right: 0.4rem; vertical-align: -1px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.findings { font-size: 0.925rem; }
.findings ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.findings li { margin: 0.15rem 0; }
.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-right: 0.4rem; background: var(--zinc-2); color: var(--ink-2); }
.sev-severe, .sev-moderate { background: var(--alert-tint); color: var(--alert); }
.sev-minor { background: var(--copper-tint); color: var(--copper-2); }
.sev-none { background: var(--patina-tint); color: var(--patina); }
.photo.pick { cursor: pointer; }
.photo.pick.selected { outline: 3px solid var(--copper); outline-offset: -3px; }
.pick-order { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--copper); }
@media (max-width: 480px) { .photo { grid-template-columns: 88px 1fr; } .photo img { width: 88px; height: 88px; } }

model-viewer { width: 100%; height: 380px; background: var(--white); border: 1px solid var(--zinc-3); border-radius: var(--radius); }
.model { margin-top: 1.5rem; }
.model .bar { height: 8px; background: var(--zinc-3); border-radius: 4px; overflow: hidden; margin: 0.5rem 0; }
.model .bar i { display: block; height: 100%; background: var(--copper); width: 0; transition: width 400ms ease; }

.days { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; }
.day { flex: 0 0 auto; padding: 0.55rem 0.9rem; border: 1.5px solid var(--ink-3); border-radius: var(--radius); background: var(--white); cursor: pointer; text-align: center; line-height: 1.2; min-width: 4.5rem; }
.day small { display: block; color: var(--ink-3); font-size: 0.75rem; }
.day[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.day[aria-selected="true"] small { color: var(--zinc-2); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; margin-top: 1rem; }
.slot { padding: 0.65rem 0.5rem; border: 1.5px solid var(--ink-3); border-radius: var(--radius); background: var(--white); cursor: pointer; font-weight: 600; }
.slot[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); color: var(--white); }

.done-card { background: var(--white); border: 1px solid var(--zinc-3); border-top: 5px solid var(--patina); border-radius: var(--radius); padding: 1.5rem; }
.done-card h2 { color: var(--patina); }
.copy-row { display: flex; gap: 0.5rem; }
.copy-row input { flex: 1; }

/* ---------- claim page ---------- */
.claim-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; padding-block: 2.5rem 1.5rem; border-bottom: 3px solid var(--ink); }
.claim-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin: 0; }
.claim-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 2.5rem; padding-block: 2rem 4rem; }
@media (max-width: 860px) { .claim-grid { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--zinc-3); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.panel h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.summary { white-space: pre-line; }
.status-pill { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--copper-tint); color: var(--copper-2); font-weight: 700; }
.status-pill.scheduled { background: var(--patina-tint); color: var(--patina); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker ul { animation: none; flex-wrap: wrap; white-space: normal; }
  .photo .status.reading::before { animation: none; }
  .model .bar i { transition: none; }
}
