/* ==========================================================================
   Scottsdale Pool Maids — site additions
   Loaded after theme.css on every page: type tweaks, light motion, contact form.
   ========================================================================== */

/* ---------- Typography ---------- */
html { font-family: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif; }
.font-\[\'Petrona\'\] { font-optical-sizing: auto; }
h1.font-\[\'Petrona\'\] { letter-spacing: -0.03em; }

/* ---------- Motion ---------- */
@keyframes spm-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes spm-settle {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
@keyframes spm-grow-x {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes spm-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero: staggered entrance on page load (CSS only, no flash) */
  main > section:first-child :is(h1, h1 ~ p, h1 ~ div) {
    animation: spm-rise .8s cubic-bezier(.2,.7,.2,1) both;
  }
  main > section:first-child h1        { animation-delay: .08s; }
  main > section:first-child h1 ~ p    { animation-delay: .2s; }
  main > section:first-child h1 ~ div  { animation-delay: .32s; }
  main > section:first-child h1 ~ div ~ div { animation-delay: .44s; }
  main > section:first-child p:has(+ h1) { animation: spm-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  main > section:first-child p:has(+ h1) > span:first-child {
    transform-origin: left; animation: spm-grow-x .7s .25s cubic-bezier(.2,.7,.2,1) both;
  }
  /* Hero photo eases in from a slight zoom */
  main > section:first-child img[fetchpriority="high"] {
    animation: spm-settle 1.8s cubic-bezier(.2,.7,.2,1) both;
  }

  /* Scroll reveal (classes added by site.js only for off-screen elements) */
  .spm-reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--spm-delay, 0ms);
  }
  .spm-reveal.is-in { opacity: 1; transform: none; }

  /* Gentle lift on images inside cards */
  main a img, main article img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
  main a:hover img, main article:hover img { transform: scale(1.03); }

  /* Slow water-like shimmer on the gold mobile call bar & accent band */
  .spm-shimmer {
    background-image: linear-gradient(110deg, #F5B335 0%, #F8C761 45%, #F5B335 70%);
    background-size: 220% 100%;
    animation: spm-shimmer 9s ease-in-out infinite;
  }
}

/* ---------- Contact page ---------- */
.spm-form { display: grid; gap: 1.25rem; }
.spm-form .spm-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .spm-form .spm-row { grid-template-columns: 1fr 1fr; } }

.spm-field { display: grid; gap: .5rem; }
.spm-field label, .spm-field legend {
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #17497D;
}
.spm-field .spm-opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: #5B7186; }
.spm-field :is(input, select, textarea) {
  width: 100%; min-height: 3rem; padding: .75rem .95rem;
  font: inherit; font-size: 1rem; color: #07192C;
  background: #FCFDFE; border: 1.5px solid #C6D5E2; border-radius: .625rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.spm-field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.spm-field select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%2317497D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem;
}
.spm-field :is(input, select, textarea):hover { border-color: #8FA9C0; }
.spm-field :is(input, select, textarea):focus {
  outline: none; border-color: #17497D; box-shadow: 0 0 0 4px rgba(23,73,125,.14);
}
.spm-field :is(input, textarea)::placeholder { color: #8A9DAF; }

.spm-chips { display: flex; flex-wrap: wrap; gap: .6rem; border: 0; padding: 0; margin: 0; }
.spm-chips legend { margin-bottom: .6rem; }
.spm-chip { position: relative; }
.spm-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.spm-chip span {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: .5rem 1rem;
  font-size: .9375rem; font-weight: 600; color: #30465B;
  background: #FCFDFE; border: 1.5px solid #C6D5E2; border-radius: 999px;
  transition: all .2s;
}
.spm-chip input:checked + span { background: #17497D; border-color: #17497D; color: #FCFDFE; }
.spm-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(23,73,125,.18); }

.spm-hp { position: absolute !important; left: -9999px !important; }


.spm-steps { counter-reset: spm-step; display: grid; gap: 1.1rem; }
.spm-steps li { counter-increment: spm-step; display: grid; grid-template-columns: 2rem 1fr; gap: .9rem; align-items: start; }
.spm-steps li::before {
  content: counter(spm-step);
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem;
  font-weight: 700; font-size: .875rem; color: #F5B335; background: #17497D; box-shadow: 2px 2px 0 0 #F5B335;
}

.spm-areas { display: flex; flex-wrap: wrap; gap: .5rem; }
.spm-areas li {
  padding: .4rem .8rem; border-radius: 999px; font-size: .875rem; font-weight: 600;
  color: #D7E3ED; background: rgba(215,227,237,.08); border: 1px solid rgba(215,227,237,.18);
}

.spm-contact-wrap { padding-bottom: 5rem; }
@media (min-width: 1024px) { .spm-contact-wrap { padding-bottom: 7rem; } }
.spm-contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .spm-contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 2.5rem; } }
.spm-hero-text { max-width: 52rem; }
.spm-h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.1; letter-spacing: -0.025em; }
.spm-h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.spm-lede { font-size: 1rem; line-height: 1.7; }
.spm-small, .spm-steps { font-size: .9375rem; line-height: 1.65; }
.spm-hours { display: grid; grid-template-columns: auto 1fr; column-gap: 1.5rem; row-gap: .5rem; font-size: .9375rem; }
.spm-dark-card { background-image: radial-gradient(circle at 85% 15%, rgba(23,73,125,.55), transparent 45%); }
.spm-chips .spm-chip { text-transform: none; letter-spacing: 0; font-size: inherit; }

/* ---------- Contextual links ---------- */
main a.spm-ctx {
  color: inherit; font-weight: 600;
  text-decoration: underline; text-decoration-color: #F5B335; text-decoration-thickness: 2px; text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
main a.spm-ctx:hover { color: #17497D; text-decoration-color: #17497D; }
main [class*="bg-[#07192C]"] a.spm-ctx:hover, main [class*="bg-[#10314F]"] a.spm-ctx:hover, main [class*="bg-[#17497D]"] a.spm-ctx:hover { color: #F5B335; }

/* ---------- Shared layout for generated pages ---------- */
.spm-wrap { width: 100%; max-width: 90rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .spm-wrap { padding: 0 2rem; } }
@media (min-width: 1024px) { .spm-wrap { padding: 0 3rem; } }
.spm-section { padding: 4rem 0; }
@media (min-width: 1024px) { .spm-section { padding: 5.5rem 0; } }
.spm-tint { background: #EAF1F6; box-shadow: inset 0 1px 0 rgba(23,73,125,.08), inset 0 -1px 0 rgba(23,73,125,.08); }
.spm-dark { background: #07192C; color: #D7E3ED; background-image: radial-gradient(circle at 85% 15%, rgba(23,73,125,.55), transparent 40%); }
.spm-eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-size: .8125rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #17497D; }
.spm-eyebrow::before { content: ""; width: 2rem; height: 2px; background: #F5B335; }
.spm-dark .spm-eyebrow { color: #F5B335; }
.spm-h2x { font-family: 'Petrona', serif; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; color: #07192C; text-wrap: balance; margin-top: 1rem; }
.spm-dark .spm-h2x { color: #F7F9FB; }
.spm-body { font-size: 1.0625rem; line-height: 1.8; color: #30465B; text-wrap: pretty; }
.spm-body p + p { margin-top: 1.1rem; }
.spm-dark .spm-body { color: #C9D7E3; }
.spm-two { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .spm-two { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4rem; } }

/* Breadcrumbs */
.spm-crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8125rem; color: #5B7186; }
.spm-crumbs li + li::before { content: "/"; margin-right: .4rem; color: #A9B9C7; }
.spm-crumbs a { color: #17497D; font-weight: 600; text-decoration: none; }
.spm-crumbs a:hover { text-decoration: underline; text-decoration-color: #F5B335; text-underline-offset: 3px; }

/* Hero facts */
.spm-facts { display: grid; gap: .9rem; padding: 1.5rem; border-radius: 1rem; background: #EAF1F6; box-shadow: inset 0 0 0 1px rgba(23,73,125,.1); }
.spm-facts div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; border-bottom: 1px dashed rgba(23,73,125,.18); padding-bottom: .7rem; }
.spm-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.spm-facts dt { color: #5B7186; }
.spm-facts dd { font-weight: 700; color: #07192C; text-align: right; }
.spm-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Service cards */
.spm-cards { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .spm-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .spm-cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.spm-card {
  display: block; padding: 1.4rem 1.5rem; border-radius: 1rem; background: #FCFDFE; color: #30465B; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(23,73,125,.14), 0 18px 45px -30px rgba(7,25,44,.35);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.spm-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(23,73,125,.3), 0 24px 50px -28px rgba(7,25,44,.45); }
.spm-card h3 { font-family: 'Petrona', serif; font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: #07192C; }
.spm-card p { margin-top: .5rem; font-size: .9375rem; line-height: 1.65; }
.spm-card .spm-more { display: inline-flex; gap: .35rem; margin-top: .9rem; font-size: .875rem; font-weight: 700; color: #17497D; }
.spm-card.is-focus { box-shadow: inset 0 0 0 2px #F5B335, 0 18px 45px -30px rgba(7,25,44,.35); }
.spm-card .spm-tag { display: inline-block; margin-bottom: .6rem; padding: .2rem .55rem; border-radius: .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #FDF0D5; color: #8A5A00; }

/* Area section */
.spm-source { margin-top: 1.25rem; font-size: .8125rem; color: #5B7186; }
.spm-source a { color: #17497D; font-weight: 600; }
.spm-landmarks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.spm-landmarks a {
  display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px;
  font-size: .875rem; font-weight: 600; color: #17497D; background: #FCFDFE; box-shadow: inset 0 0 0 1px rgba(23,73,125,.2);
  text-decoration: none; transition: background-color .2s;
}
.spm-landmarks a:hover { background: #FDF0D5; }

/* Maps */
.spm-map {
  position: relative; width: 100%; min-height: 22rem; border-radius: 1rem; overflow: hidden;
  background: #DCE7EF; box-shadow: inset 0 0 0 1px rgba(23,73,125,.14), 0 18px 45px -24px rgba(7,25,44,.35);
}
.spm-map.is-tall { min-height: 34rem; }
@media (min-width: 1024px) { .spm-map { min-height: 26rem; } .spm-map.is-tall { min-height: 40rem; } }
.spm-map-caption { margin-top: .75rem; font-size: .8125rem; color: #5B7186; }
.spm-pin {
  width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: #17497D; border: 3px solid #FCFDFE; box-shadow: 0 4px 10px rgba(7,25,44,.35); cursor: pointer;
}
.spm-pin.is-current { background: #F5B335; width: 28px; height: 28px; }
.leaflet-div-icon.spm-pin-wrap { background: none; border: 0; }
.spm-popup { font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-size: .875rem; color: #30465B; }
.spm-popup strong { display: block; font-family: 'Petrona', serif; font-size: 1.05rem; color: #07192C; }
.spm-popup a { display: inline-block; margin-top: .35rem; font-weight: 700; color: #17497D; }

/* Area link grid (hub, nearby, service pages) */
.spm-area-grid { display: grid; gap: .75rem; margin-top: 2rem; }
@media (min-width: 640px) { .spm-area-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .spm-area-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.spm-area-link {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.15rem; border-radius: .75rem;
  font-weight: 600; color: #07192C; background: #FCFDFE; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(23,73,125,.14); transition: box-shadow .2s, transform .2s;
}
.spm-area-link small { display: block; font-weight: 500; font-size: .8125rem; color: #5B7186; }
.spm-area-link::after { content: "→"; color: #17497D; transition: transform .2s; }
.spm-area-link:hover { box-shadow: inset 0 0 0 2px #F5B335; }
.spm-area-link:hover::after { transform: translateX(3px); }
.spm-dark .spm-area-link { background: rgba(215,227,237,.06); color: #F7F9FB; box-shadow: inset 0 0 0 1px rgba(215,227,237,.18); }
.spm-dark .spm-area-link small { color: #AFC2D2; }
.spm-dark .spm-area-link::after { color: #F5B335; }

/* FAQ on generated pages */
.spm-faq { display: grid; gap: .75rem; margin-top: 2rem; }
.spm-faq details { border-radius: 1rem; background: #10314F; padding: 0 1.5rem; box-shadow: inset 0 0 0 1px rgba(215,227,237,.16); }
.spm-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; }
.spm-faq summary::-webkit-details-marker { display: none; }
.spm-faq summary h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: #F7F9FB; }
.spm-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: #F5B335; transition: transform .25s; }
.spm-faq details[open] summary::after { transform: rotate(45deg); }
.spm-faq details p { padding-bottom: 1.4rem; font-size: 1rem; line-height: 1.75; color: #D7E3ED; }

/* CTA band */
.spm-cta { background: #F5B335; color: #07192C; }
.spm-cta .spm-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.spm-cta p { font-family: 'Petrona', serif; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; }

/* Hub list */
.spm-hub-list { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .spm-hub-list { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.spm-hub-item { display: grid; gap: .35rem; padding: 1.5rem; border-radius: 1rem; background: #FCFDFE; box-shadow: inset 0 0 0 1px rgba(23,73,125,.14); }
.spm-hub-item h3 a { font-family: 'Petrona', serif; font-weight: 700; font-size: 1.35rem; color: #07192C; text-decoration: none; }
.spm-hub-item h3 a:hover { text-decoration: underline; text-decoration-color: #F5B335; text-underline-offset: 4px; }
.spm-hub-item p { font-size: .9375rem; line-height: 1.65; color: #30465B; }
.spm-hub-item .spm-meta { font-size: .8125rem; font-weight: 600; color: #5B7186; }

/* ==========================================================================
   Buttons — "sun & water" system
   .spm-btn--sun   gold primary with glint sweep + arrow chip
   .spm-btn--glass outline secondary that fills with a rising water wave
   .spm-btn--ink   dark button for gold/light bands
   .spm-btn--icon  round icon-only button
   ========================================================================== */
.spm-btn {
  --mx: 0px; --my: 0px; --ly: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 3.25rem; padding: .55rem .55rem .55rem 1.6rem;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-size: .9375rem; font-weight: 700; line-height: 1; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transform: translate3d(var(--mx), calc(var(--my) + var(--ly)), 0);
  transition: transform .45s cubic-bezier(.2,.9,.25,1.25), box-shadow .35s ease, color .35s ease, background-color .35s ease;
}
.spm-btn:not(:has(.spm-btn__arrow)) { padding: .85rem 1.5rem; }
.spm-btn > svg { width: 1.05rem; height: 1.05rem; flex: none; }
.spm-btn:hover { --ly: -3px; }
.spm-btn:active { --ly: 0px; transition-duration: .12s; }
.spm-btn:focus-visible { outline: 3px solid #17497D; outline-offset: 3px; }
footer .spm-btn:focus-visible, .spm-dark .spm-btn:focus-visible, [class*="bg-[#07192C]"] .spm-btn:focus-visible { outline-color: #F5B335; }

/* arrow chip */
.spm-btn__arrow {
  display: grid; place-items: center; flex: none; width: 2.15rem; height: 2.15rem; border-radius: 50%;
  overflow: hidden; transition: background-color .35s ease, color .35s ease, transform .45s cubic-bezier(.2,.9,.25,1.25);
}
.spm-btn__arrow svg { width: .95rem; height: .95rem; }
.spm-btn:hover .spm-btn__arrow { transform: scale(1.08); }

/* primary: sun */
.spm-btn--sun {
  color: #07192C;
  background: linear-gradient(180deg, #FFD97C 0%, #F7B93A 50%, #ECA01C 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -3px 0 rgba(150,90,0,.22),
              0 1px 0 rgba(7,25,44,.06), 0 12px 26px -12px rgba(222,140,10,.85);
}
.spm-btn--sun::before {
  content: ""; position: absolute; z-index: -1; top: -40%; bottom: -40%; left: 0; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.8) 50%, transparent);
  transform: translateX(-160%) skewX(-20deg);
}
.spm-btn--sun .spm-btn__arrow { background: #07192C; color: #F5B335; }
.spm-btn--sun:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -3px 0 rgba(150,90,0,.22),
              0 0 0 5px rgba(245,179,53,.22), 0 20px 38px -14px rgba(222,140,10,.95);
}

/* secondary: glass that fills with water */
.spm-btn--glass, .spm-btn--ink { --fill: #17497D; }
.spm-btn--glass {
  color: #07192C; background: rgba(252,253,254,.92);
  box-shadow: inset 0 0 0 1.5px #17497D, 0 10px 24px -16px rgba(7,25,44,.5);
}
.spm-btn--glass .spm-btn__arrow { background: #17497D; color: #FCFDFE; }
.spm-btn--ink { color: #F7F9FB; background: #07192C; box-shadow: 0 14px 30px -14px rgba(7,25,44,.8); }
.spm-btn--ink .spm-btn__arrow { background: #F5B335; color: #07192C; }
.spm-btn--glass::before, .spm-btn--ink::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -12px; bottom: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cpath d='M0 6 Q15 0 30 6 T60 6 V12 H0Z' fill='%2317497D'/%3E%3C/svg%3E") repeat-x 0 0 / 60px 12px,
    linear-gradient(var(--fill), var(--fill)) no-repeat 0 11px / 100% 100%;
  transform: translateY(105%);
  transition: transform .6s cubic-bezier(.2,.75,.2,1);
}
.spm-btn--ink::before { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cpath d='M0 6 Q15 0 30 6 T60 6 V12 H0Z' fill='%2317497D'/%3E%3C/svg%3E") repeat-x 0 0 / 60px 12px,
    linear-gradient(#17497D, #17497D) no-repeat 0 11px / 100% 100%; }
.spm-btn--glass:hover, .spm-btn--ink:hover { color: #F7F9FB; }
.spm-btn--glass:hover::before, .spm-btn--ink:hover::before { transform: translateY(0); }
.spm-btn--glass:hover .spm-btn__arrow { background: #F5B335; color: #07192C; }
.spm-btn--glass:hover { box-shadow: inset 0 0 0 1.5px #17497D, 0 18px 34px -16px rgba(23,73,125,.75); }

/* icon-only */
.spm-btn--icon { width: 2.75rem; height: 2.75rem; min-height: 0; padding: 0 !important; border-radius: 50%; }

/* click ripple */
.spm-ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.65) 0%, rgba(255,255,255,0) 70%);
  transform: scale(0); animation: spm-ripple .7s ease-out forwards;
}
.spm-btn--glass .spm-ripple, .spm-btn--ink .spm-ripple { background: radial-gradient(circle, rgba(245,179,53,.55) 0%, rgba(245,179,53,0) 70%); }

@keyframes spm-ripple { to { transform: scale(1); opacity: 0; } }
@keyframes spm-glint { 0%, 72% { transform: translateX(-160%) skewX(-20deg); } 88%, 100% { transform: translateX(330%) skewX(-20deg); } }
@keyframes spm-glint-now { from { transform: translateX(-160%) skewX(-20deg); } to { transform: translateX(330%) skewX(-20deg); } }
@keyframes spm-arrow { 0% { transform: none; } 45% { transform: translateX(160%); opacity: 0; } 46% { transform: translateX(-160%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes spm-wave { to { background-position: 60px 0, 0 11px; } }

@media (prefers-reduced-motion: no-preference) {
  .spm-btn--sun::before { animation: spm-glint 7s ease-in-out 1.5s infinite; }
  .spm-btn--sun:hover::before { animation: spm-glint-now .85s cubic-bezier(.2,.7,.2,1) 1 forwards; }
  .spm-btn:hover .spm-btn__arrow svg { animation: spm-arrow .55s cubic-bezier(.2,.7,.2,1); }
  .spm-btn--glass:hover::before, .spm-btn--ink:hover::before { animation: spm-wave 1.4s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .spm-btn, .spm-btn::before, .spm-btn__arrow { transition: none; }
  .spm-btn { transform: none; }
}

/* photos added to service & area pages */
.spm-photo { position: relative; margin-top: 2rem; border-radius: 1rem; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(7,25,44,.55); }
.spm-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.spm-photo figcaption { position: absolute; left: .75rem; bottom: .75rem; padding: .4rem .75rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: #F7F9FB; background: rgba(7,25,44,.72); backdrop-filter: blur(4px); }

/* Location hero: services card */
.spm-svc-card {
  position: relative; padding: 1.75rem; border-radius: 1.25rem; color: #D7E3ED;
  background: #07192C; background-image: radial-gradient(circle at 100% 0%, rgba(23,73,125,.7), transparent 55%), radial-gradient(circle at 0% 100%, rgba(245,179,53,.14), transparent 45%);
  box-shadow: 0 30px 60px -30px rgba(7,25,44,.75), inset 0 0 0 1px rgba(215,227,237,.12);
}
@media (min-width: 640px) { .spm-svc-card { padding: 2.1rem 2.25rem; } }
.spm-svc-card h2 { font-family: 'Petrona', serif; font-weight: 700; font-size: clamp(1.45rem, 2.2vw, 1.8rem); line-height: 1.15; letter-spacing: -0.02em; color: #F7F9FB; }
.spm-svc-card__sub { margin-top: .5rem; font-size: .9375rem; color: #AFC2D2; }
.spm-svc-card ul { display: grid; gap: .15rem; margin-top: 1.1rem; }
.spm-svc-card li a {
  display: flex; align-items: center; gap: .8rem; padding: .55rem .6rem; margin: 0 -.6rem; border-radius: .6rem;
  font-size: 1.0625rem; font-weight: 500; color: #EAF1F6; text-decoration: none; transition: background-color .2s, color .2s;
}
.spm-svc-card li a:hover { background: rgba(215,227,237,.07); color: #FFFFFF; }
.spm-check { display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: #F5B335; box-shadow: inset 0 0 0 1.75px #F5B335; transition: background-color .2s, color .2s; }
.spm-check svg { width: .9rem; height: .9rem; }
.spm-svc-card li a:hover .spm-check { background: #F5B335; color: #07192C; }
.spm-svc-card__meta { display: grid; gap: .45rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid rgba(215,227,237,.14); font-size: .8125rem; }
.spm-svc-card__meta div { display: flex; justify-content: space-between; gap: 1rem; }
.spm-svc-card__meta dt { color: #8FA6BA; }
.spm-svc-card__meta dd { font-weight: 600; color: #D7E3ED; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  main > section:first-child .spm-svc-card { animation: spm-rise .8s cubic-bezier(.2,.7,.2,1) .35s both; }
  main > section:first-child .spm-svc-card li { animation: spm-rise .6s cubic-bezier(.2,.7,.2,1) both; }
  main > section:first-child .spm-svc-card li:nth-child(1) { animation-delay: 0.50s; }
  main > section:first-child .spm-svc-card li:nth-child(2) { animation-delay: 0.55s; }
  main > section:first-child .spm-svc-card li:nth-child(3) { animation-delay: 0.60s; }
  main > section:first-child .spm-svc-card li:nth-child(4) { animation-delay: 0.65s; }
  main > section:first-child .spm-svc-card li:nth-child(5) { animation-delay: 0.70s; }
  main > section:first-child .spm-svc-card li:nth-child(6) { animation-delay: 0.75s; }
  main > section:first-child .spm-svc-card li:nth-child(7) { animation-delay: 0.80s; }
  main > section:first-child .spm-svc-card li:nth-child(8) { animation-delay: 0.85s; }
}
.spm-btn { max-width: 100%; }
@media (max-width: 639px) {
  .spm-btns .spm-btn, .spm-btn.w-full { width: 100%; justify-content: space-between; white-space: normal; text-align: left; line-height: 1.25; }
}

/* ==========================================================================
   Services hub
   ========================================================================== */
.spm-svh-hero {
  position: relative; overflow: hidden; color: #D7E3ED; padding: 2.5rem 0 7rem;
  background: radial-gradient(120% 90% at 85% 0%, #17497D 0%, #0B2643 45%, #07192C 100%);
}
@media (min-width: 1024px) { .spm-svh-hero { padding: 3.5rem 0 9rem; } }
.spm-caustics { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; mix-blend-mode: screen; pointer-events: none; }
.spm-svh-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 20% 100%, rgba(245,179,53,.12), transparent 70%); }
.spm-svh-hero__grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .spm-svh-hero__grid { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 4rem; } }
.spm-crumbs--dark ol { color: #8FA6BA; } .spm-crumbs--dark a { color: #F5B335; }
.spm-svh-hero .spm-eyebrow { margin-top: 1.5rem; color: #F5B335; }
.spm-svh-title { margin-top: 1.25rem; font-family: 'Petrona', serif; font-weight: 800; font-size: clamp(2.8rem, 6.8vw, 5.6rem); line-height: .98; letter-spacing: -0.04em; color: #F7F9FB; text-wrap: balance; }
.spm-svh-title em { position: relative; font-style: italic; color: #F5B335; white-space: nowrap; }
.spm-svh-title em svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .32em; overflow: visible; }
.spm-svh-title em path { stroke: #F5B335; stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 0; }
.spm-svh-lede { margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.75; color: #C9D7E3; }
.spm-svh-hero .spm-btn--glass { background: rgba(252,253,254,.08); color: #F7F9FB; box-shadow: inset 0 0 0 1.5px rgba(215,227,237,.5); backdrop-filter: blur(6px); }
.spm-svh-hero .spm-btn--glass .spm-btn__arrow { background: #F5B335; color: #07192C; }
.spm-svh-stats { display: flex; flex-wrap: wrap; gap: 2.25rem; margin-top: 2.5rem; }
.spm-svh-stats div { display: flex; flex-direction: column-reverse; }
.spm-svh-stats dd { font-family: 'Petrona', serif; font-weight: 800; font-size: 2.6rem; line-height: 1; color: #F7F9FB; }
.spm-svh-stats dt { margin-top: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8FA6BA; }

/* photo collage */
.spm-svh-collage { position: relative; height: 26rem; }
@media (min-width: 1024px) { .spm-svh-collage { height: 32rem; } }
.spm-svh-collage figure { position: absolute; margin: 0; border-radius: 1.1rem; overflow: hidden; border: 5px solid #FCFDFE; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.spm-svh-collage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spm-svh-collage figure:nth-child(1) { width: 66%; height: 62%; top: 0; right: 0; transform: rotate(3deg); }
.spm-svh-collage figure:nth-child(2) { width: 56%; height: 50%; bottom: 4%; left: 0; transform: rotate(-4deg); z-index: 2; }
.spm-svh-collage figure:nth-child(3) { width: 44%; height: 40%; bottom: 0; right: 6%; transform: rotate(2deg); z-index: 1; }
.spm-svh-badge { position: absolute; z-index: 3; top: 52%; left: 30%; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 999px;
  font-size: .875rem; font-weight: 700; color: #07192C; background: rgba(252,253,254,.92); backdrop-filter: blur(8px); box-shadow: 0 16px 40px -14px rgba(0,0,0,.55); }
.spm-svh-badge b { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #F5B335; }
.spm-svh-badge svg { width: 1rem; height: 1rem; }
@media (max-width: 639px) { .spm-svh-collage { height: 20rem; } .spm-svh-badge { left: 8%; } }
.spm-svh-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 2; }

/* bubbles */
.spm-bubbles i { position: absolute; bottom: -30px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), rgba(255,255,255,.08)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); opacity: 0; }
.spm-bubbles i:nth-child(1){left:6%;width:8px;height:8px}.spm-bubbles i:nth-child(2){left:18%;width:14px;height:14px}.spm-bubbles i:nth-child(3){left:31%}
.spm-bubbles i:nth-child(4){left:44%;width:6px;height:6px}.spm-bubbles i:nth-child(5){left:58%;width:12px;height:12px}.spm-bubbles i:nth-child(6){left:71%}
.spm-bubbles i:nth-child(7){left:83%;width:16px;height:16px}.spm-bubbles i:nth-child(8){left:93%;width:7px;height:7px}

/* symptom picker */
.spm-svh-picker { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .spm-svh-picker { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 4rem; } }
.spm-chips-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.spm-symptom {
  display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1rem; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .9375rem; font-weight: 600; color: #17497D; background: #FCFDFE;
  box-shadow: inset 0 0 0 1.5px rgba(23,73,125,.25); transition: all .25s cubic-bezier(.2,.8,.2,1);
}
.spm-symptom:hover { box-shadow: inset 0 0 0 1.5px #17497D; transform: translateY(-2px); }
.spm-symptom[aria-pressed="true"] { color: #07192C; background: #F5B335; box-shadow: 0 10px 24px -12px rgba(222,140,10,.9); }
.spm-symptom:focus-visible { outline: 3px solid #17497D; outline-offset: 2px; }
.spm-svh-answer { margin-top: 1.25rem; min-height: 4.5rem; padding: 1.1rem 1.3rem; border-radius: 1rem; background: #EAF1F6; font-size: 1rem; line-height: 1.65; color: #30465B; box-shadow: inset 0 0 0 1px rgba(23,73,125,.08); }
.spm-svh-answer strong { color: #07192C; }
.spm-svh-answer a { font-weight: 700; color: #17497D; text-decoration: underline; text-decoration-color: #F5B335; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.spm-svh-answer.is-new { animation: spm-rise .45s cubic-bezier(.2,.7,.2,1); }

/* bento grid */
.spm-bento { display: grid; gap: 1rem; margin-top: 3rem; grid-auto-rows: 21rem; }
@media (min-width: 768px) { .spm-bento { grid-template-columns: repeat(6, minmax(0,1fr)); grid-auto-rows: 17rem; gap: 1.25rem; } }
@media (min-width: 768px) {
  .spm-tile--tall { grid-column: span 2; grid-row: span 2; }
  .spm-tile--wide { grid-column: span 4; }
  .spm-tile--half { grid-column: span 3; }
  .spm-tile--third { grid-column: span 2; }
}
.spm-tile {
  --x: 50%; --y: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; border-radius: 1.25rem; color: #F7F9FB; text-decoration: none; background: #07192C;
  box-shadow: 0 24px 50px -30px rgba(7,25,44,.7);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, opacity .4s ease, filter .4s ease;
}
.spm-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.spm-tile::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,25,44,.05) 0%, rgba(7,25,44,.25) 35%, rgba(7,25,44,.88) 78%, #07192C 100%); }
.spm-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(245,179,53,.28), rgba(143,211,255,.12) 35%, transparent 60%); }
.spm-tile:hover { box-shadow: 0 34px 70px -30px rgba(7,25,44,.85), 0 0 0 2px rgba(245,179,53,.65); }
.spm-tile:hover::after { opacity: 1; }
.spm-tile:hover img { transform: scale(1.09); filter: saturate(1.15); }
.spm-tile:focus-visible { outline: 3px solid #F5B335; outline-offset: 3px; }
.spm-tile__icon {
  position: absolute; top: 1.25rem; left: 1.25rem; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 1rem;
  color: #07192C; background: linear-gradient(160deg, #FFD97C, #ECA01C); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 22px -10px rgba(222,140,10,.9);
  transition: transform .5s cubic-bezier(.2,.9,.25,1.4);
}
.spm-tile__icon svg { width: 1.6rem; height: 1.6rem; }
.spm-tile:hover .spm-tile__icon { transform: rotate(-8deg) scale(1.1); }
.spm-tile__num { position: absolute; top: 1.35rem; right: 1.4rem; font-family: 'Petrona', serif; font-weight: 800; font-size: 1rem; letter-spacing: .05em; color: rgba(247,249,251,.7); }
.spm-tile__tag { align-self: flex-start; margin-bottom: .7rem; padding: .28rem .65rem; border-radius: 999px; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F5B335; background: rgba(7,25,44,.55); box-shadow: inset 0 0 0 1px rgba(245,179,53,.45); backdrop-filter: blur(4px); }
.spm-tile h3 { font-family: 'Petrona', serif; font-weight: 700; font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.08; letter-spacing: -0.02em; }
.spm-tile--tall h3, .spm-tile--wide h3 { font-size: clamp(1.75rem, 2.8vw, 2.4rem); }
.spm-tile p { margin-top: .5rem; max-width: 34rem; font-size: .9375rem; line-height: 1.6; color: #C9D7E3; }
.spm-tile ul { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.spm-tile li { padding: .25rem .6rem; border-radius: .45rem; font-size: .75rem; font-weight: 600; color: #EAF1F6; background: rgba(215,227,237,.12); }
.spm-tile__go { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .875rem; font-weight: 700; color: #F5B335; }
.spm-tile__go svg { width: 1rem; height: 1rem; transition: transform .35s cubic-bezier(.2,.9,.25,1.4); }
.spm-tile:hover .spm-tile__go svg { transform: translateX(5px); }
/* hide extra detail on compact tiles until hover (desktop) */
@media (min-width: 768px) and (hover: hover) {
  .spm-tile--third p, .spm-tile--half p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease, margin .4s ease; margin-top: 0; }
  .spm-tile--third:hover p, .spm-tile--half:hover p, .spm-tile--third:focus-visible p, .spm-tile--half:focus-visible p { max-height: 8rem; opacity: 1; margin-top: .5rem; }
}
/* picker states */
.spm-bento.is-filtering .spm-tile:not(.is-match) { opacity: .28; filter: grayscale(.7); transform: scale(.97); }
.spm-bento.is-filtering .spm-tile.is-match { box-shadow: 0 34px 70px -30px rgba(7,25,44,.85), 0 0 0 3px #F5B335; }
.spm-bento.is-filtering .spm-tile.is-match .spm-tile__icon { animation: spm-pop .6s cubic-bezier(.2,.9,.25,1.4); }
.spm-svh-more { margin-top: 2rem; font-size: .9375rem; color: #5B7186; text-align: center; }

/* process steps */
.spm-steps-x { position: relative; display: grid; gap: 1.5rem; margin-top: 3rem; counter-reset: s; }
@media (min-width: 900px) { .spm-steps-x { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; } }
.spm-steps-x::before { content: ""; position: absolute; left: 1.75rem; top: 0; bottom: 0; width: 2px; background: linear-gradient(#F5B335, rgba(245,179,53,.1)); }
@media (min-width: 900px) { .spm-steps-x::before { left: 0; right: 0; top: 1.75rem; bottom: auto; width: auto; height: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 Q10 0 20 4 T40 4' fill='none' stroke='%23F5B335' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 8px; height: 8px; top: calc(1.75rem - 4px); } }
.spm-steps-x li { position: relative; counter-increment: s; padding-left: 4.5rem; }
@media (min-width: 900px) { .spm-steps-x li { padding-left: 0; padding-top: 5rem; } }
.spm-steps-x li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  font-family: 'Petrona', serif; font-weight: 800; font-size: 1.2rem; color: #07192C; background: linear-gradient(160deg, #FFD97C, #ECA01C);
  box-shadow: 0 0 0 6px #07192C, 0 0 0 7px rgba(245,179,53,.4);
}
.spm-steps-x h3 { font-family: 'Petrona', serif; font-weight: 700; font-size: 1.35rem; color: #F7F9FB; }
.spm-steps-x p { margin-top: .5rem; font-size: .9375rem; line-height: 1.65; color: #AFC2D2; }

/* faq light variant */
.spm-svh-faqwrap { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .spm-svh-faqwrap { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 4rem; align-items: start; } }
.spm-faq--light { margin-top: 0; }
.spm-faq--light details { background: #FCFDFE; box-shadow: inset 0 0 0 1px rgba(23,73,125,.14); }
.spm-faq--light summary h3 { color: #07192C; }
.spm-faq--light details p { color: #30465B; }
.spm-faq--light summary::after { color: #17497D; }

@keyframes spm-pop { 0% { transform: scale(1); } 50% { transform: scale(1.25) rotate(-8deg); } 100% { transform: scale(1); } }
@keyframes spm-float-a { 0%,100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-12px); } }
@keyframes spm-float-b { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(10px); } }
@keyframes spm-float-c { 0%,100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(3.5deg) translateY(-8px); } }
@keyframes spm-bubble { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateY(-110vh) translateX(30px); opacity: 0; } }
@keyframes spm-draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes spm-badge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: no-preference) {
  .spm-svh-collage figure:nth-child(1) { animation: spm-float-a 9s ease-in-out infinite; }
  .spm-svh-collage figure:nth-child(2) { animation: spm-float-b 11s ease-in-out infinite; }
  .spm-svh-collage figure:nth-child(3) { animation: spm-float-c 10s ease-in-out infinite; }
  .spm-svh-badge { animation: spm-badge 5s ease-in-out infinite; }
  .spm-bubbles i { animation: spm-bubble 14s linear infinite; }
  .spm-bubbles i:nth-child(2n) { animation-duration: 18s; animation-delay: -4s; }
  .spm-bubbles i:nth-child(3n) { animation-duration: 11s; animation-delay: -7s; }
  .spm-bubbles i:nth-child(4n) { animation-delay: -10s; }
  .spm-svh-title em path { animation: spm-draw 1.4s .6s cubic-bezier(.6,0,.2,1) both; }
  .spm-svh-hero .spm-svh-title, .spm-svh-hero .spm-svh-lede, .spm-svh-hero .spm-btns, .spm-svh-hero .spm-svh-stats { animation: spm-rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .spm-svh-hero .spm-svh-lede { animation-delay: .15s; } .spm-svh-hero .spm-btns { animation-delay: .28s; } .spm-svh-hero .spm-svh-stats { animation-delay: .4s; }
  .spm-svh-collage { animation: spm-rise 1.1s .2s cubic-bezier(.2,.7,.2,1) both; }
}
@media (prefers-reduced-motion: reduce) { .spm-caustics { display: none; } .spm-tile { transform: none !important; } }
/* tile legibility refinements */
.spm-tile::before { background: linear-gradient(180deg, rgba(7,25,44,.1) 0%, rgba(7,25,44,.35) 30%, rgba(7,25,44,.9) 66%, #07192C 100%); }
@media (min-width: 768px) {
  .spm-tile--wide::before { background: linear-gradient(90deg, rgba(7,25,44,.96) 0%, rgba(7,25,44,.86) 38%, rgba(7,25,44,.25) 72%, rgba(7,25,44,.05) 100%); }
  .spm-tile--wide > :not(img):not(.spm-tile__icon):not(.spm-tile__num) { max-width: min(30rem, 52%); }
  .spm-tile--wide h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
}
@media (max-width: 639px) { .spm-svh-stats { gap: 1.4rem; } .spm-svh-stats dd { font-size: 2.2rem; } .spm-svh-stats dt { font-size: .6875rem; letter-spacing: .1em; } }
/* Keep map library layers (Leaflet panes use z-index 400–1000) below the sticky header */
.spm-map { isolation: isolate; z-index: 0; }
.spm-map .leaflet-pane, .spm-map .leaflet-control, .spm-map .leaflet-top, .spm-map .leaflet-bottom { z-index: auto; }
.spm-map .leaflet-map-pane { z-index: 1; } .spm-map .leaflet-top, .spm-map .leaflet-bottom { z-index: 2; }
/* lead form status */
.spm-form-status:empty { display: none; }
.spm-form-status { padding: .9rem 1.1rem; border-radius: .75rem; font-size: .9375rem; line-height: 1.55; }
.spm-form-status.is-info { background: #EAF1F6; color: #17497D; }
.spm-form-status.is-ok { background: #E7F6EC; color: #14532D; box-shadow: inset 0 0 0 1px rgba(20,83,45,.2); }
.spm-form-status.is-err { background: #FDECEC; color: #8A1C1C; box-shadow: inset 0 0 0 1px rgba(138,28,28,.2); }
.spm-btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

/* ==========================================================================
   Request-service popup (WebLeadsNow CRM form)
   ========================================================================== */
html.spm-modal-open { overflow: hidden; }
.spm-modal {
  width: min(40rem, calc(100vw - 2rem)); max-height: calc(100dvh - 3rem); padding: 0; border: 0; border-radius: 1.5rem; overflow: hidden;
  color: #30465B; background: #FCFDFE; box-shadow: 0 40px 100px -30px rgba(7,25,44,.75), 0 0 0 1px rgba(23,73,125,.12);
  font-family: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
}
.spm-modal[open] { display: flex; flex-direction: column; animation: spm-modal-in .42s cubic-bezier(.2,.9,.25,1.15); }
.spm-modal.is-closing { animation: spm-modal-out .18s ease-in forwards; }
.spm-modal::backdrop { background: rgba(7,25,44,.55); backdrop-filter: blur(6px); animation: spm-fade .3s ease; }
.spm-modal.is-closing::backdrop { animation: spm-fade .18s ease reverse forwards; }
.spm-modal__head {
  position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.6rem 1.75rem 1.4rem; color: #D7E3ED;
  background: radial-gradient(120% 140% at 100% 0%, #17497D 0%, #0B2643 50%, #07192C 100%);
}
.spm-modal__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q15 0 30 8 T60 8 V14 H0Z' fill='%23FCFDFE'/%3E%3C/svg%3E") repeat-x 0 0 / 60px 14px; }
.spm-modal__eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #F5B335; }
.spm-modal__title { margin-top: .35rem; font-family: 'Petrona', serif; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.05; letter-spacing: -0.02em; color: #F7F9FB; }
.spm-modal__sub { margin-top: .5rem; font-size: .9375rem; line-height: 1.55; color: #C9D7E3; }
.spm-modal__close {
  flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; cursor: pointer;
  color: #F7F9FB; background: rgba(215,227,237,.12); transition: background-color .2s, transform .3s cubic-bezier(.2,.9,.25,1.4);
}
.spm-modal__close:hover { background: #F5B335; color: #07192C; transform: rotate(90deg); }
.spm-modal__close:focus-visible { outline: 3px solid #F5B335; outline-offset: 2px; }
.spm-modal__close svg { width: 1.1rem; height: 1.1rem; }
.spm-modal__body { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem 1.75rem 1.75rem; min-height: 12rem; }
.spm-modal__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .4rem; transition: opacity .3s; }
.spm-modal__loading span { width: .6rem; height: .6rem; border-radius: 50%; background: #17497D; animation: spm-dots 1s ease-in-out infinite; }
.spm-modal__loading span:nth-child(2) { animation-delay: .15s; } .spm-modal__loading span:nth-child(3) { animation-delay: .3s; }
.spm-modal.is-ready .spm-modal__loading { opacity: 0; pointer-events: none; }
@media (max-width: 639px) {
  .spm-modal { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 1.5rem 1.5rem 0 0; }
  .spm-modal[open] { animation: spm-sheet-in .45s cubic-bezier(.2,.9,.25,1); }
  .spm-modal.is-closing { animation: spm-sheet-out .2s ease-in forwards; }
}
@keyframes spm-modal-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes spm-modal-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes spm-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes spm-sheet-out { to { transform: translateY(100%); } }
@keyframes spm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spm-dots { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .spm-modal[open], .spm-modal.is-closing, .spm-modal::backdrop { animation: none; } }
.spm-crm-inline { min-height: 10rem; }
.spm-modal__title:focus { outline: none; }

/* ==========================================================================
   3D maps
   ========================================================================== */
.spm-map3d-stage { position: relative; padding: 0 0 4.5rem; background: linear-gradient(180deg, #F7F9FB 0%, #F7F9FB 18%, #07192C 18%, #07192C 100%); }
.spm-map3d { position: relative; margin: 0; }
.spm-map--3d {
  min-height: 0 !important; height: clamp(30rem, 74vh, 46rem); border-radius: 1.5rem;
  background: radial-gradient(120% 100% at 50% 0%, #2a5d8f 0%, #0B2643 60%, #07192C 100%);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(215,227,237,.14);
}
.spm-map3d--area .spm-map--3d { height: clamp(24rem, 58vh, 34rem); }
.spm-map3d .spm-map-caption { color: #8FA6BA; }
.spm-map3d--area .spm-map-caption { color: #5B7186; }
/* subtle vignette over the canvas */
.spm-map--3d::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 120px rgba(7,25,44,.35); }

/* pins */
.spm-mpin { position: relative; width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.spm-mpin__dot { position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE6A6, #F5B335 55%, #D98B0B);
  box-shadow: 0 0 0 3px #07192C, 0 0 0 5px rgba(245,179,53,.7), 0 0 22px 6px rgba(245,179,53,.55); transition: transform .3s cubic-bezier(.2,.9,.25,1.4); }
.spm-mpin__pulse { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(245,179,53,.75); opacity: 0; }
.spm-mpin__label {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  padding: .32rem .62rem; border-radius: 999px; font: 700 .75rem/1 'Schibsted Grotesk', system-ui, sans-serif; letter-spacing: .01em;
  color: #F7F9FB; background: rgba(7,25,44,.86); box-shadow: 0 8px 20px -8px rgba(0,0,0,.6), inset 0 0 0 1px rgba(245,179,53,.4); backdrop-filter: blur(4px);
  transition: transform .3s cubic-bezier(.2,.9,.25,1.4), background-color .2s;
}
.spm-mpin.is-hover .spm-mpin__dot, .spm-mpin:focus-visible .spm-mpin__dot { transform: scale(1.35); }
.spm-mpin.is-hover .spm-mpin__label, .spm-mpin:focus-visible .spm-mpin__label { transform: translateX(-50%) translateY(-3px) scale(1.06); background: #F5B335; color: #07192C; }
.spm-mpin.is-current { width: 30px; height: 30px; }
.spm-mpin.is-current .spm-mpin__label { background: #F5B335; color: #07192C; }
.spm-mpin:focus-visible { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .spm-mpin__pulse { animation: spm-pin-pulse 2.4s cubic-bezier(.2,.7,.2,1) infinite; }
  .spm-mpin:nth-child(odd) .spm-mpin__pulse { animation-delay: .8s; }
}
@keyframes spm-pin-pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* popups (Mapbox + MapLibre) */
.mapboxgl-popup-content, .maplibregl-popup-content { padding: .9rem 1rem; border-radius: .9rem; background: #FCFDFE; box-shadow: 0 24px 50px -20px rgba(7,25,44,.6); }
.mapboxgl-popup-tip, .maplibregl-popup-tip { border-top-color: #FCFDFE !important; border-bottom-color: #FCFDFE !important; }
.spm-popup span { display: block; margin-top: .15rem; font-size: .8125rem; color: #5B7186; }

/* overlay panel (hub) */
.spm-map3d__panel {
  position: absolute; z-index: 4; top: 1.25rem; right: 1.25rem; width: 19rem; max-height: calc(100% - 2.5rem); overflow: auto;
  padding: 1.25rem; border-radius: 1.25rem; color: #D7E3ED; background: rgba(7,25,44,.78); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(215,227,237,.14);
}
.spm-map3d__panel .spm-eyebrow { color: #F5B335; font-size: .7rem; }
.spm-map3d__panel ol { display: grid; gap: .25rem; margin: .9rem 0 1.1rem; }
.spm-map3d__panel li button {
  width: 100%; display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem; border: 0; border-radius: .7rem; cursor: pointer; text-align: left;
  font: inherit; color: #EAF1F6; background: transparent; transition: background-color .2s, transform .2s;
}
.spm-map3d__panel li button:hover, .spm-map3d__panel li button.is-active { background: rgba(245,179,53,.14); transform: translateX(3px); }
.spm-map3d__panel li button.is-active b { background: #F5B335; color: #07192C; }
.spm-map3d__panel li b { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .55rem; font: 800 .75rem 'Petrona', serif; color: #F5B335; box-shadow: inset 0 0 0 1.5px rgba(245,179,53,.5); transition: all .2s; }
.spm-map3d__panel li span { display: flex; flex-direction: column; font-size: .9375rem; font-weight: 600; line-height: 1.2; }
.spm-map3d__panel li small { margin-top: .15rem; font-size: .75rem; font-weight: 500; color: #8FA6BA; }
.spm-map3d__tour { width: 100%; justify-content: space-between; }
.spm-map3d__tour.is-on span:first-child::after { content: " · stop"; }

/* view toolbar */
.spm-map3d__tools {
  position: absolute; z-index: 4; left: 1.25rem; bottom: 2.9rem; display: flex; gap: .35rem; padding: .35rem; border-radius: 999px;
  background: rgba(7,25,44,.78); backdrop-filter: blur(12px); box-shadow: 0 16px 34px -16px rgba(0,0,0,.7), inset 0 0 0 1px rgba(215,227,237,.14);
}
.spm-map3d--area .spm-map3d__tools { bottom: 2.6rem; }
.spm-map3d__tools button {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 .8125rem 'Schibsted Grotesk', system-ui, sans-serif; color: #EAF1F6; background: transparent; transition: background-color .2s, color .2s;
}
.spm-map3d__tools button:hover { background: rgba(215,227,237,.12); }
.spm-map3d__tools button[aria-pressed="true"] { background: #F5B335; color: #07192C; }
.spm-map3d__tools svg { width: 1rem; height: 1rem; }
.spm-map3d__tools button:focus-visible, .spm-map3d__panel button:focus-visible { outline: 2px solid #F5B335; outline-offset: 2px; }
.spm-map3d:not(.is-live) .spm-map3d__tools, .spm-map3d:not(.is-live) .spm-map3d__panel [data-map-tour] { opacity: .5; pointer-events: none; }

/* keep map controls clear of the panel */
.spm-map3d .mapboxgl-ctrl-top-right, .spm-map3d .maplibregl-ctrl-top-right { top: .5rem; }
@media (min-width: 901px) { .spm-map3d:not(.spm-map3d--area) .mapboxgl-ctrl-top-right, .spm-map3d:not(.spm-map3d--area) .maplibregl-ctrl-top-right { right: 21rem; } }

@media (max-width: 900px) {
  .spm-map3d-stage { background: linear-gradient(180deg, #F7F9FB 0%, #F7F9FB 8%, #07192C 8%); }
  .spm-map3d__panel { position: static; width: auto; max-height: none; margin-top: 1rem; }
  .spm-map3d__panel ol { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x mandatory; }
  .spm-map3d__panel li { flex: 0 0 auto; scroll-snap-align: start; }
  .spm-map3d__panel li button { padding: .5rem .8rem .5rem .5rem; background: rgba(215,227,237,.06); }
  .spm-map3d__tools { bottom: auto; top: 1rem; left: 1rem; }
  .spm-map3d:not(.spm-map3d--area) .spm-map3d__tools { top: 1rem; }
}
.spm-map3d__tools button[hidden] { display: none; }

/* homepage 3D map (inside the "Local Service" column) */
.spm-map3d--home .spm-map--3d { height: clamp(26rem, 62vh, 36rem); border-radius: 1.25rem; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7), 0 0 0 2px #F5B335; }
.spm-map3d--home .spm-map3d__tools { top: 1rem; bottom: auto; left: 1rem; }
.spm-map3d--home .spm-map3d__panel { position: static; width: auto; max-height: none; margin-top: 1rem; background: rgba(7,25,44,.55); }
.spm-map3d--home .spm-map3d__panel ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 1rem; }
.spm-map3d--home .spm-map3d__panel li button { padding: .4rem .75rem .4rem .4rem; background: rgba(215,227,237,.07); }
.spm-map3d--home .spm-map3d__panel li b { width: 1.6rem; height: 1.6rem; font-size: .7rem; }
.spm-map3d--home .spm-map3d__panel li small { display: none; }
.spm-map3d--home .spm-map3d__panel li span { font-size: .875rem; }
.spm-map3d__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.spm-map3d--home .spm-map3d__tour { width: auto; flex: 1 1 auto; }
.spm-map3d--home .spm-btn--glass { background: rgba(252,253,254,.08); color: #F7F9FB; box-shadow: inset 0 0 0 1.5px rgba(215,227,237,.45); }
.spm-map3d--home .spm-btn--glass .spm-btn__arrow { background: #F5B335; color: #07192C; }
.spm-map3d--home .mapboxgl-ctrl-top-right, .spm-map3d--home .maplibregl-ctrl-top-right { right: 0 !important; }
@media (max-width: 900px) { .spm-map3d--home .spm-map3d__panel ol { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; } .spm-map3d--home .spm-map3d__panel li { flex: 0 0 auto; } }

/* about page */
.spm-about-photos { position: relative; height: 24rem; }
@media (min-width: 1024px) { .spm-about-photos { height: 30rem; } }
.spm-about-photos figure { position: absolute; margin: 0; overflow: hidden; border-radius: 1.1rem; border: 5px solid #FCFDFE; box-shadow: 0 30px 60px -24px rgba(7,25,44,.5); }
.spm-about-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spm-about-photos figure:nth-child(1) { top: 0; left: 0; width: 78%; height: 72%; transform: rotate(-2.5deg); }
.spm-about-photos figure:nth-child(2) { right: 0; bottom: 0; width: 58%; height: 52%; transform: rotate(3deg); }
.spm-standards { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .spm-standards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .spm-standards { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; } }
.spm-standard { position: relative; padding: 5rem 1.5rem 1.6rem; border-radius: 1.25rem; background: #FCFDFE; box-shadow: inset 0 0 0 1px rgba(23,73,125,.12), 0 20px 40px -30px rgba(7,25,44,.4); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.spm-standard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 2px #F5B335, 0 26px 50px -30px rgba(7,25,44,.5); }
.spm-standard:hover .spm-tile__icon { transform: rotate(-8deg) scale(1.08); }
.spm-standard h3 { font-family: 'Petrona', serif; font-weight: 700; font-size: 1.35rem; line-height: 1.15; color: #07192C; }
.spm-standard p { margin-top: .5rem; font-size: .9375rem; line-height: 1.65; color: #30465B; }
.spm-desert { display: grid; gap: .75rem; }
@media (min-width: 640px) { .spm-desert { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.spm-desert li { padding: 1.2rem 1.3rem; border-radius: 1rem; background: rgba(215,227,237,.06); box-shadow: inset 0 0 0 1px rgba(215,227,237,.12); border-left: 3px solid #F5B335; }
.spm-desert h3 { font-family: 'Petrona', serif; font-weight: 700; font-size: 1.15rem; color: #F7F9FB; }
.spm-desert p { margin-top: .35rem; font-size: .9375rem; line-height: 1.6; color: #AFC2D2; }
.spm-steps-x--light::before { background: linear-gradient(#F5B335, rgba(245,179,53,.15)); }
.spm-steps-x--light li::before { box-shadow: 0 0 0 6px #F7F9FB, 0 0 0 7px rgba(245,179,53,.5); }
.spm-steps-x--light h3 { color: #07192C; }
.spm-steps-x--light p { color: #30465B; }
.spm-about-links { display: grid; gap: .75rem; margin-top: 3rem; }
@media (min-width: 768px) { .spm-about-links { grid-template-columns: repeat(3, minmax(0,1fr)); } }
