/* Amna Med - institutional wellness brand */
:root {
  --ink: #16282b;
  --muted: #4f6164;
  --teal: #1d6f7c;
  --teal-deep: #134c55;
  --teal-soft: #e6f1f2;
  --sage: #7aa98f;
  --line: #e1e8e9;
  --bg: #ffffff;
  --bg-alt: #f6faf9;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(19, 76, 85, 0.08);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }

p { margin: 0 0 1.1em; }

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

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

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

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

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

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 540px at 78% -8%, rgba(122, 169, 143, 0.20), transparent 60%),
    linear-gradient(180deg, var(--teal-soft) 0%, #ffffff 72%);
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero h1 { max-width: 16ch; }
.hero p { max-width: 54ch; font-size: 1.18rem; color: var(--muted); }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-leaf {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 360px;
  height: 360px;
  opacity: 0.16;
  color: var(--sage);
  pointer-events: none;
}

/* Pillars */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card p { margin: 0; color: var(--muted); }

/* SMS program */
.sms {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: 38px 40px;
  box-shadow: var(--shadow);
}
.sms ul { margin: 18px 0 0; padding: 0; list-style: none; }
.sms li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.sms li:first-child { border-top: none; }
.sms li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sage);
}
.sms li strong { color: var(--ink); }
.sms-kw {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--teal-soft);
  color: var(--teal-deep);
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.92em;
  font-weight: 600;
}

/* Opt-in form */
.optin {
  background: linear-gradient(160deg, var(--teal-deep), var(--teal));
  border-radius: 18px;
  padding: 46px 44px;
  color: #fff;
  box-shadow: var(--shadow);
}
.optin h2 { color: #fff; }
.optin .lede { color: rgba(255, 255, 255, 0.86); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.96);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}
.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  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: rgba(255,255,255,0.92); font-weight: 400; }
.optin .btn { background: #fff; color: var(--teal-deep); margin-top: 22px; }
.optin .btn:hover { background: #eef7f6; }
.fineprint { font-size: 0.8rem; color: rgba(255,255,255,0.72); margin-top: 14px; }

/* Contact */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.contact-card p { margin: 0 0 8px; }
.contact-card .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c6d2d3;
  padding: 56px 0 36px;
}
.site-footer a { color: #cfe3e3; }
.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.12);
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: "Fraunces", 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: #bccccd; font-size: 0.95rem; }
.legal { font-size: 0.85rem; color: #8ba2a3; margin-top: 24px; line-height: 1.7; }
.legal strong { color: #c6d2d3; 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.5rem; }
.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(--teal-soft);
  border-left: 4px solid var(--teal);
  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: 600; 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; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .sms, .optin { padding: 30px 24px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero { padding: 70px 0 60px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
}
