/* =========================================================
   All Things Pets — site stylesheet
   Plain CSS, no frameworks. Colours are set once below.
   ========================================================= */

:root {
  --purple: #98298f;        /* brand purple from the logo */
  --purple-dark: #6e1d68;
  --plum: #3d1239;          /* deep text / footer */
  --lavender: #f5e9f4;      /* soft tint */
  --cream: #fbf8f4;         /* page background */
  --sand: #f2ebe3;
  --ink: #2b2230;
  --muted: #6b6170;
  --line: #e8dfe7;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(61, 18, 57, 0.08);
  --shadow-lg: 0 20px 50px rgba(61, 18, 57, 0.16);
  --wrap: 1160px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--plum);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 14px; }
.icon { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--plum); color: #f3e3f1; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #f3e3f1; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar .contact-links { display: flex; gap: 22px; flex-wrap: wrap; }
.social { display: flex; gap: 6px; }
.social a {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-grid; place-items: center;
  transition: background .2s;
}
.social a:hover { background: rgba(255,255,255,.12); }

/* ---------- Header & nav ---------- */
.site-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 20px; }
.brand img { width: 260px; }
.nav-toggle { display: none; }
.nav-btn { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15.5px;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--lavender); color: var(--purple); }
.main-nav a[aria-current="page"] { background: var(--purple); color: #fff; }

@media (max-width: 980px) {
  .brand img { width: 210px; }
  .nav-btn {
    display: inline-grid; place-items: center; cursor: pointer;
    width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  }
  .nav-btn span, .nav-btn span::before, .nav-btn span::after {
    display: block; width: 22px; height: 2px; background: var(--plum); position: relative; border-radius: 2px; content: "";
  }
  .nav-btn span::before { position: absolute; top: -7px; }
  .nav-btn span::after { position: absolute; top: 7px; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav ul { flex-direction: column; padding: 12px 20px 20px; }
  .main-nav a { padding: 12px 16px; }
  .nav-toggle:checked ~ .main-nav { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--purple); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 15.5px; letter-spacing: .01em;
  padding: 13px 26px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(152, 41, 143, .25);
  transition: transform .15s, background .2s;
}
.btn:hover { background: var(--purple-dark); color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.btn.ghost:hover { background: var(--purple); color: #fff; }
.btn.light { background: #fff; color: var(--purple); box-shadow: none; }
.btn.light:hover { background: var(--lavender); }

/* ---------- Home hero (CSS-only crossfade slider) ---------- */
.hero { position: relative; height: clamp(440px, 62vh, 620px); overflow: hidden; background: var(--plum); }
.slide { position: absolute; inset: 0; opacity: 0; animation: fade 28s infinite; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(40,10,38,.78) 0%, rgba(40,10,38,.45) 45%, rgba(40,10,38,0) 75%);
}
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 7s; }
.slide:nth-child(3) { animation-delay: 14s; }
.slide:nth-child(4) { animation-delay: 21s; }
@keyframes fade {
  0% { opacity: 0; } 3% { opacity: 1; } 25% { opacity: 1; } 28% { opacity: 0; } 100% { opacity: 0; }
}
.slide .caption {
  position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-50%);
}
.caption-inner { max-width: 520px; color: #fff; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple); background: var(--lavender); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.caption .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.caption h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.caption p { font-size: 1.15rem; margin-bottom: 1.4em; opacity: .95; }
@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
  .slide:first-child { opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: #fff; }
.section.tint { background: var(--lavender); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.lead { font-size: 1.18rem; color: var(--ink); }

/* ---------- Feature cards (home) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img.contain { background: #fff; }
.card-img.contain img { object-fit: contain; padding: 18px; }
.card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); flex: 1; }
.card-body .btn { align-self: flex-start; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative; min-height: 280px; display: flex; align-items: center;
  background: var(--plum) url("images/banner-lucy.jpg") left center / cover no-repeat;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(61,18,57,0) 20%, rgba(61,18,57,.78) 60%, rgba(61,18,57,.9) 100%);
}
.page-banner .wrap { position: relative; display: flex; justify-content: flex-end; }
.page-banner .banner-text { max-width: 540px; color: #fff; text-align: right; padding: 40px 0; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { margin: 8px 0 0; font-size: 1.1rem; opacity: .9; }
@media (max-width: 700px) {
  .page-banner::before { background: linear-gradient(0deg, rgba(61,18,57,.85), rgba(61,18,57,.35)); }
  .page-banner .wrap { justify-content: flex-start; }
  .page-banner .banner-text { text-align: left; }
}

/* ---------- Content layouts ---------- */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 900px) { .split, .split.even { grid-template-columns: 1fr; gap: 36px; } }
.prose { max-width: 760px; }
.prose h2 { margin-top: .2em; }
.highlight {
  font-family: var(--font-head); font-size: 1.5rem; color: var(--purple); font-style: italic;
  border-left: 4px solid var(--purple); padding: 4px 0 4px 20px; margin: 28px 0;
}
.panel {
  background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.panel.purple { background: var(--purple); color: #fff; }
.panel.purple h3, .panel.purple a { color: #fff; }
.panel + .panel { margin-top: 24px; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.badge-list { list-style: none; padding: 0; margin: 0; }
.badge-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.badge-list li:last-child { border-bottom: 0; }
.badge-list .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--lavender); color: var(--purple); display: grid; place-items: center; flex: none; }
.badge-list .dot .icon { width: 20px; height: 20px; }
.badge-list strong { display: block; color: var(--plum); }
.badge-list span { font-size: 15px; color: var(--muted); }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Services / pricing ---------- */
.pet-strip {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0;
  list-style: none; padding: 0;
}
.pet-strip li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 14.5px; color: var(--plum); }
.prices { display: grid; gap: 18px; }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start;
  background: #fff; border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow);
  border: 1px solid transparent;
}
.price-row.featured { border-color: var(--purple); }
.price-row h3 { margin-bottom: .35em; }
.price-row p { color: var(--muted); margin-bottom: .5em; font-size: 16px; }
.price-row p:last-child { margin-bottom: 0; }
.price-row .note { font-size: 14.5px; font-style: italic; }
.price {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--purple);
  white-space: nowrap; line-height: 1;
}
.price small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--muted); text-align: right; margin-top: 6px; }
.tag { display: inline-block; background: var(--lavender); color: var(--purple); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.misc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.misc-table td { padding: 16px 24px; border-bottom: 1px solid var(--line); }
.misc-table tr:last-child td { border-bottom: 0; }
.misc-table td:last-child { text-align: right; font-weight: 800; color: var(--purple); white-space: nowrap; }
.holidays { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.holidays li { break-inside: avoid; padding: 8px 0; border-bottom: 1px dashed var(--line); }
@media (max-width: 600px) {
  .price-row { grid-template-columns: 1fr; gap: 10px; }
  .price small { text-align: left; }
  .holidays { columns: 1; }
}
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- Team (about) ---------- */
.owner { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.owner-photo { position: sticky; top: 120px; }
@media (max-width: 900px) { .owner { grid-template-columns: 1fr; } .owner-photo { position: static; max-width: 360px; } }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.creds a { background: var(--lavender); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.creds a:hover { background: var(--purple); color: #fff; }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }
.member { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: start; }
.member img { width: 120px; height: 150px; object-fit: cover; border-radius: 14px; }
.member h3 { margin-bottom: .1em; }
.member .role { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); margin-bottom: .6em; display: block; }
.member p { font-size: 15.5px; color: var(--muted); margin: 0; }
@media (max-width: 480px) { .member { grid-template-columns: 1fr; } }
.group-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 64px; }
.motto { text-align: center; }
.member .motto img { width: 210px; height: auto; object-fit: contain; border-radius: 0; margin: 0 auto; }

/* ---------- Testimonials ---------- */
.wall { columns: 3 300px; column-gap: 26px; }
.wall > * { break-inside: avoid; margin-bottom: 26px; }
.quote {
  background: #fff; border-radius: var(--radius); padding: 30px 28px 26px; box-shadow: var(--shadow); position: relative; margin: 0;
}
.quote::before {
  content: "\201C"; font-family: var(--font-head); font-size: 5rem; line-height: 1; color: var(--purple); opacity: .18;
  position: absolute; top: 8px; left: 18px;
}
.quote blockquote { margin: 0; font-size: 16px; position: relative; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { margin-top: 16px; font-weight: 800; color: var(--plum); display: flex; align-items: center; gap: 10px; }
.quote figcaption::before { content: ""; width: 24px; height: 2px; background: var(--purple); }
.pet-photo { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pet-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pet-photo figcaption { padding: 12px 18px; font-family: var(--font-head); font-weight: 600; color: var(--purple); display: flex; gap: 8px; align-items: center; }

/* ---------- FAQ ---------- */
.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.faq-nav a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 700; text-decoration: none; color: var(--plum); }
.faq-nav a:hover { border-color: var(--purple); color: var(--purple); }
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(26px, 4vw, 44px); margin-bottom: 28px; scroll-margin-top: 110px; }
.faq-item h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; gap: 14px; align-items: center; }
.faq-item h2 .num { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--purple); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.callout { background: var(--lavender); border-radius: var(--radius-sm); padding: 16px 20px; font-weight: 700; color: var(--plum); }

/* ---------- Map ---------- */
.map-card { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.map-card span {
  position: absolute; bottom: 16px; right: 16px; background: #fff; color: var(--purple); font-weight: 800; font-size: 14px;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow);
}
.towns { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 28px; }
.towns li { background: var(--lavender); color: var(--purple); font-weight: 800; border-radius: 999px; padding: 7px 16px; font-size: 15px; }

/* ---------- Call-to-action band ---------- */
.cta {
  position: relative; color: #fff; overflow: hidden;
  background: var(--purple);
}
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 54px 0; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; opacity: .92; }
.cta .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: #e7d6e5; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer h4 a { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; line-height: 1.45; }
.site-footer a { color: #e7d6e5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 210px; background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 18px; }
.footer-brand p { margin-bottom: 8px; }
.footer-brand a { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Certificate lightboxes (CSS :target, no JavaScript) ---------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 8, 28, .86); padding: 30px;
  align-items: center; justify-content: center;
}
.lightbox:target { display: flex; }
.lightbox .lb-close-bg { position: absolute; inset: 0; }
.lightbox figure { position: relative; margin: 0; max-width: 820px; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 130px); width: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lightbox figcaption { color: #fff; font-weight: 700; margin-top: 14px; text-align: center; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--plum);
  display: grid; place-items: center; font-size: 26px; line-height: 1; text-decoration: none; font-weight: 700;
}

@media (max-width: 600px) {
  .topbar .contact-links a[href^="mailto"] { display: none; }
}
