/* ============================================================
   Less RX Health — hand-written stylesheet
   Brand: gold #c9a227 · black #0a0a0a
   ============================================================ */
:root {
  --gold: #c9a227;
  --gold-dark: #b08e1f;
  --black: #0a0a0a;
  --text: #1a1a1a;
  --muted: #555;
  --line: rgba(201, 162, 39, 0.3);
  --bg-tint: #f5f5f4;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.logo img { height: 200px; width: auto; display: block; margin: -44px 0; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.header-top { display: flex; gap: 1.25rem; font-size: 0.9rem; }
.top-link { color: var(--text); font-weight: 600; }
.top-link:hover { color: var(--gold); text-decoration: none; }
.main-nav { display: flex; gap: 1.5rem; }
.main-nav a {
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a:hover { color: var(--gold); text-decoration: none; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s;
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #d6d6d6;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero-overlay { display: none; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 6rem 1.5rem 14rem;
  color: var(--black);
}
.hero-content h1 {
  color: var(--black);
  text-align: left;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8), 0 2px 12px rgba(255,255,255,0.6);
}
.hero-sub {
  font-size: 1.2rem;
  max-width: 560px;
  margin-bottom: 1.75rem;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(255,255,255,0.7);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.hero-note { margin-top: 3rem; font-size: 0.85rem; color: #333; }
.btn-outline.light { color: var(--gold-dark); border-color: var(--gold); background: rgba(255,255,255,0.65); }
.btn-outline.light:hover { background: var(--gold); color: var(--black); }

/* ---------- Trust ticker (cards overlapping hero bottom) ---------- */
.ticker {
  overflow: hidden;
  padding: 0 0 1.5rem;
  margin-top: -11rem;
  position: relative;
  z-index: 3;
  background: transparent;
}
.ticker-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: ticker-scroll 55s linear infinite;
  padding: 0.5rem 0;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  white-space: normal;
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.1rem;
}
.ticker-item .t-icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 0.5rem; }
.ticker-item strong { color: var(--black); font-size: 0.98rem; }
.ticker-item span { color: var(--muted); font-size: 0.82rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Full-width bands ---------- */
.band { width: 100%; padding: 4rem 0; margin: 2.5rem 0; }
.band.dark { background: var(--black); color: #fff; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark .card { background: #161616; border-color: rgba(201,162,39,0.35); color: #eee; }
.band .page { padding-top: 0; padding-bottom: 0; }
.quote { font-style: italic; }
.attrib { font-weight: 700; color: var(--gold); margin: 0; }
.stat { font-size: 1.9rem; line-height: 1.1; display: block; margin-bottom: 0.2rem; }
.checklist { list-style: none; margin-left: 0; max-width: 760px; margin-inline: auto; }
.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: 0.7rem; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- Page & sections ---------- */
.page { padding: 3rem 1.25rem; max-width: 1200px; margin: 0 auto; width: 100%; }
.section { padding: 3rem 0; }
.section.dark { background: var(--black); color: #fff; margin: 2rem -100vw; padding: 4rem 100vw; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.tint { background: var(--bg-tint); margin: 2rem -100vw; padding: 4rem 100vw; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--black); }
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); margin: 0 0 1.25rem; text-align: center; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.6rem; }
h4 { font-size: 1.05rem; margin: 1.2rem 0 0.5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.25rem 1.4rem; }
li { margin-bottom: 0.4rem; }
blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.25rem;
  font-style: italic;
  color: var(--muted);
  margin: 1.5rem 0;
}
.gold { color: var(--gold) !important; }
.center { text-align: center; }
video { border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.5rem auto; display: block; }
.page > img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 1rem 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, background 0.15s, color 0.15s;
  text-decoration: none !important;
  margin: 0.25rem 0.35rem 0.25rem 0;
}
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn-gold { background: var(--gold); color: var(--black); box-shadow: var(--shadow); }
.btn-gold:hover { background: var(--gold-dark); color: var(--black); }
.btn-outline { background: transparent; color: var(--gold-dark); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--black); }
.section.dark .btn-outline { color: var(--gold); }
.section.dark .btn-outline:hover { color: var(--black); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; margin: 1.5rem 0; align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13); }
.card img {
  border-radius: calc(var(--radius) - 4px);
  margin: -0.25rem 0 0.75rem;
  object-fit: cover;
  width: 100%;
}
.card h3 { margin-top: 0.25rem; }
.card-link { display: block; color: inherit; text-decoration: none !important; height: 100%; }
.card-link .card h3 { color: var(--black); }
.card-link:hover .card h3 { color: var(--gold-dark); }
.icon { width: 40px; height: 40px; color: var(--gold); flex-shrink: 0; margin-bottom: 0.5rem; }

/* ---------- Carousel ---------- */
.carousel { position: relative; overflow: hidden; margin: 2rem 0; padding: 0 3rem; }
.carousel-track { display: flex; transition: transform 0.35s ease; }
.slide { flex: 0 0 100%; padding: 0 0.75rem; }
.carousel .card { text-align: center; align-items: center; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--gold-dark);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
}
.carousel-btn:hover { background: var(--gold); color: var(--black); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn.prev { left: 4px; }
.carousel-btn.next { right: 4px; }
@media (min-width: 768px) { .slide { flex-basis: 50%; } }
@media (min-width: 1024px) { .slide { flex-basis: 33.333%; } }

/* ---------- Accordion ---------- */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1.1rem 0;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
  cursor: pointer;
}
.acc-trigger:hover { color: var(--gold-dark); }
.acc-trigger::after {
  content: "▾";
  color: var(--gold);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.acc-trigger[aria-expanded="true"]::after { transform: rotate(180deg); }
.acc-panel { padding: 0 0 1.25rem; }
.acc-panel[hidden] { display: none; }

/* ---------- Forms ---------- */
form { max-width: 640px; }
label { display: block; font-weight: 600; margin: 1rem 0 0.3rem; }
input, textarea, select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-tint);
  color: var(--text);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.footer-logo img { height: 96px; width: auto; }
.site-footer h3 { color: var(--gold-dark); font-size: 1.1rem; margin: 0.75rem 0; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--gold-dark); }
.footer-bottom { text-align: center; font-size: 0.85rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-top { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.9rem 1.25rem; border-top: 1px solid #eee; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .logo img { height: 56px; }
}
