/* Kestrel Lane Vets: shared tokens, base, nav (mega-menu section), footer (reveal-footer section).
   Tokens: the Sage palette shared by service-cards, doctor-directory, column-highlight-comparison and
   booking-calendar-contact, with accent and accent-2 darkened one step so text in them passes AA. */
:root { --bg: #eef3ec; --fg: #1b2a22; --accent: #166534; --accent-2: #92400e; --muted: color-mix(in oklab, var(--fg) 72%, var(--bg)); --accent-ink: color-mix(in oklab, var(--accent) 76%, var(--fg)); --accent-2-ink: color-mix(in oklab, var(--accent-2) 76%, var(--fg)); --on-accent: #ffffff; --on-accent-2: #ffffff; --card: color-mix(in oklab, var(--fg) 6%, var(--bg)); --line: color-mix(in oklab, var(--fg) 14%, transparent); --font-display: "Fraunces", Georgia, serif; --font-body: "Albert Sans", system-ui, sans-serif; --v-stroke: #1c3b2a; --v-accent: #16a34a; --v-fill: var(--accent); --v-text: #ffffff; }
/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; }
a, button, input, select, textarea, [role=tab], [role=slider], [role=radio] { touch-action: manipulation; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
/* page: the content sheet the reveal footer slides out from under */
.page { position: relative; z-index: 1; background: var(--bg); border-radius: 0 0 32px 32px; box-shadow: 0 40px 60px -40px #0007; padding-bottom: 24px; }
/* pause control for anything that moves on its own */
.pz { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 600 13px var(--font-body); cursor: pointer; }
.pz:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pz svg { width: 12px; height: 12px; fill: currentColor; }

/* navigation */
#navigation { position: sticky; top: 0; z-index: 50; }
#navigation .mm-bar { position: relative; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 28px; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
#navigation .mm-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; color: var(--fg); margin-right: 8px; white-space: nowrap; }
#navigation .mm-logo svg { width: 30px; height: 30px; flex: none; }
#navigation .mm-bar > nav { margin: 0 auto; }
#navigation .mm-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
#navigation .mm-links > li { position: static; }
#navigation .mm-links a, #navigation .mm-links button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; background: none; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; position: relative; }
#navigation .mm-links a:hover, #navigation .mm-links button:hover, #navigation li.open > button, #navigation .mm-links a[aria-current=page] { color: var(--fg); }
#navigation .mm-links a[aria-current=page] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
#navigation .mm-links button { position: relative; }
#navigation .mm-links button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform 180ms; }
#navigation li.open > button::after { transform: scaleX(1); }
#navigation .mm-links button svg { width: 12px; height: 12px; transition: transform 180ms; }
#navigation li.open > button svg { transform: rotate(180deg); }
#navigation .mm-panel { position: absolute; top: calc(100% + 10px); left: 50%; width: min(880px, calc(100vw - 32px)); transform: translate(-50%, 8px); opacity: 0; pointer-events: none; display: grid; grid-template-columns: 1fr 1fr 1fr 240px; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); transition: opacity 180ms, transform 180ms, visibility 180ms; visibility: hidden; }
#navigation li.open > .mm-panel { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; visibility: visible; }
#navigation .mm-col h4 { margin: 8px 12px 6px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
#navigation .mm-col a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; color: var(--fg); text-decoration: none; }
#navigation .mm-col a:hover, #navigation .mm-col a:focus-visible { background: color-mix(in oklab, var(--accent) 10%, transparent); outline: none; }
#navigation .mm-col i { width: 34px; height: 34px; border-radius: 9px; background: color-mix(in oklab, var(--accent) 14%, var(--bg)); display: grid; place-items: center; font-style: normal; }
#navigation .mm-col i svg { width: 22px; height: 22px; }
#navigation .mm-col b { display: block; font-weight: 600; font-size: 14px; }
#navigation .mm-col small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
#navigation .mm-preview { border-radius: 12px; padding: 14px; background: color-mix(in oklab, var(--fg) 4%, transparent); display: flex; flex-direction: column; gap: 10px; }
#navigation .mm-preview .tile { height: 120px; border-radius: 10px; background: conic-gradient(from 210deg at 30% 40%, var(--accent), var(--accent-2), var(--accent)); filter: hue-rotate(var(--hue, 0deg)); transition: filter 300ms; position: relative; overflow: hidden; }
#navigation .mm-preview .tile::after { content: ""; position: absolute; inset: 30% 20% 20% 25%; border-radius: 8px; background: color-mix(in oklab, var(--bg) 80%, transparent); }
#navigation .mm-preview b { font-size: 14px; }
#navigation .mm-preview p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
#navigation .mm-cta { display: flex; gap: 8px; }
#navigation .btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--fg); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; cursor: pointer; }
#navigation .btn.solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
#navigation .mm-burger { display: none; margin-left: auto; min-height: 44px; }
#navigation .mm-mob { display: none; }
@media (max-width: 1060px) { #navigation .mm-bar { gap: 16px; padding: 0 20px; } #navigation .mm-cta .btn:not(.solid) { display: none; } }
@media (max-width: 900px) { #navigation .mm-links, #navigation .mm-cta { display: none; } #navigation .mm-burger { display: inline-flex; } #navigation.mobile-open .mm-links { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px; max-height: calc(100vh - 64px); overflow: auto; padding: 12px; background: var(--bg); border-bottom: 1px solid var(--line); } #navigation .mm-links a, #navigation .mm-links button { min-height: 44px; width: 100%; } #navigation .mm-mob { display: block; } #navigation .mm-panel { position: static; width: auto; transform: none; grid-template-columns: 1fr; box-shadow: none; display: none; } #navigation li.open > .mm-panel { display: grid; transform: none; margin: 4px 0 8px; } #navigation .mm-preview { display: none; } #navigation .mm-col a { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { #navigation .mm-links button::after, #navigation .mm-links button svg, #navigation .mm-panel, #navigation .mm-preview .tile { transition: none; } }

/* footer */
#footer { position: sticky; bottom: 0; z-index: 0; background: var(--fg); color: var(--bg); overflow: hidden; } #footer.flow { position: relative; }
#footer .in { max-width: 1180px; margin: 0 auto; padding: 72px 28px 28px; transform-origin: 50% 100%; transform: translateY(calc((1 - var(--r, 1)) * 30%)) scale(calc(.92 + var(--r, 1) * .08)); will-change: transform; }
#footer .k { margin: 0 0 14px; font-size: 14px; letter-spacing: .02em; opacity: .8; } #footer h2 { margin: 0; font: 400 clamp(48px, 8vw, 112px)/.95 var(--font-display); letter-spacing: -0.025em; } #footer h2 em { font-style: italic; color: color-mix(in oklab, #f5c08a 70%, var(--bg)); }
#footer .mail { display: inline-block; margin-top: 22px; color: var(--bg); text-decoration: none; font: 400 clamp(22px, 2.6vw, 32px) var(--font-display); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 400ms cubic-bezier(.2,.7,.2,1); } #footer .mail:hover, #footer .mail:focus-visible { background-size: 100% 1px; outline: none; }
#footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; padding-top: 20px; border-top: 1px solid color-mix(in oklab, var(--bg) 22%, transparent); font-size: 15px; line-height: 1.6; }
#footer h3 { margin: 0 0 8px; font: 600 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; opacity: .8; } #footer address { font-style: normal; } #footer .cols a { display: inline-block; padding: 4px 0; color: inherit; text-decoration: none; } #footer .cols a:hover { text-decoration: underline; } #footer ul { margin: 0; padding: 0; list-style: none; }
#footer .base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 44px; padding-top: 18px; border-top: 1px solid color-mix(in oklab, var(--bg) 16%, transparent); font-size: 13px; } #footer .base p { margin: 0; opacity: .85; max-width: 64ch; } #footer .base .r { display: flex; align-items: center; gap: 16px; }
#footer .top { min-height: 32px; padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; } #footer .top:hover { text-decoration: underline; }
#footer .credit { margin: 14px 0 0; font-size: 13px; opacity: .85; } #footer .credit a { color: inherit; }
#footer .tileio-made { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--bg) 35%, transparent); color: var(--bg); font-size: 13px; font-weight: 600; text-decoration: none; } #footer .tileio-made:hover { background: color-mix(in oklab, var(--bg) 10%, transparent); } #footer .tileio-made rect[fill] { fill: #3ddc97; }
#footer a:focus-visible, #footer button:focus-visible { outline: 2px solid var(--bg); outline-offset: 3px; }
@media (max-width: 760px) { #footer .in { padding: 56px 20px 24px; } #footer .cols { grid-template-columns: 1fr 1fr; row-gap: 28px; margin-top: 40px; } #footer .cols a { min-height: 44px; display: inline-flex; align-items: center; padding: 0; } }
@media (prefers-reduced-motion: reduce) { #footer .mail { transition: none; } }
