/* Medamn Health - institutional wellness brand */
:root {
  --ink: #1a2620;
  --muted: #586860;
  --green: #2f7a5b;
  --green-deep: #205641;
  --green-soft: #e7f3ec;
  --gold: #c9a86a;
  --line: #e2e9e4;
  --bg: #ffffff;
  --bg-alt: #f5f8f5;
  --radius: 12px;
  --shadow: 0 12px 34px rgba(32, 86, 65, 0.09);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Mulish", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 0 0 0.6em; }
h3 { font-size: 1.18rem; margin: 0 0 0.4em; }

p { margin: 0 0 1.1em; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; }

.section { padding: 86px 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--gold);
  display: inline-block;
}

.lede { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--green-deep); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--green-deep); text-decoration: none; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--green-deep);
  border: 1.5px solid var(--green);
}
.btn--ghost:hover { background: var(--green-soft); color: var(--green-deep); }

/* Hero - split layout to differ from site 1 */
.hero {
  background: linear-gradient(180deg, var(--green-soft) 0%, #ffffff 80%);
  padding: 92px 0 84px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero p { max-width: 50ch; font-size: 1.15rem; color: var(--muted); }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 168, 106, 0.25), transparent 55%),
    linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-art svg { width: 56%; color: rgba(255,255,255,0.92); }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 80%, rgba(255,255,255,0.14), transparent 50%);
}

/* Pillars */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ic {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card p { margin: 0; color: var(--muted); }

/* SMS program - numbered list style */
.sms { margin-top: 30px; }
.sms-desc {
  background: var(--green-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 26px;
}
.sms-desc p { margin: 0; color: var(--green-deep); font-weight: 600; }
.sms-list { counter-reset: smsitem; display: grid; gap: 0; }
.sms-list .row {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.sms-list .row:last-child { border-bottom: none; }
.sms-list .num {
  counter-increment: smsitem;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid; place-items: center;
}
.sms-list .num::before { content: counter(smsitem); }
.sms-list .txt { color: var(--muted); }
.sms-list .txt strong { color: var(--ink); }
.sms-kw {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff;
  border: 1px solid var(--green);
  color: var(--green-deep);
  padding: 0 8px;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: 700;
}

/* Opt-in form - light card variant */
.optin {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 44px 44px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.83rem; font-weight: 700; color: var(--ink); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  padding: 13px 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--green); outline-offset: 1px; background: #fff; }
.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--green-soft);
  border-radius: 10px;
  padding: 16px 18px;
}
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.consent label { font-size: 0.86rem; line-height: 1.55; color: var(--muted); font-weight: 400; }
.optin .btn { margin-top: 20px; }
.fineprint { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.contact-card .label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); font-weight: 700; margin-bottom: 6px; }
.contact-card p { margin: 0; }

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: #cfe1d7;
  padding: 56px 0 36px;
}
.site-footer a { color: #d8ebe1; }
.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: "Spectral", serif; font-size: 1.2rem; color: #fff; }
.foot-brand img { width: 28px; height: 28px; }
.foot-links { display: flex; gap: 24px; align-items: center; }
.foot-links a { color: #bdd4c8; font-size: 0.95rem; }
.legal { font-size: 0.85rem; color: #93b1a3; margin-top: 24px; line-height: 1.7; }
.legal strong { color: #cfe1d7; font-weight: 600; }

/* Legal pages */
.legal-page { padding: 64px 0 80px; }
.legal-page .wrap { max-width: 800px; }
.legal-page h1 { margin-bottom: 0.2em; }
.legal-page .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 2.4em; }
.legal-page h2 { margin-top: 1.8em; font-size: 1.45rem; }
.legal-page h3 { margin-top: 1.4em; }
.legal-page ul { padding-left: 1.2em; color: var(--muted); }
.legal-page li { margin-bottom: 0.5em; }
.callout {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 1.6em 0;
}
.callout p:last-child { margin-bottom: 0; }
.entity-block {
  margin-top: 2.4em;
  padding-top: 1.8em;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.entity-block strong { color: var(--ink); }
.back-link { display: inline-block; margin-bottom: 2em; font-weight: 700; font-size: 0.95rem; }

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 340px; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .optin { padding: 32px 24px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero { padding: 68px 0 56px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
}
