/* ------------------------------------------------------------------
   Doggy Delights — hand-baked, hand-drawn.
   Palette from the logo: hot pink, coral orange, golden yellow, navy.
------------------------------------------------------------------- */

@font-face {
  font-family: 'Shantell Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/shantellsans-500-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Shantell Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/shantellsans-700-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Shantell Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/shantellsans-800-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/baloo2-400-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/baloo2-600-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/baloo2-700-latin.woff2) format('woff2');
}

:root {
  --pink:       #E5137D;
  --pink-deep:  #C40E68;
  --coral:      #E86A43;
  --gold:       #F4A63A;
  --navy:       #232C4E;
  --navy-ink:   #1A2140;
  --cream:      #FFF6EC;
  --cream-deep: #FBE8D3;
  --white:      #FFFFFF;

  --font-display: 'Shantell Sans', 'Comic Sans MS', cursive;
  --font-body: 'Baloo 2', 'Trebuchet MS', sans-serif;

  /* Slightly uneven radii = hand-drawn wobble */
  --wobble: 1.4rem 1.7rem 1.3rem 1.8rem / 1.7rem 1.3rem 1.9rem 1.4rem;
  --shadow-pop: 0.4rem 0.45rem 0 var(--navy);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--navy);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23232C4E' fill-opacity='0.035' transform='rotate(-18 70 70)'%3E%3Cellipse cx='70' cy='82' rx='16' ry='13'/%3E%3Cellipse cx='49' cy='60' rx='7' ry='9'/%3E%3Cellipse cx='64' cy='52' rx='7' ry='9'/%3E%3Cellipse cx='80' cy='53' rx='7' ry='9'/%3E%3Cellipse cx='93' cy='63' rx='7' ry='9'/%3E%3C/g%3E%3C/svg%3E");
  overflow-x: hidden;
}

/* Paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

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

.wrap {
  max-width: 71.25rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; }

.h-squiggle::after {
  content: "";
  display: block;
  width: 9rem;
  height: 1.1rem;
  margin-top: 0.8rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 18' preserveAspectRatio='none'%3E%3Cpath d='M3 9c8-5 14-5 22 0s14 5 22 0 14-5 22 0 14 5 22 0 14-5 22 0 14 5 22 0' fill='none' stroke='%23F4A63A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.hl {
  color: var(--pink);
  display: inline-block;
  padding-bottom: 0.55em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 18' preserveAspectRatio='none'%3E%3Cpath d='M3 9c8-5 14-5 22 0s14 5 22 0 14-5 22 0 14 5 22 0 14-5 22 0 14 5 22 0' fill='none' stroke='%23F4A63A' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat bottom left / 100% 0.77em;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.25rem; max-width: 34rem; }
.section-lede { max-width: 40rem; margin-bottom: 2rem; }

.fine-print { font-size: 0.85rem; opacity: 0.75; margin-top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  background: var(--pink);
  border: 3px solid var(--navy);
  border-radius: 3rem 2.6rem 3rem 2.7rem / 2.7rem 3rem 2.6rem 3rem;
  padding: 0.65rem 1.7rem;
  text-decoration: none;
  box-shadow: var(--shadow-pop);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover, .btn:focus-visible {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 0.55rem 0.6rem 0 var(--navy);
  background: var(--pink-deep);
}

.btn:active {
  transform: translate(2px, 3px);
  box-shadow: 0.1rem 0.1rem 0 var(--navy);
}

.btn-secondary { background: var(--white); color: var(--navy); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--cream-deep); }

.btn-small { font-size: 0.95rem; padding: 0.35rem 1.15rem; box-shadow: 0.25rem 0.3rem 0 var(--navy); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 246, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--navy);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand img { border-radius: 50%; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
}

.brand-name em { font-style: normal; color: var(--pink); }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }

.site-nav > a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav > a:not(.btn):hover,
.site-nav > a:not(.btn):focus-visible { color: var(--pink); border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

.hero-note { font-size: 0.9rem; opacity: 0.8; margin-top: 1rem; }

.lede { margin-top: 1.1rem; }

.hero-art { position: relative; }

.hero-art > img {
  transform: rotate(2.5deg);
  filter: drop-shadow(0.5rem 0.7rem 0 rgba(35, 44, 78, 0.14));
}

.float { position: absolute; }
.float-a { top: -6%; left: -4%; transform: rotate(-18deg); animation: bob 5.2s ease-in-out infinite; }
.float-b { bottom: 2%; right: -2%; transform: rotate(14deg); animation: bob 6.1s ease-in-out 0.8s infinite; }
.float-c { top: 8%; right: -6%; transform: rotate(24deg); animation: bob 4.6s ease-in-out 1.6s infinite; }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ---------- Sticker cards ---------- */

.sticker {
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--wobble);
  box-shadow: var(--shadow-pop);
}

.why { padding-block: clamp(2rem, 5vw, 4rem); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.6rem;
  margin-top: 2.2rem;
}

.card {
  padding: 1.6rem 1.4rem 1.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:nth-child(odd)  { transform: rotate(-1deg); }
.card:nth-child(even) { transform: rotate(1.1deg); }

.card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0.55rem 0.65rem 0 var(--navy);
}

.icon-disc {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 2.5px solid var(--navy);
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  margin-bottom: 1rem;
}

.disc-pink  { background: #FBD1E6; }
.disc-gold  { background: #FCE4BC; }
.disc-coral { background: #F9D3C4; }
.disc-cream { background: var(--cream-deep); }

/* ---------- Ingredients ---------- */

.ingredients { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }

.in-out {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.8rem;
}

.io-card { padding: 1.8rem 1.7rem; }

.io-card h3 { margin-bottom: 0.9rem; }

.io-card ul { list-style: none; }

.io-card li {
  padding-left: 2.1rem;
  position: relative;
  margin-bottom: 0.55rem;
}

.io-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0.75rem;
}

.io-in { transform: rotate(-0.8deg); }
.io-out { transform: rotate(0.9deg); }

.io-in li::before {
  background-color: #FBD1E6;
  border: 2px solid var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%23232C4E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.io-out li::before {
  background-color: var(--cream-deep);
  border: 2px solid var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%23C40E68' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Story band ---------- */

.divider { display: block; width: 100%; height: clamp(1.6rem, 3vw, 2.75rem); }
.divider-flip { transform: scaleY(-1); }

.story {
  background: var(--navy);
  color: var(--cream);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.story h2 { color: var(--gold); margin-bottom: 1rem; }

.story p { max-width: 38rem; margin-bottom: 1rem; opacity: 0.94; }

.story-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.est-badge {
  display: grid;
  place-content: center;
  text-align: center;
  width: 10.5rem;
  height: 10.5rem;
  background: var(--gold);
  color: var(--navy);
  border: 3px solid var(--cream);
  border-radius: 50% 47% 51% 49% / 48% 52% 47% 52%;
  transform: rotate(7deg);
  font-family: var(--font-display);
  box-shadow: 0.4rem 0.45rem 0 rgba(0, 0, 0, 0.25);
}

.est-top { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.3em; text-indent: 0.3em; }
.est-year { font-weight: 800; font-size: 2.9rem; line-height: 1.05; }

/* ---------- FAQ ---------- */

.faq { padding-block: clamp(3rem, 6vw, 5rem); }

.faq-list { display: grid; gap: 1.1rem; max-width: 46rem; margin-top: 2rem; }

.faq-list details { padding: 0; overflow: hidden; }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 3.2rem 1rem 1.4rem;
  position: relative;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink);
  transition: rotate 0.2s ease;
}

.faq-list details[open] summary::after { rotate: 45deg; }

.faq-list summary:hover { color: var(--pink); }

.faq-list details p { padding: 0 1.4rem 1.2rem; }

.faq-list a { color: var(--pink); font-weight: 600; }

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--gold);
  border-top: 3px solid var(--navy);
  padding-block: clamp(3rem, 7vw, 5rem);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23232C4E' fill-opacity='0.05' transform='rotate(-18 70 70)'%3E%3Cellipse cx='70' cy='82' rx='16' ry='13'/%3E%3Cellipse cx='49' cy='60' rx='7' ry='9'/%3E%3Cellipse cx='64' cy='52' rx='7' ry='9'/%3E%3Cellipse cx='80' cy='53' rx='7' ry='9'/%3E%3Cellipse cx='93' cy='63' rx='7' ry='9'/%3E%3C/g%3E%3C/svg%3E");
}

.nl-card {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  transform: rotate(-0.7deg);
  text-align: center;
}

.nl-card h2 { margin-bottom: 0.6rem; }

.nl-card > p { max-width: 32rem; margin-inline: auto; }

.nl-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.nl-form .nl-name,
.nl-form .nl-email {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--navy);
  padding: 0.65rem 1.2rem;
  border: 3px solid var(--navy);
  border-radius: 3rem 2.6rem 3rem 2.7rem / 2.7rem 3rem 2.6rem 3rem;
  background: var(--cream);
}

.nl-form .nl-name { flex: 1 1 9rem; }
.nl-form .nl-email { flex: 1.6 1 13rem; }

.nl-form .nl-name:focus-visible,
.nl-form .nl-email:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

.form-status {
  font-weight: 600;
  margin-top: 1.2rem;
  padding: 0.6rem 1rem;
  border-radius: 0.9rem;
}

.status-ok  { background: #E3F4DC; border: 2px solid #3E7C2F; color: #2C5A21; }
.status-err { background: #FBE0E8; border: 2px solid var(--pink-deep); color: var(--pink-deep); }

/* Honeypot — hidden from humans, present for bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-ink);
  color: var(--cream);
  padding-block: 2.8rem 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand { display: flex; gap: 1rem; align-items: center; }

.footer-brand img { border-radius: 50%; border: 2.5px solid var(--gold); flex-shrink: 0; }

.footer-nav { display: grid; gap: 0.35rem; }

.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--white); text-decoration: underline; }

.footer-fine {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 246, 236, 0.25);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---------- Motion ---------- */

.rise { animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; animation-delay: var(--d, 0s); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.2rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.js .reveal {
  opacity: 0;
  translate: 0 1.1rem;
  transition: opacity 0.65s ease, translate 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--d, 0s);
}

.js .reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .float-a, .float-b, .float-c { animation: none; }
  .btn, .card { transition: none; }
}

/* ---------- Accessibility helpers ---------- */

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

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3.5rem;
  z-index: 300;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.6rem 0.6rem;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* ---------- Responsive ---------- */

@media (max-width: 56.25em) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-art { order: 0; max-width: 26rem; margin-inline: auto; }
  .lede, .hero-note { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .story-grid { grid-template-columns: 1fr; }
  .est-badge { margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 40em) {
  .site-nav > a:not(.btn) { display: none; }
  .float { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.1rem; }
  .btn-small { font-size: 0.85rem; padding: 0.3rem 0.9rem; }
}
