/* ==========================================================================
   Kevlar K9 Academy — Phase 2 design system
   Warm + approachable. Green (brand) anchors sections; orange (logo) = accents
   & calls-to-action. All tokens live in :root.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700&family=Inter:wght@400;500;600&display=swap");

:root {
  /* surfaces */
  --paper:      #f7f6f0;   /* warm off-white page background */
  --surface:    #ffffff;   /* cards */
  --line:       #e6e2d6;   /* hairline borders */

  /* text */
  --ink:        #2b2e26;   /* primary text */
  --muted:      #6c7065;   /* secondary text */

  /* brand green */
  --green:      #6f885c;   /* the brand green */
  --green-700:  #4d6440;   /* deep green — headings on light, footer */
  --green-050:  #eaefe2;   /* pale green panel */

  /* logo orange */
  --orange:     #d04b28;   /* accent + CTAs */
  --orange-700: #b23f20;   /* hover */
  --orange-050: #fbe9e1;   /* peach tint */

  /* type */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;

  /* shape */
  --r-card: 16px;
  --r-btn:  10px;
  --shadow-sm: 0 2px 8px rgba(43,46,38,.06);
  --shadow:    0 10px 30px rgba(43,46,38,.09);

  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p  { color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; color: var(--orange);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); margin-top: .75rem; font-size: 1.05rem; }
.center { text-align: center; margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: var(--r-btn); border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-700); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green); }
.btn-outline:hover { background: var(--green-050); }
.btn-light { background: #fff; color: var(--green-700); }
.btn-light:hover { background: var(--paper); }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247,246,240,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 46px; width: auto; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--green-700); letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a { font-weight: 500; color: var(--ink); padding: .5rem .8rem; border-radius: 8px; font-size: .98rem; }
.nav-links a:hover { background: var(--green-050); color: var(--green-700); }
.nav-links a[aria-current="page"] { color: var(--orange); }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; cursor: pointer; font-size: 1.2rem; color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--orange); }
.hero .sub { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-bottom: 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--line); color: var(--green-700); font-size: .85rem; font-weight: 500; padding: .35rem .8rem; border-radius: 999px; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* hero photo collage — the signature moment */
.hero-media { position: relative; }
.hero-media .photo-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.hero-media .photo-sub { position: absolute; bottom: -22px; left: -22px; width: 45%; aspect-ratio: 1/1; object-fit: cover; border-radius: 18px; border: 5px solid var(--paper); box-shadow: var(--shadow); }
.hero-media .blob { position: absolute; inset: -6% -6% auto auto; width: 60%; aspect-ratio: 1; background: var(--green-050); border-radius: 50%; z-index: -1; }
.hero-media .vet-badge { position: absolute; top: 14px; right: 14px; background: var(--orange); color: #fff; font-weight: 600; font-size: .8rem; padding: .4rem .85rem; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-050); color: var(--orange); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card .more { display: inline-block; margin-top: .9rem; color: var(--orange); font-weight: 600; font-size: .95rem; }

/* ---------- green band (approach) ---------- */
.band { background: var(--green); color: #fff; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #fff; }
.band .eyebrow::before { background: #fff; }
.band .grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.band .grid3 p { color: rgba(255,255,255,.85); font-size: .97rem; margin-top: .35rem; }
.band .grid3 h3 { font-size: 1.15rem; }

/* ---------- helps grid ---------- */
.tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.tag { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-weight: 500; font-size: .95rem; }
.tag::before { content: "🐾"; margin-right: .45rem; font-size: .85em; }

/* ---------- locations ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.loc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.loc.soon { border-style: dashed; }
.loc .badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; margin-bottom: .9rem; }
.loc.open .badge { background: var(--green-050); color: var(--green-700); }
.loc.soon .badge { background: var(--orange-050); color: var(--orange-700); }
.loc h3 { margin-bottom: .5rem; }
.loc .row { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); margin-bottom: .5rem; font-size: .97rem; }
.loc .row .ic { color: var(--orange); flex: none; }
.loc .row a { color: var(--ink); }
.loc .row a:hover { color: var(--orange); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--orange); letter-spacing: 2px; margin-bottom: .6rem; }
.quote p { font-style: italic; color: var(--ink); }
.quote .who { margin-top: 1rem; font-weight: 600; color: var(--green-700); font-style: normal; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: .75rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-700); color: #fff; border-radius: 28px; padding: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 50ch; margin: 0 auto 1.75rem; }

/* ---------- bios (about) ---------- */
.bio { display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: 2rem 0; }
.bio + .bio { border-top: 1px solid var(--line); }
.bio:nth-child(even) { grid-template-columns: 1fr 320px; }
.bio:nth-child(even) .bio-photo { order: 2; }
.bio img { width: 100%; border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.bio h3 { color: var(--green-700); margin-bottom: .3rem; }
.bio .role { color: var(--orange); font-weight: 600; font-size: .95rem; margin-bottom: .75rem; }
.bio p { color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .88rem; font-weight: 500; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  padding: .7rem .8rem; border-radius: 10px; font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.hp { position: absolute; left: -9999px; }
#formMsg { margin-top: .8rem; font-size: .95rem; }
#formMsg.ok { color: var(--green-700); }
#formMsg.err { color: #b23b3b; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-700); color: rgba(255,255,255,.82); padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; margin-top: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.site-footer .brand b { color: #fff; }
.foot-col p { color: rgba(255,255,255,.82); font-size: .95rem; margin-bottom: .5rem; }
.foot-socials { display: flex; gap: .8rem; margin-top: 1rem; }
.foot-socials img { width: 20px; height: 20px; filter: brightness(0) invert(1); opacity: .85; }
.foot-socials a:hover img { opacity: 1; }
.foot-bottom { padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin: 1.5rem auto 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr; }
  .bio, .bio:nth-child(even) { grid-template-columns: 1fr; }
  .bio:nth-child(even) .bio-photo { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; }
  .nav-cta { margin: .4rem 1rem; }
  .nav-toggle { display: block; }
  .foot-grid { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ==========================================================================
   Phase 2.1 — promotions + reviews carousel
   ========================================================================== */

/* ---- promo ---- */
#promoSlot { display:block; }
.promo {
  background:
    radial-gradient(circle at 100% 0%, rgba(208,75,40,.10), transparent 45%),
    var(--surface);
  border:1px solid var(--line); border-left:5px solid var(--orange);
  border-radius:var(--r-card); padding:1.75rem 2rem; box-shadow:var(--shadow-sm);
}
.promo-badge {
  display:inline-block; background:var(--orange); color:#fff; font-weight:700;
  font-size:.72rem; letter-spacing:.1em; text-transform:uppercase;
  padding:.3rem .8rem; border-radius:999px; margin-bottom:.75rem;
}
.promo h3 { font-size:1.7rem; color:var(--green-900); }
.promo-sub { color:var(--orange); font-weight:600; margin-top:.15rem; }
.promo-blurb { color:var(--muted); margin-top:.6rem; max-width:60ch; }
.promo-counter { margin:1.1rem 0; max-width:360px; }
.promo-bar { height:9px; background:var(--green-050); border-radius:999px; overflow:hidden; }
.promo-bar span { display:block; height:100%; background:var(--orange); border-radius:999px; }
.promo-count { font-size:.9rem; color:var(--ink); margin-top:.45rem; }
.promo-count b { color:var(--green-900); }
.promo .btn { margin-top:.35rem; }
.promo-fine { font-size:.75rem; color:var(--muted); margin-top:.9rem; max-width:60ch; }

/* ---- reviews carousel ---- */
#reviewsCarousel { max-width:760px; margin:0 auto; }
.rc-viewport { position:relative; min-height:210px; }
.rc-slide {
  position:absolute; inset:0; opacity:0; transition:opacity .5s ease; pointer-events:none;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card);
  padding:2rem; box-shadow:var(--shadow-sm);
}
.rc-slide.active { opacity:1; pointer-events:auto; position:relative; }
.rc-stars { color:var(--orange); letter-spacing:3px; margin-bottom:.85rem; font-size:1.05rem; }
.rc-slide blockquote { font-size:1.15rem; font-style:italic; color:var(--ink); line-height:1.6; max-width:60ch; }
.rc-slide figcaption { margin-top:1rem; font-weight:600; color:var(--green-700); }
.rc-src { color:var(--muted); font-weight:400; font-size:.85rem; }
.rc-dots { display:flex; gap:.5rem; justify-content:center; margin-top:1.25rem; }
.rc-dot { width:9px; height:9px; border-radius:50%; border:none; background:var(--line); cursor:pointer; padding:0; transition:background .2s ease; }
.rc-dot.active { background:var(--orange); }

.foot-socials svg { width:20px; height:20px; opacity:.85; }
.foot-socials a:hover svg { opacity:1; }

/* FAQ page topic jump-links */
.faq-jumps { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.5rem; }
.faq-jump { display:inline-block; background:var(--surface); border:1px solid var(--line);
  border-radius:999px; padding:.45rem 1rem; font-weight:500; font-size:.92rem; color:var(--green-700); }
.faq-jump:hover { background:var(--green-050); border-color:var(--green); }
.faq-cat { scroll-margin-top:90px; }
