/* =============================================================
   Only Pawz by Chika — shared styles
   Palette sampled from the illustrated logo PNG.
   ============================================================= */

/* -------------------- Design tokens -------------------- */
:root {
  /* Brand palette sampled directly from logo.png */
  --brand-pink:        #E87890;  /* popsicle pink, wordmark pink */
  --brand-pink-deep:   #E05878;  /* hover / pressed pink */
  --brand-blue:        #58A8D0;  /* popsicle blue, wordmark blue */
  --brand-blue-light:  #A0E0F8;  /* pale popsicle blue highlights */
  --brand-cream:       #F0B060;  /* warm popsicle-stick gold */
  --brand-text:        #3D2614;  /* warm dark brown outline color */
  --brand-text-soft:   #7A5A44;  /* lighter warm brown for secondary text */

  /* Backgrounds */
  --bg:                #FFFFFF;
  --bg-soft-pink:      #FFF4F7;
  --bg-soft-blue:      #EFF8FB;
  --bg-soft-cream:     #FFF6E8;

  /* Type stacks — rounded/friendly for headings, system sans for body */
  --font-heading: "Quicksand", "Nunito", "Comic Neue", -apple-system, BlinkMacSystemFont, "Avenir Next", "Avenir", system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Shape */
  --radius-card:   20px;
  --radius-input:  12px;
  --radius-button: 999px;   /* full pill */

  /* Layout */
  --max-mobile:  540px;
  --max-desktop: 760px;
}

/* -------------------- Reset / base -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

/* Keyboard-only focus ring (mouse users don't see it). */
:focus-visible {
  outline: 3px solid var(--brand-pink-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--brand-text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* prevent horizontal scroll on small screens */
}

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

a {
  color: var(--brand-pink-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(232, 120, 144, 0.4);
}

a:hover,
a:focus {
  color: var(--brand-text);
  text-decoration-color: var(--brand-pink-deep);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-text);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }

/* Decorative squiggly underline echoing the logo's "only pawz" swoosh.
   Use on section h2s by adding class="section-heading". */
.section-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 14px;
  --heading-dot-color: var(--brand-pink);
}
.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 8px;
  background-image:
    radial-gradient(circle at 4px 4px, var(--heading-dot-color) 3px, transparent 3.5px);
  background-size: 12px 8px;
  background-repeat: repeat-x;
  border-radius: 4px;
}

/* Per-section dot-underline colors so each heading feels rooted in its tint. */
.section-heading--pink  { --heading-dot-color: var(--brand-pink); }
.section-heading--blue  { --heading-dot-color: var(--brand-blue); }
.section-heading--cream { --heading-dot-color: var(--brand-cream); }

/* Small stroke icon that sits to the left of each section heading.
   These are meaningful section identifiers (calendar, popsicle, chat, heart),
   sized to feel like a section badge, not a decorative flourish. */
.section-heading__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  color: var(--brand-pink-deep);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 1px 0 rgba(232, 120, 144, 0.18);
}
.section-heading__icon svg {
  width: 100%;
  height: 100%;
}
.section-heading--blue  .section-heading__icon { color: var(--brand-blue); }
.section-heading--cream .section-heading__icon { color: #C98A2C; } /* darker cream/gold for contrast */

p { margin: 0 0 1em; }

ul { padding-left: 1.2em; margin: 0 0 1em; }

/* -------------------- Sticky site nav -------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  margin: 0 -20px 0;
  padding-left: 20px;
  padding-right: 20px;
  background: rgba(255, 244, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(232, 120, 144, 0.2);
}

.site-nav__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-pink-deep);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav__brand:hover,
.site-nav__brand:focus {
  color: var(--brand-text);
  text-decoration: none;
}

.site-nav__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-nav__links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-text);
  text-decoration: none;
  padding: 6px 4px;
}

.site-nav__links a:hover,
.site-nav__links a:focus {
  color: var(--brand-pink-deep);
  text-decoration: none;
}

.site-nav__ig {
  display: inline-flex;
  align-items: center;
  padding: 6px 4px;
  color: var(--brand-text);
}
.site-nav__ig:hover,
.site-nav__ig:focus {
  color: var(--brand-pink-deep);
}

@media (max-width: 374px) {
  .site-nav__brand { font-size: 0.95rem; }
  .site-nav__links { gap: 10px; }
  .site-nav__links a {
    font-size: 0.85rem;
    padding: 6px 2px;
  }
}

/* -------------------- Layout containers -------------------- */
.wrap {
  width: 100%;
  max-width: var(--max-mobile);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  padding: 16px 0 32px;
}

section {
  padding: 24px 0;
}

/* Soft full-bleed background variants — break out of wrap's horizontal padding. */
.section-tint-pink,
.section-tint-blue,
.section-tint-cream {
  position: relative;
  padding: 28px 20px;
  border-radius: 24px;
  margin: 12px 0;
}

.section-tint-pink  { background: var(--bg-soft-pink); }
.section-tint-blue  { background: var(--bg-soft-blue); }
.section-tint-cream { background: var(--bg-soft-cream); }

/* Per-section overrides — vary radius, padding, and add inner accents so each
   tinted block reads as its own little place rather than a repeated panel. */

/* Feedback — cream "survey card." Big friendly radius, dashed inner border. */
.section-feedback {
  border-radius: 32px;
  padding: 32px 22px 28px;
}
.section-feedback::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(201, 138, 44, 0.28);
  border-radius: 24px;
  pointer-events: none;
  z-index: 0;
}
.section-feedback > * { position: relative; z-index: 1; }

/* Schedule — blue, slightly tighter, dotted inner accent. */
.section-schedule {
  border-radius: 28px;
  padding: 26px 20px;
}
.section-schedule::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dotted rgba(88, 168, 208, 0.35);
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
}
.section-schedule > * { position: relative; z-index: 1; }

/* Menu — untinted, but gets generous vertical breathing room and a subtle
   pink corner accent so it feels framed even without a background. */
.section-menu {
  padding: 32px 4px 28px;
  position: relative;
}

/* Follow — pink, largest radius for the warmest "send-off" feel. */
.section-follow {
  border-radius: 36px;
  padding: 30px 22px;
}

/* -------------------- Header / Hero -------------------- */
.hero {
  text-align: center;
  padding: 24px 0 8px;
  position: relative;
}

/* Soft radial pink wash behind the hero logo so it pops a bit. */
.hero::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  max-width: 90vw;
  max-height: 90vw;
  background: radial-gradient(circle, rgba(232, 120, 144, 0.18) 0%, rgba(232, 120, 144, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

.hero .logo {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
}

.hero .tagline {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-text);
  margin: 0 0 8px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.hero .subtag {
  color: var(--brand-text-soft);
  margin: 0;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* -------------------- Section dividers --------------------
   Three variants — varying the divider style between sections gives the
   page a little rhythm and signals "you've moved to a new place." */
.divider {
  border: 0;
  border-top: 4px dashed var(--brand-pink);
  margin: 28px auto;
  width: 80%;
  max-width: 320px;
  height: 0;
}

/* Dotted in blue — used after the schedule (which is blue). */
.divider--dotted {
  border-top: 5px dotted var(--brand-blue);
}

/* Wavy paw-print row — repeating pink dots, taller than the dashed bar. */
.divider--wavy {
  border: 0;
  height: 12px;
  width: 140px;
  max-width: 60%;
  background-image:
    radial-gradient(circle at 6px 6px, var(--brand-pink) 3.5px, transparent 4px);
  background-size: 18px 12px;
  background-repeat: repeat-x;
  background-position: center;
}

/* -------------------- Cards (treats) -------------------- */
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  background: var(--bg-soft-pink);
  border: 2px solid rgba(232, 120, 144, 0.25);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 2px 0 rgba(232, 120, 144, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 80px;
}

.card:nth-child(even) {
  background: var(--bg-soft-blue);
  border-color: rgba(88, 168, 208, 0.3);
  box-shadow: 0 2px 0 rgba(88, 168, 208, 0.18);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(232, 120, 144, 0.25);
}

.card:nth-child(even):hover {
  box-shadow: 0 4px 0 rgba(88, 168, 208, 0.3);
}

.card-img {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(232, 120, 144, 0.2);
}

.card:nth-child(even) .card-img {
  border-color: rgba(88, 168, 208, 0.25);
}

.card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--brand-text);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.card .price {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-pink-deep);
  letter-spacing: 0.01em;
}

.card:nth-child(even) .price {
  color: var(--brand-pink-deep);
}

.card p {
  margin: 0;
  color: var(--brand-text-soft);
  font-size: 0.97rem;
}

.card-footnote {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--brand-text-soft);
  text-align: center;
}

/* -------------------- Empty states (sheet-driven sections) -------------------- */
/* Shown when a Google Sheet CSV URL is unset, fetch fails, or the sheet
   has no rows yet. Designed to feel intentional and on-brand — not like
   an error. */
.empty-state {
  text-align: center;
  font-style: italic;
  color: var(--brand-text-soft);
  font-size: 1rem;
  line-height: 1.55;
  padding: 28px 12px;
  margin: 0;
}

.empty-state a {
  font-style: normal;
  font-weight: 600;
  color: var(--brand-pink-deep);
}

.empty-state a:hover,
.empty-state a:focus {
  color: var(--brand-text);
}

/* -------------------- Schedule list -------------------- */
.schedule {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule li {
  padding: 14px 16px;
  border-radius: var(--radius-input);
  background: var(--bg);
  border: 2px solid rgba(232, 120, 144, 0.25);
  margin-bottom: 10px;
  font-size: 1rem;
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.schedule li:last-child { margin-bottom: 0; }

.schedule .when {
  font-weight: 700;
  color: var(--brand-pink-deep);
  font-family: var(--font-heading);
}

.schedule .where {
  color: var(--brand-text);
}

/* -------------------- Social links -------------------- */
.socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 2px solid rgba(88, 168, 208, 0.3);
  border-radius: var(--radius-input);
  color: var(--brand-text);
  text-decoration: none;
  font-weight: 600;
  min-height: 56px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.socials a:hover,
.socials a:focus {
  background: var(--bg-soft-blue);
  border-color: var(--brand-blue);
  color: var(--brand-text);
  transform: translateY(-1px);
  text-decoration: none;
}

.socials a:active {
  transform: translateY(1px);
}

.socials .icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: var(--brand-pink-deep);
}

.socials .icon svg { width: 100%; height: 100%; }

.socials .handle {
  color: var(--brand-text-soft);
  font-weight: 400;
  font-size: 0.95rem;
  margin-left: auto;
  word-break: break-all;
  text-align: right;
}

/* -------------------- Footer -------------------- */
footer {
  text-align: center;
  padding: 28px 16px 36px;
  color: var(--brand-text-soft);
  font-size: 0.95rem;
  background: var(--bg-soft-cream);
  border-top: 3px dashed var(--brand-pink);
  margin-top: 24px;
  border-radius: 24px 24px 0 0;
}

footer p { margin: 0; }

/* -------------------- Embedded Tally feedback form -------------------- */
.form-subhead {
  color: var(--brand-text-soft);
  margin: 0 0 8px;
  font-size: 1rem;
}

.tally-wrap {
  margin: 20px 0 16px;
  position: relative;
  min-height: 200px;
  background: #FFFFFF;
  border: 2px solid rgba(232, 120, 144, 0.25);
  border-radius: var(--radius-card);
  padding: 16px;
  z-index: 1;
}

.tally-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-text-soft);
  font-size: 0.95rem;
  pointer-events: none;
  text-align: center;
  padding: 20px;
}

.tally-wrap iframe {
  position: relative;
  z-index: 1;
  background: transparent;
  width: 100%;
  border: 0;
}

/* -------------------- Visually hidden -------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* -------------------- Responsive — small phones (<= 374px) -------------------- */
@media (max-width: 374px) {
  body { font-size: 16px; }
  .wrap { padding: 0 14px; }
  .hero .logo { max-width: 200px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .hero .tagline { font-size: 1.15rem; }
  .socials .handle { font-size: 0.85rem; }
  .section-heading__icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .section-feedback,
  .section-schedule,
  .section-follow {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* -------------------- Responsive — tablet (>= 640px) -------------------- */
@media (min-width: 640px) {
  .card-list {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .socials {
    grid-template-columns: 1fr 1fr;
  }
}

/* -------------------- Responsive — desktop (>= 720px) -------------------- */
@media (min-width: 720px) {
  .wrap {
    max-width: var(--max-desktop);
    padding: 0 32px;
  }

  body { font-size: 18px; }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.2rem; }

  .hero {
    padding: 48px 0 20px;
  }

  .hero::before {
    width: 460px;
    height: 460px;
  }

  .hero .logo {
    max-width: 360px;
  }

  .hero .tagline {
    font-size: 1.6rem;
  }

  section { padding: 40px 0; }

  .section-tint-pink,
  .section-tint-blue,
  .section-tint-cream {
    padding: 36px 32px;
  }

  .section-feedback { padding: 44px 36px 38px; }
  .section-schedule { padding: 38px 32px; }
  .section-menu    { padding: 44px 4px 36px; }
  .section-follow  { padding: 40px 32px; }

  .section-feedback::before,
  .section-schedule::before {
    inset: 14px;
  }

  .section-heading__icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}

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