/* Wilson Contracting. Two spot colours: Wilson navy and painter's-tape teal on a cool off-white. */
:root {
  --navy: #052c47;
  --navy-2: #0a3b5c;
  --navy-ink: #021c2e;
  --teal: #22b0c3;
  --teal-dark: #0b6e7c;
  --ground: #f3f7f9;
  --paper: #ffffff;
  --ink: #0d2233;
  --ink-2: #3c5568;
  --line: #c9d6df;
  --field: #61788a;
  --on-navy: #ffffff;
  --on-navy-2: #c3d6e3;
  --error: #b42318;
  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--teal); color: var(--navy-ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: 0.75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem; border: 2px solid transparent; border-radius: 0;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-teal { background: var(--teal); color: var(--navy-ink); }
.btn-teal:hover { background: #4cc3d3; }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--on-navy); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: var(--on-navy); background: transparent; }

/* Painter's tape label */
.tape {
  display: inline-block; background: var(--teal); color: var(--navy-ink);
  font: 700 0.78rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5rem 0.75rem; transform: rotate(-1.2deg);
}
.tape:nth-child(2n) { transform: rotate(0.9deg); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand img { width: auto; height: 52px; }
.header-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--navy); text-decoration: none; min-height: 44px; }
.header-phone span { display: none; }
.header-phone svg { width: 22px; height: 22px; }
.header-cta { min-height: 44px; padding: 0.55rem 1rem; }
@media (min-width: 560px) {
  .header-phone span { display: inline; }
  .header-phone svg { width: 18px; height: 18px; }
}
@media (min-width: 960px) {
  .brand img { height: 64px; }
  .header-inner { min-height: 84px; }
  .header-nav { display: flex; gap: 1.75rem; }
  .header-nav a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
  .header-nav a:hover { color: var(--navy); text-decoration: underline; }
}

/* Hero: the navy field with the working form */
.hero { background: var(--navy); color: var(--on-navy); padding: 1.75rem 0 2.5rem; position: relative; }
.hero-grid { display: grid; gap: 1.5rem; }
.hero h1 { font-size: clamp(2rem, 7.4vw, 3.4rem); color: var(--on-navy); max-width: 16ch; }
.hero-lede { color: var(--on-navy-2); margin-top: 0.9rem; max-width: 52ch; }
.hero-offer { margin-top: 0.9rem; font-size: 1.05rem; color: var(--on-navy); }
.hero-offer strong { color: var(--teal); font-weight: 700; }
.tape-row { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem 0.6rem; }
.hero-photo { display: none; margin: 1.75rem 0 0; }

.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .hero .tape-row .tape { animation: tape-on 0.7s var(--ease-out) both; }
  .hero .tape-row .tape:nth-child(2) { animation-delay: 0.12s; }
  .hero .tape-row .tape:nth-child(3) { animation-delay: 0.24s; }
  @keyframes tape-on { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* Quote panel */
.quote-panel { background: var(--paper); color: var(--ink); padding: 1.25rem 1.1rem 1.4rem; position: relative; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55); }
.quote-anchor { position: absolute; top: -1rem; }
.quote-head h2 { font-size: 1.55rem; color: var(--navy); }
.quote-head p { color: var(--ink-2); margin-top: 0.3rem; font-size: 0.98rem; }
.quote-form { display: grid; gap: 0.95rem; margin-top: 1rem; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips legend { font-weight: 600; font-size: 0.95rem; padding: 0; margin-bottom: 0.45rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; font-size: 16px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.4rem 0.62rem;
  border: 1.5px solid var(--field); color: var(--ink); font-size: 0.875rem; font-weight: 600; background: var(--paper);
  transition: background-color 0.15s, border-color 0.15s;
}
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--navy-ink); }
.chip input:checked + span::before { content: ""; width: 0.55rem; height: 0.3rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-1px); margin-right: 0.45rem; }
.chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

.form-pair { display: grid; gap: 0.95rem; }
@media (min-width: 420px) { .form-pair { grid-template-columns: 1fr 1fr; gap: 0.75rem; } }
.form-group { display: grid; gap: 0.35rem; min-width: 0; }
.form-group label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--ink-2); font-size: 0.85rem; margin-left: 0.25rem; }
.tdm-address { row-gap: 0.6rem; }
.tdm-address-row { row-gap: 0.6rem; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; font-family: var(--font-body); font-size: 16px; line-height: 1.4; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--field); border-radius: 0; padding: 0.7rem 0.8rem; min-height: 48px;
  -webkit-appearance: none; appearance: none;
}
.form-group textarea { resize: vertical; min-height: 88px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23052c47' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2rem;
}
.form-group select:invalid { color: #5f7486; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #5f7486; opacity: 1; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--teal-dark); border-width: 2px; padding: calc(0.7rem - 0.5px) calc(0.8rem - 0.5px); }
.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.9rem; font-weight: 600; }
.form-error { background: #fdecea; color: var(--error); border: 1.5px solid var(--error); padding: 0.75rem 0.9rem; font-weight: 600; margin-top: 1rem; }
.form-error[hidden] { display: none; }
.tdm-form-status { background: #e8f6f8; color: var(--navy-ink); border: 1.5px solid var(--teal-dark); padding: 0.75rem 0.9rem; font-weight: 600; margin: 0; }
.tdm-form-status[hidden] { display: none; }
.form-success-msg:focus { outline: none; }
.form-success-msg:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

.form-submit { width: 100%; min-height: 56px; font-size: 1.1rem; margin-top: 0.2rem; }
.form-submit .btn-busy { display: none; }
.form-submit.is-loading { cursor: progress; }
.form-submit.is-loading .btn-label { display: none; }
.form-submit.is-loading .btn-busy { display: inline; }
.form-submit:disabled { opacity: 0.85; }
.form-fine { font-size: 0.9rem; color: var(--ink-2); }
.form-fine a { font-weight: 700; white-space: nowrap; }
.recaptcha-note { font-size: 0.78rem; color: var(--ink-2); line-height: 1.45; }
.recaptcha-note a { color: inherit; }
body:has(.recaptcha-note) .grecaptcha-badge { visibility: hidden; }

.form-success-msg { padding: 1rem 0 0.5rem; color: var(--ink); }
.form-success-msg svg { color: var(--navy-ink); background: var(--teal); padding: 8px; width: 44px; height: 44px; }
.form-success-msg h3 { font-size: 1.5rem; color: var(--navy); margin-top: 0.9rem; }
.form-success-msg p { margin-top: 0.6rem; color: var(--ink-2); }
.form-success-msg .success-call { color: var(--ink); font-weight: 600; }
.quote-panel.is-success { padding-bottom: 1.6rem; }

@media (min-width: 960px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; align-items: start; }
  .hero h1 { font-size: clamp(2.6rem, 4vw, 3.6rem); }
  .hero-lede { font-size: 1.15rem; }
  .hero-photo { display: block; }
  .quote-panel { padding: 1.75rem 1.75rem 1.9rem; }
  .quote-head h2 { font-size: 1.8rem; }
}

/* Section rhythm */
.work, .services, .area { padding: 3.5rem 0; }
.section-head { margin-bottom: 1.75rem; max-width: 46rem; }
.section-head h2 { font-size: clamp(1.75rem, 5vw, 2.6rem); color: var(--navy); }
.section-head p { color: var(--ink-2); margin-top: 0.6rem; }
@media (min-width: 960px) { .work, .services, .area { padding: 5.5rem 0; } }

/* Work: before/after and filmstrip */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; max-width: 900px; }
.ba-frame { margin: 0; position: relative; }
.ba-frame img { width: 100%; aspect-ratio: 500 / 412; object-fit: cover; }
.tape-label { position: absolute; left: 0.6rem; top: 0.6rem; }
.ba-caption { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.95rem; margin-top: 0.35rem; }

.filmstrip {
  list-style: none; margin: 2.25rem calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 0.75rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 0.75rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--navy) var(--line);
  overscroll-behavior-x: contain; scroll-padding-inline: var(--gutter);
}
.filmstrip li { scroll-snap-align: start; margin: 0; position: relative; }
.filmstrip:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.filmstrip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--line); }
.film-cap {
  position: absolute; left: 0.6rem; bottom: 0.7rem; max-width: calc(100% - 1.2rem);
  background: var(--teal); color: var(--navy-ink); font-size: 0.84rem; font-weight: 700; line-height: 1.3;
  padding: 0.4rem 0.6rem; transform: rotate(-1deg);
}
.filmstrip li:nth-child(2n) .film-cap { transform: rotate(0.8deg); }
@media (min-width: 640px) { .filmstrip { grid-auto-columns: 40%; } }
@media (min-width: 960px) {
  .before-after { gap: 0.75rem; max-width: none; }
  .filmstrip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; gap: 1.5rem 1rem; overflow: visible; margin: 2.75rem 0 0; padding: 0; }
  .filmstrip img { aspect-ratio: 4 / 3; }
}

/* Services: a ruled list, not a card grid */
.services { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.service { padding: 1.4rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.5rem; }
.service h3 { font-size: 1.4rem; color: var(--navy); }
.service p { color: var(--ink-2); max-width: 60ch; }
.service-link { font-weight: 700; color: var(--teal-dark); justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.service-link::after { content: ""; width: 0.5rem; height: 0.5rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-left: 0.4rem; }
@media (min-width: 960px) {
  .services-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; }
  .service { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 2rem; padding: 1.75rem 0; }
  .service h3 { grid-row: span 2; }
  .service-link { min-height: 32px; }
}

/* Owner band */
.owner { background: var(--navy); color: var(--on-navy); padding: 3.5rem 0; }
.owner-grid { display: grid; gap: 2rem; }
.owner h2 { font-size: clamp(1.75rem, 5.2vw, 2.7rem); max-width: 18ch; }
.owner-statement p { color: var(--on-navy-2); margin-top: 0.9rem; max-width: 50ch; font-size: 1.08rem; }
.owner-facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--teal); }
.owner-facts div { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.owner-facts dt { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--teal); }
.owner-facts dd { margin: 0.25rem 0 0; color: var(--on-navy-2); }
@media (min-width: 960px) {
  .owner { padding: 5.5rem 0; }
  .owner-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }
}

/* Area + close */
.area-grid { display: grid; gap: 1.5rem; }
.area h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); color: var(--navy); }
.area p { color: var(--ink-2); margin-top: 0.75rem; max-width: 52ch; }
.area-actions { display: grid; gap: 0.75rem; align-content: start; }
.area-email { font-weight: 600; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 720px) {
  .area-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
}

/* Footer */
.site-footer { background: var(--navy-ink); color: var(--on-navy-2); padding: 2.5rem 0 6.5rem; }
.footer-grid { display: grid; gap: 1.25rem; }
.footer-logo { width: auto; height: 72px; }
.footer-contact { display: grid; gap: 0.35rem; }
.footer-contact a { color: var(--on-navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.footer-contact a:hover { text-decoration: underline; }
.footer-legal { font-size: 0.88rem; }
.footer-legal a { color: var(--on-navy); }
@media (min-width: 760px) { .site-footer { padding-bottom: 2.5rem; } }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: auto minmax(16rem, 1fr) auto; align-items: center; gap: 2.5rem; }
}
.footer-contact a[href^="tel:"] { white-space: nowrap; }

/* Mobile call bar (hidden near the form, while typing, and above the fold) */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--navy); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s var(--ease-out), visibility 0.25s;
}
.mobile-bar .btn { min-height: 48px; padding: 0.6rem 0.75rem; font-size: 0.98rem; }
.mobile-bar.is-hidden { transform: translateY(110%); visibility: hidden; }
@media (min-width: 760px) { .mobile-bar { display: none; } }

/* Simple pages (privacy, 404) */
.page-main { padding: 3rem 0 4rem; }
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(2rem, 6vw, 2.8rem); color: var(--navy); }
.prose h2 { font-size: 1.35rem; color: var(--navy); margin-top: 2rem; }
.prose p, .prose ul { margin-top: 0.85rem; color: var(--ink-2); }
.prose li { margin-top: 0.35rem; }
.notfound { text-align: left; }
.notfound .btn { margin-top: 1.5rem; }

/* Phones (last so it wins over the base rules above) */
@media (max-width: 559px) {
  /* Phones: the form comes up into the first screen; the lede's facts repeat in the tapes and the owner band. */
  .hero { padding-top: 1.25rem; }
  .hero h1 { font-size: clamp(1.8rem, 8.4vw, 2.2rem); }
  .hero-lede { display: none; }
  .hero-offer { font-size: 1rem; margin-top: 0.7rem; }
  .tape-row { margin-top: 0.8rem; gap: 0.4rem; }
  .tape-row .tape { font-size: 0.68rem; padding: 0.42rem 0.5rem; letter-spacing: 0.06em; }
  .quote-head h2 { font-size: 1.4rem; }
  .chip-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .chip span { width: 100%; justify-content: center; text-align: center; padding: 0.4rem 0.4rem; }
}