/* OneEighty Property Solutions — single stylesheet, mobile-first.
   ponytail: no framework, no build step. Cloudflare Pages serves this as-is. */

/* ---------- font ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}

/* ---------- tokens ---------- */
:root {
  --navy: #22313f;
  --navy-deep: #16202a;
  --red: #ff2a17;        /* brand accent — graphics & large text only (3.75:1) */
  --red-ink: #d42010;    /* white text on this passes AA (5.2:1) */
  --sky: #8dc6ff;
  --sky-tint: #eaf4ff;
  --paper: #fff;
  --sand: #f7f6f4;
  --line: #e3e6ea;
  --ink: #1b2733;
  --ink-muted: #5a6673;

  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.125rem, 5vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgb(22 32 42 / .06), 0 8px 24px -12px rgb(22 32 42 / .18);
  --tap: 44px; /* WCAG 2.5.8 minimum target */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* belt-and-braces against mobile side-scroll */
}
@media (min-width: 48em) { body { font-size: 1.125rem; } }

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

/* Long unbroken tokens (email addresses, URLs in the privacy text) otherwise
   force the whole layout wider than the viewport on narrow phones. */
p, li, h1, h2, h3, h4, dd, td, summary { overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--navy);
}
h1 { font-size: clamp(2.05rem, 7.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5.2vw, 2.4rem); }
h3 { font-size: clamp(1.125rem, 3.4vw, 1.35rem); letter-spacing: -0.01em; }
p  { text-wrap: pretty; }

a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--red-ink); }

:focus-visible {
  outline: 3px solid var(--red-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 9vw, 6rem); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #e8edf2; }
.section--navy :is(h1, h2, h3, h4) { color: #fff; }
/* :not(.btn) — buttons carry their own accessible fg/bg pair; recolouring their
   text to sky put light blue on the red fill (2.9:1). */
.section--navy a:not(.btn) { color: var(--sky); }
.section--navy a:not(.btn):hover { color: #fff; }

.eyebrow {
  font-family: var(--display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-ink);
  margin-bottom: .75rem;
}
.section--navy .eyebrow, .hero .eyebrow { color: var(--sky); }

.lede { font-size: clamp(1.0625rem, 2.6vw, 1.25rem); color: var(--ink-muted); max-width: 62ch; }
.section--navy .lede { color: #c3ced9; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: .5rem; top: -100%;
  z-index: 100; padding: .75rem 1.25rem;
  background: var(--navy); color: #fff; border-radius: 0 0 8px 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap);
  padding: .8125rem 1.375rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red-ink); color: #fff; }
.btn--primary:hover { background: #b81a0b; color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.section--navy .btn--ghost, .hero .btn--ghost { color: #fff; }
.section--navy .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn-row .btn { flex: 1 1 14rem; } /* full-width stacked on phones, side-by-side above */
@media (min-width: 30em) { .btn-row .btn { flex: 0 0 auto; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem;
}
.brand { display: flex; align-items: center; text-decoration: none; padding-block: .5rem; }
.brand img { width: 168px; }
@media (min-width: 48em) { .brand img { width: 200px; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: var(--tap); min-width: var(--tap);
  padding: .5rem .75rem;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--display); font-weight: 700; font-size: .9375rem;
}
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-nav { display: none; }
.site-nav[data-open="true"] {
  display: block;
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: .5rem var(--gutter) 1.25rem;
}
.site-nav ul { list-style: none; padding: 0; margin: 0; }
.site-nav a {
  display: flex; align-items: center;
  min-height: var(--tap);
  padding: .625rem .25rem;
  font-family: var(--display); font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--red-ink); }
.site-nav .btn { margin-top: 1rem; width: 100%; }

@media (min-width: 62em) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav[data-open="true"] {
    display: block; position: static; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: .25rem; }
  .site-nav a { min-height: 2.5rem; padding: .5rem .75rem; border: 0; border-radius: 8px; font-size: .9375rem; }
  .site-nav a:hover { background: var(--sand); }
  .site-nav a[aria-current="page"] { background: var(--sky-tint); color: var(--navy); }
  .site-nav .btn { margin: 0 0 0 .5rem; width: auto; padding: .625rem 1.125rem; font-size: .9375rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(22 32 42 / .82) 0%, rgb(22 32 42 / .92) 100%);
}
@media (min-width: 62em) {
  .hero__media img { opacity: .42; }
  .hero__media::after { background: linear-gradient(100deg, rgb(22 32 42 / .94) 30%, rgb(22 32 42 / .55) 100%); }
}
.hero__inner { position: relative; padding-block: clamp(3rem, 12vw, 7rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow, .hero__lede, .hero .btn-row, .hero__trust { max-width: 42rem; }
.hero h1 .accent { color: var(--sky); }
.hero__lede { margin-top: 1.125rem; font-size: clamp(1.0625rem, 3vw, 1.3125rem); color: #cfd9e3; max-width: 40ch; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: .5rem .75rem;
  margin-top: 2rem; padding: 0; list-style: none;
  font-size: .9375rem; color: #cfd9e3;
}
.hero__trust li {
  display: flex; align-items: center; gap: .4rem;
  background: rgb(255 255 255 / .08);
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: 999px; padding: .35rem .85rem;
}
.hero__trust svg { flex: none; color: var(--sky); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1rem; }
@media (min-width: 40em) { .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 40em) { .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 64em) { .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-muted); font-size: 1rem; }
.card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 1rem;
  border-radius: 11px; background: var(--sky-tint); color: var(--navy);
}

.tick-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.tick-list li { position: relative; padding-left: 1.6rem; font-size: 1rem; color: var(--ink-muted); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .5rem; height: .5rem; border-radius: 2px; background: var(--red);
}

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 56em) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step { counter-increment: step; }
.step::before {
  content: "0" counter(step);
  display: block; margin-bottom: .625rem;
  font-family: var(--display); font-weight: 700; font-size: 1.75rem;
  color: var(--red);
}
.step h3 { margin-bottom: .375rem; }
.step p { color: var(--ink-muted); font-size: 1rem; }
.section--navy .step p { color: #b9c5d1; }

/* ---------- media + text split ---------- */
.split { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 56em) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.split__media img { border-radius: var(--radius); width: 100%; }
.split--flip .split__media { order: -1; }
@media (min-width: 56em) { .split--flip .split__media { order: 1; } }

/* ---------- service area ---------- */
.city-list {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem .75rem;
}
@media (min-width: 40em) { .city-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64em) { .city-list { grid-template-columns: repeat(4, 1fr); } }
.city-list li {
  padding: .625rem .875rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 9px;
  font-size: .9375rem; font-weight: 600; font-family: var(--display);
}
.section--navy .city-list li { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); color: #fff; }

/* ---------- service area map ---------- */
/* ponytail: the map is desktop-only. 18 labels need ~700px to stay legible, and a
   sideways-scrolling schematic on a 390px screen is worse than no schematic — the
   linked city list right below it carries exactly the same information, tappably.
   Screen readers get the <desc> either way. */
.area-map__frame { display: none; }
@media (min-width: 46em) {
  .area-map__frame {
    display: block;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
}
.area-map {
  display: block;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  height: auto;
  color: var(--navy);
}
.area-map__label {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  fill: var(--navy);
}
.area-map__city circle { stroke: var(--sand); stroke-width: 2; }

.area-legend {
  list-style: none; padding: 0;
  margin: 1.25rem 0 0;
  display: grid; gap: .625rem;
  font-size: .9375rem; color: var(--ink-muted);
}
@media (min-width: 52em) { .area-legend { grid-template-columns: repeat(2, 1fr); gap: .75rem 2rem; } }
.area-legend li { display: flex; align-items: baseline; gap: .5rem; }
.area-legend strong { white-space: nowrap; }
.area-legend strong { color: var(--navy); font-family: var(--display); }
.area-legend__dot {
  flex: none; width: .7rem; height: .7rem; border-radius: 50%;
  transform: translateY(1px);
}

/* ---------- city groups ---------- */
.city-groups { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 52em) { .city-groups { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
.city-group h3 { margin-bottom: .25rem; }
.city-group__note { color: var(--ink-muted); font-size: .9375rem; margin-bottom: 1rem; }
.city-list--links { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 52em) { .city-list--links { grid-template-columns: repeat(2, 1fr); } }
.city-list--links li { padding: 0; }
.city-list--links a {
  display: flex; align-items: center;
  min-height: var(--tap);
  padding: .625rem .875rem;
  text-decoration: none;
  border-radius: 9px;
}
.city-list--links a:hover { background: var(--sky-tint); color: var(--navy); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; margin-top: 2rem; }
.faq details {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--tap);
  padding: 1rem 0;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .625rem; height: .625rem;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > p { padding-bottom: 1.25rem; color: var(--ink-muted); font-size: 1rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.125rem; max-width: 40rem; }
.field { display: grid; gap: .375rem; }
.field label { font-family: var(--display); font-weight: 600; font-size: .9375rem; color: var(--navy); }
.field .hint { font-size: .875rem; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: .75rem .875rem;
  font-size: 1rem; /* 16px+ stops iOS zoom-on-focus */
  background: var(--paper);
  border: 1px solid #c3cad2;
  border-radius: 10px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field--required label::after { content: " *"; color: var(--red-ink); }
.form .btn { justify-self: start; }
@media (max-width: 29.99em) { .form .btn { justify-self: stretch; } }

.form-note {
  margin-top: 1.25rem; padding: 1rem 1.125rem;
  background: var(--sky-tint); border-radius: var(--radius);
  font-size: .9375rem; color: var(--ink);
}

/* ---------- contact strip ---------- */
.contact-cards { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 40em) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: flex; flex-direction: column; gap: .25rem;
  min-height: var(--tap);
  padding: 1.25rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none;
}
.contact-card:hover { border-color: var(--navy); }
.contact-card .label { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-family: var(--display); }
.contact-card .value { font-family: var(--display); font-weight: 700; font-size: 1.125rem; color: var(--navy); word-break: break-word; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #aebbc8; padding-block: 3rem 2rem; font-size: .9375rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-footer a { color: #d6e1ec; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .375rem; }
/* WCAG 2.5.8: keep footer links >=24px tall with >=24px between targets */
.site-footer li { min-height: 1.75rem; display: flex; align-items: center; }
.site-footer ul a, .site-footer__bottom a {
  display: inline-flex; align-items: center; min-height: 1.75rem; padding-block: .125rem;
}
.site-footer__logo { width: 180px; margin-bottom: 1rem; }
.site-footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .12);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .875rem;
}

/* ---------- sticky mobile action bar ---------- */
.action-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.action-bar .btn { width: 100%; padding-inline: .75rem; font-size: .9375rem; }
body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
@media (min-width: 62em) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}
@media print { .action-bar, .site-header { display: none; } }
