/* =========================================================
   Kaylee's Dog Walking Service — brand system
   lake teal   #175E63
   deep pine   #0E2E2B
   gold        #DFA542
   mist        #F1F4EF
   baby blue   #A9D3E8
   ========================================================= */

:root {
  --teal: #175E63;
  --pine: #0E2E2B;
  --gold: #DFA542;
  --mist: #F1F4EF;
  --sky: #A9D3E8;
  --white: #FFFFFF;
  --terracotta: #CD7A4E;
  --honey: #EFAE6B;
  /* Darker gold for text on light backgrounds — --gold itself is ~2:1
     contrast on white/mist and fails WCAG AA; this passes at ~5:1. */
  --gold-ink: #8A6420;
  --font-display: "Bricolage Grotesque", "Outfit", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-hand: "Nothing You Could Do", cursive;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 6px 24px rgba(14, 46, 43, 0.10);
  --shadow-lift: 0 16px 40px rgba(14, 46, 43, 0.16);
  --shadow-warm: 0 18px 44px rgba(205, 122, 78, 0.22);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--pine);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  animation: page-in 0.5s ease both;
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--pine);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--teal); }

img { max-width: 100%; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.hand {
  font-family: var(--font-hand);
  color: var(--teal);
  font-size: 1.25em;
}

.gold-hand {
  font-family: var(--font-hand);
  color: var(--gold);
}

/* ---------- header / nav ---------- */

.site-header {
  background: rgba(241, 244, 239, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(169, 211, 232, 0.6);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative; /* anchors the menu / profile dropdowns */
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pine);
  min-width: 0; /* lets the text column shrink/ellipsis instead of forcing overflow */
  flex: 1 1 auto;
}

.brand img { width: 40px; height: 40px; flex: none; transition: transform 0.4s var(--ease-pop); }

.brand:hover img { transform: rotate(-10deg) scale(1.08); }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-name small {
  display: block;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--teal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- header: menu + profile, top right ---------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* The persistent "Book a walk" button only fits alongside the menu/profile
   icons once there's enough width — below that it lives in the menu
   dropdown instead (see .site-nav .nav-cta-mobile), so the brand name
   always has room to breathe instead of truncating to "Ka…". */
.header-actions > a.nav-cta { display: none; }
@media (min-width: 640px) {
  .header-actions > a.nav-cta { display: inline-block; }
  .site-nav .nav-cta-mobile { display: none; }
}

a.nav-cta {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.25s var(--ease-out), transform 0.3s var(--ease-pop);
  white-space: nowrap;
}

a.nav-cta:hover { background: var(--pine); }
a.nav-cta:active { transform: scale(0.97); }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--sky);
  background: var(--white);
  color: var(--pine);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-pop);
}

.icon-btn:hover { border-color: var(--teal); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; display: block; }

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.profile-wrap { position: relative; flex: none; }

.profile-btn.has-account { border-color: var(--gold); color: var(--teal); }

.dropdown-panel:not([hidden]) {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(169, 211, 232, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 8px;
  min-width: 210px;
  max-width: calc(100vw - 40px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: dropdown-in 0.2s var(--ease-out) both;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dropdown-panel { animation: none; }
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--pine);
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.site-nav a:hover { background: rgba(169, 211, 232, 0.45); }
.site-nav a.active { background: rgba(169, 211, 232, 0.6); font-weight: 700; }

.site-nav a.nav-cta-mobile {
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
}
.site-nav a.nav-cta-mobile:hover { background: var(--pine); }

.profile-menu .profile-name {
  padding: 8px 12px 6px;
  font-weight: 700;
  color: var(--pine);
  font-size: 0.92rem;
  line-height: 1.3;
}
.profile-menu .profile-name small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(14, 46, 43, 0.6);
}

.profile-menu a,
.profile-menu button.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: var(--pine);
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.profile-menu a:hover,
.profile-menu button.menu-item:hover { background: rgba(169, 211, 232, 0.45); }

.profile-menu .menu-divider {
  height: 1px;
  background: rgba(169, 211, 232, 0.6);
  margin: 6px 4px;
}

/* ---------- buttons ---------- */

.btn:not([hidden]) {
  display: inline-block;
}

.btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background 0.25s var(--ease-out), transform 0.3s var(--ease-pop),
    box-shadow 0.3s var(--ease-out), border-color 0.25s var(--ease-out),
    filter 0.25s var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--pine); box-shadow: var(--shadow); }

.btn-gold { background: var(--gold); color: var(--pine); }
.btn-gold:hover { filter: brightness(0.96); box-shadow: 0 10px 24px rgba(223, 165, 66, 0.35); }

.btn-quiet {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--sky);
}
.btn-quiet:hover { border-color: var(--teal); }

.btn-small { padding: 8px 16px; font-size: 0.92rem; }

.btn-danger { background: transparent; color: #8a3226; border: 2px solid #d9b0a8; }
.btn-danger:hover { border-color: #8a3226; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 84px;
  background:
    radial-gradient(1100px 460px at 85% -10%, rgba(169, 211, 232, 0.5), transparent 70%),
    radial-gradient(900px 480px at -5% 115%, rgba(239, 174, 107, 0.24), transparent 70%),
    radial-gradient(600px 340px at 60% 40%, rgba(205, 122, 78, 0.08), transparent 70%),
    var(--mist);
  overflow: hidden;
}

.hero-ripple {
  position: absolute;
  inset: -10% -10% -10% auto;
  right: -6%;
  width: min(58vw, 780px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero-ripple svg { display: block; width: 100%; height: 100%; }

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-hand);
  color: var(--gold-ink);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.hero p.sub {
  font-size: 1.2rem;
  max-width: 34em;
  color: rgba(14, 46, 43, 0.85);
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art .paw-badge {
  width: min(280px, 70%);
  aspect-ratio: 1;
  background: var(--white);
  border: 2px solid var(--sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  animation: badge-float 6s ease-in-out infinite;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-art img { width: 62%; }

/* staggered hero entrance */
.hero-anim > * {
  animation: rise-in 0.8s var(--ease-out) both;
}
.hero-anim > *:nth-child(1) { animation-delay: 0.05s; }
.hero-anim > *:nth-child(2) { animation-delay: 0.15s; }
.hero-anim > *:nth-child(3) { animation-delay: 0.28s; }
.hero-anim > *:nth-child(4) { animation-delay: 0.4s; }

.hero-art { animation: rise-in 0.9s var(--ease-out) 0.25s both; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* ---------- marquee ticker ---------- */

.marquee {
  background: var(--pine);
  overflow: hidden;
  padding: 13px 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  padding-right: 28px;
}

.marquee-track span i {
  font-style: normal;
  color: var(--gold);
  margin: 0 28px 0 0;
}

.marquee-track span em {
  font-style: normal;
  color: var(--sky);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- trust row ---------- */

.trust-row {
  padding: 34px 0 8px;
}

.trust-row .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-item {
  background: var(--white);
  border: 1px solid rgba(169, 211, 232, 0.7);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-pop), box-shadow 0.35s var(--ease-out);
}

.trust-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.trust-item .dot {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(169, 211, 232, 0.4);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.trust-item h3 { margin-bottom: 2px; font-size: 1.05rem; }
.trust-item p { margin: 0; font-size: 0.95rem; color: rgba(14, 46, 43, 0.8); }

/* ---------- generic sections & cards ---------- */

.section {
  position: relative;
  padding: 88px 0;
  background:
    radial-gradient(700px 320px at 8% 0%, rgba(239, 174, 107, 0.10), transparent 70%),
    radial-gradient(600px 300px at 100% 100%, rgba(169, 211, 232, 0.14), transparent 70%);
}
.section.tight { padding: 44px 0; }

.section-kicker {
  font-family: var(--font-hand);
  color: var(--gold-ink);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.card {
  background: var(--white);
  border: 1px solid rgba(169, 211, 232, 0.55);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease-pop), box-shadow 0.4s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.card-grid .card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-warm);
  border-color: rgba(239, 174, 107, 0.45);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pine-band {
  position: relative;
  background:
    radial-gradient(800px 320px at 90% 120%, rgba(169, 211, 232, 0.16), transparent 70%),
    radial-gradient(700px 360px at 10% -10%, rgba(239, 174, 107, 0.16), transparent 70%),
    var(--pine);
  color: var(--mist);
  padding: 84px 0;
}

.pine-band h2, .pine-band h3 { color: var(--mist); }
.pine-band .hand { color: var(--gold); }
.pine-band a { color: var(--sky); }
.pine-band a.btn-gold { color: var(--pine); }

/* ---------- gallery (pop-up pictures) ---------- */

.sky-band {
  position: relative;
  background:
    radial-gradient(900px 400px at 10% -20%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(700px 380px at 100% 110%, rgba(239, 174, 107, 0.22), transparent 70%),
    var(--sky);
  padding: 84px 0 92px;
}

.sky-band .section-kicker { color: var(--teal); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.pop-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(23, 94, 99, 0.12);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease-pop), box-shadow 0.4s var(--ease-out);
}

.pop-card:hover,
.pop-card:focus-visible {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-lift);
  outline: none;
}

.pop-card .art {
  display: block;
  overflow: hidden;
}

.pop-card .art svg {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease-out);
}

.pop-card:hover .art svg { transform: scale(1.07); }

/* ---------- editorial walk-photo gallery ---------- */

.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 120px;
  gap: 18px;
  margin-top: 32px;
}

.editorial-photo {
  position: relative;
  grid-column: span 3;
  grid-row: span 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease-pop), box-shadow 0.5s var(--ease-out);
}

.editorial-photo:hover { transform: translateY(-6px); box-shadow: var(--shadow-warm); }

.editorial-photo:nth-child(1) { grid-column: span 4; grid-row: span 3; }
.editorial-photo:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.editorial-photo:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.editorial-photo:nth-child(4) { grid-column: span 2; grid-row: span 3; margin-top: 24px; }
.editorial-photo:nth-child(5) { grid-column: span 3; grid-row: span 2; }
.editorial-photo:nth-child(6) { grid-column: span 3; grid-row: span 2; }

.editorial-photo .ph-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editorial-photo .ph-bg svg { width: 44%; height: 44%; opacity: 0.85; }

.ph-warm-1 { background: linear-gradient(135deg, var(--honey), var(--terracotta)); }
.ph-warm-2 { background: linear-gradient(135deg, var(--sky), var(--teal)); }
.ph-warm-3 { background: linear-gradient(135deg, var(--gold), var(--honey)); }
.ph-warm-4 { background: linear-gradient(135deg, var(--teal), var(--pine)); }
.ph-warm-5 { background: linear-gradient(135deg, var(--terracotta), var(--pine)); }
.ph-warm-6 { background: linear-gradient(135deg, var(--sky), var(--honey)); }

.editorial-photo .ph-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(14, 46, 43, 0.72), transparent);
  color: var(--white);
  font-weight: 600;
}

.editorial-photo .ph-caption small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.85;
}

.editorial-photo .ph-placeholder-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pine);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 3px 10px;
}

@media (max-width: 720px) {
  .editorial-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .editorial-photo,
  .editorial-photo:nth-child(1),
  .editorial-photo:nth-child(2),
  .editorial-photo:nth-child(3),
  .editorial-photo:nth-child(4),
  .editorial-photo:nth-child(5),
  .editorial-photo:nth-child(6) {
    grid-column: span 1;
    grid-row: span 2;
    margin-top: 0;
  }
}

.pop-card figcaption {
  padding: 12px 18px 14px;
  font-weight: 600;
}

.pop-card figcaption small {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(14, 46, 43, 0.65);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 46, 43, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  background: var(--mist);
  border-radius: 24px;
  border: 2px solid var(--sky);
  max-width: min(540px, 92vw);
  width: 100%;
  padding: 18px;
  transform: scale(0.86) translateY(16px);
  transition: transform 0.4s var(--ease-pop);
}

.lightbox.open .lightbox-inner {
  transform: none;
}

.lightbox-inner .art {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}

.lightbox-inner .art svg { display: block; width: 100%; height: auto; }

.lightbox-inner .lb-caption {
  padding: 14px 6px 4px;
  font-weight: 600;
}

.lightbox-inner .lb-caption small {
  display: block;
  font-weight: 400;
  color: rgba(14, 46, 43, 0.65);
}

.lightbox-inner .lb-note {
  font-family: var(--font-hand);
  color: var(--teal);
  padding: 0 6px;
  margin: 0;
}

.lightbox-close {
  float: right;
  margin: -4px -4px 8px 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--sky);
  background: var(--white);
  color: var(--pine);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s var(--ease-pop), border-color 0.25s;
}

.lightbox-close:hover { transform: rotate(90deg); border-color: var(--teal); }

/* ---------- scroll reveal ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.55s var(--ease-out);
  transition-delay: var(--d, 0s);
}

html.js .reveal-pop {
  transform: translateY(20px) scale(0.92);
  transition: opacity 0.45s ease, transform 0.5s var(--ease-pop);
}

html.js .reveal-photo {
  transform: translateY(16px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.55s var(--ease-out);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- word-by-word headline reveal ---------- */

html.js .reveal-words .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  transition-delay: var(--wd, 0s);
}

html.js .reveal-words.in .w {
  opacity: 1;
  transform: none;
}

/* ---------- intro reveal on page load (~0.5s, gentle rise) ---------- */
/* fill-mode backwards: hidden during the delay, no lingering fill after,
   so hover transforms still work once the intro finishes. */

html.js .hero-anim > * { animation: intro-rise 0.5s var(--ease-out) backwards; }
html.js .hero-anim > *:nth-child(2) { animation-delay: 0.05s; }
html.js .hero-anim > *:nth-child(3) { animation-delay: 0.1s; }
html.js .hero-anim > *:nth-child(4) { animation-delay: 0.15s; }
html.js .hero-art { animation: intro-rise 0.5s var(--ease-out) 0.1s backwards; }
html.js .brand img { animation: intro-logo 0.5s var(--ease-pop) backwards; }

@keyframes intro-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes intro-logo {
  from { opacity: 0; transform: rotate(-14deg) scale(0.7); }
  to { opacity: 1; transform: none; }
}

/* ---------- nav bar over the hero ---------- */

html.js .site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

html.js .site-header.transparent {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.js .site-header.scrolled {
  box-shadow: 0 8px 24px rgba(14, 46, 43, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .reveal-pop,
  html.js .reveal-photo,
  html.js .reveal-words .w {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .hero-anim > *,
  html.js .hero-art,
  html.js .brand img {
    animation: none;
  }
  body { animation: none; }
  .marquee-track { animation: none; }
  .hero-art .paw-badge { animation: none; }
  .hero-ripple { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- pricing ---------- */

.price-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-card .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--teal);
}

.price-card .price span { font-size: 1rem; font-weight: 500; color: rgba(14, 46, 43, 0.7); }

.price-card ul {
  margin: 6px 0 14px;
  padding-left: 20px;
  color: rgba(14, 46, 43, 0.85);
}

.price-card li { margin-bottom: 4px; }

.price-card .btn { align-self: flex-start; margin-top: auto; }

.price-card.featured { border: 2px solid var(--gold); }

.badge {
  display: inline-block;
  background: rgba(223, 165, 66, 0.2);
  color: #8a6420;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 12px;
  align-self: flex-start;
}

/* ---------- reviews ---------- */

.review-card { position: relative; }

.review-card .stars { color: var(--gold-ink); letter-spacing: 3px; margin-bottom: 8px; }

.review-card .who {
  font-weight: 600;
  color: var(--teal);
  margin: 0;
}

.review-card .placeholder-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #567a8c;
  background: rgba(169, 211, 232, 0.4);
  border-radius: 999px;
  padding: 2px 10px;
}

.notice {
  background: rgba(223, 165, 66, 0.14);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.98rem;
}

.liability-details {
  background: var(--white);
  border: 1px solid rgba(169, 211, 232, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.liability-details summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s var(--ease-out);
}

.liability-details summary::-webkit-details-marker { display: none; }

.liability-details summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
  color: var(--gold-ink);
  transition: transform 0.25s var(--ease-out);
}

.liability-details[open] summary::after { transform: rotate(45deg); }

.liability-details summary:hover { background: rgba(169, 211, 232, 0.14); }

.liability-body {
  padding: 0 18px 18px;
  font-size: 0.92rem;
  color: #4c5f5b;
}

.liability-body p + p { margin-top: 10px; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 10px;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--teal);
  cursor: pointer;
}

/* ---------- forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

label .opt { font-weight: 400; color: rgba(14, 46, 43, 0.6); }

input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--pine);
  background: var(--white);
  border: 2px solid var(--sky);
  border-radius: 10px;
  padding: 11px 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(169, 211, 232, 0.35);
}

textarea { resize: vertical; min-height: 90px; }

.form-msg {
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 500;
  margin-top: 16px;
  animation: rise-in 0.5s var(--ease-out) both;
}

.form-msg.ok { background: rgba(23, 94, 99, 0.1); color: var(--teal); }
.form-msg.err { background: rgba(138, 50, 38, 0.1); color: #8a3226; }

.hint { font-size: 0.9rem; color: rgba(14, 46, 43, 0.65); margin-top: 4px; }

/* ---------- schedule (Kaylee's view) ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-tile {
  background: var(--white);
  border: 1px solid rgba(169, 211, 232, 0.7);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

.stat-tile .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--teal);
}

.stat-tile .lbl { font-size: 0.88rem; color: rgba(14, 46, 43, 0.7); }

.day-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 30px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--sky);
}

.walk-card { margin-bottom: 16px; }

.walk-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.walk-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }

.walk-total { font-weight: 700; color: var(--teal); }

.walk-status {
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.walk-status.booked { background: rgba(223, 165, 66, 0.2); color: #8a6420; }
.walk-status.done { background: rgba(169, 211, 232, 0.45); color: var(--teal); }
.walk-status.cancelled { background: rgba(200, 80, 70, 0.15); color: #a3372b; }

.dog-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid rgba(169, 211, 232, 0.55);
}

.dog-row .dog-main { font-weight: 600; }
.dog-row .dog-sub { font-size: 0.9rem; color: rgba(14, 46, 43, 0.7); }
.dog-row .dog-price { font-weight: 700; color: var(--teal); white-space: nowrap; }

.dog-row.cancelled-row { opacity: 0.55; text-decoration: line-through; }
.dog-row.done-row .dog-price::after { content: " ✓"; }

.discount-chip {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8a6420;
  background: rgba(223, 165, 66, 0.22);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 6px;
  white-space: nowrap;
}

.no-photos-chip {
  font-size: 0.75rem;
  font-weight: 700;
  color: #a23b3b;
  background: rgba(162, 59, 59, 0.14);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 6px;
  white-space: nowrap;
}

.walk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ---------- dashboard tabs ---------- */

.dash-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 2px solid rgba(169, 211, 232, 0.55);
  margin-bottom: 24px;
}

.dash-tab {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  color: rgba(14, 46, 43, 0.65);
  padding: 10px 16px;
  border-radius: 10px 10px 0 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.dash-tab:hover { background: rgba(169, 211, 232, 0.18); color: var(--pine); }

.dash-tab.active {
  color: var(--teal);
  background: var(--white);
  box-shadow: 0 -2px 0 var(--teal) inset;
}

.dash-panel { animation: rise-in 0.4s var(--ease-out) both; }

/* ---------- calendar ---------- */

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cal-range { font-family: var(--font-display); font-weight: 700; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.cal-day {
  background: var(--white);
  border: 1px solid rgba(169, 211, 232, 0.6);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 140px;
  box-shadow: var(--shadow);
}

.cal-day.today { border-color: var(--gold); box-shadow: var(--shadow-warm); }

.cal-day-head {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: rgba(14, 46, 43, 0.7);
}

.cal-day-head strong { display: block; color: var(--pine); font-size: 1.1rem; }

.cal-walk {
  font-size: 0.78rem;
  background: rgba(223, 165, 66, 0.16);
  border-radius: 8px;
  padding: 4px 7px;
  margin-bottom: 5px;
  line-height: 1.35;
}

.cal-walk.done { background: rgba(169, 211, 232, 0.3); }

/* ---------- CRM client cards ---------- */

.clients-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.client-card { display: flex; flex-direction: column; gap: 8px; }

.client-card .client-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }

.client-card .client-sub { font-size: 0.88rem; color: rgba(14, 46, 43, 0.7); }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }

.tag-chip {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(23, 94, 99, 0.1);
  color: var(--teal);
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tag-chip button {
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  font-size: 0.9em;
  line-height: 1;
  padding: 0;
}

.tag-add {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.tag-add input { flex: 1; padding: 6px 10px; font-size: 0.85rem; }

.client-card textarea { font-size: 0.9rem; }

.client-credit {
  font-size: 0.85rem;
  font-weight: 700;
  color: #8a6420;
}

/* ---------- payment toggles ---------- */

.payment-toggles { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid rgba(169, 211, 232, 0.6);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.toggle-row .toggle-label { font-weight: 600; }
.toggle-row .toggle-sub { font-size: 0.82rem; color: rgba(14, 46, 43, 0.6); }

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex: none;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch .slider {
  position: absolute;
  inset: 0;
  background: rgba(23, 94, 99, 0.25);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.switch .slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.25s var(--ease-pop);
  box-shadow: 0 2px 4px rgba(14, 46, 43, 0.25);
}

.switch input:checked + .slider { background: var(--teal); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ---------- notifications & email ---------- */

.notif-log { display: flex; flex-direction: column; gap: 10px; }

.notif-entry {
  background: var(--white);
  border: 1px solid rgba(169, 211, 232, 0.6);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.notif-entry .notif-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(14, 46, 43, 0.6);
  margin-bottom: 4px;
}

.notif-status {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #8a6420;
}

.email-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.email-template-card { display: flex; flex-direction: column; gap: 8px; }

.email-template-card textarea { min-height: 130px; font-size: 0.86rem; }

.email-recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  border: 2px solid var(--sky);
  border-radius: 10px;
  padding: 10px;
}

.recipient-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  background: rgba(169, 211, 232, 0.25);
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
}

@media (max-width: 900px) {
  .cal-grid { grid-template-columns: repeat(7, minmax(90px, 1fr)); overflow-x: auto; }
}

@media (max-width: 640px) {
  .cal-grid { grid-template-columns: 1fr; }
}

/* ---------- client account page ---------- */

.auth-form:not([hidden]) { display: block; }

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(14, 46, 43, 0.5);
  font-size: 0.85rem;
  margin: 18px 0 14px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(169, 211, 232, 0.7);
}
.auth-divider span { padding: 0 12px; }

.login-methods {
  list-style: none;
  margin: 0;
  padding: 0;
}
.login-methods li {
  padding: 6px 0;
  border-top: 1px solid rgba(169, 211, 232, 0.5);
  font-size: 0.95rem;
}
.login-methods li:first-child { border-top: 0; }

.dogs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.dog-card { display: flex; flex-direction: column; }

.dog-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.dog-photo-wrap {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mist);
  border: 2px solid var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dog-photo { width: 100%; height: 100%; object-fit: cover; }
.dog-photo-empty { font-size: 2rem; }

.dog-photo-actions { display: flex; flex-direction: column; gap: 8px; }
.photo-label { cursor: pointer; margin: 0; }

.dog-card-msg { font-size: 0.85rem; font-weight: 600; color: var(--teal); align-self: center; }

.bookings-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.booking-row { padding: 16px 20px; }
.booking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--pine);
  color: rgba(241, 244, 239, 0.9);
  padding: 44px 0 30px;
  margin-top: 64px;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.site-footer h3 { color: var(--mist); font-size: 1.05rem; }

.site-footer a { color: var(--sky); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer .brand { color: var(--mist); margin-bottom: 8px; }
.site-footer .brand-name small { color: var(--gold); }

.site-footer .foot-note {
  font-family: var(--font-hand);
  color: var(--gold);
  font-size: 1.05rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }

.foot-bottom {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(169, 211, 232, 0.3);
  font-size: 0.85rem;
  color: rgba(241, 244, 239, 0.6);
  text-align: center;
}

.foot-bottom a { color: rgba(169, 211, 232, 0.8); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art .paw-badge { width: 170px; }
  .trust-row .wrap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
