/* Fairy DogMother Pet Care. Palette from her business card; the logo in
   brand/ uses the same values. */
:root {
  --navy: #1c2a6e;
  --navy-deep: #141f55;
  --pink: #e2508f;
  --pink-deep: #c93a79;
  --blush: #fbe3ea;
  --blush-soft: #fdf1f4;
  --cream: #fffafb;
  --ink: #2a2f4f;
  --muted: #676b86;
  --line: #f0d3dd;
  --white: #fff;
  --ok: #2f7d4f;
  --err: #b3261e;
  --radius: 18px;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must always win. Without this, a class that sets display
   (e.g. .product's flex) silently overrides it: the favorites filter marked
   cards hidden and they stayed on screen. tools/check-site.js measures it. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.small { font-size: .9rem; color: var(--muted); }
.center { text-align: center; margin-top: 32px; }
.eyebrow { font: 700 .8rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--pink-deep); margin-bottom: 14px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-block; background: var(--pink); color: #fff; font: 700 1rem/1 var(--sans); text-decoration: none; padding: 16px 26px; border-radius: 999px; border: 2px solid var(--pink); cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--pink-deep); border-color: var(--pink-deep); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-small { padding: 11px 18px; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 251, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand img { width: 290px; height: auto; }
.nav { display: flex; align-items: center; gap: 20px; }
/* Menu items never wrap: below 1120px the menu button takes over instead (seven items with Favorites). */
.nav a { white-space: nowrap; }
.nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--pink-deep); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; position: relative; margin: 0 auto; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1120px) {
  .brand img { width: 220px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; text-align: center; }
}

/* Review notes: only with ?review in the URL */
.review-notes { background: #fff6d6; border-bottom: 1px solid #ecd98f; font-size: .92rem; padding: 12px 0; }
.review-notes ul { margin: 6px 0 0; padding-left: 20px; }

/* Hero */
/* #fce3e7 is sampled from the background of her card art, so the art sits
   in the hero with no visible edge. */
.hero { background: #fce3e7; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.lead { font-size: 1.12rem; color: var(--ink); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.trust { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .75); padding: 10px 16px; border-radius: 999px; color: var(--navy); text-decoration: none; font-size: .92rem; }
.trust:hover { background: #fff; }
.stars { color: var(--pink); letter-spacing: 2px; }
/* Her card art has a pink background of its own; the mask melts its edges
   into the hero so no rectangle shows, and hides the card's corner scrollwork. */
.hero-art img { -webkit-mask-image: radial-gradient(ellipse 62% 60% at 56% 46%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 62% 60% at 56% 46%, #000 62%, transparent 100%); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-art { order: -1; max-width: 520px; margin: 0 auto; }
}

/* Sections */
.section { padding: 88px 0; }
.section-blush { background: var(--blush-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.flourish { display: block; width: 220px; height: 22px; margin: 4px auto 18px; color: var(--pink); }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.philosophy { margin: 28px 0; padding: 22px 26px; background: var(--blush-soft); border-left: 4px solid var(--pink); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-style: italic; color: var(--navy); font-size: 1.08rem; }
.philosophy p { margin: 0; }
.creds { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.creds li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 12px 44px; position: relative; font-size: .95rem; }
.creds li::before { content: "♥"; position: absolute; left: 16px; top: 11px; color: var(--pink); }
.creds strong { color: var(--navy); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } }

/* Photo placeholders: soft, on-brand, clearly "coming soon". */
.photo-slot { margin: 0; aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, var(--blush) 0 14px, #f9dbe4 14px 28px); border-radius: var(--radius); display: grid; place-items: center; align-content: center; gap: 10px; color: var(--navy); text-align: center; padding: 20px; }
.photo-slot.tall { aspect-ratio: 4 / 5; }
.photo-slot figcaption { font-size: .9rem; font-weight: 600; background: rgba(255, 255, 255, .8); padding: 6px 12px; border-radius: 999px; }
.paw { width: 44px; height: 44px; background: var(--pink); -webkit-mask: url(/assets/paw.svg) center/contain no-repeat; mask: url(/assets/paw.svg) center/contain no-repeat; opacity: .8; }
/* Flex, not grid: the last row centers, so any number of photos looks intentional. */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.gallery figure { margin: 0; width: calc((100% - 48px) / 4); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(28, 42, 110, .08); }
.gallery figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 6px; }
.gallery-section .section-head { margin-bottom: 32px; }
@media (max-width: 800px) { .gallery { gap: 12px; } .gallery figure { width: calc((100% - 12px) / 2); } }

/* Services */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; box-shadow: 0 10px 30px rgba(28, 42, 110, .06); }
.card h3 { font-size: 1.7rem; font-variant: small-caps; letter-spacing: .04em; margin-bottom: .3em; }
.card-intro { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px dashed var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: "♥"; position: absolute; left: 2px; top: 10px; color: var(--pink); font-size: .9rem; }
.ticks strong { color: var(--navy); }
@media (max-width: 800px) { .columns { grid-template-columns: 1fr; } .card { padding: 28px 22px; } }

/* How it works */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pink); color: #fff; font: 700 1.05rem var(--sans); margin-bottom: 14px; }
.steps p { font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: var(--blush-soft); border-radius: var(--radius); padding: 32px 30px; }
.panel h3:not(:first-child) { margin-top: 24px; }
.timeline { list-style: none; padding: 0; margin: 0 0 16px; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.timeline span { font-weight: 700; color: var(--pink-deep); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
@media (max-width: 800px) { .two-up { grid-template-columns: 1fr; } .panel { padding: 26px 20px; } }

/* Reviews */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 760px; margin: 0 auto 40px; text-align: center; }
.stats strong { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--navy); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .92rem; }
/* Masonry-style columns: reviews differ in length, so they flow instead of
   leaving gaps in a grid. */
.quotes { columns: 3 300px; column-gap: 22px; }
.quotes .quote { break-inside: avoid; margin-bottom: 22px; }
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.quote blockquote { margin: 0 0 14px; font-family: var(--serif); font-style: italic; color: var(--navy); }
.quote blockquote p::before { content: "“"; color: var(--pink); font-size: 1.6em; line-height: 0; vertical-align: -.35em; margin-right: 2px; }
.quote figcaption { font-weight: 600; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .stats strong { font-size: 2rem; } }

/* Contact form */
.form { max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 34px; box-shadow: 0 10px 30px rgba(28, 42, 110, .06); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .95rem; padding: 0; }
.req { color: var(--pink-deep); }
.opt { color: var(--muted); font-weight: 400; }
input:not([type=checkbox]):not([type=radio]), textarea { width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
input:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--blush); }
textarea { resize: vertical; }
.inline { display: flex; gap: 18px; flex-wrap: wrap; }
.inline label, .checks label { font-weight: 400; color: var(--ink); display: flex; align-items: center; gap: 8px; margin: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
input[type=checkbox], input[type=radio] { width: 19px; height: 19px; accent-color: var(--pink); flex: none; }
.form-msg { display: none; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.form-msg.ok { display: block; background: #e9f5ee; color: var(--ok); }
.form-msg.err { display: block; background: #fbeceb; color: var(--err); }
@media (max-width: 640px) { .grid, .checks { grid-template-columns: 1fr; } .form { padding: 26px 18px; } }

/* Footer */
.site-footer { background: var(--navy); color: #dfe3f7; padding: 44px 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 20px; align-items: center; }
.site-footer .small { color: #b9bfdf; margin: 0; }
.footer-name { font-family: var(--serif); color: #fff; margin: 0; font-size: 1.1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer-links a:hover { color: var(--blush); }
.copyright { grid-column: 1 / -1; padding-top: 18px; margin-top: 10px !important; border-top: 1px solid rgba(255, 255, 255, .15); }
.site-footer img { background: var(--blush); border-radius: 50%; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: auto 1fr; } .footer-links { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* The flourish sprite: defined once in the page, drawn by <use>. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* APDT's logo is a JPG on white; a white panel keeps it unaltered and seamless. */
.apdt { display: flex; align-items: center; gap: 16px; margin-top: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.apdt img { width: 84px; height: auto; flex: none; }
.apdt p { margin: 0; font-size: .95rem; color: var(--ink); }
.apdt strong { color: var(--navy); }

.area { margin: 18px 0 0; font-size: .95rem; color: var(--navy); font-weight: 500; }
.direct { font-weight: 600; color: var(--navy); }
.direct a, .site-footer .small a { text-decoration: none; }
.site-footer .small a { color: #fff; }

/* Sharie's favorites */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -16px 0 32px; }
.chip { font: 600 .92rem var(--sans); color: var(--navy); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.chip:hover { border-color: var(--pink); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Uniform tiles: same square picture area (a paw placeholder until Sharie
   sends a photo), the "why" cut to four lines with Read more, and Where to
   buy pinned to the bottom, so every card in a row lines up. */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; align-items: start; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; min-height: var(--tile-h, 0); }
/* --tile-h is set by main.js to the tallest closed tile, so all tiles match and
   opening one ("Read more") grows that tile alone, not every row. */
.product img, .product-ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--blush-soft); border-radius: 12px; margin-bottom: 14px; }
.product-ph { position: relative; }
.product-ph::after { content: ""; position: absolute; inset: 0; background: var(--line); -webkit-mask: url(/assets/paw.svg) center / 34% no-repeat; mask: url(/assets/paw.svg) center / 34% no-repeat; }
.product h3 { font-size: 1.1rem; margin-bottom: .3em; }
.product-cat { font: 700 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-deep); margin-bottom: 6px; }
.product-why { font-size: .95rem; color: var(--muted); margin-bottom: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.product-why.open { display: block; }
.product-more { align-self: flex-start; font: 600 .88rem var(--sans); color: var(--pink-deep); background: none; border: 0; padding: 4px 0 0; cursor: pointer; }
.product-link { font-weight: 600; text-decoration: none; margin-top: auto; padding-top: 14px; }
@media (max-width: 560px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product { padding: 12px; }
  .product img, .product-ph { margin-bottom: 10px; }
  .product h3 { font-size: .95rem; }
  .product-cat { font-size: .62rem; letter-spacing: .1em; }
  .product-why { font-size: .85rem; -webkit-line-clamp: 3; line-clamp: 3; }
  .product-link { font-size: .9rem; padding-top: 10px; }
}
.product.sample { border-style: dashed; opacity: .8; }

/* Sharie's photos */
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(28, 42, 110, .1); }
.pets-photo { margin: 8px 0 0; max-width: 340px; }
.pets-photo img { width: 100%; border-radius: var(--radius); }
.pets-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.disclosure { margin: 12px 0 0; font-size: .9rem; color: var(--navy); font-weight: 600; }
