/*
 * Davis and Davis Plumbing — demo UI
 * Patterns inspired by https://21st.dev (bento, surfaces) & https://reactbits.dev (spotlight, motion).
 */
:root {
  --canvas: #eef6fc;
  --surface: #ffffff;
  --surface-2: #e0f0fa;
  --ink: #0a1628;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: rgba(10, 22, 40, 0.08);
  --line-strong: rgba(10, 22, 40, 0.14);
  --primary: #0369a1;
  --primary-mid: #0284c7;
  --primary-bright: #0ea5e9;
  --primary-soft: rgba(3, 105, 161, 0.1);
  --deep: #042f4a;
  --emergency: #b91c1c;
  --emergency-soft: rgba(185, 28, 28, 0.08);
  --emergency-pill-bg: #fff5f5;
  --emergency-pill-border: rgba(185, 28, 28, 0.28);
  --radius: 20px;
  --radius-sm: 12px;
  --font: 'Outfit', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 12px 40px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 24px 64px rgba(10, 22, 40, 0.12);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal .reveal:not(.is-visible),
  .js-reveal .reveal-group:not(.is-visible) > *,
  .js-reveal .hero-inner:not(.is-visible) .hero-copy > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-blob {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body:not(.is-loaded) .site-header {
  opacity: 0;
  transform: translateY(-10px);
}

body.is-loaded .site-header {
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 1;
  transform: translateY(0);
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(14, 165, 233, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(3, 105, 161, 0.06), transparent 50%),
    var(--canvas);
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(238, 246, 252, 0.85);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem calc(1.25rem + env(safe-area-inset-right, 0px)) 0.65rem
    calc(1.25rem + env(safe-area-inset-left, 0px));
  padding-top: calc(0.6rem + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary-mid), var(--deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(3, 105, 161, 0.35);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current='page'] {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

@media (min-width: 1024px) {
  .nav-cta {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.35rem;
  min-height: 46px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.btn-primary {
  background: linear-gradient(145deg, var(--primary-mid), var(--primary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(3, 105, 161, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(3, 105, 161, 0.4);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: rgba(3, 105, 161, 0.35);
  color: var(--primary);
}

.btn-lg {
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.menu-btn {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }
}

.menu-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-bars span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.menu-btn[aria-expanded='true'] .menu-bars span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] .menu-bars span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded='true'] .menu-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(10, 22, 40, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 260;
  width: min(100%, 22rem);
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding: calc(1rem + env(safe-area-inset-top, 0px)) calc(1rem + env(safe-area-inset-right, 0px)) 1.5rem
    calc(1rem + env(safe-area-inset-left, 0px));
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--canvas);
  font-size: 1.35rem;
  cursor: pointer;
  touch-action: manipulation;
}

.drawer nav a {
  display: flex;
  align-items: center;
  min-height: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.drawer .btn-primary {
  margin-top: 1rem;
  width: 100%;
}

/* Main */
main {
  position: relative;
  z-index: 1;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: calc(1.25rem + env(safe-area-inset-left, 0px));
  padding-right: calc(1.25rem + env(safe-area-inset-right, 0px));
}

.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-mid);
  margin: 0 0 0.65rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.section-lead {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.head-row {
  margin-bottom: 2rem;
}

.head-row--center {
  text-align: center;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.head-row--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
}

.page-hero .shell {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.12;
}

.page-hero .crumb {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-mid);
  margin: 0 0 0.75rem;
}

.page-hero .page-lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: calc(1.25rem + env(safe-area-inset-left, 0px));
  padding-right: calc(1.25rem + env(safe-area-inset-right, 0px));
}

.hero-blob {
  position: absolute;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  top: -15%;
  right: -8%;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.35), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(3, 105, 161, 0.2), transparent 45%);
  border-radius: 50%;
  filter: blur(2px);
  animation: blob-float 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes blob-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-12px, 18px) scale(1.03);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero-copy {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  max-width: 100%;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--emergency-pill-bg);
  border: 1px solid var(--emergency-pill-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  color: var(--emergency);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  -webkit-tap-highlight-color: transparent;
}

.hero-badge__alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--emergency);
}

.hero-badge__alert svg {
  width: 22px;
  height: 22px;
  display: block;
}

.hero-badge__label {
  line-height: 1.25;
}

@media (max-width: 420px) {
  .hero-badge {
    padding: 0.45rem 0.65rem;
    gap: 0.4rem 0.5rem;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    width: fit-content;
    max-width: 100%;
  }

  .hero-badge__alert svg {
    width: 20px;
    height: 20px;
  }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  color: var(--primary-mid);
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 32rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-meta strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

/* Hero bento */
.hero-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .hero-bento {
    gap: 1rem;
  }
}

.bento-card {
  position: relative;
  border-radius: var(--radius-sm);
  padding: 1.15rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(320px circle at var(--sx, 50%) var(--sy, 50%), rgba(3, 105, 161, 0.1), transparent 55%);
  pointer-events: none;
}

@media (hover: hover) {
  .bento-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
  }
  .bento-card:hover::after {
    opacity: 1;
  }
}

.bento-card--wide {
  grid-column: 1 / -1;
}

.bento-card h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.bento-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.bento-card .more {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

/* Reveal */
.reveal {
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-group > * {
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal .reveal-group:not(.is-visible) > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}

.js-reveal .reveal-group.is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-group > *:nth-child(1) {
  --reveal-delay: 0ms;
}
.reveal-group > *:nth-child(2) {
  --reveal-delay: 70ms;
}
.reveal-group > *:nth-child(3) {
  --reveal-delay: 140ms;
}
.reveal-group > *:nth-child(4) {
  --reveal-delay: 210ms;
}

.hero-inner .hero-copy > * {
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal .hero-inner:not(.is-visible) .hero-copy > * {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}

.js-reveal .hero-inner.is-visible .hero-copy > *:nth-child(1) {
  transition-delay: 0.04s;
}
.js-reveal .hero-inner.is-visible .hero-copy > *:nth-child(2) {
  transition-delay: 0.1s;
}
.js-reveal .hero-inner.is-visible .hero-copy > *:nth-child(3) {
  transition-delay: 0.16s;
}
.js-reveal .hero-inner.is-visible .hero-copy > *:nth-child(4) {
  transition-delay: 0.2s;
}
.js-reveal .hero-inner.is-visible .hero-copy > *:nth-child(5) {
  transition-delay: 0.24s;
}

/* Service grid */
.service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.svc-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(145deg, rgba(3, 105, 161, 0.2), rgba(10, 22, 40, 0.04));
  transition: box-shadow 0.25s;
}

.svc-card:hover {
  box-shadow: var(--shadow-md);
}

.svc-inner {
  position: relative;
  border-radius: calc(var(--radius) - 1px);
  background: var(--surface);
  padding: 1.45rem 1.3rem;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.svc-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(400px circle at var(--sx, 50%) var(--sy, 50%), rgba(3, 105, 161, 0.07), transparent 50%);
  pointer-events: none;
}

@media (hover: hover) {
  .svc-card:hover .svc-inner::after {
    opacity: 1;
  }
}

.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.svc-inner h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
}

.svc-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* CTA strip */
.cta-strip {
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--deep) 0%, #0a4d6e 50%, var(--primary) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-strip > * {
  position: relative;
}

.cta-strip h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.cta-strip p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.cta-strip .btn-primary:hover {
  background: var(--surface-2);
}

/* Two column */
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.45rem;
}

/* FAQ-style list page */
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  border-bottom: 1px solid var(--line);
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.link-list a:hover {
  color: var(--primary);
}

.link-list span {
  color: var(--primary);
  font-size: 0.85rem;
}

/* Contact form */
.form-grid {
  display: grid;
  gap: 1rem;
}

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

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Anchor offset under sticky header */
main section[id],
.service-section {
  scroll-margin-top: 6.5rem;
}

/* Services page — sticky TOC + mobile jump bar */
.services-jump {
  position: sticky;
  top: calc(3.25rem + env(safe-area-inset-top, 0px));
  z-index: 50;
  margin: 0 0 0.5rem;
  padding: 0.5rem 0;
  background: linear-gradient(to bottom, var(--canvas) 70%, transparent);
}

.services-jump__scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.15rem 0.25rem 0.65rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.services-jump__scroll::-webkit-scrollbar {
  height: 4px;
}

.services-jump__scroll a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.services-jump__scroll a:hover {
  border-color: var(--primary-mid);
  color: var(--primary);
}

.services-doc {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .services-doc {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.services-toc {
  display: none;
}

@media (min-width: 1024px) {
  .services-toc {
    display: block;
  }
}

.services-jump--only-mobile {
  display: block;
}

@media (min-width: 1024px) {
  .services-jump--only-mobile {
    display: none;
  }
}

.services-toc__inner {
  position: sticky;
  top: 5.75rem;
  padding: 1.15rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.services-toc__title {
  margin: 0 0 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-mid);
}

.services-toc__inner nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.services-toc__inner a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 8px;
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  transition: background 0.15s, color 0.15s;
}

.services-toc__inner a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.services-main {
  min-width: 0;
}

.services-main > .section {
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.service-section {
  margin-bottom: 0;
}

.service-section__body {
  max-width: 52rem;
}

.service-section .section-lead {
  margin-bottom: 0;
}

/* Services page — less “document,” more product UI */
.page-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

.page-hero--services {
  border-bottom: 1px solid var(--line);
}

.page-hero--services h1 {
  font-family: var(--font);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.services-page .services-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.services-page .services-main > .section {
  padding-top: 0;
  padding-bottom: 0;
}

.services-page .service-section__body.service-card {
  position: relative;
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.service-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-mid), var(--primary-bright));
  border-radius: 4px 0 0 4px;
}

.services-page .service-card__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary-soft), rgba(14, 165, 233, 0.12));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card__main {
  flex: 1;
  min-width: 0;
}

.services-page .services-main .section-title {
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin-bottom: 0.65rem;
}

.services-page .service-card .section-lead {
  margin-bottom: 0.75rem;
  font-size: 0.97rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.services-page .service-card .prose {
  margin-top: 0.35rem;
}

.services-page .service-card .prose p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.service-card__actions .btn {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  min-height: 42px;
}

@media (max-width: 560px) {
  .services-page .service-section__body.service-card {
    flex-direction: column;
    align-items: stretch;
    padding-top: 1.35rem;
  }

  .service-card__accent {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    border-radius: 4px 4px 0 0;
  }

  .services-page .service-card__icon {
    align-self: flex-start;
  }
}

.services-toc__inner a.is-active {
  background: rgba(3, 105, 161, 0.1);
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--primary-mid);
}

/* Why choose us — clean cards */
.why-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.why-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.why-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.why-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  margin: 0;
  padding: 1.35rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.review-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
}

.review-card footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  font-style: normal;
  color: var(--ink-soft);
  background: none;
}

.reviews-demo-note {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Map + contact */
.contact-locate {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .contact-locate {
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
  }
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.contact-info-card p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.contact-info-card a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

.contact-info-card .contact-big {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--surface-2);
  aspect-ratio: 16 / 11;
  min-height: 220px;
}

@media (max-width: 899px) {
  .map-frame {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-caption {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.map-caption a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* About — stats strip */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 0.75rem;
  box-shadow: var(--shadow-sm);
}

.stat-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--primary-mid);
  line-height: 1.1;
}

.stat-item span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-narrow {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #061018 0%, #0a1628 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.75rem 0 calc(2.75rem + env(safe-area-inset-bottom, 0px));
  margin-top: 2rem;
}

.site-footer a {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
}

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

.foot-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: calc(1.25rem + env(safe-area-inset-left, 0px));
  padding-right: calc(1.25rem + env(safe-area-inset-right, 0px));
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .foot-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.foot-block h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #fff;
}

.foot-block p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
}

.foot-copy {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Mobile */
@media (max-width: 899px) {
  /* Home hero — single column: center copy & CTAs for balance */
  .hero .hero-copy {
    text-align: center;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-meta {
    justify-content: center;
  }
  .hero-meta > div {
    text-align: center;
    max-width: 14rem;
  }
  .hero-grid {
    justify-items: stretch;
  }
  .hero-bento {
    width: 100%;
    max-width: min(100%, 26rem);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: min(100%, 22rem);
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }
}

@media (max-width: 639px) {
  .section {
    padding: clamp(2.25rem, 6vw, 3rem) 0;
  }
  .hero-bento {
    grid-template-columns: 1fr;
  }
  .bento-card--wide {
    grid-column: auto;
  }
  .shell {
    padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1rem + env(safe-area-inset-right, 0px));
  }
  .hero-inner {
    padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1rem + env(safe-area-inset-right, 0px));
  }
  .nav-wrap {
    padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1rem + env(safe-area-inset-right, 0px));
  }
}

/* Mobile polish — readability, tap targets, spacing */
@media (max-width: 639px) {
  body {
    overflow-wrap: break-word;
  }
  .hero {
    padding-top: clamp(1.35rem, 4vw, 2rem);
    padding-bottom: clamp(2rem, 6vw, 3rem);
  }
  .hero-blob {
    opacity: 0.42;
    right: -12%;
  }
  .hero h1 {
    text-wrap: balance;
  }
  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .hero-meta > div {
    max-width: 18rem;
  }
  .hero-lead {
    font-size: 1rem;
    line-height: 1.62;
  }
  .page-hero {
    padding-top: clamp(1.5rem, 4vw, 2rem);
    padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
  }
  .page-hero h1 {
    text-wrap: balance;
  }
  .section-title {
    text-wrap: balance;
  }
  .stat-row {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 0.65rem;
  }
  .stat-item {
    padding: 1rem 1rem;
  }
  .stat-item strong {
    font-size: 1.45rem;
  }
  .why-card {
    padding: 1.25rem 1rem;
  }
  .review-card {
    padding: 1.2rem 1rem;
  }
  .contact-info-card {
    padding: 1.25rem 1.1rem;
  }
  .contact-info-card .contact-big {
    font-size: 1.25rem;
  }
  .map-frame {
    min-height: 200px;
    border-radius: var(--radius-sm);
  }
  .map-caption {
    line-height: 1.45;
  }
  .services-jump {
    top: calc(2.85rem + env(safe-area-inset-top, 0px));
  }
  .services-jump__scroll {
    padding-bottom: 0.5rem;
  }
  .services-jump__scroll a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.8125rem;
  }
  input,
  select {
    min-height: 48px;
    font-size: 16px;
  }
  textarea {
    font-size: 16px;
    min-height: 120px;
  }
  .btn {
    min-height: 48px;
  }
  .btn-lg {
    min-height: 52px;
  }
  .site-footer .foot-block a {
    padding: 0.25rem 0;
    display: inline-block;
    min-height: 44px;
    line-height: 1.5;
    box-sizing: content-box;
  }
  .brand {
    min-width: 0;
    align-items: center;
  }
  .brand-mark {
    align-self: center;
  }
  .brand-text strong {
    font-size: 0.95rem;
    line-height: 1.2;
  }
  .nav-wrap {
    align-items: center;
    min-height: 3rem;
  }
  .menu-btn {
    align-self: center;
  }
  .split {
    gap: 1.5rem;
  }
  .contact-locate {
    gap: 1.25rem;
  }
}
