/* CARE motion layer: on-brand animations. Hidden starting states only apply under html.mo (set by motion.js). */
:root {
  --mo-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath fill='%23C9A84C' d='M12 0C13 10 15 14 24 16C15 18 13 22 12 32C11 22 9 18 0 16C9 14 11 10 12 0Z'/%3E%3C/svg%3E");
  --mo-ease: cubic-bezier(.22,.61,.36,1);
}

/* ── Gold star motif: "Get a Quote" shimmer + corner star ── */
.btn-quote { position: relative; background-image: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.6) 50%, transparent 65%), linear-gradient(135deg, var(--gold), var(--gold-lt)); background-size: 300% 100%, 100% 100%; background-repeat: no-repeat; background-position: 100% 0, 0 0; animation: mo-shine 7s ease-in-out 1.5s infinite; }
.btn-quote:hover, .btn-quote:focus-visible { animation: mo-shine-hover .8s ease-out; }
.btn-quote::after { content: ''; position: absolute; top: -8px; right: -6px; width: 12px; height: 16px; background: var(--mo-star) center / contain no-repeat; opacity: 0; transform: scale(.3) rotate(-40deg); pointer-events: none; }
.btn-quote:hover::after, .btn-quote:focus-visible::after { animation: mo-star 1.3s var(--mo-ease) both; }
@keyframes mo-shine { 0%, 86% { background-position: 100% 0, 0 0; } 100% { background-position: 0% 0, 0 0; } }
@keyframes mo-shine-hover { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
@keyframes mo-star { 0% { opacity: 0; transform: scale(.3) rotate(-40deg); } 30%, 70% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: scale(.6) rotate(20deg); } }

/* ── H2 gold underline with star ── */
.section-header h2, .block-header h2, .cta-inner h2, .cta-band h2, .prose h2 { position: relative; padding-bottom: 18px; }
.section-header h2::after, .block-header h2::after, .cta-inner h2::after, .cta-band h2::after, .prose h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 104px; height: 14px; background: linear-gradient(90deg, var(--gold), var(--gold-lt)) 0 50% / 92px 2px no-repeat, var(--mo-star) 100% 50% / 10px 14px no-repeat; }
.cta-inner h2::after, .cta-band h2::after { left: 50%; margin-left: -52px; }
.mo .mo-h2::after { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--mo-ease); }
.mo .mo-h2.mo-in::after { clip-path: inset(0 0 0 0); }

/* ── Scroll reveals ── */
.js .reveal { transform: translateY(16px); transition: opacity .45s ease, transform .45s var(--mo-ease), box-shadow .3s ease, border-color .3s ease; transition-delay: var(--d, 0s); }
.mo .mo-rv { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s var(--mo-ease), box-shadow .3s ease; transition-delay: var(--d, 0s); }
.mo .mo-rv.mo-in { opacity: 1; transform: none; }
.mo .mo-rv.mo-in.link-card:hover, .js .service-card.reveal.visible:hover, .js .service-card.reveal.visible:focus-visible { transform: translateY(-4px); }
.service-card:focus-visible, .link-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Custom service icons ── */
.service-icon .si, .link-card .ico .si { width: 24px; height: 24px; color: var(--navy); overflow: visible; }
.si .ac { stroke: var(--gold); }
.si circle.ac { fill: var(--gold); }
.si-fan, .si-drop, .si-bolt, .si-hat, .si-tw, .si-roll, .si-shine { transform-box: fill-box; transform-origin: center; }
.si-leaf, .si-wrench { transform-box: fill-box; }
.si-leaf { transform-origin: 0% 100%; }
.si-wrench { transform-origin: 30% 70%; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-fan { animation: mo-spin 1.2s linear infinite; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-drop { animation: mo-drop 1s ease-in infinite; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-bolt { animation: mo-flicker 1s steps(1) infinite; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-wrench { animation: mo-wiggle .7s ease-in-out 2; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-hat { animation: mo-bob .9s ease-in-out infinite; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-tw { animation: mo-twinkle 1.1s ease-in-out infinite; }
:is(.service-card, .link-card):hover .si-tw2 { animation-delay: .35s; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-roll { animation: mo-roll 1.2s ease-in-out infinite; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-shine { animation: mo-shimmer 1.2s ease-in-out infinite; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-leaf { animation: mo-sway 1.6s ease-in-out infinite; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-route { animation: mo-dash .8s linear infinite; }
@keyframes mo-spin { to { transform: rotate(360deg); } }
@keyframes mo-drop { 0% { transform: translateY(-2px); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(2px); opacity: 1; } 100% { transform: translateY(3px); opacity: 0; } }
@keyframes mo-flicker { 0%, 100% { opacity: 1; } 15% { opacity: .25; } 25% { opacity: 1; } 45% { opacity: .4; } 55% { opacity: 1; } }
@keyframes mo-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(10deg); } }
@keyframes mo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes mo-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.4); opacity: .3; } }
@keyframes mo-roll { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-2.5px); } }
@keyframes mo-shimmer { 0%, 100% { opacity: .2; transform: translate(-1.5px, 1.5px); } 50% { opacity: 1; transform: translate(1.5px, -1.5px); } }
@keyframes mo-sway { 0%, 100% { transform: rotate(0); } 33% { transform: rotate(-8deg); } 66% { transform: rotate(5deg); } }
@keyframes mo-dash { to { stroke-dashoffset: -8.4; } }

@keyframes mo-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ── Analog clocks ── */
.clock-strip { background: var(--navy); color: rgba(255,255,255,.85); border-top: 1px solid rgba(201,168,76,.18); border-bottom: 1px solid rgba(201,168,76,.18); }
.clock-inner { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 10px; }
.js .clock-inner { min-height: 214px; padding-block: 24px; }
.clock-text { font-size: .86rem; letter-spacing: .03em; line-height: 1.5; }
.clock-head { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.clocks { list-style: none; display: flex; justify-content: center; gap: clamp(20px, 6vw, 72px); margin-top: 16px; }
.clock { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.clock svg { width: 96px; height: 96px; display: block; margin-bottom: 6px; }
.clock-face { fill: var(--white); stroke: var(--gold); stroke-width: 2.5; }
.clock-ticks line { stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }
.clock-ticks line.q { stroke-width: 3.5; }
.clock-h, .clock-m { stroke: var(--navy); stroke-linecap: round; }
.clock-h { stroke-width: 5; }
.clock-m { stroke-width: 3.5; }
.clock-s { stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.clock-c { fill: var(--gold); stroke: var(--navy); stroke-width: 1; }
.clock-city { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.clock time { font-size: .8rem; color: var(--gold-lt); font-weight: 600; font-variant-numeric: tabular-nums; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(201,168,76,.6); animation: mo-ring 2s ease-out infinite; }
@keyframes mo-ring { 0% { box-shadow: 0 0 0 0 rgba(201,168,76,.6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(201,168,76,0); } }

/* ── Coverage map ── */
.map-figure { max-width: 900px; margin: 0 auto 32px; }
.coverage-map { display: block; width: 100%; height: auto; aspect-ratio: 900 / 568; overflow: visible; }
.map-land { fill: var(--white); stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.map-lines path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; opacity: .9; }
.map-dots circle { fill: var(--navy); stroke: var(--white); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.map-core { fill: var(--gold); stroke: var(--white); stroke-width: 3; }
.map-pulse { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; animation: mo-map-pulse 2.6s ease-out var(--h, 0s) infinite; }
.map-lbl { font-family: var(--font-body); font-size: 22px; font-weight: 600; fill: var(--gray); letter-spacing: .02em; }
.map-lbl-hub { fill: var(--navy); font-weight: 700; }
@keyframes mo-map-pulse { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.mo .map-land { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 1.6s ease-in-out, fill-opacity .6s ease 1.2s; }
.mo .mo .map-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease-out calc(1.5s + var(--i) * .09s); }
.mo .map-dots circle { opacity: 0; transform: scale(0); transition: opacity .3s ease calc(2.2s + var(--i) * .09s), transform .4s var(--mo-ease) calc(2.2s + var(--i) * .09s); }
.mo .map-lbl { opacity: 0; transition: opacity .5s ease 1.2s; }
.mo .map-in .map-land { stroke-dashoffset: 0; fill-opacity: 1; }
.mo .map-in .map-lbl { opacity: 1; }
.mo .map-in .map-lines path { stroke-dashoffset: 0; }
.mo .map-in .map-dots circle { opacity: 1; transform: none; }
.map-legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; max-width: 900px; margin: 8px auto 0; }
.map-legend li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--gray); line-height: 1.55; }
.map-legend strong { display: block; color: var(--navy); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.map-key { flex-shrink: 0; margin-top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid var(--white); box-shadow: 0 0 0 2px rgba(201,168,76,.35); }
.map-key-partner { width: 11px; height: 11px; margin: 5px 1px 0; background: var(--navy); box-shadow: 0 0 0 1px rgba(11,31,58,.2); }
.map-more { max-width: 900px; margin: 20px auto 48px; font-size: .95rem; }
.map-more a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.map-block { padding-block: 56px 8px; }
.map-block .map-more { margin-bottom: 0; }

/* ── Count-up stats ── */
.stat-num { font-variant-numeric: tabular-nums; }
.mo .stat-fade { opacity: 0; transform: translateY(10px); }
.mo .stat-fade.mo-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s var(--mo-ease); }

/* ── How CARE Works timeline ── */
.hiw { position: relative; }
.hiw-steps { list-style: none; position: relative; display: grid; gap: 28px; max-width: 720px; }
.hiw-step { position: relative; padding-left: 64px; min-height: 40px; }
.hiw-step:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: -28px; width: 2px; background: rgba(11,31,58,.12); }
.hiw-node { position: absolute; left: 0; top: 0; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--navy); background: linear-gradient(135deg, var(--gold), var(--gold-lt)); box-shadow: 0 0 0 5px rgba(201,168,76,.18); transition: background .35s, color .35s, box-shadow .35s, transform .35s var(--mo-ease); }
.hiw-step h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--navy); line-height: 1.2; padding-top: 6px; }
.hiw-step p { font-size: .95rem; color: var(--gray); line-height: 1.65; margin-top: 4px; }
.hiw-step a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.hiw-fill { display: none; position: absolute; z-index: 0; background: linear-gradient(180deg, var(--gold), var(--gold-lt)); border-radius: 2px; pointer-events: none; }
.mo .hiw-fill { display: block; }
.mo .hiw-node:not(.lit) { background: var(--white); color: rgba(11,31,58,.45); box-shadow: 0 0 0 2px rgba(11,31,58,.15); }
.mo .hiw-node.lit { animation: mo-pop .45s var(--mo-ease); }
@media (min-width: 1100px) {
  .hiw-steps { grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: none; }
  .hiw-step { padding-left: 0; padding-top: 60px; text-align: center; }
  .hiw-step:not(:last-child)::before { left: calc(50% + 20px); top: 19px; bottom: auto; width: calc(100% - 8px); height: 2px; }
  .hiw-node { left: 50%; margin-left: -20px; }
  .hiw-fill { background: linear-gradient(90deg, var(--gold), var(--gold-lt)); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .js .clock-inner { min-height: 178px; padding-block: 20px; }
  .clock svg { width: 72px; height: 72px; }
  .clock-city { font-size: .66rem; letter-spacing: .03em; }
  .clock time { font-size: .74rem; }
  .map-legend { grid-template-columns: 1fr; }
  .map-lbl { font-size: 30px; }
  .map-land { stroke-width: 4; }
  .map-lines path { stroke-width: 3.5; }
}

/* ── Reduced motion: final states, no movement ── */
@media (prefers-reduced-motion: reduce) {
  .btn-quote, .btn-quote:hover { animation: none !important; background-position: 100% 0, 0 0; }
  .mo .mo-h2::after { clip-path: none; }
  .mo .mo-rv, .js .reveal { opacity: 1 !important; transform: none !important; }
  .mo .map-land, .mo .map-lines path { stroke-dashoffset: 0; fill-opacity: 1; }
  .mo .map-lbl, .mo .map-dots circle, .mo .stat-fade { opacity: 1; transform: none; }
  .map-pulse, .clock-s { display: none; }
}

/* ── Location, benefit & contact icons ── */
.benefit-icon .si { width: 22px; height: 22px; color: var(--navy); }
.benefit-icon .si .ac { stroke: var(--navy); }
.aside-ico .si { display: block; width: 20px; height: 20px; color: var(--navy); }
.mobile-cta .si { width: 16px; height: 16px; }
.si-frond, .si-fleur, .si-pin, .si-lit { transform-box: fill-box; transform-origin: 50% 100%; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-lit { animation: mo-flicker 1.2s steps(1) infinite; }
:is(.service-card, .link-card):hover .si-lit2 { animation-delay: .4s; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-frond { animation: mo-sway 1.6s ease-in-out infinite; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-fleur { animation: mo-bob .9s ease-in-out infinite; }
:is(.service-card, .link-card):is(:hover, :focus-visible) .si-pin { animation: mo-bob .7s ease-in-out infinite; }
.benefit-item:hover .benefit-icon .si { animation: mo-bob .9s ease-in-out; }
#process { padding-bottom: 32px; }
@media (max-width: 768px) { #process { padding-bottom: 16px; } }
