/* Brave Paws — brochure palette: leaf green, butter yellow, cream */
:root {
  --leaf: #42b14b;          /* brochure green, decorative use */
  --leaf-deep: #2a7f3e;     /* buttons, links: 5:1 with white */
  --forest: #1c4d2c;        /* headings, dark band */
  --ink: #23382a;           /* body text */
  --butter: #faf8c7;        /* brochure gradient yellow */
  --cream: #fefcef;         /* page background */
  --mist: #ebf3ce;          /* brochure gradient green-white */
  --radius: 22px;
  --measure: 62ch;
  --font-head: "Bree Serif", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, var(--mist) 0, var(--butter) 520px, var(--cream) 1100px) var(--cream);
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-deep); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--forest); line-height: 1.15; font-weight: 400; margin: 0 0 .6em; }
h1 { font-size: clamp(2.25rem, 5.4vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; max-width: var(--measure); }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Paw trail borders, echoing the brochure edges (wide screens only) */
@media (min-width: 1240px) {
  body::before, body::after {
    content: "";
    position: fixed; top: 0; bottom: 0; width: 64px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='120' viewBox='0 0 64 120' fill='%2342b14b'%3E%3Cg transform='translate(8 6) rotate(-12 18 18)'%3E%3Cellipse cx='18' cy='24' rx='9' ry='7.5'/%3E%3Cellipse cx='6' cy='13' rx='3.6' ry='4.6'/%3E%3Cellipse cx='14' cy='6' rx='3.6' ry='4.8'/%3E%3Cellipse cx='23' cy='6' rx='3.6' ry='4.8'/%3E%3Cellipse cx='31' cy='13' rx='3.6' ry='4.6'/%3E%3C/g%3E%3Cg transform='translate(22 66) rotate(10 18 18)'%3E%3Cellipse cx='18' cy='24' rx='9' ry='7.5'/%3E%3Cellipse cx='6' cy='13' rx='3.6' ry='4.6'/%3E%3Cellipse cx='14' cy='6' rx='3.6' ry='4.8'/%3E%3Cellipse cx='23' cy='6' rx='3.6' ry='4.8'/%3E%3Cellipse cx='31' cy='13' rx='3.6' ry='4.6'/%3E%3C/g%3E%3C/svg%3E") repeat-y;
    opacity: .55;
    pointer-events: none;
  }
  body::before { left: 8px; }
  body::after { right: 8px; transform: scaleX(-1); }
}

/* Header */
.site-header { padding-block: 1.1rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--forest); font-family: var(--font-head); font-size: 1.6rem; }
.brand img { width: 52px; height: auto; }
.nav { display: flex; align-items: center; gap: .4rem 1.6rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--forest); font-weight: 700; padding: .35rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--leaf); }
.nav a[aria-current="page"] { border-bottom-color: var(--leaf-deep); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--leaf-deep); color: #fff;
  font: 800 1.05rem/1 var(--font-body);
  padding: .95rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: 2px solid var(--leaf-deep);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn.ghost:hover { background: var(--forest); color: #fff; }
.btn.light { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn.light:hover { background: var(--butter); border-color: var(--butter); color: var(--forest); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Hero */
.hero { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 48% 48% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); border: 6px solid var(--cream); box-shadow: 0 18px 40px -18px rgba(28, 77, 44, .45); }
.hero-photo .badge { position: absolute; left: -1.4rem; bottom: 2rem; width: 112px; height: 112px; object-fit: contain; background: var(--cream); border-radius: 50%; padding: 14px; box-shadow: 0 10px 24px -12px rgba(28, 77, 44, .5); }
.hero .lead { font-size: 1.2rem; }

/* Fact strip */
.facts { border-block: 2px dashed rgba(66, 177, 75, .55); padding-block: 1.1rem; background: rgba(254, 252, 239, .6); }
.facts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; font-weight: 800; color: var(--forest); }
.facts li { display: flex; align-items: center; gap: .55rem; }
.facts li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); flex: none; }

/* Story rows */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.row + .row { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.row.flip > :first-child { order: 2; }
.photo { border-radius: var(--radius); overflow: hidden; border: 6px solid var(--cream); box-shadow: 0 18px 40px -22px rgba(28, 77, 44, .5); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo.tall img { aspect-ratio: 3 / 4; }

/* Gallery */
.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
.gallery-grid img:nth-child(even) { transform: translateY(1.2rem); }
.gallery-grid { padding-bottom: 1.2rem; }

/* CTA band */
.band { background: var(--forest); color: var(--cream); padding-block: clamp(2.5rem, 6vw, 4rem); }
.band h2 { color: var(--cream); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.band p { margin: 0; max-width: 46ch; }

/* Services */
.page-head { padding-block: clamp(1.5rem, 5vw, 3rem) 1rem; }
.page-head p { font-size: 1.2rem; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list > li { display: grid; grid-template-columns: 1fr auto; gap: .25rem 2rem; padding-block: 1.6rem; border-top: 2px dashed rgba(66, 177, 75, .55); }
.price-list > li:last-child { border-bottom: 2px dashed rgba(66, 177, 75, .55); }
.price-list h3 { margin: 0; }
.price-list .desc { grid-column: 1; margin: 0; }
.price { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-family: var(--font-head); color: var(--forest); font-size: 1.9rem; line-height: 1.1; }
.price small { display: block; font: 700 .9rem/1.4 var(--font-body); color: var(--ink); }
.extra { display: block; margin-top: .4rem; font: 800 1rem/1.4 var(--font-body); color: var(--leaf-deep); }
.note { border-left: 6px solid var(--leaf); background: rgba(254, 252, 239, .85); padding: 1rem 1.3rem; border-radius: 0 14px 14px 0; margin-top: .9rem; max-width: var(--measure); }
.note p { margin: 0; }
.services-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.services-layout aside { position: sticky; top: 1.5rem; }
.other { margin-top: 2.5rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list a { display: flex; align-items: center; gap: 1rem; text-decoration: none; background: var(--cream); border: 2px solid var(--leaf); border-radius: 18px; padding: 1rem 1.25rem; color: var(--forest); font-weight: 800; font-size: 1.15rem; }
.contact-list a:hover { background: var(--butter); }
.contact-list svg { width: 1.7rem; height: 1.7rem; color: var(--leaf-deep); flex: none; }
.contact-list small { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; }

/* Footer */
.site-footer { background: var(--butter); border-top: 2px dashed rgba(66, 177, 75, .55); padding-block: 2rem; margin-top: 0; font-size: .98rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.site-footer p { margin: 0; max-width: none; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero .wrap, .row, .services-layout, .contact-layout { grid-template-columns: 1fr; }
  .row.flip > :first-child { order: 0; }
  .hero-photo { max-width: 420px; }
  .hero-photo .badge { left: auto; right: -.5rem; width: 92px; height: 92px; }
  .services-layout aside { position: static; max-width: 420px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .price { font-size: 1.6rem; }
}
@media (max-width: 520px) {
  .nav { gap: .2rem 1.1rem; }
  .price-list > li { grid-template-columns: 1fr; }
  .price { grid-column: 1; grid-row: auto; text-align: left; }
}
/* Intro loader (home page) */
.paw-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
}
.loader-paws { display: flex; gap: 14px; }
.loader-paw { width: 44px; height: 44px; filter: brightness(0) invert(1); }

/* Paw-shaped mask reveal, applied by animations.js.
   paw-mask.svg has extra canvas below the pad so the pad's centre sits at
   the image's exact midpoint — growing it from there covers edge-to-edge
   with no gaps before the mask gets dropped. */
.paw-reveal {
  --mr: 480;
  -webkit-mask-image: url("images/paw-mask.svg");
  mask-image: url("images/paw-mask.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: calc(var(--mr) * 1%) auto;
  mask-size: calc(var(--mr) * 1%) auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .paw-loader { display: none !important; }
}
