/* Copperline Plumbing: navy ink, copper, warm paper. Public Sans throughout. */
@font-face { font-family: "Public Sans"; src: url("../shared/fonts/PublicSans-wght-m1.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #13233A;
  --ink-2: #1D3352;
  --text: #22262E;
  --muted: #545A66;
  --paper: #FBF8F3;
  --white: #FFFFFF;
  --copper: #A64F1D;
  --copper-lt: #E39A63;
  --line: rgba(19, 35, 58, .14);
  --red: #B3261E;
  --sans: "Public Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { font: 400 1.0625rem/1.6 var(--sans); color: var(--text); background: var(--paper); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--copper); }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; letter-spacing: -.02em; }
::selection { background: #F3D3B9; color: var(--ink); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
input, select, textarea, button { font: inherit; color: inherit; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border: 0; border-radius: 6px; background: var(--copper); color: var(--white); font-weight: 650; text-decoration: none; cursor: pointer; transition: background-color .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1); }
.btn:hover { background: #8C4116; color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #B9AFA6; cursor: not-allowed; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn--ink { background: var(--ink); }
.btn--ink:hover { background: var(--ink-2); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.top__util { background: var(--ink); color: #D9E0EA; font-size: .875rem; }
.top__util-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 6px; }
.top__tel { color: var(--white); font-weight: 650; font-variant-numeric: tabular-nums; }
.top__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 68px; padding-block: 8px; }
.logo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.logo b { font-weight: 750; }
.logo__mark { color: var(--copper); }
.top__menu { display: none; margin-left: auto; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-weight: 600; cursor: pointer; }
.top__nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.top__nav ul { display: flex; gap: 24px; }
.top__nav ul a { text-decoration: none; font-weight: 500; }
.top__nav ul a:hover { text-decoration: underline; }

/* Hero */
.hero { background: var(--white); padding-bottom: 56px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding-top: 56px; }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.08; font-weight: 750; max-width: 14ch; }
.hero__lede { margin-top: 20px; font-size: 1.1875rem; color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero__link { font-weight: 600; }
.hero__photo { border-radius: 10px; overflow: hidden; }
.hero__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 38% 50%; }
.now { margin-top: 40px; display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 8px 40px; padding: 24px 28px; background: #FDF1E7; border-radius: 10px; }
.now h2 { font-size: 1.25rem; line-height: 1.3; }
.now p { max-width: 70ch; }

/* Services */
.services { padding-block: 96px; }
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.services__head h2, .visit h2, .area h2, .request h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.12; font-weight: 700; }
.services__head p { margin-top: 16px; color: var(--muted); max-width: 42ch; }
.services__head { position: sticky; top: 140px; align-self: start; }
.services__photo { margin-top: 32px; border-radius: 10px; overflow: hidden; }
.services__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 70%; }
.svc { border-top: 2px solid var(--ink); }
.svc li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.svc h3 { font-size: 1.3125rem; font-weight: 700; }
.svc p { grid-column: 1; color: var(--muted); max-width: 52ch; }
.svc a { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; color: var(--copper); max-width: 22ch; text-align: right; }
.svc a:hover { color: var(--ink); }
.svc h3 a { color: var(--ink); max-width: none; text-align: left; text-decoration: underline; text-decoration-color: rgba(166, 79, 29, .45); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.svc h3 a:hover { color: var(--copper); text-decoration-color: currentColor; }
.services__more { font-weight: 600; }

/* Visit */
.visit { background: var(--ink); color: #E3E8EF; padding-block: 88px; }
.visit h2 { color: var(--white); }
.visit__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 40px; counter-reset: s; }
.visit__steps li { counter-increment: s; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .22); }
.visit__steps li::before { content: counter(s); display: block; margin-bottom: 10px; color: var(--copper-lt); font-weight: 700; font-variant-numeric: tabular-nums; }
.visit__steps b { display: block; color: var(--white); font-size: 1.125rem; margin-bottom: 4px; }

/* Area */
.area { padding-block: 96px; }
.area__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 64px; align-items: start; }
.area__grid > div > p { margin-top: 12px; color: var(--muted); }
.area__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.area__list li { border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .9375rem; }
.area__list a { display: block; padding: 8px 15px; border-radius: inherit; color: var(--ink); text-decoration: none; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.area__list a:hover { background: #FDF1E7; color: var(--copper); }
.area__more { margin-top: 20px; font-weight: 600; }
.zip { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.zip h3 { font-size: 1.25rem; }
.zip label { display: block; margin-top: 14px; font-weight: 600; font-size: .9375rem; }
.zip__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.zip__row input { flex-basis: 8em; }
.zip__row input { flex: 1; min-width: 0; }
.zip__out { margin-top: 14px; min-height: 1.6em; }
.zip[data-result="yes"] .zip__out { color: #1E5E3A; font-weight: 600; }
.zip[data-result="error"] .zip__out { color: var(--red); }

/* Request */
.request { padding-block: 96px; background: var(--white); border-top: 1px solid var(--line); }
.request__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
.request__copy p { margin-top: 14px; color: var(--muted); max-width: 40ch; }
.request__facts { margin-top: 32px; display: grid; gap: 18px; }
.request__facts dt { font-size: .875rem; color: var(--muted); }
.request__facts dd { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.form { display: grid; gap: 20px; }
.form__row--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.f label, .f legend { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; color: var(--ink); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #A9B0BC; border-radius: 6px; background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(166, 79, 29, .25); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.f__err { margin-top: 6px; color: var(--red); font-size: .9375rem; font-weight: 500; }
.f__hint { margin-top: -8px; color: var(--muted); font-size: .9375rem; }
.f .f__hint { margin-top: 6px; }
.when { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.when legend { width: 100%; }
.when label { max-width: 100%; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 1px solid #A9B0BC; border-radius: 6px; font-weight: 500; cursor: pointer; }
.when label:has(:checked) { border-color: var(--ink); background: #EEF1F5; box-shadow: inset 0 0 0 1px var(--ink); }
.when input { accent-color: var(--copper); width: 18px; height: 18px; }
.form__summary { padding: 12px 16px; border-radius: 6px; background: #FCEAE8; color: var(--red); font-weight: 600; }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form__note { color: var(--muted); font-size: .9375rem; max-width: 36ch; }
.form__done:empty { display: none; }
.form__done { padding: 16px 18px; border-radius: 8px; background: #EEF1F5; color: var(--ink); font-weight: 500; }
.form__done:focus { outline: 2px solid var(--ink); }

/* Footer */
.foot { background: var(--ink); color: #C9D2DE; padding-block: 56px 40px; font-size: .9375rem; }
.foot a { color: var(--white); }
.foot a:hover { color: var(--copper-lt); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; }
.logo--foot { color: var(--white); margin-bottom: 10px; }
.foot__links { display: grid; gap: 8px; align-content: start; }
.foot__context { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); color: #A9B5C4; font-size: .875rem; max-width: 90ch; }

@media (max-width: 1000px) {
  .hero__grid, .services__grid, .area__grid, .request__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__grid { padding-top: 32px; }
  .hero__photo { order: -1; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .hero__photo img { aspect-ratio: 16 / 10; }
  .services__head { position: static; }
  .services__photo img { aspect-ratio: 16 / 9; }
  .visit__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .now { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .top__menu { display: inline-flex; align-items: center; }
  .top__nav { display: none; }
  .menu-open .top__nav { display: flex; flex-direction: column; align-items: stretch; gap: 8px; position: absolute; left: 0; right: 0; top: 100%; padding: 12px var(--gutter) 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -12px rgba(19, 35, 58, .25); }
  .menu-open .top__nav ul { flex-direction: column; gap: 0; }
  .menu-open .top__nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  html:not(.js) .top { position: static; }
  html:not(.js) .top__bar { flex-wrap: wrap; padding-bottom: 14px; }
  html:not(.js) .top__nav { display: flex; flex-wrap: wrap; width: 100%; margin-left: 0; gap: 12px 20px; }
  html:not(.js) .top__nav ul { flex-wrap: wrap; gap: 6px 18px; }
  html:not(.js) .top__menu { display: none; }
}
@media (max-width: 640px) {
  /* The util bar and wordmark stack tall at large text sizes; a static header keeps focused fields visible. */
  html { scroll-padding-top: 0; }
  .top { position: relative; }
  body { font-size: 1rem; }
  .top__util-in p:first-child { display: none; }
  .top__util-in { justify-content: flex-end; }
  .services, .area, .request { padding-block: 64px; }
  .visit { padding-block: 64px; }
  .visit__steps, .form__row--2 { grid-template-columns: minmax(0, 1fr); }
  .svc li { grid-template-columns: minmax(0, 1fr); }
  .svc a { grid-column: 1; grid-row: auto; margin-top: 6px; max-width: none; text-align: left; }
  .now { padding: 20px; }
  .hero__actions .btn { width: 100%; }
  .hero__photo img { aspect-ratio: 16 / 9; }
  .hero__grid { padding-top: 0; gap: 24px; }
  .hero__lede { margin-top: 14px; font-size: 1.0625rem; }
  .hero__actions { margin-top: 22px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
