/* FARMAM landing pages. Mobile-first, no frameworks.
   Shape rule: buttons are pills, every other surface uses --radius (16px). */

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ubuntu-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ubuntu-latin-700-normal.woff2") format("woff2");
}

/* Arial tuned to Ubuntu's width and vertical metrics (measured in the browser),
   so text barely moves when the web font swaps in. */
@font-face {
  font-family: "Ubuntu Fallback";
  font-weight: 400;
  src: local("Arial");
  size-adjust: 99.5%;
  ascent-override: 93.7%;
  descent-override: 19%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Ubuntu Fallback";
  font-weight: 700;
  src: local("Arial");
  size-adjust: 97.9%;
  ascent-override: 95.2%;
  descent-override: 19.3%;
  line-gap-override: 0%;
}

:root {
  --navy: #0a2b61;
  --blue: #2350a8;
  --ink: #1d2b45;
  --muted: #4a5a78;
  --bg: #fbfcfe;
  --surface: #ffffff;
  --tint: #eef3fb;
  --line: #d8e1ee;
  --cta-from: #0b7d90;
  --cta-to: #1f56b8;
  --radius: 16px;
  --shadow: 0 10px 30px rgb(10 43 97 / 0.12);
  --content: 1100px;
  --gutter: clamp(16px, 4vw, 32px);
  --seal: clamp(68px, 13vw, 132px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Ubuntu", "Ubuntu Fallback", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }

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

.sprite { position: absolute; }

.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;
}

/* Shared horizontal frame */
.site-header,
main > section {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

/* Header */
.site-header {
  display: flex;
  justify-content: center;
  padding-block: clamp(20px, 4vw, 36px) 0;
}
.logo { width: clamp(180px, 40vw, 260px); }

/* Hero */
.hero {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 3vw, 24px);
  padding-block: clamp(28px, 6vw, 56px) clamp(32px, 6vw, 56px);
  text-align: center;
}
.hero h1 {
  max-width: 30ch;
  color: var(--navy);
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.tagline {
  color: var(--blue);
  font-size: clamp(1.15rem, 0.95rem + 1vw, 1.5rem);
  font-weight: 700;
  text-wrap: balance;
}

/* WhatsApp call-to-action button */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--cta-from), var(--cta-to));
  color: #fff;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 12px 28px rgb(31 86 184 / 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgb(31 86 184 / 0.34);
}
.cta:active { transform: translateY(0); }
.cta__icon { flex: none; }
.cta__text { display: grid; }
.cta__main {
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
}
.cta__sub { font-size: 1rem; }

/* Lab video and seals */
.lab__media { position: relative; }
.lab__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--tint);
  box-shadow: var(--shadow);
}
.video-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(10 43 97 / 0.75);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.video-toggle:hover { background: var(--navy); }
.video-toggle[hidden],
.video-toggle[data-state="playing"] .icon-play,
.video-toggle[data-state="paused"] .icon-pause { display: none; }
.seals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  gap: 8px;
  margin-top: 16px;
}
.seals img {
  width: var(--seal);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgb(10 43 97 / 0.16);
}

/* Benefits: free shipping is the headline offer, Sedex and Pix support it */
.benefits { padding-block: clamp(32px, 6vw, 56px) 0; }
.benefits__list {
  display: grid;
  gap: 12px;
}
.benefit {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.4;
}
.benefit--featured {
  grid-template-columns: 1fr;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--navy);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.5;
}
.benefit--featured img {
  box-sizing: content-box;
  padding: 12px;
  border-radius: 50%;
  background: var(--surface);
}
.benefit__title {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
}
.benefit--featured p { max-width: 44ch; }
.benefit--featured strong {
  font-size: 1.15em;
  white-space: nowrap;
}

/* Prescription call-to-action */
.prescription {
  display: flex;
  justify-content: center;
  padding-block: clamp(32px, 6vw, 56px);
}

/* Branches */
.branches { padding-bottom: clamp(40px, 7vw, 72px); }
.branches__list {
  display: grid;
  gap: 16px;
}
.branch {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-wrap: anywhere;
}
.branch h3 {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 700;
}
.branch p { color: var(--muted); }
.branch a {
  display: inline-block;
  margin-top: 10px;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration-color: rgb(10 43 97 / 0.35);
  text-underline-offset: 4px;
}
.branch a:hover { text-decoration-color: currentColor; }

/* Footer */
.site-footer {
  padding: 28px var(--gutter);
  background: var(--navy);
  color: #e6ecf7;
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}
.site-footer p { max-width: 80ch; margin-inline: auto; }

/* Small phones: seals 2 x 2 is easier to read than 4 tiny ones */
@media (max-width: 359px) {
  .seals { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .seals img { width: 88px; }
  .cta { padding: 14px 20px; }
}

@media (min-width: 480px) {
  .branches__list { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet and up: seals overlap the bottom edge of the photo */
@media (min-width: 640px) {
  .seals {
    position: relative;
    margin-top: calc(var(--seal) / -2);
    padding-inline: 4%;
  }
  .benefits__list { grid-template-columns: repeat(2, 1fr); }
  .benefit--featured { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .benefits__list {
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
  }
  .benefit--featured {
    grid-column: 1;
    grid-row: span 2;
  }
  .branches__list { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop: split hero, text and CTA on the left, photo and seals on the right,
   so the trust seals are visible without scrolling. Source order is unchanged. */
@media (min-width: 1024px) {
  .site-header { justify-content: flex-start; }
  main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(40px, 5vw, 64px);
    width: min(100% - 2 * var(--gutter), var(--content));
    margin-inline: auto;
  }
  main > section {
    grid-column: 1 / -1;
    width: auto;
    margin-inline: 0;
  }
  .hero {
    grid-column: 1;
    justify-items: start;
    padding-block: 40px;
    text-align: left;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(1.9rem, 1rem + 1.4vw, 2.3rem);
    text-wrap: pretty;
  }
  .hero .cta__main { font-size: clamp(1.1rem, 0.6rem + 0.8vw, 1.3rem); }
  .lab {
    --seal: clamp(80px, 7.5vw, 104px);
    grid-column: 2;
    padding-block: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
  .cta:hover { transform: none; }
}
