/*
Theme Name: The Puppy Point
Theme URI: https://thepuppypoint.com/
Author: Built for The Puppy Point
Author URI: https://thepuppypoint.com/
Description: A fast, mobile-first WordPress theme for purebred puppy sellers. Built with answer-engine (AEO) and generative-engine (GEO) optimisation in mind: semantic markup, structured data for LocalBusiness, FAQPage, Product and Breadcrumbs, and extractable specification tables. No licence key, no page builder required.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thepuppypoint
Tags: business, portfolio, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  --tpp-sky:        #CDEEFA;
  --tpp-sky-soft:   #E8F7FD;
  --tpp-sky-wash:   #F6FBFE;
  --tpp-navy:       #141544;
  --tpp-navy-deep:  #0E0F33;
  --tpp-navy-mid:   #22246B;
  --tpp-blue:       #0077B6;
  --tpp-blue-dark:  #005B8C;
  --tpp-blue-text:  #0B5E8A;
  --tpp-blue-light: #7FD0F0;
  --tpp-royal:      #2A3FD4;
  --tpp-green:      #128C4A;
  --tpp-green-dark: #0E6B39;
  --tpp-green-soft: #E6F6EC;
  --tpp-crimson:    #C21E3A;

  --tpp-ink:        #16181D;
  --tpp-body:       #41474F;
  --tpp-muted:      #5A6169;
  --tpp-line:       #DDE6EC;
  --tpp-line-soft:  #EEF3F6;
  --tpp-white:      #FFFFFF;

  --tpp-radius-sm:  10px;
  --tpp-radius:     16px;
  --tpp-radius-lg:  22px;
  --tpp-radius-xl:  26px;
  --tpp-pill:       999px;

  --tpp-shadow:     0 6px 18px rgba(20, 21, 68, 0.08);
  --tpp-shadow-lg:  0 18px 46px rgba(20, 21, 68, 0.16);

  --tpp-wrap:       1240px;
  --tpp-gutter:     24px;

  --tpp-font:       'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--tpp-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tpp-ink);
  background: var(--tpp-white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* A `display` rule in a component beats the hidden attribute, which silently
   leaves "hidden" panels on screen. This keeps hidden meaning hidden. */
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; color: var(--tpp-navy); }
h1 { font-size: clamp(2rem, 5vw, 3.375rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.3125rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--tpp-blue-text); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: #073F5D; }

:focus-visible { outline: 3px solid var(--tpp-blue); outline-offset: 2px; }

table { border-collapse: collapse; width: 100%; }

.screen-reader-text {
  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; left: -9999px; top: 0;
  background: var(--tpp-navy); color: #fff;
  padding: 12px 20px; z-index: 999; border-radius: 0 0 var(--tpp-radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

.tpp-wrap { max-width: var(--tpp-wrap); margin: 0 auto; padding-inline: var(--tpp-gutter); }

.tpp-section { padding-block: clamp(40px, 7vw, 64px); }
.tpp-section--sky  { background: var(--tpp-sky); }
.tpp-section--wash { background: var(--tpp-sky-wash); }
.tpp-section--navy { background: var(--tpp-navy); color: #E8EEF6; }
.tpp-section--navy h2, .tpp-section--navy h3 { color: #fff; }

.tpp-eyebrow {
  margin: 0 0 8px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--tpp-blue-text); text-transform: uppercase;
}
.tpp-section--navy .tpp-eyebrow { color: var(--tpp-blue-light); }

.tpp-lede { font-size: 1.0625rem; color: var(--tpp-body); max-width: 52em; }
.tpp-section--navy .tpp-lede { color: #C3CEDC; }

.tpp-grid { display: grid; gap: 22px; }
.tpp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tpp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tpp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tpp-section-head {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.tpp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: var(--tpp-pill);
  font: inherit; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.tpp-btn:hover { transform: translateY(-1px); }
.tpp-btn svg { flex-shrink: 0; }

.tpp-btn--call    { background: var(--tpp-blue);  color: #fff; }
.tpp-btn--call:hover, .tpp-btn--call:focus { background: var(--tpp-blue-dark); color: #fff; }

.tpp-btn--wa      { background: var(--tpp-green); color: #fff; }
.tpp-btn--wa:hover, .tpp-btn--wa:focus { background: var(--tpp-green-dark); color: #fff; }

.tpp-btn--more    { background: var(--tpp-royal); color: #fff; }
.tpp-btn--more:hover, .tpp-btn--more:focus { background: #1F31AC; color: #fff; }

.tpp-btn--ghost   { background: #fff; border: 1.5px solid #B7D7E6; color: var(--tpp-navy); }
.tpp-btn--ghost:hover, .tpp-btn--ghost:focus { background: var(--tpp-sky-soft); color: var(--tpp-navy); }

.tpp-btn--light   { background: #fff; color: var(--tpp-navy); }
.tpp-btn--sm      { min-height: 44px; padding: 0 16px; font-size: 0.875rem; }
.tpp-btn--block   { width: 100%; }

/* ==========================================================================
   5. Top bar and header
   ========================================================================== */

.tpp-topbar {
  background: var(--tpp-navy); color: #E7F6FD;
  font-size: 0.8125rem;
  text-align: center;
}
.tpp-topbar__inner {
  padding-block: 8px;
  line-height: 1.4;
}

.tpp-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--tpp-line);
  backdrop-filter: blur(8px);
}
.tpp-header__inner {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding-block: 12px;
}
.tpp-logo { display: block; text-decoration: none; }
.tpp-logo img { height: 54px; width: auto; }
.tpp-logo__text { font-size: 1.25rem; font-weight: 800; color: var(--tpp-navy); text-decoration: none; }

.tpp-nav { display: flex; align-items: center; gap: 26px; }
.tpp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.tpp-nav a { color: var(--tpp-ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.tpp-nav a:hover, .tpp-nav .current-menu-item > a { color: var(--tpp-blue-text); }

.tpp-nav li { position: relative; }
.tpp-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 220px; padding: 10px; gap: 2px;
  flex-direction: column;
  background: #fff; border: 1px solid var(--tpp-line);
  border-radius: var(--tpp-radius); box-shadow: var(--tpp-shadow);
}
.tpp-nav li:hover > .sub-menu,
.tpp-nav li:focus-within > .sub-menu { display: flex; }
.tpp-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: var(--tpp-radius-sm); }
.tpp-nav .sub-menu a:hover { background: var(--tpp-sky-wash); }

.tpp-nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid #C9DFEB; border-radius: 12px; background: #fff;
  align-items: center; justify-content: center; cursor: pointer;
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.tpp-hero {
  background: linear-gradient(180deg, var(--tpp-sky) 0%, var(--tpp-sky-soft) 62%, #fff 100%);
  padding-block: clamp(28px, 5vw, 56px) clamp(28px, 4vw, 48px);
}
.tpp-hero__inner { display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.tpp-hero__copy  { flex: 999 1 460px; min-width: 0; }
.tpp-hero__media { flex: 1 1 400px; min-width: 0; position: relative; }

.tpp-hero__media img {
  width: 100%; height: auto;
  border-radius: 24px;
  border: 6px solid #fff; box-shadow: var(--tpp-shadow-lg);
}
.tpp-hero__badge {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--tpp-radius);
  padding: 14px 18px; box-shadow: 0 10px 24px rgba(20, 21, 68, 0.14);
}
.tpp-hero__badge strong { display: block; font-size: 1.0625rem; color: var(--tpp-navy); }
.tpp-hero__badge span   { font-size: 0.8125rem; color: var(--tpp-muted); }
.tpp-hero__badge-icon {
  width: 42px; height: 42px; border-radius: var(--tpp-pill);
  background: var(--tpp-green-soft);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.tpp-pill-note {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px; padding: 7px 16px;
  background: #fff; border: 1px solid #A9DCF0; border-radius: var(--tpp-pill);
  color: var(--tpp-blue-text); font-size: 0.8125rem; font-weight: 600;
}

.tpp-hero__title em { font-style: normal; color: var(--tpp-crimson); }
.tpp-hero__text { font-size: clamp(1rem, 1.6vw, 1.15625rem); color: var(--tpp-body); max-width: 34em; margin-bottom: 26px; }

.tpp-facts {
  margin: 0 0 28px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  max-width: 580px;
}
.tpp-facts > div {
  background: #fff; border: 1px solid #D5E7F0;
  border-radius: 12px; padding: 13px 16px;
}
.tpp-facts dt { font-size: 0.78125rem; color: var(--tpp-muted); margin-bottom: 3px; }
.tpp-facts dd { margin: 0; font-size: 0.96875rem; font-weight: 600; color: var(--tpp-navy); }

.tpp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   7. Trust cards
   ========================================================================== */

.tpp-trust { list-style: none; margin: 0; padding: 0; }
.tpp-trust li {
  background: var(--tpp-sky-wash); border: 1px solid #DCEBF3;
  border-radius: var(--tpp-radius); padding: 20px;
}
.tpp-trust__icon {
  display: inline-flex; width: 38px; height: 38px;
  border-radius: var(--tpp-radius-sm); background: #D9EEF9;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.tpp-trust strong { display: block; font-size: 1rem; margin-bottom: 5px; color: var(--tpp-navy); }
.tpp-trust span   { font-size: 0.875rem; color: #525960; }

/* ==========================================================================
   8. Puppy / breed cards
   ========================================================================== */

.tpp-card {
  background: #fff; border-radius: var(--tpp-radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--tpp-shadow);
}
.tpp-card__media { position: relative; }
.tpp-card__media img { width: 100%; height: auto; }
.tpp-card__badge {
  position: absolute; top: 14px; left: 14px;
  background: #fff; color: var(--tpp-green-dark);
  font-size: 0.75rem; font-weight: 700;
  padding: 6px 12px; border-radius: var(--tpp-pill);
}
.tpp-card__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.tpp-card__body h3 { margin: 0 0 4px; }
.tpp-card__desc { margin: 0; font-size: 0.90625rem; line-height: 1.5; color: #525960; }
.tpp-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tpp-card__actions .tpp-btn { flex: 1 1 auto; }
.tpp-card__actions .tpp-btn--more { flex: 1 1 100%; }

/* Specification table — the AEO/GEO workhorse */
.tpp-specs { font-size: 0.84375rem; }
.tpp-specs caption {
  text-align: left; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.04em; color: var(--tpp-blue-text); padding-bottom: 7px;
}
.tpp-specs th {
  text-align: left; font-weight: 500; color: var(--tpp-muted);
  padding: 5px 0; border-bottom: 1px solid var(--tpp-line-soft); width: 48%;
}
.tpp-specs td {
  text-align: right; font-weight: 600; color: var(--tpp-ink);
  padding: 5px 0; border-bottom: 1px solid var(--tpp-line-soft);
}

.tpp-specs--full { font-size: 0.9375rem; background: #fff; border-radius: var(--tpp-radius-lg); }
.tpp-specs--full th,
.tpp-specs--full td { padding: 15px 0; text-align: left; }
.tpp-specs--full th { width: 34%; }
.tpp-specs--wrap { background: #fff; border-radius: var(--tpp-radius-lg); padding: 10px 26px 16px; }

/* ==========================================================================
   9. Steps
   ========================================================================== */

.tpp-steps { list-style: none; margin: 0; padding: 0; }
.tpp-steps li {
  background: #fff; border: 1px solid var(--tpp-line);
  border-radius: 18px; padding: 24px;
}
.tpp-steps__n {
  display: inline-flex; width: 40px; height: 40px;
  border-radius: var(--tpp-pill); background: var(--tpp-navy); color: #fff;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; margin-bottom: 14px;
}
.tpp-steps strong { display: block; font-size: 1.0625rem; margin-bottom: 7px; color: var(--tpp-navy); }
.tpp-steps span   { font-size: 0.90625rem; line-height: 1.55; color: #525960; }

/* ==========================================================================
   9b. Puppy matcher
   ========================================================================== */

.tpp-finder__head { max-width: 46em; margin-bottom: 28px; }

.tpp-finder__box {
  background: linear-gradient(180deg, var(--tpp-sky) 0%, var(--tpp-sky-soft) 100%);
  border-radius: var(--tpp-radius-xl);
  padding: clamp(22px, 4vw, 40px);
  position: relative;
}

/* Progress: a labelled bar. Numbered dots look like decoration and tell a
   visitor nothing about what is being asked or how much is left. */
.tpp-finder__progress { margin-bottom: 24px; }

.tpp-finder__stage {
  margin: 0 0 10px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.tpp-finder__stage-step {
  font-size: 0.78125rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--tpp-blue-text);
}
.tpp-finder__stage-label {
  font-size: 0.9375rem; font-weight: 600; color: var(--tpp-navy);
}
.tpp-finder__stage.is-done .tpp-finder__stage-step { color: var(--tpp-green-dark); }

.tpp-finder__track {
  height: 6px; border-radius: var(--tpp-pill);
  background: #fff;
  overflow: hidden;
}
.tpp-finder__fill {
  display: block; height: 100%;
  border-radius: var(--tpp-pill);
  background: var(--tpp-blue);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease;
}
.tpp-finder__stage.is-done ~ .tpp-finder__track .tpp-finder__fill { background: var(--tpp-green); }

/* A question */
.tpp-finder__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.tpp-finder__step legend { padding: 0; margin-bottom: 18px; }
.tpp-finder__q {
  display: block;
  font-size: clamp(1.25rem, 2.6vw, 1.625rem); font-weight: 700;
  color: var(--tpp-navy); letter-spacing: -0.01em;
}
.tpp-finder__q:focus-visible { outline: 3px solid var(--tpp-blue); outline-offset: 4px; border-radius: 4px; }
.tpp-finder__help {
  display: block; margin-top: 6px;
  font-size: 0.9375rem; color: #4A5159;
}

.tpp-finder__options {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}

.tpp-finder__option { display: block; cursor: pointer; }
.tpp-finder__option input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.tpp-finder__option-in {
  display: flex; flex-direction: column; gap: 4px;
  min-height: 92px; height: 100%;
  padding: 18px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--tpp-radius);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.tpp-finder__option-in strong { font-size: 1rem; color: var(--tpp-navy); }
.tpp-finder__option-in span { font-size: 0.84375rem; color: var(--tpp-muted); line-height: 1.45; }

.tpp-finder__option:hover .tpp-finder__option-in {
  transform: translateY(-2px);
  box-shadow: var(--tpp-shadow);
}
.tpp-finder__option input:focus-visible + .tpp-finder__option-in {
  outline: 3px solid var(--tpp-blue); outline-offset: 2px;
}
.tpp-finder__option input:checked + .tpp-finder__option-in {
  border-color: var(--tpp-blue);
  box-shadow: var(--tpp-shadow);
}

.tpp-finder__nav {
  display: flex; align-items: center; gap: 14px;
  margin-top: 18px; flex-wrap: wrap;
}
/* With no Back button on the first question the row is empty — collapse it
   so it does not leave a gap under the options. */
.tpp-finder__nav:empty { margin-top: 0; }

/* Results */
.tpp-finder__results-head { margin-bottom: 20px; }
.tpp-finder__results-head h3 {
  margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.625rem);
}
.tpp-finder__results-head h3:focus-visible { outline: 3px solid var(--tpp-blue); outline-offset: 4px; }

.tpp-finder__matches {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-bottom: 22px;
}

.tpp-finder__card-link {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: var(--tpp-radius);
  overflow: hidden; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tpp-finder__card-link:hover { transform: translateY(-2px); box-shadow: var(--tpp-shadow); }
.tpp-finder__card-link img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tpp-finder__card-body { display: block; padding: 16px; }
.tpp-finder__card-body strong {
  display: block; font-size: 1.0625rem; color: var(--tpp-navy); margin-bottom: 6px;
}
.tpp-finder__why {
  display: block; font-size: 0.84375rem; font-weight: 600;
  color: var(--tpp-green-dark); margin-bottom: 6px; line-height: 1.45;
}
.tpp-finder__why:empty { display: none; }
.tpp-finder__card-desc {
  display: block; font-size: 0.875rem; color: #525960; line-height: 1.5;
}

.tpp-finder__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* The server-rendered pool, before the script takes over. Without
   JavaScript it stays visible as a plain list of breeds. */
.tpp-finder__data {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: 22px;
}
.tpp-finder__box.is-live .tpp-finder__data { margin-top: 0; }

/* Buying process */
.tpp-finder__process { margin-top: 40px; }
.tpp-finder__process h3 { font-size: 1.125rem; margin-bottom: 16px; }
.tpp-finder__process-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  counter-reset: tpp-step;
}
.tpp-finder__process-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding-top: 16px; border-top: 2px solid var(--tpp-line);
}
.tpp-finder__process-n {
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: var(--tpp-pill);
  background: var(--tpp-navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78125rem; font-weight: 700;
}
.tpp-finder__process-list strong {
  display: block; font-size: 0.9375rem; color: var(--tpp-navy); margin-bottom: 3px;
}
.tpp-finder__process-list li > span > span {
  font-size: 0.84375rem; color: #525960; line-height: 1.5;
}

@media (max-width: 860px) {
  .tpp-finder__options { grid-template-columns: 1fr; }
  .tpp-finder__option-in { min-height: 0; flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 16px; }
  .tpp-finder__matches,
  .tpp-finder__data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpp-finder__process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .tpp-finder__matches,
  .tpp-finder__data { grid-template-columns: 1fr; }
  .tpp-finder__process-list { grid-template-columns: 1fr; }
  .tpp-finder__actions .tpp-btn { width: 100%; }
}

/* ==========================================================================
   10. Reasons
   ========================================================================== */

.tpp-split { display: flex; flex-wrap: wrap; gap: 52px; }
.tpp-split__aside { flex: 1 1 340px; min-width: 0; }
.tpp-split__main  { flex: 999 1 480px; min-width: 0; }

.tpp-reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.tpp-reasons li { display: flex; gap: 14px; }
.tpp-reasons__tick {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: var(--tpp-pill); background: var(--tpp-navy-mid);
  display: inline-flex; align-items: center; justify-content: center;
}
.tpp-reasons strong { display: block; font-size: 1rem; margin-bottom: 4px; color: #fff; }
.tpp-reasons span   { font-size: 0.90625rem; line-height: 1.55; color: #B9C5D4; }

/* ==========================================================================
   11. Gallery
   ========================================================================== */

.tpp-gallery img { width: 100%; height: auto; border-radius: var(--tpp-radius); }

/* ==========================================================================
   11b. Happy clients — single-row moving marquee
   ========================================================================== */

.tpp-clients__marquee {
  position: relative;
  overflow: hidden;
  /* Fade the photos out at both edges so they enter and leave softly
     instead of being chopped off by the viewport. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tpp-clients__track {
  display: flex;
  width: max-content;
  animation: tpp-marquee var(--tpp-marquee-speed, 70s) linear infinite;
  will-change: transform;
}

/* The spacing lives on each item, NOT as a flex gap. With `gap`, the track
   is two sets plus one gap short of double, so a -50% shift lands half a gap
   out and the loop visibly jumps every pass. Giving each item its own
   margin makes one set exactly half the track, so the loop is seamless. */

/* Hovering or tabbing into the row stops it, so a visitor can actually
   look at a photo instead of chasing it. */
.tpp-clients__marquee:hover .tpp-clients__track,
.tpp-clients__marquee:focus-within .tpp-clients__track {
  animation-play-state: paused;
}

.tpp-clients__track figure {
  margin: 0;
  flex: 0 0 var(--tpp-marquee-item, 240px);
  margin-right: var(--tpp-marquee-gap, 16px);
}

.tpp-clients__track img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--tpp-radius);
  background: var(--tpp-sky-soft);
}

.tpp-clients__track figcaption {
  margin-top: 8px;
  font-size: 0.8125rem; line-height: 1.45; color: var(--tpp-muted);
}

/* The track holds the photos twice, so the second set arrives exactly as
   the first leaves. Shifting by half the track makes the loop seamless. */
@keyframes tpp-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 860px) {
  .tpp-clients__track { --tpp-marquee-item: 200px; --tpp-marquee-speed: 55s; }
}

@media (max-width: 640px) {
  .tpp-clients__track { --tpp-marquee-item: 160px; --tpp-marquee-gap: 12px; }
}

/* Anyone who asks their system to reduce motion gets a still, scrollable
   row rather than a moving one. */
@media (prefers-reduced-motion: reduce) {
  .tpp-clients__track {
    animation: none;
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  .tpp-clients__track figure { scroll-snap-align: start; }
  .tpp-clients__marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ==========================================================================
   12. FAQ
   ========================================================================== */

.tpp-faq { display: flex; flex-direction: column; gap: 12px; }
.tpp-faq details {
  background: #fff; border: 1px solid var(--tpp-line);
  border-radius: 14px; padding: 18px 20px;
}
.tpp-faq summary {
  font-size: 1.03125rem; font-weight: 600; color: var(--tpp-navy);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tpp-faq summary::-webkit-details-marker { display: none; }
.tpp-faq summary::after {
  content: ''; flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--tpp-blue-text);
  border-bottom: 2px solid var(--tpp-blue-text);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.tpp-faq details[open] summary::after { transform: rotate(-135deg); }
.tpp-faq p { margin: 12px 0 0; font-size: 0.9375rem; line-height: 1.65; color: #4A5159; }

/* ==========================================================================
   13. Visit / NAP
   ========================================================================== */

.tpp-visit {
  background: var(--tpp-sky); border-radius: var(--tpp-radius-xl);
  padding: clamp(24px, 4vw, 44px);
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.tpp-visit__copy { flex: 999 1 420px; min-width: 0; }
.tpp-visit__cards { flex: 1 1 300px; min-width: 0; font-style: normal; display: flex; flex-direction: column; gap: 14px; }
.tpp-visit__card { background: #fff; border-radius: var(--tpp-radius); padding: 20px; }
.tpp-visit__card strong { display: block; font-size: 0.96875rem; margin-bottom: 5px; color: var(--tpp-navy); }
.tpp-visit__card span   { font-size: 0.875rem; color: #525960; line-height: 1.55; }

/* ==========================================================================
   14. Single puppy / breed page
   ========================================================================== */

.tpp-breadcrumb ol {
  list-style: none; margin: 0; padding: 16px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 0.84375rem; color: var(--tpp-muted);
}
.tpp-breadcrumb [aria-current='page'] { color: var(--tpp-ink); font-weight: 600; }

.tpp-breed { display: flex; flex-wrap: wrap; gap: 40px; padding-block: 24px clamp(32px, 5vw, 48px); }
.tpp-breed__media { flex: 999 1 460px; min-width: 0; }
.tpp-breed__media > img { width: 100%; height: auto; border-radius: 20px; margin-bottom: 12px; }
.tpp-breed__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tpp-breed__thumbs img { width: 100%; height: auto; border-radius: 12px; border: 2px solid #E3EDF3; }
.tpp-breed__buy { flex: 1 1 380px; min-width: 0; }

.tpp-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 6px 14px;
  border-radius: var(--tpp-pill); background: var(--tpp-green-soft);
  color: var(--tpp-green-dark); font-size: 0.78125rem; font-weight: 700;
}

.tpp-included {
  background: var(--tpp-sky-wash); border: 1px solid #D5E7F0;
  border-radius: 18px; padding: 22px; margin-bottom: 18px;
}
.tpp-included h2 { font-size: 1.0625rem; margin: 0 0 14px; }
.tpp-included ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.90625rem; color: var(--tpp-body); }
.tpp-included li { display: flex; gap: 9px; align-items: flex-start; }
.tpp-included svg { margin-top: 3px; flex-shrink: 0; }
.tpp-included .tpp-cta-row { flex-direction: column; }

.tpp-care { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tpp-care > div {
  background: var(--tpp-sky-wash); border: 1px solid #DCEBF3;
  border-radius: var(--tpp-radius); padding: 22px;
}
.tpp-care strong { display: block; font-size: 1.03125rem; margin-bottom: 7px; color: var(--tpp-navy); }
.tpp-care span   { font-size: 0.90625rem; line-height: 1.6; color: #4A5159; }

.tpp-cta-band {
  background: var(--tpp-navy); border-radius: 24px;
  padding: clamp(24px, 4vw, 42px);
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
}
.tpp-cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.375rem, 3vw, 1.875rem); }
.tpp-cta-band p  { color: #C3CEDC; margin: 0; }

/* ==========================================================================
   15. Content pages, posts, comments
   ========================================================================== */

.tpp-page-hero { background: linear-gradient(180deg, var(--tpp-sky) 0%, var(--tpp-sky-soft) 100%); padding-block: clamp(32px, 5vw, 56px); }
.tpp-page-hero h1 { margin: 0; }

.tpp-content { max-width: 46em; }
.tpp-content h2 { margin-top: 2rem; }
.tpp-content h3 { margin-top: 1.5rem; }
.tpp-content ul, .tpp-content ol { padding-left: 1.25rem; }
.tpp-content li { margin-bottom: 0.4rem; }
.tpp-content img { border-radius: var(--tpp-radius); margin-block: 1.5rem; }
.tpp-content blockquote {
  margin: 1.5rem 0; padding: 18px 22px;
  background: var(--tpp-sky-wash); border-radius: var(--tpp-radius);
  font-size: 1.0625rem;
}
.tpp-content table th, .tpp-content table td { padding: 10px 12px; border-bottom: 1px solid var(--tpp-line-soft); text-align: left; }

.tpp-postcard {
  background: #fff; border: 1px solid var(--tpp-line);
  border-radius: var(--tpp-radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.tpp-postcard img { width: 100%; height: auto; }
.tpp-postcard__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.tpp-postcard time { font-size: 0.8125rem; color: var(--tpp-muted); }

.tpp-pagination { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.tpp-pagination .page-numbers {
  min-width: 44px; min-height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--tpp-line); border-radius: var(--tpp-radius-sm);
  text-decoration: none; font-weight: 600;
}
.tpp-pagination .page-numbers.current { background: var(--tpp-navy); color: #fff; border-color: var(--tpp-navy); }

.tpp-form input[type='text'],
.tpp-form input[type='email'],
.tpp-form input[type='tel'],
.tpp-form input[type='search'],
.tpp-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--tpp-line); border-radius: var(--tpp-radius-sm);
  font: inherit; background: #fff;
}
.tpp-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9375rem; }

/* ==========================================================================
   16. Footer
   ========================================================================== */

.tpp-footer { background: var(--tpp-navy-deep); color: #BFC9D8; padding: 56px 0 26px; }
.tpp-footer__cols {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 34px; border-bottom: 1px solid #262856;
}
.tpp-footer h2, .tpp-footer h3 {
  margin: 0 0 14px; font-size: 0.84375rem; font-weight: 700;
  letter-spacing: 0.06em; color: #fff; text-transform: uppercase;
}
.tpp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tpp-footer a { color: #BFC9D8; text-decoration: none; font-size: 0.90625rem; }
.tpp-footer a:hover { color: #fff; text-decoration: underline; }
.tpp-footer__logo img { height: 56px; width: auto; margin-bottom: 16px; }
.tpp-footer__phone { color: #fff !important; font-weight: 600; font-size: 0.96875rem; display: block; margin-bottom: 4px; }
.tpp-footer__legal { margin: 22px 0 0; font-size: 0.8125rem; color: #8089A3; }
.tpp-footer__legal a { color: #8089A3; font-size: inherit; }

/* ==========================================================================
   17. Sticky mobile call bar
   ========================================================================== */

.tpp-stickybar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--tpp-line);
  padding: 12px var(--tpp-gutter);
  gap: 9px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.tpp-stickybar .tpp-btn { flex: 1 1 0; min-height: 48px; padding: 0 12px; font-size: 0.9375rem; }

/* ==========================================================================
   18. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .tpp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpp-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpp-care { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .tpp-nav-toggle { display: inline-flex; }
  .tpp-nav {
    display: none; order: 3; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding-bottom: 10px;
  }
  .tpp-nav.is-open { display: flex; }
  .tpp-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .tpp-nav li { border-bottom: 1px solid var(--tpp-line-soft); }
  .tpp-nav a { display: block; padding: 14px 4px; min-height: 44px; }
  .tpp-nav .sub-menu {
    display: flex; position: static; border: 0; box-shadow: none;
    padding: 0 0 8px 14px; min-width: 0;
  }
  .tpp-nav .tpp-btn { margin-top: 12px; }
  .tpp-breed__thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpp-reasons { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --tpp-gutter: 16px; }
  /* Keep the strip to one tidy line of type on a phone. */
  .tpp-topbar { font-size: 0.75rem; }
  .tpp-topbar__inner { padding-block: 7px; }
  .tpp-grid--2, .tpp-grid--3, .tpp-grid--4 { grid-template-columns: 1fr; }
  .tpp-footer__cols { grid-template-columns: 1fr; }
  .tpp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tpp-facts > div { padding: 10px 12px; }
  .tpp-cta-row .tpp-btn { width: 100%; }
  .tpp-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; }
  .tpp-gallery img { border-radius: 9px; }

  /* Call and WhatsApp share one row; Read more sits full width beneath. */
  .tpp-card__actions { gap: 8px; }
  .tpp-card__actions .tpp-btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; }
  .tpp-card__actions .tpp-btn--more { flex: 1 1 100%; }
  .tpp-card__media img { border-radius: 0; }
  .tpp-stickybar { display: flex; }
  /* Only reserve space at the bottom when the bar is actually printed. */
  body.tpp-has-stickybar { padding-bottom: 76px; }
  .tpp-hero__badge { left: 10px; bottom: 10px; padding: 10px 12px; }
  .tpp-cta-band { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   19. Print and motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .tpp-topbar, .tpp-header, .tpp-stickybar, .tpp-footer, .tpp-cta-row { display: none !important; }
  body { padding-bottom: 0; }
}
