/* =========================================================
   DOG MODES — Design System
   Colors, type, and components derived from the approved
   logo sheet. Do not introduce new brand colors or fonts
   outside this system without updating the logo to match.
   ========================================================= */

:root {
  /* Brand colors — from approved logo sheet */
  --black: #111111;
  --cream: #F6F0E7;
  --cream-soft: #EFE7D8;
  --ice-blue: #55A8D8;
  --ice-blue-dark: #3D8CBB;
  --pink: #E968A3;

  /* Functional aliases */
  --bg: var(--cream);
  --bg-alt: var(--cream-soft);
  --ink: var(--black);
  --accent: var(--ice-blue);
  --accent-dark: var(--ice-blue-dark);
  --highlight: var(--pink);

  --success: #2E7D4F;
  --error: #C23B3B;

  /* Type */
  --font-head: 'Archivo Black', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max-w: 1200px;

  /* Radius / shadow */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px rgba(17, 17, 17, 0.12);

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: clamp(3rem, 7vw, 6rem) 0; }
:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Type scale ---------- */
h1, .h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2, .h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3, .h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--accent-dark);
  margin-bottom: 0.75em;
  display: inline-block;
}
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.on-dark { color: var(--cream); }
.on-dark .eyebrow { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  padding: 1em 1.75em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--cream); }
.btn-secondary {
  background: var(--accent);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.on-dark .btn-outline { color: var(--cream); }
.on-dark .btn-outline:hover { background: var(--cream); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--pink);
  color: var(--ink);
  padding: 0.4em 0.8em;
  border-radius: 999px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  height: var(--header-h);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  text-transform: uppercase;
  flex-shrink: 0;
}
.logo-img { height: 44px; width: auto; display: block; }
.logo-text .dot { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav ul {
  display: flex;
  gap: 1.75rem;
}
.main-nav a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem var(--gutter) 2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav ul li { border-bottom: 1px solid rgba(17,17,17,0.12); }
  .main-nav a {
    display: block;
    padding: 1.1em 0.2em;
    font-size: 1.1rem;
  }
  .nav-cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.5rem;
  }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--cream);
  background: var(--ink);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0.78) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(4rem, 12vw, 8rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  max-width: 760px;
}
.hero-inner .lede { color: var(--cream-soft); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}
.hero.compact .hero-inner {
  padding-top: clamp(3.5rem, 9vw, 6rem);
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
  max-width: 820px;
}
.hero-placeholder-note {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: var(--cream-soft);
  border: 1px dashed rgba(246,240,231,0.5);
  padding: 0.5em 1em;
  border-radius: 8px;
  display: inline-block;
  margin-top: 1.5rem;
}

/* ---------- Strip ---------- */
.mode-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 1.4rem 0;
  overflow: hidden;
}
.mode-strip .track {
  display: flex;
  gap: 2.5rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1rem;
  white-space: nowrap;
  animation: scroll-strip 28s linear infinite;
}
.mode-strip .track span { color: var(--accent); }
@keyframes scroll-strip {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mode-strip .track { animation: none; flex-wrap: wrap; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.card {
  background: #fff;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .badge { align-self: flex-start; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card.dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ---------- Section headers ---------- */
.section-head {
  max-width: 700px;
  margin-bottom: 2.5rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step {
  position: relative;
  padding-top: 3.5rem;
}
.step .step-num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--accent);
  -webkit-text-stroke: 2px var(--ink);
}
.step h3 { margin-bottom: 0.4em; }

/* ---------- Photo grid / gallery ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.photo-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2.5px solid var(--ink);
  background: var(--bg-alt);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(17,17,17,0.85), rgba(17,17,17,0));
  color: var(--cream);
  padding: 2.5rem 1rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  text-transform: none;
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--ink);
  text-align: center;
  padding: 1rem;
  background:
    repeating-linear-gradient(45deg, rgba(17,17,17,0.06) 0 10px, transparent 10px 20px);
}
.photo-placeholder .ph-label {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  border: 1.5px dashed var(--ink);
  padding: 0.4em 0.8em;
  border-radius: 8px;
  background: var(--cream);
}

/* ---------- Mode tags grid ---------- */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.tag-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.05rem;
  transition: background 0.15s ease, transform 0.15s ease;
  border: 2.5px solid var(--ink);
}
.tag-card:nth-child(3n+2) { background: var(--accent); color: var(--ink); border-color: var(--ink); }
.tag-card:nth-child(3n+3) { background: var(--cream); color: var(--ink); }
.tag-card:hover { transform: translateY(-3px); background: var(--pink); color: var(--ink); }
.tag-card svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  text-align: center;
}
.cta-band .section-head { margin: 0 auto 1.75rem; }
.cta-band.pink { background: var(--pink); }
.cta-band.dark { background: var(--ink); color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246,240,231,0.2);
}
.footer-brand .logo-link { color: var(--cream); margin-bottom: 0.75rem; }
.footer-tagline { color: var(--cream-soft); margin-bottom: 0.25rem; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col .muted { color: rgba(246,240,231,0.55); font-size: 0.9rem; }
.social-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-row a {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(246,240,231,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(246,240,231,0.6);
}
.footer-bottom ul { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.field .hint { font-size: 0.82rem; color: #5b5b5b; font-family: var(--font-body); text-transform: none; font-weight: 400; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--accent-dark);
  outline-offset: 1px;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}
.field-error {
  font-size: 0.82rem;
  color: var(--error);
  font-family: var(--font-body);
  text-transform: none;
  display: none;
}
.field-error.is-visible { display: block; }
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.checkbox-field input { width: 20px; height: 20px; margin-top: 0.2em; flex-shrink: 0; }
.checkbox-field label { font-family: var(--font-body); text-transform: none; font-size: 0.92rem; font-weight: 400; }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.radio-pill {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.6em 1.1em;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
}
.radio-pill input { accent-color: var(--ink); }
.radio-pill:has(input:checked) { background: var(--accent); }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
}
.checkbox-tile {
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.75em 1em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.92rem;
  cursor: pointer;
}
.checkbox-tile:has(input:checked) { background: var(--accent); }
.form-note {
  font-size: 0.85rem;
  color: #5b5b5b;
  margin-top: 1.25rem;
}
.form-status {
  margin-top: 1rem;
  padding: 0.9em 1.1em;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(46,125,79,0.12); color: var(--success); border: 1.5px solid var(--success); }
.form-status.error { background: rgba(194,59,59,0.1); color: var(--error); border: 1.5px solid var(--error); }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--cream);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1.15em 1.25em;
  font-family: var(--font-head);
  font-size: 1.02rem;
  text-transform: none;
}
.faq-question .icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
  font-family: var(--font-body);
  font-weight: 700;
}
.faq-question[aria-expanded="true"] .icon { transform: rotate(45deg); background: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1.25em;
}
.faq-answer-inner { padding-bottom: 1.25em; color: #333; }
.faq-item.is-open .faq-answer { max-height: 600px; }

/* ---------- Callout / note boxes ---------- */
.callout {
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  background: var(--cream-soft);
  font-size: 0.95rem;
}
.callout strong { font-family: var(--font-head); text-transform: uppercase; font-size: 0.8rem; display: block; margin-bottom: 0.5em; letter-spacing: 0.03em; }
.callout.placeholder {
  background: rgba(85,168,216,0.1);
  border-color: var(--accent-dark);
  color: #2b2b2b;
}
.callout.placeholder strong { color: var(--accent-dark); }

/* ---------- Editable-field marker ---------- */
.editable {
  background: rgba(233,104,163,0.15);
  border: 1.5px dashed var(--pink);
  border-radius: 6px;
  padding: 0.05em 0.5em;
  font-weight: 600;
}

/* ---------- Two-col layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 850px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}
.split-media img,
.split-media .photo-card {
  border-radius: var(--radius);
  border: 2.5px solid var(--ink);
}

/* ---------- Alt background sections ---------- */
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.center-col { max-width: 760px; margin: 0 auto; }
.small { font-size: 0.88rem; }
.muted { color: #5b5b5b; }
.divider { height: 2px; background: var(--ink); opacity: 0.1; margin: 3rem 0; }
