/* ============================================================
   The Clean Dog Club — Colors & Type tokens
   ============================================================ */

/* Google Fonts (Fraunces display, Inter UI, Caveat script) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&family=Caveat:wght@500;700&display=swap');

:root {
  /* ---------- Brand palette ---------- */
  --sudsy-cream:  #FFF7F9;
  --sudsy-cream-2:#F7E8EF;
  --lincoln-navy: #20472B;
  --lincoln-navy-2:#2F613A;
  --river-blue:   #F2B9DC;
  --river-blue-2: #DA86BE;
  --biscuit-tan:  #F2B9DC;
  --biscuit-tan-2:#D872AF;
  --clover:       #C7E25D;
  --clover-2:     #9DB53B;
  --paw-pink:     #F7CCE7;

  /* Neutrals (warm, derived from navy over cream) */
  --ink:        #20472B;
  --ink-soft:   #4B6350;
  --ink-muted:  #8D9A90;
  --hairline:   rgba(32, 71, 43, 0.12);
  --hairline-strong: rgba(32, 71, 43, 0.22);

  /* ---------- Semantic colors ---------- */
  --bg:           var(--sudsy-cream);
  --bg-elevated:  #FFFDFE;
  --bg-deep:      var(--lincoln-navy);
  --surface:      #FFFFFF;

  --fg1: var(--ink);        /* primary text */
  --fg2: var(--ink-soft);   /* secondary */
  --fg3: var(--ink-muted);  /* tertiary / meta */
  --fg-inverse: var(--sudsy-cream);

  --accent:       var(--lincoln-navy);
  --accent-hover: var(--lincoln-navy-2);
  --warm:         var(--river-blue);
  --warm-hover:   var(--river-blue-2);
  --nature:       var(--clover);
  --nature-hover: var(--clover-2);
  --highlight:    var(--paw-pink);

  --border: var(--hairline);
  --border-strong: var(--hairline-strong);

  --success: var(--clover-2);
  --info:    var(--river-blue-2);
  --warn:    #D48B3F;
  --error:   #B4493A;

  /* ---------- Type families ---------- */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script:  'Caveat', cursive;

  /* ---------- Type scale ---------- */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   20px;
  --fs-xl:   24px;
  --fs-2xl:  32px;
  --fs-3xl:  44px;
  --fs-4xl:  60px;
  --fs-5xl:  80px;

  --lh-tight:  1.05;
  --lh-snug:   1.2;
  --lh-normal: 1.45;
  --lh-loose:  1.65;

  /* ---------- Spacing (8px base) ---------- */
  --s-0: 0;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* ---------- Radii ---------- */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* ---------- Shadows (quiet) ---------- */
  --shadow-sm: 0 1px 2px rgba(31,46,61,0.06);
  --shadow-md: 0 6px 20px -8px rgba(31,46,61,0.14);
  --shadow-lg: 0 18px 40px -20px rgba(31,46,61,0.22);

  /* ---------- Motion ---------- */
  --ease-calm: cubic-bezier(0.25, 0.8, 0.25, 1);
  --dur-fast: 120ms;
  --dur-base: 240ms;
  --dur-slow: 400ms;
}

/* ============================================================
   Semantic element styles
   ============================================================ */

html, body {
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

.h-display,
h1.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  color: var(--fg1);
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 48;
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg2);
}

p, .body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  color: var(--fg1);
  text-wrap: pretty;
}

.small {
  font-size: var(--fs-sm);
  color: var(--fg2);
}

.meta {
  font-size: var(--fs-xs);
  color: var(--fg3);
  letter-spacing: 0.02em;
}

.signature {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: var(--fs-xl);
  color: var(--fg2);
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-base) var(--ease-calm),
              border-color var(--dur-base) var(--ease-calm);
}
a:hover {
  color: var(--accent-hover);
  border-bottom-color: currentColor;
}

/* ============================================================
   Layout helpers
   ============================================================ */

.section-shell {
  max-width: 1200px;
  margin: 96px auto 0;
  padding: 0 48px;
}

.hero-shell {
  margin-top: 0;
  padding-top: 80px;
  padding-bottom: 40px;
}

.trust-shell {
  margin-top: 40px;
}

.hero-grid,
.services-grid,
.promise-grid,
.testimonials-grid,
.visit-grid,
.footer-grid,
.trust-grid {
  display: grid;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.hero-actions,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
}

.hero-actions {
  gap: 12px;
}

.hero-meta {
  gap: 24px;
  margin-top: 36px;
  align-items: center;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  color: var(--fg1);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.footer-social-row a {
  background: rgba(255,247,249,0.08);
  border-color: rgba(255,247,249,0.18);
  color: var(--sudsy-cream);
}

.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(180deg, rgba(255,247,249,0.96), rgba(247,232,239,0.88));
  border-radius: 0 0 26px 26px;
}

.topnav-links {
  display: flex;
  gap: 22px;
  margin-left: 14px;
  flex-wrap: wrap;
}

.topnav-spacer {
  flex: 1 1 auto;
}

.topnav-contact {
  white-space: nowrap;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.services-grid,
.testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promise-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.visit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.review-marquee {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.review-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: review-scroll 44s linear infinite;
}

.review-card {
  width: min(360px, calc(100vw - 64px));
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,248,252,0.98), rgba(247,204,231,0.58));
  border: 1px solid rgba(216,114,175,0.22);
  box-shadow: 0 18px 40px -28px rgba(32,71,43,0.34);
}

.review-copy {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  color: var(--fg1);
}

.review-meta {
  font-size: 13px;
  color: var(--fg2);
}

@keyframes review-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.modal-panel {
  width: 560px;
  max-width: 100%;
  padding: 36px;
}

/* ============================================================
   Photo system — bento gallery, tiles, lightbox
   ============================================================ */

.photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  cursor: zoom-in;
  background: var(--sudsy-cream-2);
  isolation: isolate;
}
.photo-tile > picture {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-tile > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-calm),
              filter 400ms var(--ease-calm);
  will-change: transform;
}
.photo-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(31,46,61,0.35) 100%);
  opacity: 0;
  transition: opacity 300ms var(--ease-calm);
  pointer-events: none;
}
.photo-tile .tile-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(246,239,228,0.94);
  color: var(--lincoln-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 280ms var(--ease-calm), transform 280ms var(--ease-calm);
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
.photo-tile .tile-trinket {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  box-shadow: 0 18px 28px -18px rgba(32,71,43,0.38);
  transform: translateY(8px) rotate(-8deg);
  transition: transform 280ms var(--ease-calm), box-shadow 280ms var(--ease-calm);
  pointer-events: none;
}
.photo-tile .tile-trinket.featured {
  width: 68px;
  height: 68px;
}
.photo-tile .tile-trinket-core {
  font-size: 26px;
  line-height: 1;
  color: var(--lincoln-navy);
}
.photo-tile .tile-trinket.sparkle {
  background: linear-gradient(180deg, rgba(255,244,250,0.98), rgba(247,204,231,0.88));
}
.photo-tile .tile-trinket.heart {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,236,247,0.98), rgba(242,185,220,0.92));
}
.photo-tile .tile-trinket.paw {
  background: linear-gradient(180deg, rgba(245,255,226,0.98), rgba(199,226,93,0.92));
}
.photo-tile .tile-trinket.ribbon {
  clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%);
  background: linear-gradient(180deg, rgba(255,247,249,0.98), rgba(248,214,236,0.94));
}
.photo-tile .tile-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 64px);
  min-width: 120px;
  padding: 16px 14px 12px;
  border-radius: 20px 20px 18px 8px;
  background: rgba(246,239,228,0.97);
  color: var(--lincoln-navy);
  border: 1px solid rgba(31,46,61,0.08);
  box-shadow: 0 18px 30px -18px rgba(31,46,61,0.38);
  opacity: 0.98;
  transform: translateY(8px) rotate(-1.5deg);
  transition: transform 280ms var(--ease-calm), opacity 280ms var(--ease-calm), box-shadow 280ms var(--ease-calm);
  pointer-events: none;
}
.photo-tile .tile-label.featured {
  padding: 18px 16px 14px;
  border-radius: 24px 24px 20px 10px;
}
.photo-tile .tile-label-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.photo-tile .tile-label-subtitle {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31,46,61,0.56);
}
.photo-tile .tile-label-pin {
  position: absolute;
  top: -7px;
  left: 20px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f29f92 0%, #c35f50 100%);
  box-shadow: 0 4px 8px rgba(31,46,61,0.22);
}
.photo-tile .tile-label-pin::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: rgba(255,255,255,0.45);
}
.photo-tile .tile-label.pin-a {
  background: linear-gradient(180deg, rgba(255,248,252,0.98) 0%, rgba(247,204,231,0.86) 100%);
  transform: translateY(8px) rotate(-2deg);
}
.photo-tile .tile-label.pin-b {
  background: linear-gradient(180deg, rgba(255,244,250,0.98) 0%, rgba(250,220,240,0.94) 100%);
  border-radius: 16px 22px 16px 16px;
  transform: translateY(8px) rotate(1.8deg);
}
.photo-tile .tile-label.pin-b .tile-label-pin {
  left: auto;
  right: 18px;
  background: linear-gradient(180deg, #7a99b5 0%, #476882 100%);
}
.photo-tile .tile-label.pin-c {
  background: linear-gradient(180deg, rgba(255,248,252,0.98) 0%, rgba(242,185,220,0.88) 100%);
  border-radius: 22px 16px 20px 10px;
  transform: translateY(8px) rotate(-0.8deg);
}
.photo-tile .tile-label.pin-c .tile-label-pin {
  background: linear-gradient(180deg, #d3b17f 0%, #ad8561 100%);
}
.photo-tile .tile-label.pin-d {
  background: linear-gradient(180deg, rgba(255,246,251,0.98) 0%, rgba(248,214,236,0.94) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 92% 100%, 0 100%);
  border-radius: 18px;
  transform: translateY(8px) rotate(2deg);
}
.photo-tile .tile-label.pin-d .tile-label-pin {
  background: linear-gradient(180deg, #84a678 0%, #526e50 100%);
}
.photo-tile:hover > picture > img {
  transform: scale(1.055);
  filter: saturate(1.06);
}
.photo-tile:hover::after {
  opacity: 1;
}
.photo-tile:hover .tile-icon {
  opacity: 1;
  transform: translateY(0);
}
.photo-tile:hover .tile-label {
  transform: translateY(0) rotate(0deg);
  box-shadow: 0 24px 34px -18px rgba(31,46,61,0.42);
}
.photo-tile:hover .tile-trinket {
  transform: translateY(0) rotate(0deg);
  box-shadow: 0 24px 34px -18px rgba(31,46,61,0.42);
}

/* Bento grid — 4 desktop cols, 2 tablet, 1 mobile, feature tiles span 2x2 */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 40px;
}
.bento .photo-tile {
  aspect-ratio: 1 / 1;
}
.bento .photo-tile.feature {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: var(--r-xl);
}
.bento .photo-tile.wide {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .bento .photo-tile.feature { grid-column: span 2; grid-row: span 2; }
  .bento .photo-tile.wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .bento .photo-tile.feature { grid-column: span 2; grid-row: span 2; border-radius: var(--r-lg); }
  .bento .photo-tile.wide { grid-column: span 2; }
  .photo-tile .tile-label {
    left: 8px;
    right: 44px;
    bottom: 8px;
    max-width: none;
    min-width: 0;
    padding: 12px 11px 10px;
  }
  .photo-tile .tile-label-title {
    font-size: 13px;
  }
  .photo-tile .tile-label-subtitle {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .photo-tile .tile-label-pin {
    width: 12px;
    height: 12px;
    top: -6px;
  }
  .photo-tile .tile-trinket {
    left: 8px;
    bottom: 8px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
  .photo-tile .tile-trinket.featured {
    width: 58px;
    height: 58px;
  }
  .photo-tile .tile-trinket-core {
    font-size: 22px;
  }
}

/* Hero photo */
.hero-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--sudsy-cream-2);
}
.hero-photo > picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-photo > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 9s var(--ease-calm);
  transform: scale(1);
}
.hero-photo:hover > picture > img { transform: scale(1.08); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 28, 38, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lb-fade 280ms var(--ease-calm);
}
@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-stage {
  position: relative;
  max-width: min(92vw, 1080px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage > picture > img,
.lightbox-stage > img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 90px -20px rgba(0,0,0,0.7);
  animation: lb-pop 340ms var(--ease-calm);
}
.lightbox-caption {
  margin-top: 14px;
  max-width: 560px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(246,239,228,0.88);
  text-align: center;
  padding: 0 12px;
  animation: lb-pop 400ms var(--ease-calm);
}
.lightbox-caption-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sudsy-cream);
  margin-bottom: 8px;
}
@keyframes lb-pop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(246,239,228,0.14);
  color: var(--sudsy-cream);
  border: 1px solid rgba(246,239,228,0.22);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms var(--ease-calm), transform 200ms var(--ease-calm);
  backdrop-filter: blur(6px);
}
.lightbox-btn:hover { background: rgba(246,239,228,0.28); transform: translateY(-50%) scale(1.05); }
.lightbox-btn.prev  { left: 16px; }
.lightbox-btn.next  { right: 16px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(246,239,228,0.14);
  border: 1px solid rgba(246,239,228,0.22);
  color: var(--sudsy-cream);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms var(--ease-calm);
  backdrop-filter: blur(6px);
}
.lightbox-close:hover { background: rgba(246,239,228,0.28); }
.lightbox-counter {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(246,239,228,0.82);
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20,28,38,0.5);
  border: 1px solid rgba(246,239,228,0.16);
}

@media (max-width: 640px) {
  .lightbox-btn { width: 40px; height: 40px; }
  .lightbox-btn.prev { left: 8px; }
  .lightbox-btn.next { right: 8px; }
}

@media (max-width: 1100px) {
  .hero-grid,
  .promise-grid,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section-shell {
    margin-top: 72px;
    padding: 0 20px;
  }

  .hero-shell {
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .topnav-inner {
    padding: 14px 20px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .topnav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .topnav-contact {
    display: none;
  }

  .social-row {
    gap: 8px;
  }

  .social-row a {
    padding: 9px 12px;
    font-size: 12px;
  }

  .trust-grid,
  .services-grid,
  .testimonials-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .promise-grid,
  .visit-grid {
    gap: 28px;
  }

  .hero-grid {
    gap: 32px;
  }

  .modal-panel {
    padding: 24px;
  }

  .review-marquee {
    mask-image: none;
  }

  .review-track {
    animation-duration: 54s;
  }

  .review-card {
    width: min(300px, calc(100vw - 52px));
    padding: 20px;
  }
}
