@charset "utf-8";
/* ==========================================================================
   Homepage + product boxes redesign (round 2)
   Fonts (Fraunces / Manrope) and the colour palette are unchanged.
   ========================================================================== */

:root {
  /* palette taken from the "A Pure Choice Nutrition" logo: forest green, leaf green, lime highlight */
  --brand: #2b7a1a;
  --brand-dark: #16652b;
  --accent: #6cb52a;
  --lime: #b5dc46;
  --ink: #163d22;
  --ink-soft: #4a6151;
  --bg: #f6faee;
  --surface-alt: #e9f1d9;
  --line: #d6e4c3;
  --tone-keto: #dcecc4;
  --tone-cleanse: #dce8e6;
  --tone-bundle: #ebf1d8;
  --btn-grad: linear-gradient(100deg, #12622a 0%, #2a8022 30%, #55a626 58%, #8dc830 82%, #b5dc46 100%);
  --btn-grad-lime: linear-gradient(100deg, #5fae26 0%, #8ccb32 35%, #b5dc46 65%, #e3f4a0 100%);
}

/* ---------- Buttons (site-wide) ---------- */
.btn, .btn:link, .btn:visited {
  border: 0; border-radius: 6px; color: #fff;
  background: var(--btn-grad); background-size: 300% 100%; background-position: 0 0;
  font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 10px 20px -12px rgba(19, 95, 42, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: background-position .6s ease, color .3s ease, box-shadow .3s ease, transform .25s ease;
}
.btn:hover {
  color: #0b2d14; border: 0;
  background: var(--btn-grad); background-size: 300% 100%; background-position: 100% 0;
  box-shadow: 0 16px 26px -12px rgba(95, 174, 38, .75), inset 0 1px 0 rgba(255, 255, 255, .5);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(108, 181, 42, .45); outline-offset: 2px; }

/* lime version, for use on the dark hero */
.btn-accent, .btn-accent:link, .btn-accent:visited {
  width: auto; padding: 1rem 1.9rem; color: #0b2d14;
  background: var(--btn-grad-lime); background-size: 220% 100%; background-position: 0 0;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-accent:hover {
  color: #06210f;
  background: var(--btn-grad-lime); background-size: 220% 100%; background-position: 100% 0;
  box-shadow: 0 18px 30px -12px rgba(181, 220, 70, .55), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.link-light {
  color: #fff; font-weight: 700; font-size: .95rem;
  padding-bottom: 3px; border-bottom: 1px solid rgba(255, 255, 255, .55);
  transition: border-color .2s ease;
}
.link-light:hover { border-color: #fff; }

/* ==========================================================================
   HERO  -  teal band, copy left, landscape photo in a frame on the right,
   bottles standing on the frame's lower-left corner
   ========================================================================== */
.hero {
  position: relative; z-index: 3;
  padding: 0; background: #0f5626; color: #fff;
  overflow: hidden;
}
/* moving glow orbs behind the content */
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-orbs i {
  position: absolute; display: block; border-radius: 50%; will-change: transform;
  width: 62vmax; height: 62vmax; filter: blur(70px);
}
.hero-orbs i:nth-child(1) { /* lime, drifts across the right half */
  background: radial-gradient(circle, rgba(196, 232, 80, .85) 0%, rgba(196, 232, 80, 0) 68%);
  left: 38%; top: -30%; animation: orbA 2.6s ease-in-out infinite alternate;
}
.hero-orbs i:nth-child(2) { /* bright green, sweeps left <-> centre */
  background: radial-gradient(circle, rgba(52, 190, 84, .8) 0%, rgba(52, 190, 84, 0) 66%);
  left: -22%; top: 8%; width: 56vmax; height: 56vmax; animation: orbB 3.2s ease-in-out infinite alternate;
}
.hero-orbs i:nth-child(3) { /* deep shadow, gives the contrast */
  background: radial-gradient(circle, rgba(3, 38, 16, .9) 0%, rgba(3, 38, 16, 0) 66%);
  left: 5%; top: 30%; width: 58vmax; height: 58vmax; animation: orbC 2.8s ease-in-out infinite alternate;
}
.hero-orbs i:nth-child(4) { /* soft light bloom top-right */
  background: radial-gradient(circle, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 65%);
  right: -12%; top: -38%; width: 42vmax; height: 42vmax; animation: orbD 3.6s ease-in-out infinite alternate;
}
@keyframes orbA { 0% { transform: translate(-18%, 8%) scale(.9); } 50% { transform: translate(10%, 30%) scale(1.12); } 100% { transform: translate(30%, -6%) scale(1); } }
@keyframes orbB { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60%, 16%) scale(1.15); } 100% { transform: translate(26%, -14%) scale(.9); } }
@keyframes orbC { 0% { transform: translate(-6%, 20%) scale(1); } 50% { transform: translate(36%, -8%) scale(1.1); } 100% { transform: translate(84%, 10%) scale(.92); } }
@keyframes orbD { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-44%, 40%) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .hero-orbs i { animation: none; } }
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(70px, 8vw, 120px);
}
.hero-copy { max-width: 540px; }
.hero h1 {
  color: #fff; text-transform: none; text-wrap: balance;
  font-size: clamp(36px, 4vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: .6em;
}
.hero .lede { color: rgba(255, 255, 255, .84); max-width: 44ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6rem; margin: 1.9rem 0 2.4rem; }

.hero-points {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem;
  margin: 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-points li { position: relative; padding-left: 1.7rem; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 6px;
  border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg);
}
.hero-points strong { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.hero-points span { display: block; font-size: .88rem; line-height: 1.5; color: rgba(255, 255, 255, .68); }
.hero-note { margin: 1.4rem 0 0; font-size: .85rem; color: rgba(255, 255, 255, .6); }

.hero-media { position: relative; margin: 0 auto; width: 100%; max-width: 480px; }
/* offset outline behind the photo */
.hero-media::before {
  content: ""; position: absolute; z-index: 0; top: 16px; right: -12px; bottom: -16px; left: 16px;
  border: 1px solid rgba(181, 220, 70, .55); border-radius: 16px;
}
.hero-frame {
  position: relative; z-index: 1; aspect-ratio: 1122 / 1402; overflow: hidden; border-radius: 16px; background: #145f2b;
}
.hero-media .hero-photo {
  display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center;
  border-radius: 0; box-shadow: none;
}
.hero-media .hero-bottles {
  position: absolute; z-index: 2; left: clamp(-64px, -4vw, -28px); bottom: -34px;
  width: clamp(170px, 19vw, 270px); max-width: none; height: auto; aspect-ratio: auto;
  border-radius: 0; box-shadow: none;
  filter: drop-shadow(0 18px 18px rgba(6, 28, 26, .4));
}

/* ==========================================================================
   PRODUCTS  -  slider with filter tabs
   ========================================================================== */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.shop { position: relative; z-index: 1; overflow: hidden; padding-top: clamp(120px, 12vw, 190px); }

.shop-head h2 { text-transform: none; font-size: clamp(32px, 3.6vw, 46px); margin: 0 0 .3rem; }
.shop-head p { color: var(--ink-soft); margin: 0; }

.shop-bar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin: 2rem 0 1.6rem; border-bottom: 1px solid var(--line);
}
.shop-tabs { display: flex; gap: 1.8rem; overflow-x: auto; scrollbar-width: none; }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tabs button {
  appearance: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
  font: 700 .98rem/1 var(--font-body); color: var(--ink-soft);
  padding: .55rem 0 1rem; margin-bottom: -1px; border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.shop-tabs button:hover { color: var(--ink); }
.shop-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

.rail-arrows { display: flex; gap: .5rem; padding-bottom: .7rem; }
.rail-arrows button {
  width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 4px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.rail-arrows button:hover:not(:disabled) { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.rail-arrows button:disabled { opacity: .35; cursor: default; }

/* the rail bleeds off the right edge so the next card peeks in */
.rail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-right: calc(50% - 50vw); padding: 4px calc(50vw - 50%) 14px 0;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail.is-dragging .p-card { pointer-events: none; }

.rail-progress { position: relative; height: 3px; margin-top: 1.4rem; background: var(--line); border-radius: 3px; overflow: hidden; }
.rail-progress span { position: absolute; left: 0; top: 0; height: 100%; width: 25%; background: var(--brand); border-radius: 3px; }

/* product grid variant (product.php) */
.rail-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
  overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; cursor: auto;
}
.rail-grid .p-card { flex: none; }

/* ---------- product card ---------- */
.p-card {
  flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.p-card[hidden] { display: none; }
.p-card:hover { border-color: #a9cc73; box-shadow: 0 16px 30px -22px rgba(19, 95, 42, .5); }

.p-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.tone-keto { background: var(--tone-keto); }
.tone-cleanse { background: var(--tone-cleanse); }
.tone-bundle { background: var(--tone-bundle); }
.p-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9%;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1); user-select: none;
}
.p-card:hover .p-media img { transform: scale(1.06); }

.p-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.2rem; }
.p-body h3 { font-size: 1.28rem; line-height: 1.2; text-transform: none; margin: 0; }
.p-body h3 a:hover { color: var(--brand); }
.p-body h3 span { display: block; margin-top: .15rem; font-family: var(--font-body); font-size: .86rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.p-size { margin: .35rem 0 1rem; font-size: .84rem; line-height: 1.45; color: var(--ink-soft); letter-spacing: 0; }
.p-buy { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; }
.p-price { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; color: var(--brand-dark); }
.p-buy .btn { width: auto; padding: .6rem 1.05rem; font-size: .88rem; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: var(--surface-alt); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 6rem); align-items: center;
}
.about-media { position: relative; margin: 0 auto; width: 100%; max-width: 360px; height: auto; }
.about-media > img:first-child { width: 100%; aspect-ratio: 941 / 1672; object-fit: cover; border-radius: 12px; box-shadow: none; height: auto; }
.about-copy h2 { text-transform: none; margin-bottom: .6em; }
.about-copy p { color: var(--ink-soft); }

.feature-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin: 2rem 0 0;
}
.feature-list li {
  display: block; padding: 0 0 0 1rem; border-left: 3px solid var(--accent);
  font-size: .95rem; line-height: 1.55; color: var(--ink-soft);
}
.feature-list li::before { content: none; }
.feature-list strong { display: block; margin-bottom: .15rem; font-size: 1.1rem; text-transform: none; color: var(--ink); }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how h2 { text-transform: none; max-width: 18ch; margin-bottom: 1.4em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5.5rem); }
.steps li { position: relative; border: 0; padding: 0; }
.steps li + li::before {
  content: ""; position: absolute; top: 4px; left: calc(clamp(2rem, 6vw, 5.5rem) / -1 - 2px);
  width: clamp(2rem, 6vw, 5.5rem); height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 34' fill='none' stroke='%236cb52a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 26C28 4 62 2 90 16' stroke-dasharray='2 7'/%3E%3Cpath d='M80 9l11 8-13 4'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.step-label {
  display: block; margin: 0 0 .5rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--brand);
}
.steps h3 { font-size: 1.65rem; line-height: 1.15; text-transform: none; margin: 0 0 .5rem; }
.steps p { margin: 0; max-width: 32ch; color: var(--ink-soft); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1250px) {
  .hero-points { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .p-card { flex-basis: calc((100% - 40px) / 3); }
  .rail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding-bottom: 90px; }
  .hero-copy { max-width: none; }
  .hero-media { max-width: 440px; }
  .hero-media .hero-bottles { left: -10px; width: clamp(150px, 30vw, 220px); }
  .shop { padding-top: 90px; }

  .p-card { flex-basis: calc((100% - 20px) / 2); }
  .rail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 320px; }

  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .steps li + li { padding-top: 1.8rem; border-top: 1px solid var(--line); }
  .steps li + li::before { content: none; }
}
@media (max-width: 560px) {
  .hero-points { grid-template-columns: 1fr; }
  .hero-media::before { top: 12px; right: -8px; bottom: -12px; left: 12px; }
  .hero-actions { gap: 1.2rem; }
  .p-card { flex-basis: 78%; }
  .rail-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rail-grid .p-card { flex-basis: auto; }
  .rail-grid .p-body { padding: .85rem .8rem 1rem; }
  .rail-grid .p-body h3 { font-size: 1.05rem; }
  .rail-grid .p-price { font-size: 1.25rem; }
  .rail-grid .p-buy { flex-wrap: wrap; gap: .5rem; }
  .rail-grid .p-buy .btn { width: 100%; }
  .rail-arrows { display: none; }
  .shop-bar { margin-top: 1.4rem; }
  .feature-list { gap: 1.1rem; }
}

/* ---------- footer + misc, logo palette ---------- */
.footer { background: linear-gradient(165deg, #10552a 0%, #187030 100%); }
.nav-burger span, .mob-mnu-ic .bar1, .mob-mnu-ic .bar2, .mob-mnu-ic .bar3 { background-color: var(--brand); }

/* breadcrumb bar + purchase toggle */
.inner-top { background: linear-gradient(100deg, #135f2a 0%, #1a7a30 60%, #2f9a34 100%); }
ul.inr-top-list li a, ul.inr-top-list li a:hover { color: #fff; }
.pack-opt .pack-op { transition: background-position .5s ease, color .25s ease; }
.pack-op.opted, .pack-opt .pack-op:hover {
  background: var(--btn-grad); background-size: 300% 100%; background-position: 0 0; color: #fff;
}
.pack-opt .pack-op:hover:not(.opted) { background-position: 100% 0; color: #0b2d14; }

/* header logo, smaller */
.site-header .logo { max-width: clamp(125px, 14vw, 185px); }
.site-header .logo img { display: block; width: 100%; height: auto; }

/* footer logo: pure white */
.brand-footer img { filter: brightness(0) invert(1); opacity: 1; }
