:root {
  color-scheme: light;
  --ink: #17234a;
  --muted: #46577a;
  --blue: #223baf;
  --indigo: #172980;
  --sky: #8ce2ff;
  --ice: #f0f7ff;
  --line: #d3e2f5;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-block-start: 20px; }
body { margin: 0; background: #fff; color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #0871aa; outline-offset: 4px; }
.modal :is(button,input,textarea):focus-visible { outline: 3px solid #0871aa; outline-offset: 3px; }
.hero a:focus-visible, .visit a:focus-visible { outline-color: #b7eeff; }
.visit button:focus-visible { outline: 3px solid #b7eeff; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.wrap { width: min(1190px, calc(100% - 72px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 3; transform: translateY(-160%); background: white; padding: 8px 14px; }
.skip:focus { transform: none; }
.ph-icon { width: 1.2em; height: 1.2em; display: block; flex: none; }

.masthead { background: white; border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.wordmark { height: auto; }
.masthead nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 42px); flex-wrap: wrap; }
.masthead nav a, .masthead-phone { font-weight: 650; text-decoration: none; }
.masthead nav a:hover, .masthead-phone:hover { text-decoration: underline; text-underline-offset: .21em; }
.masthead-phone { display: flex; align-items: center; gap: 8px; color: var(--indigo); }

.hero { background: var(--indigo); color: white; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 6vw, 76px);
}
.eyebrow { color: var(--blue); text-transform: uppercase; font-size: .875rem; font-weight: 750; letter-spacing: .13em; }
.hero .eyebrow, .visit .eyebrow { color: var(--sky); }
.hero h1 { margin-block: 16px 21px; }
.hero h1 img { width: min(100%, 480px); height: auto; filter: brightness(0) invert(1); }
.hero-lead { max-width: 21ch; font-size: clamp(1.48rem, 3vw, 2.45rem); line-height: 1.12; font-weight: 730; letter-spacing: -.025em; }
.hero-description { margin-top: 15px; color: #e0edff; max-width: 38ch; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-block: 25px 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 47px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; font: inherit; font-weight: 720; text-decoration: none; cursor: pointer; }
.primary { background: var(--sky); color: var(--ink); }
.primary:hover { background: #c6f2ff; }
.secondary { background: transparent; color: white; border-color: #aec4ff; }
.secondary:hover { background: #ffffff19; }
.hero-address { display: inline-flex; align-items: center; gap: 8px; color: #e0edff; text-underline-offset: .22em; }
.hero-address .ph-icon { color: var(--sky); }

.mascot {
  isolation: isolate; position: relative; display: grid; place-items: center; aspect-ratio: 1.14;
  min-width: 0; margin: 0; overflow: hidden; border-radius: 25px 25px 25px 8px;
  background: radial-gradient(ellipse at 42% 38%, #e8faff 0%, #bee7ff 55%, #a9cbff 100%);
  border: 1px solid #cceeff8c;
}
.mascot::before { content: ""; position: absolute; z-index: -1; width: 69%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #f7fdff; box-shadow: 0 0 0 17px #e1faff75, 0 0 0 39px #e1faff3b; }
.hero-pulse { position: absolute; inset: auto 0 25%; width: 100%; color: #2874bb80; z-index: -1; }
.mascot-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }

.services { padding-block: clamp(34px, 6vw, 68px); }
.section-header h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.035em; margin-top: 8px; }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-top: 22px; }
.service { border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; background: var(--ice); }
.service:nth-child(3n+2) { background: #f5f6ff; }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 11px; border-radius: 11px; background: #dfedff; color: var(--blue); }
.service-icon .ph-icon { width: 26px; height: 26px; }
.service h3 { font-size: 1.2rem; line-height: 1.32; }
.service p { margin-top: 6px; color: var(--muted); }

.catalog {
  --catalog-heading: var(--indigo);
  --catalog-featured-bg: var(--ice);
  --catalog-input-border: #a7bce4;
  --catalog-group-active-bg: #edf3ff;
  --catalog-focus: #0871aa;
  border-top: 1px solid var(--line);
  padding-block: clamp(24px, 4vw, 46px);
}
.catalog-header { display: flex; align-items: center; gap: clamp(12px, 2vw, 18px); margin-bottom: 20px; }
.catalog-header h2 { margin: 0; overflow-wrap: anywhere; }
.catalog-header .service-icon { flex: none; width: clamp(46px, 5vw, 60px); height: clamp(46px, 5vw, 60px); margin: 0; border-radius: 14px; }
.catalog-header .ph-icon { width: clamp(26px, 3vw, 34px); height: clamp(26px, 3vw, 34px); }

.site-gallery { border-top: 1px solid var(--line); padding-block: clamp(24px, 4vw, 46px); }
.site-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.site-gallery-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--ice); cursor: zoom-in; }
.site-gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.site-gallery-empty, .site-gallery-caption { color: var(--muted); }
.site-gallery-caption { margin: 6px 2px 0; font-size: .95rem; overflow-wrap: anywhere; }

#gallery-viewer {
  --viewer-inset: clamp(8px, 1.5dvh, 18px);
  --viewer-width: calc(100vw - 2 * var(--viewer-inset));
  --viewer-height: calc(100dvh - 2 * var(--viewer-inset));
  --toolbar-min: 56px;
  --caption-space: 0px;
  --image-space: max(0px, calc(var(--viewer-height) - 56px - var(--caption-space)));
  width: clamp(min(var(--toolbar-min), var(--viewer-width)), calc(var(--gallery-photo-ratio, 1) * var(--image-space)), var(--viewer-width));
  height: var(--viewer-height);
  max-height: var(--viewer-height);
  overflow: hidden;
}
#gallery-viewer.has-multiple { --toolbar-min: 116px; }
#gallery-viewer:has(.site-gallery-viewer-caption:not([hidden])) { --caption-space: min(44px, 20dvh); }
#gallery-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
#gallery-viewer figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; min-width: 0; }
#gallery-viewer .site-gallery-viewer-photo { height: auto; min-height: 0; min-width: 0; }
#gallery-viewer .site-gallery-viewer-photo img { width: 100%; height: 100%; max-width: none; max-height: none; min-height: 0; object-fit: contain; }
#gallery-viewer .site-gallery-viewer-button { flex: none; }
#gallery-viewer .site-gallery-viewer-nav {
  position: absolute;
  inset: 56px 0 var(--caption-space);
  z-index: 1;
  justify-content: space-between;
  padding-inline: clamp(6px, 1.4vw, 16px);
  pointer-events: none;
}
#gallery-viewer .site-gallery-viewer-nav .site-gallery-viewer-button {
  border-radius: 50%;
  background: #10193370;
  opacity: .63;
  pointer-events: auto;
}
#gallery-viewer .site-gallery-viewer-nav .site-gallery-viewer-button:is(:hover, :focus-visible) {
  background: #101933d9;
  opacity: 1;
}
#gallery-viewer .site-gallery-viewer-count {
  position: absolute;
  min-width: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.visit { background: #223687; color: white; padding-block: clamp(32px, 6vw, 60px); }
.visit-inner { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); align-items: start; gap: 24px 48px; }
.visit-card { padding: clamp(18px, 3vw, 26px); background: #ffffff10; border: 1px solid #afc8ff6e; border-radius: 16px; }
.visit dl { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; margin-bottom: 16px; }
.visit dl div:first-child { grid-column: 1/-1; }
.visit dt { color: #bfe5ff; font-size: .9rem; }
.visit dd { font-weight: 650; overflow-wrap: anywhere; }
.visit dd a, .footer-credit { text-underline-offset: .19em; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.modal {
  --modal-heading: var(--indigo);
  --modal-control-bg: var(--ice);
  --modal-control-hover: #dfedff;
  --modal-input-border: #a7bce4;
  --modal-backdrop: #111c4acc;
}
.modal .secondary { color: var(--indigo); }
.modal .secondary:hover { background: var(--ice); }
.callback-preview { margin-bottom: .65rem; }
.footer { background: var(--ice); color: var(--muted); }
.footer-inner { justify-content: flex-start; flex-wrap: wrap; padding-block: 13px; }
.footer-credit { margin-inline-start: auto; }
.footer-credit:hover { color: var(--indigo); }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .masthead-inner { flex-wrap: wrap; gap: 8px 14px; padding-block: 10px; }
  .masthead nav { order: 3; flex-basis: 100%; }
  .masthead-phone { font-size: .9rem; }
  .masthead .brand img:first-child { width: 34px; height: 34px; }
  .masthead .wordmark { width: 102px; }
  .hero-inner, .visit-inner { grid-template-columns: 1fr; }
  .mascot { aspect-ratio: 1.22; border-radius: 18px; }
  .footer-credit { margin-inline-start: 0; }
}
@media (max-width: 440px) {
  .service-grid, .visit dl { grid-template-columns: 1fr; }
  .service { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 3px 12px; padding: 15px; }
  .service-icon { grid-row: span 2; margin: 0; }
  .service p { margin: 0; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
