/* Wheels and Coconuts — site styles (mobile first) */

:root {
  --green: #0B4D2C;
  --green-dark: #063820;
  --yellow: #F2D22E;
  --yellow-dark: #E5C41C;
  --tint: #EEF6F0;
  --tint-2: #F5F9F6;
  --line: #E3EEE6;
  --line-2: #CFE0D5;
  --ink: #0F2A1C;
  --muted: #3F5A4B;
  --muted-2: #5C7366;
  --white: #FFFFFF;
  --danger: #B42318;

  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Fredoka', 'DM Sans', system-ui, sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(11, 77, 44, 0.16);
  --gutter: 16px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.15; color: var(--green); }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
button { font: inherit; }
[hidden] { display: none !important; }

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--green); color: var(--white); padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { stroke-width: 2.2; }
.btn-primary { background: var(--yellow); color: var(--green); }
.btn-primary:hover { background: var(--yellow-dark); color: var(--green); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--green); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }
.btn-lg { height: 56px; padding: 0 32px; font-size: 17px; }
.btn-block { width: 100%; }

.text-link { font-weight: 700; color: var(--green); text-underline-offset: 4px; }

.pill {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--green);
  background: var(--tint); padding: 6px 12px; border-radius: 999px;
}

/* ---------- Promo bar + header ---------- */
.promo-bar {
  background: var(--yellow); color: var(--green);
  font-size: 13px; font-weight: 700; text-align: center; padding: 10px 16px; letter-spacing: .02em;
}

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); }
.brand img { width: 50px; height: 50px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.05; }
.main-nav { display: none; }

.cart-button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--green); background: var(--white); color: var(--green);
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.cart-label { display: none; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--yellow); color: var(--green); font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }

/* ---------- Hero ---------- */
/* Hero 1 — photo first. Phone: full-width photo with a white panel overlapping it. */
.hero { position: relative; }
.hero-media { position: relative; }
.hero-photo { width: 100%; height: 470px; object-fit: cover; object-position: center 25%; }
.hero-logo {
  position: absolute; z-index: 3; right: 18px; bottom: 8px;
  width: 96px; height: 96px;
}
.hero-promo {
  position: absolute; left: var(--gutter); top: var(--gutter);
  display: flex; align-items: center; gap: 6px;
  background: var(--yellow); color: var(--green);
  font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px;
}
.hero-promo-tag { font-weight: 700; }
.hero-promo-tag::after { content: " ·"; }
.hero-promo-text strong { font-weight: 700; }
.hero-promo-text span { display: none; }

.hero-panel {
  position: relative; z-index: 2; margin-top: -56px;
  background: var(--white); border-radius: 32px 32px 0 0;
  padding: 30px 20px 32px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 11.5vw, 46px);
  line-height: 1.02; color: var(--green);
}
.hero mark { background: none; color: inherit; box-shadow: inset 0 -0.32em 0 var(--yellow); }
.lead { font-size: 17px; color: var(--muted); }
.hero-actions { width: 100%; margin-top: 4px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.hero-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hero-note svg { color: var(--green); stroke-width: 2; flex-shrink: 0; }

.claims-band { background: var(--green); color: var(--white); }
.claims {
  list-style: none; margin: 0 auto; padding-block: 14px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  font-size: 14px; font-weight: 700;
}
.claims li { display: flex; align-items: center; gap: 7px; }
.claims li::before {
  content: ""; width: 15px; height: 15px; flex-shrink: 0;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2D22E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.claims-extra { display: none !important; }

/* ---------- Sections ---------- */
.section { padding: 40px 0 44px; }
.section--tint { background: var(--tint-2); }
.section-head { margin-bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.section h2 + .steps, .section h2 + .gallery { margin-top: 20px; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product {
  background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 8px 12px; display: flex; flex-direction: column; gap: 8px;
}
/* Portrait frame so the whole bottle shows; the badge makes the size readable at a glance. */
.product-media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--tint); }
.product-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.size-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--yellow); color: var(--green); border-radius: 999px; padding: 4px 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.15;
  box-shadow: 0 2px 8px rgba(11, 77, 44, 0.25);
}
.product-info { padding: 0 6px; display: flex; flex-direction: column; gap: 2px; }
.product-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--green); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-size: 20px; font-weight: 700; }
.price-was { font-size: 14px; color: var(--muted-2); text-decoration: line-through; }
.product .btn, .product .stepper { margin: 4px 4px 0; height: 44px; }
.product .btn { padding: 0 10px; white-space: nowrap; }

.stepper {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 2px;
}
.stepper button {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--tint); color: var(--green); font-size: 20px; font-weight: 700; line-height: 1;
}
.stepper button:last-child { background: var(--yellow); }
.stepper output { min-width: 24px; text-align: center; font-weight: 700; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li {
  background: var(--white); border-radius: 18px; padding: 16px;
  display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; align-items: start;
}
.step-num {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: var(--yellow);
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 16px; }
.steps p { font-size: 15px; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery img { width: 100%; height: 135px; object-fit: cover; border-radius: var(--radius); }
.gallery img:first-child { grid-row: span 2; height: 280px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: var(--white); }
.footer-inner { padding-block: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-brand img { width: 96px; height: 96px; }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.footer-tagline { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--yellow); }
.footer-contact { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #CFE3D6; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.socials a {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, color .15s ease;
}
.socials a:hover { background: var(--yellow); color: var(--green); border-color: var(--yellow); }
.socials svg { width: 22px; height: 22px; }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 700; text-decoration: none; }
.footer-wa:hover { color: var(--yellow); }
.footer-wa svg { stroke: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15); padding-block: 18px 26px;
  font-size: 13px; color: #CFE3D6; text-align: center;
}

/* ---------- Drawer (cart + checkout) ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(6, 56, 32, .45); }
.drawer {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  max-height: 92vh; max-height: 92dvh;
  background: var(--white); border-radius: 24px 24px 0 0;
  display: flex; flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .15);
  animation: sheet-up .25s ease;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; }
.drawer-head h2 { font-size: 24px; }
.drawer-head h2:focus { outline: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tint);
  color: var(--green); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 16px 16px; }
.drawer-foot { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.total-row { display: flex; align-items: baseline; justify-content: space-between; font-weight: 700; }
.total-row strong { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--green); }

.cart-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cart-line {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  padding: 8px; border: 1px solid var(--line); border-radius: 16px;
}
.cart-line img { width: 56px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-line-name { font-weight: 700; }
.cart-line-sub { font-size: 14px; color: var(--muted); }
.cart-line .stepper { height: 44px; }

.checkout { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.field small { color: var(--muted-2); font-size: 13px; }
.optional { font-weight: 400; color: var(--muted-2); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: var(--white);
}
.field input { height: 50px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 77, 44, .15); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
/* Order form sections (Checkout 1 layout inside the panel) */
.empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0; color: var(--muted); }
.co-sections { display: flex; flex-direction: column; gap: 24px; }
.co-section { display: flex; flex-direction: column; gap: 12px; }
.co-section h3 { font-size: 17px; }
.pay-card {
  display: flex; gap: 14px; padding: 16px;
  border: 2px solid var(--green); background: var(--tint); border-radius: 18px;
}
.pay-card-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--yellow); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.pay-card-icon svg { stroke-width: 2; }
.pay-card strong { display: block; margin-bottom: 4px; }
.pay-card p { font-size: 14px; line-height: 1.45; color: var(--muted); }
.pay-card-details {
  margin: 6px 0 10px; padding: 10px 12px; background: var(--white); border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.pay-card-details dt { font-size: 13px; color: var(--muted); }
.pay-card-details dd { margin: 0; font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--green); }

/* Pay step (Checkout 2 details) */
.pay-step { display: flex; flex-direction: column; gap: 16px; }
.pay-saved { font-size: 14px; font-weight: 700; color: var(--muted); }
.pay-title { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--green); margin-top: 2px; }
.pay-intro { color: var(--muted); }
.amount-card {
  background: var(--green); color: var(--white); border-radius: 22px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 2px;
}
.amount-card span { font-size: 14px; color: #CFE3D6; }
.amount-card strong { font-family: var(--font-display); font-weight: 600; font-size: 42px; line-height: 1.1; color: var(--yellow); }
.copy-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; }
.copy-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; }
.copy-row + .copy-row { border-top: 1px solid var(--line); }
.copy-row div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.copy-row span { font-size: 13px; color: var(--muted); }
.copy-row strong { font-size: 18px; overflow-wrap: anywhere; }
.copy-btn {
  height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--line-2);
  background: var(--white); color: var(--green); font-weight: 700; font-size: 14px; cursor: pointer; flex-shrink: 0;
}
.copy-btn:hover { border-color: var(--green); }
.how-to {
  margin: 0; padding: 14px 16px 14px 34px; background: var(--tint); border-radius: 16px;
  display: flex; flex-direction: column; gap: 4px; font-size: 15px;
}
.small-note { font-size: 14px; color: var(--muted); }
.center { text-align: center; }

.form-error { color: var(--danger); font-weight: 700; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 12px; }
.done-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
}
.done-icon svg { stroke-width: 3; }
.done h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--green); }
.done p { color: var(--muted); }
.order-id { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow); white-space: nowrap;
}

/* ======================================================
   Tablet / laptop
   ====================================================== */
@media (min-width: 700px) {
  :root { --gutter: 24px; }
  h2 { font-size: 36px; }
  .br-mobile { display: none; }
  .brand img { width: 60px; height: 60px; }
  .brand-name { font-size: 22px; }
  .cart-label { display: inline; }
  .cart-button { padding: 0 18px; }

  .product-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
  .product { padding: 10px 10px 16px; border-radius: 24px; }
  .product-media { border-radius: 16px; }
  .size-badge { top: 10px; left: 10px; font-size: 19px; padding: 5px 13px; }
  .product-name { font-size: 22px; }
  .price-now { font-size: 24px; }
  .product .btn, .product .stepper { height: 48px; }

  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .steps li { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; }
  .steps h3 { font-size: 19px; }
  .steps p { font-size: 16px; }
  .step-num { width: 48px; height: 48px; font-size: 22px; }

  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .gallery img, .gallery img:first-child { grid-row: auto; height: 320px; border-radius: 24px; }

  .section { padding: 72px 0 80px; }
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
  .section h2 + .steps, .section h2 + .gallery { margin-top: 28px; }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; padding-block: 56px 32px; }
  .footer-brand { flex-direction: row; gap: 18px; }
  .footer-brand img { width: 104px; height: 104px; }
  .footer-contact { align-items: flex-start; }
  .footer-bottom { text-align: left; }

  /* Drawer becomes a side panel */
  .drawer {
    left: auto; top: 0; bottom: 0; width: 480px; max-width: 100%; max-height: none;
    border-radius: 24px 0 0 24px; animation-name: slide-in;
  }
  .drawer-head { padding: 24px 24px 12px; }
  .drawer-body { padding: 6px 24px 20px; }
  .drawer-foot { padding: 16px 24px 24px; }
}

@media (min-width: 960px) {
  .header-inner { padding-block: 12px; }
  .main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
  .main-nav a { text-decoration: none; font-weight: 500; color: var(--ink); }
  .main-nav a:hover { color: var(--green); }
  .promo-bar { font-size: 14px; }

  /* Hero 1 laptop: text left (aligned to the page container), photo bleeds to the right edge */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 680px; }
  .hero-media { grid-column: 2; grid-row: 1; }
  .hero-photo {
    position: absolute; inset: 0; height: 100%;
    border-radius: 48px 0 0 48px; object-position: center 28%;
  }
  .hero-logo { left: -64px; right: auto; top: 56px; bottom: auto; width: 140px; height: 140px; }
  .hero-promo {
    left: 40px; top: auto; bottom: 40px;
    background: var(--white); padding: 16px 20px; border-radius: 22px; gap: 14px;
    box-shadow: 0 10px 30px rgba(11, 77, 44, .18);
  }
  .hero-promo-tag { background: var(--yellow); padding: 6px 10px; border-radius: 10px; font-size: 13px; }
  .hero-promo-tag::after { content: none; }
  .hero-promo-text { display: flex; flex-direction: column; line-height: 1.2; }
  .hero-promo-text strong { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
  .hero-promo-text span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }

  .hero-panel {
    grid-column: 1; grid-row: 1; margin: 0; border-radius: 0; z-index: 1;
    justify-content: center; gap: 22px;
    padding: 64px 80px 64px max(24px, calc(50vw - 576px));
  }
  .hero h1 { font-size: clamp(60px, 6.2vw, 84px); line-height: .98; }
  .hero .pill { font-size: 14px; padding: 7px 14px; }
  .lead { font-size: 20px; max-width: 470px; }
  .hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 8px; }
  .hero-actions .btn { height: 60px; padding: 0 36px; font-size: 18px; }
  .hero-note { font-size: 15px; }
  .claims { justify-content: space-between; font-size: 16px; padding-block: 18px; }
  .claims li::before { width: 18px; height: 18px; }
  .claims-extra { display: flex !important; }
}
.footer-link { color: #CFE3D6; }
.footer-link:hover { color: var(--yellow); }
