/* Honest Care LLC — shared stylesheet */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --bg-dark: #1f2a26;
  --text: #111111;
  --text-muted: #5a5a5a;
  --border: #e5e5e2;
  --accent: #2f5d4f;
  --accent-hover: #244a3f;
  --accent-soft: #e8f0ec;
  --warning-bg: #fff7e6;
  --warning-border: #f0c674;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.18);
  --max: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Promo bar ---------- */
.promo-bar {
  background: var(--bg-dark);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}
.promo-bar span { margin: 0 12px; opacity: 0.9; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s ease, background 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-sans);
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 93, 79, 0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-secondary:hover {
  background: var(--text);
  color: #fff;
  text-decoration: none;
}
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}
.hero .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 { margin-bottom: 16px; }
.hero p.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 50ch;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  background: #fff;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 800px) {
  .hero { padding: 48px 0; }
  .hero .grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-strip .item h4 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: 6px; }
.trust-strip .item p { font-size: 14px; color: var(--text-muted); margin: 0; }
@media (max-width: 800px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-family: var(--font-sans); font-size: 1.1rem; }
.step p { font-size: 15px; color: var(--text-muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Featured product ---------- */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}
.featured .image {
  background: var(--bg-alt);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 800px) {
  .featured { grid-template-columns: 1fr; padding: 28px; }
}

/* ---------- Product page ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0;
}
.breadcrumb a { color: var(--text-muted); }

.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  padding: 32px 0 64px;
}
.product-gallery {
  position: sticky;
  top: 96px;
  align-self: start;
}
.product-gallery .main {
  background: var(--bg-alt);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.product-gallery .thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.product-gallery .thumb {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
}

.product-info h1 { margin-bottom: 8px; }
.product-info .pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.product-info .desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.purchase-options {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.option {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.85;
}
.option .label { font-weight: 600; }
.option .price { font-weight: 700; }
.option .sub { font-size: 13px; color: var(--text-muted); display: block; margin-top: 2px; font-weight: 400; }
.option.selected { border-color: var(--accent); background: var(--accent-soft); opacity: 1; }

.callout {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin: 20px 0;
}
.callout strong { display: block; margin-bottom: 4px; }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
}

/* ---------- Product detail sections (tabs become sections on mobile) ---------- */
.detail-section {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.detail-section h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.ingredient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ingredient {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
}
.ingredient h3 { font-family: var(--font-sans); font-size: 1.1rem; margin-bottom: 8px; }
.ingredient p { color: var(--text-muted); font-size: 15px; margin: 0; }
@media (max-width: 700px) { .ingredient-grid { grid-template-columns: 1fr; } }

.safety-list, .takelist {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.safety-list ul, .takelist ul { padding-left: 20px; margin: 0; }
.safety-list li, .takelist li { margin-bottom: 8px; color: var(--text); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq details[open] summary { color: var(--accent); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding-top: 12px; color: var(--text-muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #cfd8d3;
  padding: 64px 0 32px;
  margin-top: 48px;
}
.site-footer a { color: #cfd8d3; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid .brand { color: #fff; }
.footer-grid p { font-size: 14px; color: #a8b3ae; max-width: 32ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: #a8b3ae;
  flex-wrap: wrap;
  gap: 12px;
}
.legitscript-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: #cfd8d3;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 20, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
}
.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.modal p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal input[type="email"] {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  width: 100%;
}
.modal input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.modal .err {
  color: #b03a3a;
  font-size: 13px;
  text-align: left;
  display: none;
}
.modal .err.show { display: block; }
.modal .success { display: none; }
.modal .success.show { display: block; }
.modal .success .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

/* ---------- Forms (contact) ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 16px;
}
.form-card label { font-size: 14px; font-weight: 600; }
.form-card input, .form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  margin-top: 6px;
}
.form-card input:focus, .form-card textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-card textarea { min-height: 140px; resize: vertical; }
.form-card .form-success {
  display: none;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.form-card .form-success.show { display: block; }

/* ---------- Legal pages ---------- */
.legal {
  padding: 64px 0;
  max-width: 760px;
}
.legal h1 { margin-bottom: 8px; }
.legal .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-family: var(--font-sans); font-size: 1.25rem; margin-top: 32px; }
.legal p, .legal li { color: var(--text); font-size: 15px; }
.legal ul { padding-left: 20px; }

/* ---------- Visually hidden ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Product imagery ---------- */
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}
.thumb-img { width: 100%; height: 100%; object-fit: cover; }
.thumb { overflow: hidden; cursor: pointer; }
.thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* ---------- Badges row (product page) ---------- */
.badge-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.badge {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}
.badge .icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

/* ---------- Save tag on price options ---------- */
.option .save-tag {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.option { cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease; }
.option:hover { border-color: var(--accent); }

/* ---------- Order steps (product page) ---------- */
.order-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.order-step {
  text-align: center;
  padding: 16px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.order-step .num {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin: 0 auto 8px;
}
.order-step h4 { font-family: var(--font-sans); font-size: 13px; margin: 0 0 4px; }
.order-step p { font-size: 12px; color: var(--text-muted); margin: 0; }
@media (max-width: 600px) { .order-steps { grid-template-columns: 1fr; } }

/* hero image cleanup */
.hero-image, .featured .image, .product-gallery .main {
  position: relative;
}
