/* ==========================================================================
   CQ Animal Emergency — site styles
   Brand: purple #902088 · orange #f8993a · lavender #a28cb0 · yellow #f4da6b
   ========================================================================== */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
}

:root {
  --purple: #902088;
  --purple-deep: #5a1560;
  --lavender: #a28cb0;
  --lavender-soft: #f5f1f8;
  --lavender-line: #e0d7e7;
  --orange: #f8993a;
  --orange-deep: #e27f1c;
  --yellow: #f4da6b;
  --ink: #24182b;
  --text: #4a4352;
  --muted: #6f6778;
  --white: #fff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 12px 32px rgba(58, 20, 70, .12);
  --shadow-sm: 0 4px 14px rgba(58, 20, 70, .10);
  --container: 1180px;
  --header-h: 84px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--purple); }
a:hover { color: var(--purple-deep); }
h1, h2, h3 { font-weight: 800; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 1000;
  background: var(--purple); color: #fff; padding: .75rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 0; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--lavender { background: var(--lavender); }
.section-head { margin-bottom: 2.25rem; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.015em; margin-bottom: 0; }
.section-title::after {
  content: ""; display: block; width: 64px; height: 5px; border-radius: 999px;
  background: var(--orange); margin-top: .35em;
}
.text-link { font-weight: 800; color: var(--purple); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.text-link:hover { text-decoration: underline; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.7rem; border-radius: 999px; font: inherit; font-weight: 800; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange); border-color: var(--orange); color: #2b1400; box-shadow: 0 8px 20px rgba(248, 153, 58, .35); }
.btn--primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #2b1400; }
.btn--outline { background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--purple { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--purple-deep); border-color: var(--purple-deep); color: #fff; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 24px rgba(58, 20, 70, .12); }
.header-inner { position: relative; display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: .55rem .85rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; color: var(--ink); text-decoration: none;
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--purple); background: var(--lavender-soft); }
.nav a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 3px;
  border-radius: 999px; background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav a.is-active { color: var(--purple); }
.nav a.is-active::after { transform: scaleX(1); }
.header-cta { padding: .7rem 1.2rem; font-size: .95rem; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: var(--lavender-soft);
  border-radius: 12px; cursor: pointer; position: relative; flex: none;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; position: absolute; left: 12px; width: 22px; height: 3px; border-radius: 2px;
  background: var(--ink); transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__bar { top: 50%; transform: translateY(-50%); }
.nav-toggle__bar::before { top: -7px; left: 0; }
.nav-toggle__bar::after { top: 7px; left: 0; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .brand img { height: 44px; }
  .header-cta { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; display: none;
    background: #fff; border-top: 1px solid var(--lavender-line);
    box-shadow: 0 20px 30px rgba(58, 20, 70, .15); padding: .75rem 1rem 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: .1rem; }
  .nav a { padding: .8rem .9rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav a::after { display: none; }
  .nav a.is-active { background: var(--lavender-soft); }
}
@media (max-width: 560px) {
  .header-cta span { display: none; }
  .header-cta { padding: .7rem .85rem; }
  .brand img { height: 38px; }
}

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: min(88vh, 860px); display: flex; align-items: center;
  color: #fff; background: var(--purple-deep); overflow: hidden; isolation: isolate;
}
.hero picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(43, 9, 48, .94) 0%, rgba(43, 9, 48, .82) 38%, rgba(43, 9, 48, .35) 72%, rgba(43, 9, 48, .2) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 680px; padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem;
  padding: .4rem .9rem .4rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .12);
  color: var(--yellow); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.7rem, 7.4vw, 5rem); line-height: 1; letter-spacing: .005em; text-transform: uppercase;
  color: #fff; margin-bottom: .35em; text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.hero h1 span { color: var(--orange); }
.hero__lead { font-size: clamp(1.15rem, 2.3vw, 1.45rem); font-weight: 600; max-width: 32ch; color: rgba(255, 255, 255, .94); margin-bottom: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero__hours {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.6rem;
  font-size: .95rem; font-weight: 600; color: rgba(255, 255, 255, .9);
}
.status {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .16); font-weight: 800; color: #fff;
}
.status__dot { width: .6rem; height: .6rem; border-radius: 50%; background: #7ee08a; box-shadow: 0 0 0 4px rgba(126, 224, 138, .25); }
.status--closed .status__dot { background: var(--yellow); box-shadow: 0 0 0 4px rgba(244, 218, 107, .25); }

@media (max-width: 720px) {
  .hero { min-height: auto; }
  .hero__img { object-position: 68% 50%; }
  .hero::after { background: linear-gradient(180deg, rgba(43, 9, 48, .5) 0%, rgba(43, 9, 48, .86) 55%, rgba(43, 9, 48, .95) 100%); }
  .hero__content { padding: clamp(11rem, 52vw, 16rem) 0 3rem; }
}

/* About cards ----------------------------------------------------------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; max-width: 560px; } }
.card { background: #fff; border-radius: var(--radius); padding: 2rem 1.9rem; box-shadow: var(--shadow-sm); }
.card__icon {
  width: 66px; height: 66px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; margin-bottom: 1.25rem; box-shadow: 0 8px 18px rgba(248, 153, 58, .35);
}
.card__icon svg { width: 32px; height: 32px; fill: currentColor; }
.card h3 { font-size: 1.4rem; margin-bottom: .4em; }
.card p { margin: 0; }

/* Team ------------------------------------------------------------------ */
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
.member {
  background: var(--lavender-soft); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--lavender-line); transition: transform .2s ease, box-shadow .2s ease;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.member__body { padding: 1.1rem 1.3rem 1.35rem; }
.member h3 { font-size: 1.3rem; margin: 0; }
.member p { margin: .2rem 0 0; color: var(--purple); font-weight: 700; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }

/* Two-column sections --------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.split__media--landscape img { aspect-ratio: 4 / 3; }
.split__media--portrait img { aspect-ratio: 3 / 4; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: 2; max-width: 560px; }
}

/* Steps ----------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 1.1rem; align-items: start;
  background: rgba(255, 255, 255, .9); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem;
}
.step p { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.55; }
.cross { position: relative; width: 58px; height: 58px; flex: none; }
.cross svg { width: 100%; height: 100%; fill: var(--orange); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .15)); }
.cross b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.35rem; font-weight: 900; color: #fff; }

/* FAQ ------------------------------------------------------------------- */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: var(--lavender-soft); border: 1px solid var(--lavender-line);
  border-radius: var(--radius-sm); padding: 0 1.35rem; transition: background-color .2s, box-shadow .2s;
}
.faq details[open] { background: #fff; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0; font-weight: 800; font-size: 1.12rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); transition: transform .25s ease; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 3px; border-radius: 2px;
  background: #fff; transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq__icon { transform: rotate(45deg); }
.faq__body { padding: 0 0 1.2rem; }
.faq__body p:last-child { margin-bottom: 0; }
.faq__body ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.faq__body li { margin: .15rem 0; break-inside: avoid; }
.faq__body ul.two-col { columns: 2; column-gap: 2rem; }
@media (max-width: 560px) { .faq__body ul.two-col { columns: 1; } }

/* Contact --------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.contact-list { display: grid; gap: .9rem; align-content: start; }
.contact-item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1rem; align-items: start;
  background: #fff; border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm);
}
.contact-item__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--lavender-soft); color: var(--purple); display: grid; place-items: center; }
.contact-item__icon svg { width: 26px; height: 26px; fill: currentColor; }
.contact-item h3 { margin: .15rem 0 .25rem; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-item p { margin: 0; font-size: 1.12rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.contact-item p a { color: inherit; text-decoration: none; }
.contact-item p a:hover { color: var(--purple); text-decoration: underline; }
.contact-item .text-link { margin-top: .45rem; font-size: .95rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours th, .hours td { padding: .28rem .5rem .28rem 0; text-align: left; vertical-align: top; }
.hours th { font-weight: 800; color: var(--ink); width: 6.6rem; white-space: nowrap; }
.hours td { color: var(--text); font-weight: 600; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--purple); }
.hours tr.is-today th::after {
  content: "Today"; display: inline-block; margin-left: .45rem; padding: .05rem .45rem; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle;
}
.contact-item .hours__note { margin: .7rem 0 0; font-size: 1rem; font-weight: 800; color: var(--purple); }
.social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .35rem; }
.social a {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px;
  background: var(--orange); color: #2b1400; font-weight: 800; text-decoration: none; font-size: .95rem;
  transition: background-color .15s, transform .15s;
}
.social a:hover { background: var(--orange-deep); transform: translateY(-2px); color: #2b1400; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.map {
  position: sticky; top: calc(var(--header-h) + 1.25rem); align-self: start; height: 520px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .map { position: relative; top: auto; height: 360px; }
}

/* Testimonials ---------------------------------------------------------- */
.carousel { position: relative; }
.carousel__track {
  position: relative; display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: .4rem .2rem 1rem; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.quote {
  flex: 0 0 calc((100% - 3rem) / 3); scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column; gap: .9rem;
  background: var(--lavender-soft); border: 1px solid var(--lavender-line); border-radius: var(--radius); padding: 1.9rem 1.8rem;
}
.quote__mark { color: var(--orange); font-family: Georgia, "Times New Roman", serif; font-size: 4rem; line-height: .6; height: 1.6rem; }
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.quote figcaption { font-weight: 800; color: var(--purple); }
.quote figcaption span { display: block; font-size: .88rem; font-weight: 700; color: var(--muted); }
.carousel__controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; }
.carousel__btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--lavender-line); background: #fff; color: var(--purple);
  cursor: pointer; display: grid; place-items: center; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.carousel__btn:hover { background: var(--purple); border-color: var(--purple); color: #fff; transform: translateY(-2px); }
.carousel__btn svg { width: 24px; height: 24px; fill: currentColor; }
.carousel__dots { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.carousel__dots button {
  width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: var(--lavender-line);
  cursor: pointer; transition: background-color .15s, transform .15s;
}
.carousel__dots button[aria-current="true"] { background: var(--purple); transform: scale(1.25); }
@media (max-width: 960px) { .quote { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (max-width: 620px) { .quote { flex-basis: 100%; } }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--lavender-soft); border-top: 1px solid var(--lavender-line); padding: 2.75rem 0 2rem; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.footer-inner img { height: 46px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--purple); text-decoration: underline; }
.footer-copy { margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--lavender-line); text-align: center; color: var(--muted); }
.footer-copy a { color: var(--purple); font-weight: 700; }

/* Motion ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .hero__actions, .carousel__controls, .nav-toggle, .map, .skip-link { display: none !important; }
  .hero { min-height: auto; color: #000; }
  .hero::after, .hero picture { display: none; }
  .hero h1, .hero h1 span, .hero__lead, .hero__hours { color: #000; text-shadow: none; }
  .section--lavender { background: #fff; }
}
