/* Wildcat Tech: clean, corporate. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1a3568;
  --navy-deep: #10243f;
  --orange: #f15a24;
  --orange-tint: #fdeee8;
  --ink: #142033;
  --muted: #4a5a70;
  --line: #e2e8f0;
  --mist: #f5f7fa;
  --white: #ffffff;
  --on-navy: #f4f7fb;
  --soft-on-navy: #c3cee0;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 36, 63, 0.06), 0 4px 16px rgba(16, 36, 63, 0.06);
  --content: 1200px;
  --m: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: calc(4.6rem + env(safe-area-inset-bottom));
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy-deep);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0 0 0.9em;
  max-width: 65ch;
}

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-deep);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: var(--m);
  top: -5rem;
  z-index: 50;
  background: var(--navy-deep);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2 * var(--m), var(--content));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section-mist {
  background: var(--mist);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0.75rem 0 0;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button-primary {
  background: var(--navy);
  color: var(--white);
}

.button-primary:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.button-secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}

.button-secondary:hover {
  border-color: var(--navy);
  color: var(--navy-deep);
}

.on-navy .button-primary {
  background: var(--orange);
  color: var(--navy-deep);
}

.on-navy .button-primary:hover {
  background: var(--white);
  color: var(--navy-deep);
}

.on-navy .button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.on-navy .button-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: 72px;
}

.brand {
  display: block;
  width: 170px;
  flex: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  order: 3;
  width: 100%;
  padding-bottom: 0.5rem;
}

.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.975rem;
  text-decoration: none;
  padding: 0.5rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.nowrap {
  white-space: nowrap;
}

.header-call {
  display: none;
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--mist);
  padding-block: clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-text {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--muted);
  margin: 0;
  max-width: 34rem;
}

.hero-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-sub a {
  font-weight: 600;
}

.hero-photo {
  justify-self: center;
  width: min(60vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 8px var(--white), 0 0 0 9px var(--line), var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(47%);
  transform: scale(1.06);
}

.hero-photo-wide {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-photo-wide img {
  clip-path: none;
  transform: none;
}

/* ---------- Trust strip ---------- */

.trust {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: 1.1rem;
}

.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.trust svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--orange);
}

/* ---------- Icons ---------- */

.icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--orange-tint);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex: none;
}

.icon svg,
.trust svg,
.check svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon svg {
  width: 24px;
  height: 24px;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.card h3 {
  margin-top: 0.25rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.card li + li {
  margin-top: 0.3rem;
}

.card-featured {
  border-color: var(--navy);
  border-width: 2px;
}

.card-featured .tag {
  justify-self: start;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--orange);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  max-width: none;
}

/* ---------- Split sections ---------- */

.split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.split-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-text {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.split-text p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.checks li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 0.15em;
}

.check svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

/* navy band */
.band {
  background: var(--navy);
  color: var(--on-navy);
}

.band h2,
.band h3 {
  color: var(--white);
}

.band .muted,
.band p {
  color: var(--soft-on-navy);
}

.band .check {
  background: rgba(241, 90, 36, 0.18);
}

.band .checks li {
  color: var(--on-navy);
}

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  gap: 1.25rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-item h3 {
  margin-bottom: 0.35rem;
}

.why-item p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Service area ---------- */

.area-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.area-text {
  display: grid;
  gap: 1rem;
}

.area-text p {
  margin: 0;
}

.towns {
  border: 0;
  margin: 0.5rem 0 0;
  padding: 0;
  min-width: 0;
}

.towns legend {
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0;
}

.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.towns input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.towns label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 42px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.towns label span {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.towns label:hover {
  border-color: var(--navy);
}

.towns input:checked + label {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.towns input:checked + label span {
  color: var(--soft-on-navy);
}

.towns input:focus-visible + label {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.town-answer {
  font-weight: 600;
  min-height: 1.6em;
  margin: 0;
}

.town-note {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.map {
  display: block;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.map .ring {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  opacity: 0.5;
}

.map .ring-15 {
  fill: rgba(26, 53, 104, 0.04);
  stroke-dasharray: none;
  stroke-width: 2;
  opacity: 1;
}

.map .ring-label {
  font: 600 13px Inter, sans-serif;
  fill: var(--muted);
}

.map .town circle {
  fill: var(--navy);
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 150ms ease, transform 150ms ease;
}

.map .town text {
  font: 600 14px Inter, sans-serif;
  fill: var(--ink);
}

.map .home circle {
  fill: var(--orange);
}


/* ---------- Town picker ---------- */
.map .town.is-active circle {
  fill: var(--orange);
  transform: scale(1.7);
}

.map .home.is-active circle {
  transform: scale(1.2);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 1.25rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
  color: var(--navy-deep);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--navy);
  flex: none;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 150ms ease;
}

.contact-card:hover {
  border-color: var(--navy);
}

.contact-card strong {
  display: block;
  color: var(--navy-deep);
}

.contact-card span {
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--soft-on-navy);
  padding-block: 56px 32px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-head {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.credits {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  max-width: none;
}

.credits a {
  text-decoration: underline;
}

/* ---------- Phone call bar ---------- */

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 0.6rem;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(16, 36, 63, 0.08);
  padding: 0.6rem calc(1rem + env(safe-area-inset-right)) calc(0.6rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-left));
}

.call-bar a {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.call-bar a.call-bar-text {
  flex: 0 0 34%;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--line);
}

/* ---------- 404 ---------- */

.missing {
  padding-block: var(--section);
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  .cards-2,
  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust ul {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }
}

@media (min-width: 700px) {
  body {
    padding-bottom: 0;
  }

  .header-call {
    display: inline-flex;
  }

  .hero-photo {
    width: min(40vw, 420px);
  }

  .call-bar {
    display: none;
  }
}

@media (min-width: 960px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    order: 0;
    width: auto;
    padding-bottom: 0;
    gap: 1.75rem;
    margin-left: auto;
    margin-right: 1.5rem;
  }

  .brand {
    width: 200px;
  }

  .hero-grid {
    grid-template-columns: 7fr 5fr;
  }

  .hero-grid-wide {
    grid-template-columns: 1fr 1fr;
  }

  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-span {
    grid-column: span 2;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split-reverse .split-photo {
    order: 2;
  }

  .area-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  section,
  article {
    scroll-margin-top: 88px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 959px) {
  section,
  article {
    scroll-margin-top: 1rem;
  }
}

/* ---------- Breadcrumbs ---------- */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "›";
  margin-right: 0.25rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}
