/* ============================================================
   PawLogic — main stylesheet
   Pet tech · pawlogictech.com
   Mobile-first. Breakpoints: 640px, 960px, 1200px.
   Fonts (Sora / Inter) are enqueued separately in functions.php.
   ============================================================ */

/* ---------- 1. Tokens & reset ---------- */
:root {
  --navy: #0B1B33;
  --navy-2: #14305A;
  --teal: #0EA5A4;
  --teal-dark: #0B7E7D;
  --teal-light: #7FD9D8;
  --orange: #F97316;
  --orange-dark: #DE5F0A;
  --cream: #FAFAF7;
  --ink: #1E293B;
  --muted: #5B6B82;
  --line: #E6EAF0;
  --white: #fff;
  --red: #DC2626;
  --green: #15803D;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(11, 27, 51, .06), 0 10px 30px rgba(11, 27, 51, .08);
  --shadow-md: 0 4px 14px rgba(11, 27, 51, .08), 0 24px 60px rgba(11, 27, 51, .14);
  --container: 1180px;
  --gutter: 24px;
  --font-head: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*,
*::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: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}

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

a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--teal); }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--teal); color: var(--white); }

/* ---------- 2. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }

.section--compact { padding: 48px 0; }
@media (min-width: 960px) { .section--compact { padding: 64px 0; } }

.section--dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: var(--white); }
.section--dark .lead { color: rgba(255, 255, 255, .82); }

.section--cream { background: var(--cream); }

.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--teal-light); }

.lead { font-size: 1.2rem; line-height: 1.65; color: var(--muted); }

.center { text-align: center; }

/* Grids: 1 col mobile -> 2 at 640 -> 3/4 at 960 */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (min-width: 960px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2, .grid-3, .grid-4 { gap: 32px; }
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--teal); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--accent { background: var(--orange); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--accent:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: var(--white); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- 4. Header ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(11, 27, 51, .10);
  background: rgba(250, 250, 247, .96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding .3s ease;
}
.site-header.is-scrolled .header-inner { padding-top: 12px; padding-bottom: 12px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--navy); }
.brand-mark { width: 32px; height: 32px; color: var(--teal); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.brand-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  line-height: 1.3;
  display: none;
}
@media (min-width: 1200px) { .brand-tag { display: block; } }

/* Nav toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 960px) { .nav-toggle { display: none; } }

.nav-primary { display: none; }
@media (min-width: 960px) { .nav-primary { display: inline-flex; align-items: center; gap: 32px; } }

@media (max-width: 959px) {
  .nav-primary {
    position: fixed;
    top: var(--header-height, 76px);
    left: 0;
    right: 0;
    z-index: 49;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(11, 27, 51, .12);
    padding: 12px var(--gutter) 20px;
  }
  .nav-primary.is-open { display: block; }
}

#primary-menu.menu, .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (min-width: 960px) {
  #primary-menu.menu, .menu { flex-direction: row; align-items: center; gap: 28px; }
}
#primary-menu.menu a, .menu a {
  display: block;
  padding: 10px 4px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
@media (min-width: 960px) { #primary-menu.menu a, .menu a { padding: 6px 0; } }
#primary-menu.menu a:hover, .menu a:hover { color: var(--teal-dark); }
#primary-menu.menu .current-menu-item > a,
#primary-menu.menu .current_page_item > a,
.menu .current-menu-item > a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav-cta { display: none; }
@media (min-width: 960px) {
  .nav-cta { display: inline-flex; }
  .nav-primary .nav-cta { margin-left: 4px; }
}
@media (max-width: 959px) {
  .nav-primary.is-open .nav-cta { display: inline-flex; margin-top: 12px; }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--teal-dark) 130%);
  color: var(--white);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(14, 165, 164, .35) 0%, rgba(14, 165, 164, 0) 70%);
}
.hero::after {
  width: 480px; height: 480px;
  bottom: -220px; left: -140px;
  background: radial-gradient(circle, rgba(249, 115, 22, .28) 0%, rgba(249, 115, 22, 0) 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 64px 0;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 56px; padding: 96px 0 80px; }
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-sub { font-size: 1.15rem; line-height: 1.7; color: rgba(255, 255, 255, .85); margin-bottom: 32px; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-media { position: relative; z-index: 1; }
.media-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--teal) 0%, var(--navy-2) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .18);
}
.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 36px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .85);
}
.trust-item svg { width: 18px; height: 18px; color: var(--teal-light); flex: none; }

/* Inner page hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, var(--teal-dark) 140%);
  color: var(--white);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  top: -200px; right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 164, .3) 0%, rgba(14, 165, 164, 0) 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.page-hero-inner h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.page-hero-inner .lead { color: rgba(255, 255, 255, .82); }
.breadcrumbs { font-size: .85rem; color: rgba(255, 255, 255, .65); margin-bottom: 16px; }
.breadcrumbs a { color: rgba(255, 255, 255, .85); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs .sep { margin: 0 8px; opacity: .6; }

/* ---------- 6. Marquee ---------- */
.marquee {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 7. Stats ---------- */
.stats {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 80%, var(--teal-dark) 150%);
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
@media (min-width: 960px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--orange);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-label { color: rgba(255, 255, 255, .75); font-size: .95rem; }

/* ---------- 8. Cards & features ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(14, 165, 164, .12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; color: var(--teal-dark); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }

/* ---------- 9. Products ---------- */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, var(--teal) 0%, var(--navy-2) 100%);
  overflow: hidden;
}
.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-body h3 { margin-bottom: 0; }
.product-body p { color: var(--muted); margin-bottom: 0; }
.product-tag {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.specs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.spec-chip {
  font-size: .82rem;
  font-weight: 600;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--ink);
}

.product-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0;
}
@media (min-width: 960px) { .product-block { grid-template-columns: 1fr 1fr; gap: 64px; } }
@media (min-width: 960px) {
  .product-block--reverse .product-block__media { order: 2; }
  .product-block--reverse .product-block__content { order: 1; }
}

.check-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 38px;
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .95rem;
}
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
}
.compare-table tbody tr:nth-child(even) { background: var(--cream); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .tick { color: var(--teal-dark); font-weight: 800; font-size: 1.1rem; }

/* ---------- 10. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 32px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; max-width: 380px; margin: 0 auto; }
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, .35);
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* ---------- 11. App section ---------- */
.app-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) { .app-split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.phone {
  width: 280px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: var(--navy);
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  background: var(--cream);
  border-radius: 28px;
  overflow: hidden;
  padding: 44px 18px 18px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone-screen .app-greet {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}
.app-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-row .app-dot { width: 34px; height: 34px; border-radius: 10px; background: rgba(14,165,164,.15); flex: none; }
.app-row .app-bars { flex: 1; display: grid; gap: 6px; }
.app-row .app-bars i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}
.app-row .app-bars i:last-child { width: 60%; }
.app-row .app-bars i:first-child { width: 85%; background: #d8dee8; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  padding: 10px 18px;
  text-decoration: none;
  line-height: 1.25;
  transition: transform .25s ease, box-shadow .25s ease;
}
.store-badge:hover { color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: .7rem; opacity: .75; }
.store-badge strong { display: block; font-family: var(--font-head); font-size: 1rem; font-weight: 700; }

/* ---------- 12. Testimonials ---------- */
.t-slider { position: relative; }
.t-viewport { overflow: hidden; margin: 0 -12px; }
.t-track {
  display: flex;
  transition: transform .5s ease;
}
.t-slide { min-width: 100%; padding: 0 12px; }
.t-card { height: 100%; }
.t-stars { color: var(--orange); letter-spacing: 4px; font-size: 1.05rem; margin-bottom: 16px; }
.t-text { font-size: 1.05rem; line-height: 1.7; font-style: italic; color: var(--ink); margin-bottom: 20px; }
.t-author { font-weight: 600; color: var(--navy); }
.t-author small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.t-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.t-prev, .t-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  padding: 0;
}
.t-prev:hover, .t-next:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); }
.t-prev svg, .t-next svg { width: 20px; height: 20px; }
.t-dots { display: flex; gap: 8px; }
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: width .3s ease, background .3s ease;
}
.t-dot.is-active { width: 28px; background: var(--orange); }

/* ---------- 13. FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.faq-item.is-open { box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(14, 165, 164, .12);
  color: var(--teal-dark);
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, background .3s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--teal); color: var(--white); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 20px 20px; color: var(--muted); margin: 0; }

/* ---------- 14. Newsletter ---------- */
.newsletter {
  background: linear-gradient(140deg, var(--teal-dark) 0%, var(--teal) 120%);
  color: var(--white);
}
.newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.newsletter h2 { color: var(--white); margin-bottom: 8px; }
.newsletter p { color: rgba(255, 255, 255, .85); margin-bottom: 0; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; width: 100%; max-width: 480px; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
}
.newsletter-form input[type="email"]:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.newsletter-note { font-size: .85rem; color: rgba(255, 255, 255, .75); margin-top: 12px; width: 100%; }

/* ---------- 15. CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; }
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 27, 51, .94) 0%, rgba(20, 48, 90, .82) 55%, rgba(11, 126, 125, .65) 130%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  padding: 96px 24px;
  color: var(--white);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-inner h2 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.cta-inner p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; margin-bottom: 32px; }
.cta-inner .hero-actions { justify-content: center; }

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand .brand:hover { color: var(--white); }
.footer-blurb { color: rgba(255, 255, 255, .7); font-size: .95rem; max-width: 26rem; }
.footer-mail { color: var(--teal-light); font-weight: 600; }
.footer-mail:hover { color: var(--white); }
.footer-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-menu a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .95rem; transition: color .2s ease; }
.footer-menu a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}
.footer-bottom a { color: rgba(255, 255, 255, .75); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- 17. Forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; } }

.info-card { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.info-card:last-child { margin-bottom: 0; }
.info-card .feature-icon { margin-bottom: 0; flex: none; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.info-card p { margin-bottom: 0; font-size: .95rem; }

.paw-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; gap: 20px; } }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 8px; }
.form-field label .req { color: var(--orange-dark); }
.paw-form input[type="text"],
.paw-form input[type="email"],
.paw-form input[type="tel"],
.paw-form input[type="url"],
.paw-form select,
.paw-form textarea,
.newsletter-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.paw-form textarea { min-height: 140px; resize: vertical; }
.paw-form input:focus, .paw-form select:focus, .paw-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 165, 164, .15);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--red); }
.field-error { display: none; color: var(--red); font-size: .85rem; margin-top: 6px; }
.form-field.has-error .field-error { display: block; }

.form-alert { border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; font-weight: 500; }
.form-alert--success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.form-alert--error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* ---------- 18. Blog ---------- */
.posts-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .posts-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--teal) 0%, var(--navy-2) 100%);
  overflow: hidden;
}
.post-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.post-meta a { color: var(--muted); }
.post-title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.35; margin-bottom: 0; }
.post-title a { color: var(--navy); text-decoration: none; }
.post-title a:hover { color: var(--teal-dark); }
.post-body p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.read-more { color: var(--teal-dark); font-weight: 600; text-decoration: none; margin-top: auto; padding-top: 8px; }
.read-more:hover { color: var(--teal); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}
.pagination .page-numbers:hover { border-color: var(--teal); color: var(--teal-dark); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }

.article-head { text-align: center; max-width: 800px; margin: 0 auto 40px; }
.article-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
.article-meta { font-size: .9rem; color: var(--muted); display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.article-media { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow-sm); }
.article-body { max-width: 800px; margin: 0 auto; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; font-weight: 600; color: var(--navy); max-width: 45%; }
.post-nav a:hover { color: var(--teal-dark); }
.post-nav .nav-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; font-weight: 600; }

/* ---------- 19. Prose ---------- */
.prose { max-width: 800px; font-size: 1.05rem; line-height: 1.75; color: var(--ink); }
.prose h2 { font-size: 1.7rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p { margin-bottom: 1.2em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--teal-dark); }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
.prose th { background: var(--navy); color: var(--white); font-family: var(--font-head); }
.prose tbody tr:nth-child(even) { background: var(--cream); }
.prose blockquote {
  border-left: 4px solid var(--teal);
  margin: 1.5em 0;
  padding: 12px 24px;
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--muted);
}

/* ---------- 20. Timeline ---------- */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.tl-item { position: relative; padding: 0 0 40px 48px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
}
.tl-year { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--teal-dark); margin-bottom: 6px; }
.tl-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tl-body p { color: var(--muted); margin-bottom: 0; }

/* ---------- 21. Misc ---------- */
.value-card { text-align: left; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}
.chip svg { width: 16px; height: 16px; color: var(--teal-dark); }

.service-card { display: flex; flex-direction: column; }
.service-card .feature-icon { margin-bottom: 20px; }
.service-card h3 { font-size: 1.2rem; }
.service-card .btn { margin-top: auto; align-self: flex-start; }

.process { display: grid; grid-template-columns: 1fr; gap: 24px; counter-reset: proc; }
@media (min-width: 960px) { .process { grid-template-columns: repeat(3, 1fr); } }
.process .step-num { background: linear-gradient(140deg, var(--teal) 0%, var(--teal-dark) 100%); box-shadow: 0 10px 24px rgba(14, 165, 164, .35); }

.error-404 { text-align: center; padding: 96px 0; }
.error-code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(6rem, 18vw, 10rem);
  line-height: 1;
  background: linear-gradient(140deg, var(--teal) 0%, var(--navy-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.error-404 h1 { margin-bottom: 12px; }
.error-404 p { color: var(--muted); max-width: 32rem; margin: 0 auto 28px; }

.search-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.search-form input[type="search"] {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 1rem;
  font-family: var(--font-body);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 165, 164, .15); }

/* ---------- 22. Reveal, motion, contrast ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  html { scroll-behavior: auto; }
}

/* Contrast notes (WCAG AA):
   - Body text #1E293B on #FAFAF7 ≈ 13.5:1
   - Secondary text #5B6B82 on #FAFAF7 ≈ 4.6:1 (secondary text only)
   - White text on navy gradient ≥ 12:1
   - Teal-dark #0B7E7D on white ≈ 4.9:1 for links
*/

/* ---------- Journal cards, article typography, contact form ---------- */
.container--narrow { max-width: 780px; }

.page-article { color: var(--ink); line-height: 1.75; }
.page-article > *:first-child { margin-top: 0; }
.page-article h2 { margin-top: 2.2em; }
.page-article h3 { margin-top: 1.8em; }
.page-article ul, .page-article ol { margin-bottom: 1.2em; padding-left: 1.4em; }
.page-article li { margin-bottom: .5em; }
.page-article table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.page-article th, .page-article td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.page-article th { background: var(--cream); font-weight: 600; }
.page-article a { color: var(--teal-dark, #0B7E7D); }

.post-card-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--cream); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card .post-card-date { font-size: .85rem; color: var(--muted); margin: 20px 24px 8px; }
.post-card .post-card-title { font-size: 1.15rem; margin: 0 24px 12px; }
.post-card .post-card-title a { color: inherit; text-decoration: none; }
.post-card > p { margin: 0 24px 16px; color: var(--muted); }
.post-card > .btn { margin: 0 24px 24px; align-self: flex-start; }

.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-email { margin-top: 24px; font-weight: 500; }
.contact-email a { color: var(--teal-dark, #0B7E7D); }

/* ---------- 23. Template class supplements ---------- */
.site-main { display: block; }

/* Anchor offset beneath the sticky header */
section[id] { scroll-margin-top: 96px; }

/* Hero copy column */
.hero-copy { min-width: 0; }

/* Footer */
.footer-col { min-width: 0; }
.footer-copy { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.brand--small .brand-mark { width: 28px; height: 28px; }
.brand--small .brand-word { font-size: 1.2rem; }
.brand--small .brand-tag { font-size: .65rem; }

/* Blog */
.post-excerpt { color: var(--muted); margin: 0 0 18px; }
.post-nav-prev, .post-nav-next { flex: 1 1 0; min-width: 0; }
.post-nav-next { text-align: right; }

/* Visually hidden but available to assistive technology */
.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Newsletter redesign: two-column with form card ---------- */
.newsletter-inner {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 960px) {
  .newsletter-inner { grid-template-columns: 1.05fr .95fr; gap: 64px; }
}
.newsletter .eyebrow { color: rgba(255, 255, 255, .9); }
.newsletter-copy h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.newsletter-copy > p { color: rgba(255, 255, 255, .85); margin-bottom: 0; }
.newsletter-note { font-size: .85rem; color: rgba(255, 255, 255, .75); margin-top: 16px; }
.newsletter-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 60px rgba(11, 27, 51, .28);
}
.newsletter-card .newsletter-form {
  display: grid;
  gap: 0;
  max-width: none;
}
.newsletter-card .form-field { margin-bottom: 16px; }
.newsletter-card .form-field label { color: var(--navy); }
.newsletter-card .newsletter-form input[type="text"],
.newsletter-card .newsletter-form input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
}
.newsletter-card .newsletter-form input[type="text"]:focus,
.newsletter-card .newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 165, 164, .15);
}
.newsletter-card .form-alert { margin: 0 0 16px; }
.btn--block { width: 100%; }

/* Phone mockup: real app screenshot instead of placeholder bars. */
.phone-screen--photo { padding: 0; }
.phone-screen--photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 26px;
  display: block;
}

/* Keep stat labels from orphaning a single word on its own line. */
.stat-label { text-wrap: balance; }

/* Newsletter + footer signup confirmation messages on dark backgrounds. */
.newsletter .form-alert,
.site-footer .form-alert {
  width: 100%;
  margin: 4px 0 8px;
  font-size: .95rem;
}
