/* ==========================================================================
   Barky Bites — brand stylesheet
   Palette lifted from the physical pack label (orange / cream / charcoal)
   ========================================================================== */

:root {
  --orange:        #F2A123;
  --orange-deep:   #E08207;
  --orange-dark:   #C46A00;
  --orange-soft:   #FDE7C0;
  --cream:         #FFF7EA;
  --cream-2:       #FDEFDA;
  --charcoal:      #241C13;
  --ink:           #3B2F22;
  --muted:         #7A6A57;
  --white:         #FFFFFF;
  --green:         #4B9B4E;
  --red:           #D24B3E;

  --radius:        22px;
  --radius-sm:     14px;
  --radius-pill:   999px;

  --shadow-sm:     0 2px 10px rgba(60, 40, 12, .07);
  --shadow:        0 14px 34px rgba(80, 52, 10, .12);
  --shadow-lg:     0 30px 70px rgba(80, 52, 10, .20);

  --maxw:          1180px;
  --nav-h:         76px;

  --font-display:  'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body:     'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p  { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout helpers ---------- */
.wrap { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }
section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-soft);
  padding: 7px 16px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow::before { content: "🐾"; font-size: .95rem; letter-spacing: 0; }

/* ---------- paw pattern ---------- */
.pawfield {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23F2A123' fill-opacity='.16'%3E%3Cellipse cx='30' cy='36' rx='7' ry='9'/%3E%3Cellipse cx='45' cy='30' rx='6' ry='8'/%3E%3Cellipse cx='59' cy='34' rx='5.5' ry='7.5'/%3E%3Cellipse cx='44' cy='51' rx='13' ry='11'/%3E%3Cellipse cx='92' cy='96' rx='5' ry='6.5'/%3E%3Cellipse cx='103' cy='92' rx='4.5' ry='6'/%3E%3Cellipse cx='100' cy='106' rx='9' ry='8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 15px 30px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, background .22s ease, color .22s ease;
}
.btn-primary {
  background: var(--orange); color: var(--charcoal);
  box-shadow: 0 8px 0 0 var(--orange-dark), var(--shadow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 11px 0 0 var(--orange-dark), var(--shadow-lg); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 4px 0 0 var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: rgba(36,28,19,.22); }
.btn-ghost:hover { border-color: var(--charcoal); transform: translateY(-3px); }
.btn-light { background: var(--white); color: var(--charcoal); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,247,234,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36,28,19,.07);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--charcoal); }
.brand .paw {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--orange); border-radius: 12px; font-size: 1.05rem;
  box-shadow: 0 4px 0 var(--orange-dark);
}
.brand span { letter-spacing: .01em; }
.navlinks { display: flex; align-items: center; gap: 34px; }
.navlinks a {
  font-weight: 700; font-size: .96rem; color: var(--ink); position: relative; padding: 4px 0;
}
.navlinks a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2.5px; width: 0;
  background: var(--orange); border-radius: 2px; transition: width .25s ease;
}
.navlinks a:hover::after, .navlinks a.active::after { width: 100%; }
.navlinks a.active { color: var(--orange-dark); }
.nav .btn { padding: 11px 22px; font-size: .92rem; }
.navtoggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--charcoal); }

@media (max-width: 900px) {
  .navtoggle { display: block; }
  .navlinks {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid rgba(36,28,19,.1);
    padding: 8px 24px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 14px 0; border-bottom: 1px solid rgba(36,28,19,.07); }
  .navlinks .btn { margin-top: 14px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 8vw, 112px);
  background:
    radial-gradient(900px 520px at 88% 8%, #FFE3B4 0%, rgba(255,227,180,0) 62%),
    radial-gradient(700px 500px at 4% 92%, #FFEED4 0%, rgba(255,238,212,0) 60%),
    var(--cream);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .yum { color: var(--orange-deep); }
.hero h1 .script {
  font-family: Georgia, 'Times New Roman', serif; font-style: italic;
  font-size: .5em; font-weight: 400; color: var(--muted); padding: 0 .12em;
  vertical-align: .12em;
}
.hero .lead { font-size: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 26px; font-size: .93rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero-note b { color: var(--ink); }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; border-radius: 30px; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/4.6; object-fit: cover;
}
.blob {
  position: absolute; inset: -6% -8% -10% -6%; z-index: -1;
  background: var(--orange); opacity: .16; border-radius: 46% 54% 58% 42% / 52% 45% 55% 48%;
  animation: morph 12s ease-in-out infinite alternate;
}
@keyframes morph {
  to { border-radius: 56% 44% 42% 58% / 44% 56% 46% 54%; transform: rotate(6deg) scale(1.04); }
}
.floater {
  position: absolute; background: var(--white); border-radius: 18px; padding: 13px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--charcoal);
  animation: bob 4.5s ease-in-out infinite;
}
.floater .ico { font-size: 1.4rem; }
.floater small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .74rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.floater.one { top: 9%; left: -7%; }
.floater.two { bottom: 14%; right: -6%; animation-delay: -2.2s; }
@keyframes bob { 50% { transform: translateY(-11px); } }

@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 460px; margin-inline: auto; }
  .floater.one { left: -3%; }
  .floater.two { right: -3%; }
}
@media (max-width: 520px) {
  .floater { padding: 10px 14px; font-size: .85rem; }
  .floater.one { left: 0; top: 4%; }
  .floater.two { right: 0; }
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--charcoal); color: var(--cream); padding: 17px 0;
  overflow: hidden; white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 46px; animation: slide 28s linear infinite; padding-right: 46px; }
.marquee span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 46px;
}
.marquee span::after { content: "🐾"; opacity: .65; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(36,28,19,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ico {
  width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center;
  background: var(--orange-soft); font-size: 1.6rem; margin-bottom: 18px;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- product cards ---------- */
.products { background: var(--white); }
.product {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(36,28,19,.07); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-top {
  padding: 30px 28px 26px; background: linear-gradient(160deg, var(--orange) 0%, #F7B94E 100%);
  position: relative; overflow: hidden;
}
.product-top .pawfield { opacity: .8; }
.product-top .tag {
  position: relative; z-index: 1;
  display: inline-block; background: var(--charcoal); color: var(--cream);
  font-family: var(--font-display); font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.product-top .tag.soon { background: rgba(36,28,19,.28); }
.product-top h3 { position: relative; z-index: 1; margin: 0; font-size: 1.5rem; color: var(--charcoal); }
.product-top .cookie { position: absolute; right: -14px; bottom: -22px; font-size: 5.4rem; opacity: .28; z-index: 0; }
.product-body { padding: 26px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.product-body .role { font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 10px; }
.product-body p { color: var(--muted); font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.chip {
  background: var(--white); border: 1px solid rgba(36,28,19,.1);
  border-radius: var(--radius-pill); padding: 6px 13px; font-size: .82rem; font-weight: 700; color: var(--ink);
}

/* ---------- comparison table ---------- */
.compare {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(36,28,19,.07);
}
.compare-head, .compare-row { display: grid; grid-template-columns: 1.6fr .8fr .8fr; align-items: center; }
.compare-head {
  background: var(--charcoal); color: var(--cream);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.compare-head > div, .compare-row > div { padding: 17px 22px; }
.compare-head > div + div, .compare-row > div + div { text-align: center; }
.compare-row { border-top: 1px solid rgba(36,28,19,.08); font-weight: 700; }
.compare-row:nth-child(even) { background: var(--cream); }
.yes { color: var(--green); font-size: 1.25rem; font-weight: 800; }
.no  { color: var(--red);   font-size: 1.25rem; font-weight: 800; }
@media (max-width: 620px) {
  .compare-head, .compare-row { grid-template-columns: 1.3fr .7fr .7fr; }
  .compare-head > div, .compare-row > div { padding: 13px 12px; font-size: .88rem; }
}

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: 26px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; }
.split.flip .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip .split-media { order: 0; }
}

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white); border-radius: var(--radius-sm); padding: 26px 24px;
  border: 1px solid rgba(36,28,19,.07); position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--orange-dark); background: var(--orange-soft);
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 15px;
}
.step h4 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- stats ---------- */
.stats { background: var(--charcoal); color: var(--cream-2); position: relative; overflow: hidden; }
.stats .pawfield { opacity: .35; }
.stats .wrap { position: relative; z-index: 1; }
.stats h2 { color: var(--white); }
.stats .lead { color: rgba(255,247,234,.68); }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
@media (max-width: 860px) { .statgrid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 30px 24px; text-align: center;
}
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: var(--orange); line-height: 1; }
.stat .lbl { font-size: .9rem; color: rgba(255,247,234,.66); margin-top: 9px; font-weight: 700; letter-spacing: .04em; }

/* ---------- ingredient lists ---------- */
.panel { background: var(--white); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-sm); border: 1px solid rgba(36,28,19,.06); }
.panel.bad { background: #FFF3F1; border-color: rgba(210,75,62,.16); }
.panel h3 { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.panel h3 .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.panel.bad h3 .dot { background: var(--red); }
.taglist { display: flex; flex-wrap: wrap; gap: 9px; }
.taglist li {
  background: var(--cream); border: 1px solid rgba(36,28,19,.09);
  border-radius: var(--radius-pill); padding: 8px 15px; font-size: .92rem; font-weight: 700;
}
.panel.bad .taglist li { background: var(--white); border-color: rgba(210,75,62,.2); color: #9E3427; text-decoration: line-through; text-decoration-color: rgba(210,75,62,.45); }
.panel > p { font-size: .95rem; color: var(--muted); }

/* ---------- timeline (about) ---------- */
.timeline { position: relative; margin-top: 54px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--orange), var(--orange-soft)); border-radius: 3px; }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 7px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--white); border: 4px solid var(--orange);
}
.tl-date { font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; color: var(--orange-dark); }
.tl-item h3 { margin: 6px 0 8px; font-size: 1.25rem; }
.tl-item p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- team ---------- */
.member { text-align: center; }
.member .avatar {
  width: 108px; height: 108px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--charcoal);
  background: linear-gradient(150deg, var(--orange) 0%, #F9C978 100%);
  box-shadow: 0 10px 24px rgba(224,130,7,.28);
}
.member h3 { margin-bottom: 4px; font-size: 1.2rem; }
.member .role { font-size: .9rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--orange-dark); }
.member p { font-size: .94rem; color: var(--muted); margin-top: 10px; }

/* ---------- quote ---------- */
.quote {
  background: var(--orange-soft); border-radius: var(--radius); padding: clamp(36px, 5vw, 60px);
  text-align: center; position: relative; overflow: hidden;
}
.quote .pawfield { opacity: .7; }
.quote blockquote {
  position: relative; z-index: 1; margin: 0;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2.7vw, 1.95rem);
  line-height: 1.4; color: var(--charcoal); max-width: 24ch; margin-inline: auto;
}
.quote cite { position: relative; z-index: 1; display: block; margin-top: 22px; font-style: normal; font-weight: 800; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); }

/* ---------- cta ---------- */
.cta { background: var(--white); }
.cta-box {
  background: linear-gradient(150deg, var(--orange) 0%, var(--orange-deep) 100%);
  border-radius: 34px; padding: clamp(44px, 6vw, 76px); text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-box .pawfield { opacity: 1; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: var(--charcoal); }
.cta-box p { color: rgba(36,28,19,.78); max-width: 52ch; margin-inline: auto; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* ---------- footer ---------- */
footer { background: var(--charcoal); color: rgba(255,247,234,.62); padding: 72px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
footer .brand { color: var(--cream); margin-bottom: 16px; }
footer p { font-size: .95rem; max-width: 38ch; }
footer h4 { color: var(--cream); font-size: .84rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
footer li { margin-bottom: 10px; font-size: .95rem; }
footer a:hover { color: var(--orange); }
.foot-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,247,234,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .87rem; color: rgba(255,247,234,.45);
}

/* ---------- scroll reveal ----------
   Hidden state is applied only when JS is running (html.js), so the page is
   fully readable if the script fails to load or is blocked. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}
