:root {
  --blue: #00508f;
  --blue-deep: #06315a;
  --blue-ink: #0a2540;
  --sky: #e9f1f8;
  --line: #d5dee8;
  --text: #1c2b3a;
  --muted: #55667a;
  --white: #fff;
  --accent: #f39200;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --header: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: clamp(16px, 0.35vw + 15px, 18px)/1.6 var(--font); color: var(--text); background: var(--white); overflow-wrap: break-word; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0; color: var(--blue-ink); text-wrap: balance; }
p { margin: 0 0 1em; }

/* Content column: fluid gutters that also respect notches in landscape */
.wrap {
  width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px 20px; min-height: var(--header); }
.brand { display: block; flex: none; }
.brand img { height: 50px; width: auto; }
.top nav { display: flex; gap: 2px; margin-left: auto; }
.top nav a { padding: 10px 12px; border-radius: 8px; color: var(--blue-ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.menu-btn { display: none; }
.call-short { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s, background .12s; }
.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.btn-primary, .btn-call { background: var(--blue); color: var(--white); }
.btn-call { min-height: 44px; padding: 8px 18px; font-size: 15px; white-space: nowrap; flex: none; }
.btn-light { background: var(--white); color: var(--blue-deep); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }

@media (hover: hover) {
  .top nav a:hover { background: var(--sky); color: var(--blue); }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary:hover, .btn-call:hover { background: var(--blue-deep); }
  .btn-ghost:hover { background: rgba(255,255,255,.12); }
  dd a:hover { text-decoration: underline; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 62%, #1470b8 100%); }
.hero-in { position: relative; z-index: 1; padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(84px, 12vw, 140px); }
.eyebrow { font-size: clamp(12px, 1.2vw + 8px, 14px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b9d6ee; margin-bottom: 16px; }
.hero h1 { color: var(--white); font-size: clamp(34px, 6.4vw + 10px, 78px); font-weight: 800; letter-spacing: -.025em; }
.hero h1 span { color: #9fd0f5; }
.lead { font-size: clamp(17px, 1vw + 13px, 21px); max-width: 34em; margin: 22px 0 30px; color: #e3eef8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rating { margin: 22px 0 0; font-size: 15px; }
.rating a { color: #e3eef8; text-decoration: none; display: inline-block; padding: 6px 0; }
.rating strong { color: var(--white); }
.stars { color: #ffc24a; letter-spacing: 2px; }
.hero-mark { position: absolute; right: -90px; top: 50%; width: min(560px, 62vw); transform: translateY(-50%); color: rgba(255,255,255,.07); pointer-events: none; }

/* Facts strip */
.facts-holder { position: relative; z-index: 2; }
.facts { list-style: none; margin: -44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(6,49,90,.14); overflow: hidden; gap: 1px; background: var(--line); }
.facts li { padding: 22px 24px; display: grid; gap: 2px; align-content: start; background: var(--white); }
.facts strong { color: var(--blue-ink); font-size: 17px; line-height: 1.3; }
.facts span { color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: clamp(56px, 9vw, 108px) 0; }
.section-tint { background: var(--sky); }
.section-dark { background: var(--blue-ink); color: #d7e3ef; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-dark .kicker { color: #7fbdee; }
h2 { font-size: clamp(26px, 3vw + 14px, 42px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.intro { font-size: clamp(17px, .5vw + 15px, 19px); color: var(--muted); max-width: 40em; margin-bottom: clamp(28px, 4vw, 40px); }

/* Service cards: as many columns as fit */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.card svg { width: 38px; height: 38px; padding: 8px; margin-bottom: 16px; border-radius: 10px; background: var(--sky); fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Split layout + panels */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.split p:last-child { margin-bottom: 0; }
.panel { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); box-shadow: 0 10px 30px rgba(6,49,90,.10); display: grid; gap: 14px; justify-items: start; }
.panel p { margin: 0; color: var(--muted); }
.panel .link { font-weight: 600; padding: 6px 0; overflow-wrap: anywhere; }
.panel-dark { background: rgba(255,255,255,.07); box-shadow: none; border: 1px solid rgba(255,255,255,.14); }
.panel-dark p { color: #c5d5e5; }

/* Import steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--blue); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-size: 15px; font-weight: 800; color: var(--blue); margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
address { font-style: normal; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px clamp(20px, 3vw, 30px); }
dl { margin: 0; }
dt { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 16px; }
dd { margin: 2px 0 0; padding-bottom: 16px; font-size: clamp(17px, .5vw + 15px, 19px); font-weight: 600; color: var(--blue-ink); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
dd:last-child { border-bottom: 0; }
dd a { text-decoration: none; display: inline-block; padding: 4px 0; }
.hours { background: var(--sky); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); display: grid; gap: 14px; align-content: start; justify-items: start; }
.hours h3 { margin: 0; }
.hours table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 7px 0; border-bottom: 1px solid #cfdcea; font-weight: 400; text-align: left; }
.hours th { padding-right: 12px; vertical-align: top; }
.hours td { text-align: right; }
.nb { white-space: nowrap; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .today th, .hours .today td { font-weight: 700; color: var(--blue-ink); }
.hours-extra { list-style: none; margin: 0; padding: 10px 14px; width: 100%; background: var(--white); border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--blue-ink); }
.hours-extra li + li { margin-top: 4px; }
.hours-source { margin: 0; font-size: 13px; color: var(--muted); }
.hours [hidden] { display: none; }

/* Footer */
.foot { background: var(--blue-deep); color: #c9d9e8; font-size: 15px; padding: 32px 0 max(32px, env(safe-area-inset-bottom)); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot strong { color: var(--white); }
.foot a { color: inherit; display: inline-block; padding: 3px 0; }
.rdw img { border-radius: 6px; }

/* Tablets: facts in two columns, stacked split sections */
@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .panel { justify-self: start; width: min(100%, 520px); }
}

@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* Phones and small tablets: collapsible menu */
@media (max-width: 960px) {
  :root { --header: 60px; }
  .brand img { height: 44px; }
  .top-in { flex-wrap: wrap; gap: 0 10px; }
  .btn-call { margin-left: auto; order: 2; }
  .menu-btn { order: 3; }
  .top nav { order: 5; flex-basis: 100%; flex-wrap: wrap; margin: 0; padding: 0 0 8px; }
  .top nav a { min-height: 44px; display: flex; align-items: center; }

  /* With JavaScript the links fold away behind a menu button */
  .js .menu-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--blue-ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu-btn .cross, .open .menu-btn .bars { display: none; }
  .open .menu-btn .cross { display: inline; }
  .js .top nav { display: none; flex-direction: column; padding: 4px 0 12px; max-height: calc(100vh - var(--header)); max-height: calc(100dvh - var(--header)); overflow-y: auto; }
  .js .top.open nav { display: flex; }
  .js .top nav a { min-height: 48px; padding: 10px 12px; font-size: 17px; border-top: 1px solid var(--line); border-radius: 0; }

  .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .actions .btn { flex: 1 1 100%; }
  .hero-mark { right: -160px; width: 420px; }
  .facts { margin-top: -36px; }
  .facts li { padding: 16px 16px; }
  .facts strong { font-size: 16px; }
  .facts span { font-size: 14px; }
  .panel { width: 100%; }
  .panel .btn, .hours .btn { width: 100%; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}

/* Very narrow phones */
@media (max-width: 440px) {
  .call-long { display: none; }
  .call-short { display: inline; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 350px) {
  .btn-call { padding: 8px 14px; }
  .btn-call svg { display: none; }
  .facts { grid-template-columns: 1fr; }
}

/* Phones held sideways: less vertical padding so content stays in view */
@media (max-height: 480px) and (orientation: landscape) {
  .top { position: static; }
  html { scroll-padding-top: 16px; }
  .hero-in { padding-top: 32px; padding-bottom: 72px; }
}

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

@media print {
  .top, .hero-mark, .actions, .btn { display: none !important; }
  .hero, .section-dark, .foot { background: none !important; color: #000 !important; }
  .hero h1, .hero h1 span, .section-dark h2, .section-dark h3, .lead, .foot strong { color: #000 !important; }
  .section { padding: 18px 0; }
}
