/* ===================================================================
   Pawsitive Bites Co. — coastal brand stylesheet
   Palette pulled from the logo & packaging: sand, sea-blue, sage, tan.
   =================================================================== */

:root {
  /* Palette sampled directly from the Pawsitive Bites Co. logo */
  --sand: #f2ead9;
  --sand-2: #e9dcc6;
  --cream: #f8f1e5;        /* warm cream of the logo disc */
  --ink: #22425c;          /* deep navy text (was green) */
  --ink-soft: #506a7e;     /* blue-grey */
  --sage: #5f9ec5;         /* (was sage green) now a light coastal blue */
  --sage-deep: #1f6f9c;    /* (was deep sage) now the "beach ball" blue — CTAs/headings */
  --blue: #3f6f97;         /* mid wave blue */
  --blue-deep: #294f73;    /* deep navy of the wave */
  --blue-soft: #86acca;    /* light wave highlight */
  --tan: #bfa477;          /* warm taupe/tan of "BITES CO." & paws */
  --tan-deep: #9c7f4e;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(61, 74, 55, 0.12);
  --shadow-sm: 0 4px 14px rgba(61, 74, 55, 0.1);
  --radius: 18px;
  --maxw: 1180px;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Dancing Script', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
}

h1, h2, h3 { font-weight: 600; line-height: 1.2; color: var(--ink); }

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.script { font-family: var(--font-script); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--sage-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #17597f; color: #fff; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-tan { background: var(--tan); color: #fff; }
.btn-tan:hover { background: var(--tan-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--sage); }
.btn-ghost:hover { background: var(--sage); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(127, 141, 107, 0.2);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 128px; width: auto; }
.nav-brand .brand-text { font-family: var(--font-script); font-size: 1.6rem; color: var(--sage-deep); line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--sage-deep); text-decoration: none; }
.cart-btn {
  position: relative; background: var(--sage-deep); color: #fff;
  border: none; border-radius: 999px; padding: 10px 18px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
}
.cart-count {
  position: absolute; top: -8px; right: -8px;
  background: var(--tan-deep); color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; font-size: .78rem;
  display: flex; align-items: center; justify-content: center; padding: 0 6px;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: 120px 0 130px;
  background:
    linear-gradient(rgba(47, 86, 121, 0.35), rgba(61, 74, 55, 0.45)),
    linear-gradient(120deg, #6f9cbf, #3f6f97 60%, #294f73);
  background-size: cover; background-position: center;
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow { letter-spacing: 3px; text-transform: uppercase; font-size: .8rem; font-weight: 600; opacity: .95; }
.hero h1 { font-family: var(--font-script); font-size: clamp(3rem, 8vw, 5.5rem); margin: 6px 0 4px; text-shadow: 0 2px 18px rgba(0,0,0,.2); }
.hero .tagline { font-size: clamp(1.1rem, 2.5vw, 1.5rem); max-width: 640px; margin: 0 auto 26px; font-weight: 300; }
.hero .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Wavy divider */
.wave-divider { line-height: 0; }
.wave-divider svg { width: 100%; height: 70px; display: block; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .script { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--sage-deep); display: block; }
.section-head .kicker { text-transform: uppercase; letter-spacing: 2px; font-size: .82rem; color: var(--tan-deep); font-weight: 600; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.bg-sand { background: var(--sand); }
.bg-cream { background: var(--cream); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { background: var(--white); border-radius: var(--radius); padding: 34px 26px; text-align: center; box-shadow: var(--shadow-sm); }
.pillar .icon {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff;
}
.pillar:nth-child(1) .icon { background: var(--blue-soft); }
.pillar:nth-child(2) .icon { background: var(--sage); }
.pillar:nth-child(3) .icon { background: var(--tan); }
.pillar h3 { margin: 0 0 10px; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- Story split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.highlight { color: var(--sage-deep); font-weight: 700; }
.charity-badge {
  display: flex; gap: 16px; align-items: center; margin-top: 24px;
  background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--blue);
}
.charity-badge .big { font-size: 2.4rem; font-weight: 700; color: var(--blue); font-family: var(--font-script); }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .thumb { aspect-ratio: 4 / 5; background: var(--sand-2); position: relative; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--tan-deep); font-family: var(--font-script); font-size: 1.6rem; text-align: center; padding: 20px;
}
.product-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { text-transform: uppercase; letter-spacing: 1.5px; font-size: .72rem; color: var(--tan-deep); font-weight: 600; }
.product-card h3 { margin: 4px 0 8px; font-size: 1.18rem; }
.product-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: .93rem; flex: 1; }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.product-card .price { font-size: 1.4rem; font-weight: 700; color: var(--sage-deep); }
.stock-pill { font-size: .78rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.stock-ok { background: #e6efd9; color: var(--sage-deep); }
.stock-low { background: #fbeede; color: var(--tan-deep); }
.stock-out { background: #f3dede; color: #a24b4b; }

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(45, 55, 40, 0.45);
  opacity: 0; visibility: hidden; transition: .25s; z-index: 60;
}
.overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 90vw;
  background: var(--cream); z-index: 70; box-shadow: -8px 0 30px rgba(0,0,0,.15);
  transform: translateX(100%); transition: transform .28s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer header { padding: 22px; border-bottom: 1px solid rgba(127,141,107,.25); display: flex; justify-content: space-between; align-items: center; }
.cart-drawer header h3 { margin: 0; font-size: 1.3rem; }
.cart-close { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 40px 10px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(127,141,107,.18); }
.cart-line .info { flex: 1; }
.cart-line .info .name { font-weight: 600; font-size: .95rem; }
.cart-line .info .unit { font-size: .82rem; color: var(--ink-soft); }
.qty-ctrl { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-ctrl button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--sage); background: #fff; cursor: pointer; font-weight: 700; color: var(--sage-deep); }
.qty-ctrl span { min-width: 20px; text-align: center; font-weight: 600; }
.line-remove { background: none; border: none; color: #a24b4b; cursor: pointer; font-size: .8rem; }
.line-total { font-weight: 700; color: var(--sage-deep); }

.cart-foot { border-top: 1px solid rgba(127,141,107,.25); padding: 18px 22px 24px; }
.donation-box { background: #eaf1f6; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.donation-box label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
.donation-box .charity { font-size: .78rem; color: var(--blue-deep); }
.donation-opts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.donation-opts button {
  border: 1px solid var(--blue-soft); background: #fff; color: var(--blue-deep);
  border-radius: 999px; padding: 5px 14px; cursor: pointer; font-weight: 600; font-size: .85rem;
}
.donation-opts button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.summary-row { display: flex; justify-content: space-between; margin: 4px 0; font-size: .95rem; }
.summary-row.total { font-size: 1.2rem; font-weight: 700; color: var(--sage-deep); margin-top: 10px; }

/* ---------- Checkout modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(45,55,40,.5); z-index: 80;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream); border-radius: var(--radius); max-width: 460px; width: 100%;
  padding: 30px; box-shadow: var(--shadow); max-height: 92vh; overflow-y: auto;
}
.modal h3 { margin-top: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid rgba(127,141,107,.4);
  border-radius: 10px; font-family: var(--font-body); font-size: .95rem; background: #fff;
}
.pay-options { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
#paypal-button-container { margin-top: 8px; }
.msg { padding: 10px 14px; border-radius: 10px; font-size: .9rem; margin: 10px 0; display: none; }
.msg.show { display: block; }
.msg.error { background: #f6dede; color: #9c3b3b; }
.msg.info { background: #e6efd9; color: var(--sage-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e8ecdf; padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; }
.site-footer a { color: #cdd7bf; }
.site-footer .script { font-family: var(--font-script); font-size: 1.8rem; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { text-align: center; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; opacity: .8; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 980px; margin: 40px auto; padding: 0 22px; }
.admin-login { max-width: 360px; margin: 80px auto; background: #fff; padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(127,141,107,.18); font-size: .9rem; }
.admin-table th { background: var(--sand-2); font-weight: 600; }
.admin-table input { width: 100%; padding: 7px 9px; border: 1px solid rgba(127,141,107,.35); border-radius: 8px; font-family: var(--font-body); }
.admin-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.tag-active { background: #e6efd9; color: var(--sage-deep); }
.tag-inactive { background: #eee; color: #888; }

/* ===================================================================
   DOG-PAW CURSOR — open paw by default, "clenched" paw while clicking
   (SVG cursors are OS-drawn = no lag; browsers that don't support them
    fall back to the normal pointer automatically.)
   =================================================================== */
:root {
  --paw-open: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 32 32'%3E%3Cg fill='%23b8895a' stroke='%23ffffff' stroke-width='1.6'%3E%3Cellipse cx='16' cy='22' rx='7' ry='6'/%3E%3Cellipse cx='7' cy='15' rx='3' ry='4'/%3E%3Cellipse cx='13' cy='10' rx='3' ry='4.5'/%3E%3Cellipse cx='19' cy='10' rx='3' ry='4.5'/%3E%3Cellipse cx='25' cy='15' rx='3' ry='4'/%3E%3C/g%3E%3C/svg%3E") 16 16, auto;
  --paw-closed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 32 32'%3E%3Cg fill='%23a5754a' stroke='%23ffffff' stroke-width='1.7'%3E%3Cellipse cx='16' cy='20' rx='8' ry='6.5'/%3E%3Cellipse cx='9.5' cy='14.5' rx='2.4' ry='3'/%3E%3Cellipse cx='14' cy='12' rx='2.5' ry='3.2'/%3E%3Cellipse cx='18' cy='12' rx='2.5' ry='3.2'/%3E%3Cellipse cx='22.5' cy='14.5' rx='2.4' ry='3'/%3E%3C/g%3E%3C/svg%3E") 16 16, auto;
}
html, body { cursor: var(--paw-open); }
a, button, .btn, .cart-btn, .to-top, .nav-toggle, .qty-ctrl button,
.donation-opts button, .add-btn, label, select, summary,
input[type="button"], input[type="submit"], input[type="checkbox"], input[type="radio"] {
  cursor: var(--paw-open);
}
/* keep a normal text caret in fields you actually type into */
input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
textarea { cursor: text; }
/* clenched paw everywhere while the mouse button is held */
body.paw-down, body.paw-down * { cursor: var(--paw-closed) !important; }

/* ===================================================================
   FANCY EFFECTS LAYER — animations, parallax, glass, reveals
   =================================================================== */

/* Scroll-reveal (driven by IntersectionObserver in main.js) */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }
.reveal-zoom { opacity: 0; transform: scale(.9); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal-zoom.in { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-zoom { opacity: 1 !important; transform: none !important; }
}

/* Animated gradient sea behind the hero */
.hero {
  background:
    linear-gradient(rgba(47, 86, 121, 0.38), rgba(61, 74, 55, 0.5)),
    linear-gradient(120deg, #7fb2d4, #3f6f97, #294f73, #3f6f97);
  background-size: 100% 100%, 300% 300%;
  animation: seaShift 16s ease infinite;
  overflow: hidden;
}
@keyframes seaShift {
  0% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
  100% { background-position: 0 0, 0% 50%; }
}
.hero h1 { animation: floatIn 1s cubic-bezier(.2,.8,.2,1) both; }
.hero .eyebrow { animation: floatIn .8s ease both; }
.hero .tagline { animation: floatIn 1.1s ease both; }
.hero .btn-row { animation: floatIn 1.3s ease both; }
@keyframes floatIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Sun glow + drifting light in hero */
.hero::before {
  content: ""; position: absolute; top: -120px; right: -80px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 240, 200, .55), rgba(255, 240, 200, 0) 70%);
  border-radius: 50%; z-index: 1; animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.15); opacity: 1; } }

/* Floating bubbles in hero */
.bubbles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.bubble { position: absolute; bottom: -60px; background: rgba(255,255,255,.18); border-radius: 50%; animation: rise linear infinite; }
@keyframes rise {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  10% { opacity: .7; }
  100% { transform: translateY(-105vh) scale(1.1); opacity: 0; }
}

/* Floating paw prints drifting up the page */
.paw-float { position: fixed; z-index: 1; font-size: 26px; color: rgba(193, 162, 110, .35); pointer-events: none; animation: pawDrift linear infinite; }
@keyframes pawDrift {
  0% { transform: translateY(20vh) rotate(0deg); opacity: 0; }
  10% { opacity: .5; }
  90% { opacity: .5; }
  100% { transform: translateY(-110vh) rotate(40deg); opacity: 0; }
}

/* Glassmorphism cards */
.pillar {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6);
  position: relative; overflow: hidden;
}
.pillar::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.pillar:hover::after { left: 130%; }
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pillar .icon { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.pillar:hover .icon { transform: rotate(-8deg) scale(1.12); }

/* Animated counter stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-script); font-size: clamp(2.6rem, 6vw, 3.8rem); color: var(--tan-deep); line-height: 1; }
.stat .lbl { font-size: .9rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1.5px; }

/* Product card image zoom + shine */
.product-card .thumb img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .7s ease;
}
.product-card:hover .thumb::after { transform: translateX(100%); }
.product-card .btn { transition: transform .15s ease, box-shadow .2s ease, letter-spacing .2s ease; }
.product-card .btn:hover { letter-spacing: .5px; }

/* Button pulse on primary CTA */
.btn-pulse { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,111,156,.5); } 50% { box-shadow: 0 0 0 14px rgba(31,111,156,0); } }

/* "Fly to cart" animation clone */
.fly-clone { position: fixed; z-index: 200; border-radius: 12px; box-shadow: var(--shadow); pointer-events: none;
  transition: transform .8s cubic-bezier(.5,-0.3,.3,1), opacity .8s ease, width .8s ease, height .8s ease; object-fit: cover; }
.cart-btn.bump { animation: bump .4s ease; }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.25); } }

/* Section entrance for the wave dividers */
.wave-divider svg path { animation: waveMove 8s ease-in-out infinite alternate; }
@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(-20px); } }

/* Gradient text accent */
.grad-text {
  background: linear-gradient(90deg, var(--blue), var(--sage-deep), var(--tan-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: gradSlide 6s linear infinite;
}
@keyframes gradSlide { to { background-position: 200% center; } }

/* Back-to-top button */
.to-top {
  position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--sage-deep); color: #fff; border: none; cursor: pointer; font-size: 1.3rem;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: .3s; z-index: 55;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #17597f; transform: translateY(-3px); }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--blue), var(--sage), var(--tan)); transition: width .1s ease; }

/* Toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(30px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  box-shadow: var(--shadow); z-index: 210; opacity: 0; transition: .35s; font-weight: 500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Marquee ribbon */
.ribbon { background: var(--sage-deep); color: #fff; overflow: hidden; white-space: nowrap; padding: 9px 0; }
.ribbon .track { display: inline-block; animation: marquee 40s linear infinite; }
.ribbon .track span { margin: 0 26px; font-weight: 500; letter-spacing: .5px; font-size: .9rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .pillars, .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 0 22px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: var(--shadow-sm); }
  .nav-links.open { max-height: 340px; padding: 12px 22px; }
  .nav-links li { width: 100%; padding: 8px 0; }
  .nav-toggle { display: block; }
}
