/* ============================================================
   Opal Wellness Pharmacy — shared styles
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@300;400;500;600;700&display=swap");

:root {
  /* Brand */
  --burgundy: #5c2024;
  --burgundy-deep: #3f1518;
  --burgundy-soft: #f4e8e8;
  --green: #4f8f3e;
  --green-deep: #2d5f3d;
  --green-soft: #e5eddc;
  --green-pale: #f1f5ec;

  /* Neutrals */
  --cream: #faf5ec;
  --cream-deep: #f2e9d7;
  --paper: #fdfbf6;
  --ink: #1f1414;
  --ink-soft: #3a2a26;
  --muted: #7a6a66;
  --line: rgba(31, 20, 20, 0.1);
  --line-strong: rgba(31, 20, 20, 0.18);
  --white: #ffffff;

  /* Type */
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;

  /* Type scale (web) */
  --t-display: clamp(48px, 7vw, 96px);
  --t-h1: clamp(40px, 5.2vw, 72px);
  --t-h2: clamp(32px, 3.6vw, 52px);
  --t-h3: clamp(22px, 1.6vw, 28px);
  --t-body: 17px;
  --t-small: 14px;
  --t-eyebrow: 12px;

  /* Spacing */
  --pad-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(72px, 8vw, 128px);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}
h1 {
  font-size: var(--t-h1);
}
h2 {
  font-size: var(--t-h2);
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.2;
}
p {
  margin: 0;
}
.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--burgundy);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--burgundy-deep);
}
.btn--green {
  background: var(--green-deep);
  color: var(--cream);
}
.btn--green:hover {
  background: #234c30;
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--cream);
}
.btn--light {
  background: var(--cream);
  color: var(--burgundy);
}
.btn--light:hover {
  background: var(--white);
}
.btn .arr {
  font-size: 17px;
  transition: transform 0.18s ease;
}
.btn:hover .arr {
  transform: translateX(3px);
}

/* ---------- Promo bar ---------- */
.promo {
  background: var(--burgundy);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.promo__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px var(--pad-x);
  text-align: center;
  flex-wrap: wrap;
}
.promo a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.promo .pill {
  display: inline-block;
  background: rgba(250, 245, 236, 0.12);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 246, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad-x);
  max-width: 1360px;
  margin: 0 auto;
}
.brand img {
  height: 52px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  position: relative;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav a:hover {
  color: var(--burgundy);
  background: var(--burgundy-soft);
}
.nav a.is-active {
  color: var(--burgundy);
}
.nav a .badge {
  display: inline-block;
  background: var(--green-deep);
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  vertical-align: 2px;
}
.header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--burgundy-deep);
  color: var(--cream);
  padding: 88px var(--pad-x) 32px;
}
.footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, 0.55);
  margin-bottom: 18px;
}
.footer__brand .word {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer__brand p {
  color: rgba(250, 245, 236, 0.7);
  font-size: 15px;
  line-height: 1.6;
  max-width: 32ch;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer ul a {
  color: rgba(250, 245, 236, 0.85);
  font-size: 15px;
  transition: color 0.15s ease;
}
.footer ul a:hover {
  color: var(--white);
}
.footer__bottom {
  max-width: 1360px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 245, 236, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(250, 245, 236, 0.55);
  flex-wrap: wrap;
}

/* OCP regulatory / accreditation strip */
.footer__legal {
  max-width: 1360px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 245, 236, 0.14);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
.footer__poc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer__poc svg {
  width: 64px;
  height: 64px;
}
.footer__poc img {
  width: 84px;
  height: auto;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}
.footer__poc span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, 0.5);
  max-width: 90px;
  line-height: 1.3;
}
.footer__legal-body h4 {
  margin-bottom: 14px;
}
.footer__regdl {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 40px;
}
.footer__regdl div {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(250, 245, 236, 0.08);
  font-size: 13.5px;
  line-height: 1.4;
}
.footer__regdl dt {
  flex: 0 0 132px;
  color: rgba(250, 245, 236, 0.5);
  font-weight: 500;
}
.footer__regdl dd {
  margin: 0;
  color: rgba(250, 245, 236, 0.88);
}
.footer__regdl dd a {
  color: rgba(250, 245, 236, 0.88);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__regnote {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(250, 245, 236, 0.5);
  max-width: 70ch;
}
.footer__regnote a {
  color: rgba(250, 245, 236, 0.78);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 760px) {
  .footer__legal { grid-template-columns: 1fr; gap: 24px; }
  .footer__regdl { grid-template-columns: 1fr; }
  .footer__regdl dt { flex-basis: 120px; }
}

/* ---------- Utility ---------- */
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.divider {
  height: 1px;
  background: var(--line);
}

/* ---------- Mobile nav (hamburger) ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 44px -24px rgba(60, 30, 30, 0.28);
  padding: 6px var(--pad-x) 18px;
  z-index: 49;
}
body.nav-open .nav-mobile { display: block; }
.nav-mobile nav { display: flex; flex-direction: column; }
.nav-mobile a {
  padding: 15px 6px;
  font-size: 17px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a .badge {
  display: inline-block;
  background: var(--green-deep);
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1300px) {
  .header .live-pill { display: none; }
}
@media (max-width: 1140px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 1141px) {
  .nav-mobile { display: none !important; }
}
@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 560px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .promo__inner {
    font-size: 12px;
    gap: 10px;
  }
}
