/* =========================================================
   Canine Connexion — single stylesheet
   Edit tokens in :root to retheme the whole site.
   ========================================================= */

:root {
  /* Brand palette */
  --sage-700: #4f7560;
  --sage-500: #6e9e84;
  --sage-300: #a9c5b4;
  --sage-100: #e6efe8;
  --cream:    #faf6ef;
  --cream-dk: #f1ead9;
  --stone-900:#1f1f1d;
  --stone-700:#3a3a36;
  --stone-500:#5e5e58;
  --stone-400:#8a8a82;
  --stone-200:#d8d6cf;
  --accent:   #d98e3a;
  --accent-dk:#b97323;
  --white:    #ffffff;

  /* Type */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale (8px base) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  /* Layout */
  --container: 1100px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(31,31,29,.06), 0 2px 6px rgba(31,31,29,.05);
  --shadow-md: 0 6px 18px rgba(31,31,29,.10);
  --shadow-lg: 0 18px 40px rgba(31,31,29,.16);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--stone-700);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
img { border-radius: var(--radius-sm); }
/* SVGs always use their explicit width/height — never inherit `max-width:100%`,
   which would let an unsized icon expand to fill its parent. */
svg { display: block; max-width: none; height: auto; }
a { color: var(--sage-700); text-underline-offset: 3px; }
a:hover { color: var(--sage-500); }
:focus-visible {
  outline: 3px solid var(--sage-500);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--sage-300); color: var(--stone-900); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--stone-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-2);
}
h1 { font-size: clamp(2.1rem, 4.5vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.5vw + 1rem, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.125rem; letter-spacing: 0; }
p { margin: 0 0 var(--s-2); }
.lead { font-size: 1.2rem; color: var(--stone-500); }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--stone-200); margin: var(--s-5) 0; }
blockquote {
  margin: 0;
  padding: var(--s-3);
  border-left: 4px solid var(--sage-500);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--stone-700);
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-700);
  margin-bottom: var(--s-1);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
}
.section {
  padding: var(--s-6) 0;
}
.section--tight { padding: var(--s-5) 0; }
.section--sage { background: var(--sage-100); }
.section--cream-dk { background: var(--cream-dk); }
.section--dark { background: var(--stone-900); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }

.grid { display: grid; gap: var(--s-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--split { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--s-5); }
@media (max-width: 800px) {
  .grid--2, .grid--3, .grid--split { grid-template-columns: 1fr; gap: var(--s-3); }
}

.center { text-align: center; }
.muted { color: var(--stone-500); }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--stone-900); color: var(--cream);
  padding: var(--s-1) var(--s-2);
  z-index: 999;
}
.skip-link:focus { left: var(--s-2); top: var(--s-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary {
  background: var(--sage-700);
  color: var(--white);
}
.btn--primary:hover { background: var(--sage-500); color: var(--white); }
.btn--secondary {
  background: transparent;
  color: var(--sage-700);
  border-color: var(--sage-700);
}
.btn--secondary:hover { background: var(--sage-700); color: var(--white); }
.btn--accent {
  background: var(--accent);
  color: var(--white);
}
.btn--accent:hover { background: var(--accent-dk); }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header & nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,246,239,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--stone-200);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem var(--s-3);
  max-width: var(--container);
  margin: 0 auto;
  gap: var(--s-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--stone-900);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand img { height: 60px; width: auto; border-radius: 0; }
.nav { display: flex; align-items: center; gap: var(--s-3); }
.nav a {
  color: var(--stone-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--sage-700);
  border-bottom-color: var(--sage-500);
}
.nav .btn { margin-left: var(--s-1); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--stone-900);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--stone-200);
    padding: var(--s-2);
    transform: translateY(-110%);
    transition: transform .25s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--stone-200);
    border-radius: 0;
  }
  .nav a:last-of-type { border-bottom: 0; }
  .nav .btn {
    margin: var(--s-1) 0 0;
    justify-content: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,31,29,.25) 0%, rgba(31,31,29,.55) 70%, rgba(31,31,29,.7) 100%);
  z-index: -1;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-7) var(--s-3);
  width: 100%;
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.2rem; max-width: 52ch; }
.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-top: var(--s-3);
}

/* Compact page hero (used on inner pages) */
.page-hero {
  background: var(--sage-100);
  padding: var(--s-6) 0 var(--s-5);
  border-bottom: 1px solid var(--sage-300);
}
.page-hero h1 { margin-bottom: var(--s-2); }
.page-hero p { max-width: 60ch; color: var(--stone-700); font-size: 1.15rem; margin: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}
.card__body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  flex: 1;
}
.card__body h3 { margin: 0; font-size: 1.25rem; }
.card__body p { margin: 0; color: var(--stone-500); }
.card__body .btn { margin-top: auto; align-self: flex-start; }

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-3);
  text-align: center;
}
.feature__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--sage-100);
  color: var(--sage-700);
  border-radius: 50%;
  margin: 0 auto;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; }

/* ---------- Course pills ---------- */
.pills {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center;
}
.pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--sage-300);
  border-radius: 999px;
  color: var(--sage-700);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ---------- Split (image + text) ---------- */
.split img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.split--landscape img { aspect-ratio: 4 / 3; }

/* ---------- Callout ---------- */
.callout {
  background: var(--white);
  border: 1px solid var(--sage-300);
  border-radius: var(--radius);
  padding: var(--s-3);
}
.callout h3 { margin-top: 0; }
.callout ul { margin: 0; padding-left: 1.1rem; }
.callout li + li { margin-top: 0.3rem; }

/* ---------- Final CTA band ---------- */
.cta-band {
  background: var(--sage-700);
  color: var(--white);
  padding: var(--s-6) var(--s-3);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto var(--s-3); }
.cta-band .btn--primary { background: var(--white); color: var(--sage-700); }
.cta-band .btn--primary:hover { background: var(--cream); }

/* ---------- Form ---------- */
.form { display: grid; gap: var(--s-2); }
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--stone-700);
  margin-bottom: 0.3rem;
}
.form .req { color: var(--accent-dk); }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--stone-900);
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--sage-500);
  box-shadow: 0 0 0 3px var(--sage-100);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
@media (max-width: 600px) {
  .form .row-2 { grid-template-columns: 1fr; }
}
.form .hp { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--stone-900);
  color: var(--cream);
  padding: var(--s-6) 0 var(--s-3);
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--sage-300); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-3); }
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.footer-brand { display: flex; align-items: flex-start; gap: 0.8rem; }
.footer-brand img {
  height: 56px; width: auto;
  background: var(--cream);
  padding: 4px;
  border-radius: var(--radius-sm);
}
.footer-brand p {
  margin: 0.4rem 0 0;
  color: rgba(250,246,239,.75);
  font-size: 0.95rem;
  max-width: 32ch;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-badges {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
  align-items: center;
}
.footer-badges img {
  background: var(--white);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  height: 44px;
  width: auto;
}
.socials {
  display: flex; gap: 0.6rem; margin-top: var(--s-2);
}
.socials a {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(250,246,239,.25);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { background: var(--sage-700); border-color: var(--sage-700); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.legal {
  border-top: 1px solid rgba(250,246,239,.15);
  margin-top: var(--s-4);
  padding-top: var(--s-2);
  font-size: 0.86rem;
  color: rgba(250,246,239,.6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-1);
}

/* ---------- Misc ---------- */
.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-2);
  counter-reset: step;
}
.process-list li {
  position: relative;
  padding-left: 3rem;
  counter-increment: step;
}
.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.1rem;
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  background: var(--sage-700);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.process-list h4 { margin: 0 0 0.2rem; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
@media (max-width: 800px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- Inline social buttons ---------- */
.social-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
  background: var(--stone-700);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.social-btn:hover,
.social-btn:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  filter: brightness(1.06);
}
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.social-btn--facebook  { background: #1877F2; }
.social-btn--instagram {
  background: #d62976;
  background-image: linear-gradient(45deg, #fa7e1e, #d62976 45%, #962fbf 75%, #4f5bd5);
}
.social-btn--whatsapp  { background: #25D366; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: var(--s-3);
  right: var(--s-3);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.20), 0 2px 6px rgba(0,0,0,.12);
  z-index: 80;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  text-decoration: none;
}
.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  background: #1ebe5b;
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0,0,0,.24), 0 3px 8px rgba(0,0,0,.14);
}
.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
@media (max-width: 600px) {
  .whatsapp-fab {
    bottom: var(--s-2);
    right: var(--s-2);
    width: 54px;
    height: 54px;
  }
  .whatsapp-fab svg { width: 28px; height: 28px; }
}
@media print {
  .whatsapp-fab { display: none; }
}

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