/* ===================================================================
   The Qawiyyah Muslimah Membership — shared styles
   Palette: cream #f5f1ee · rose #d4909a · highlight #dfabb2 · ink #000
   Font: Cormorant Garamond (all weights/styles, no other typeface)
=================================================================== */

:root {
  --cream: #f5f1ee;
  --rose: #d4909a;
  --highlight: #dfabb2;
  --ink: #000000;
  --ink-soft: rgba(0, 0, 0, 0.68);
  --ink-faint: rgba(0, 0, 0, 0.45);
  --line: rgba(0, 0, 0, 0.14);
  --max: 780px;
  --max-wide: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

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

/* ---------- Typography helpers ---------- */

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

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.18;
  font-style: italic;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.25;
  font-style: italic;
}

h3 {
  font-size: 1.35rem;
  font-style: normal;
  font-weight: 600;
}

p { margin: 0 0 20px; }

.lede {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.center { text-align: center; }

.italic { font-style: italic; }

.muted {
  color: var(--ink-faint);
  font-size: 0.95rem;
}

/* ---------- Readable prose block ---------- */
/* Left-aligned, line-length-constrained paragraph text — easier to read
   than long centered paragraphs. Use for any multi-sentence copy. */

.prose {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.prose p {
  font-size: 1.12rem;
  line-height: 1.65;
}

/* ---------- Emphasis without color highlighting ---------- */
/* A quiet left-border accent for standout lines — no background fill. */

.pull-quote {
  max-width: 620px;
  margin: 36px auto;
  padding-left: 22px;
  border-left: 2px solid var(--rose);
  text-align: left;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.55;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--line);
  width: 60px;
  margin: 40px auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 17px 42px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-small {
  padding: 11px 26px;
  font-size: 0.78rem;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 28px;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.nav-brand {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ---------- Sections ---------- */

section { padding: 90px 0; }

.band-cream { background: var(--cream); }
.band-rose { background: var(--rose); }
.band-highlight { background: var(--highlight); }
.band-light-rose { background: rgba(212, 144, 154, 0.18); }

.band-highlight .icon-badge { border-color: var(--ink); background: rgba(255, 255, 255, 0.4); }
.band-highlight .section-kicker { color: var(--ink); }
.band-highlight .check-row { border-bottom-color: rgba(0, 0, 0, 0.18); }

.band-accent { background: #e7b4b8; }
.band-accent .icon-badge { border-color: var(--ink); background: rgba(255, 255, 255, 0.4); }
.band-accent .section-kicker { color: var(--ink); }
.band-accent .check-row { border-bottom-color: rgba(0, 0, 0, 0.18); }

/* Single-line emphasis pair (manifesto close) */
.single-line-emph {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  font-style: normal;
  white-space: nowrap;
  margin: 0 auto;
}

@media (max-width: 680px) {
  .single-line-emph { white-space: normal; font-size: 1.1rem; }
}

/* Understand -> Strengthen -> Belong flow sequence */
.flow-sequence {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-style: italic;
  font-weight: 600;
  margin: 10px 0 0;
}

/* Remove divider lines between check-rows when requested */
.check-rows.no-divider .check-row { border-bottom: none; padding: 10px 0; }

/* Tighter row spacing (half of the no-divider default) */
.check-rows.tight .check-row { padding: 5px 0; }

/* Plain icon (no circular badge) */
.icon-plain {
  border: none !important;
  background: none !important;
}

/* Bigger, bolder call-to-action kicker */
.section-kicker.cta-kicker {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 18px;
}

.hero {
  padding: 130px 0 100px;
  text-align: center;
}

.subheading-mid {
  text-align: center;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 600;
  font-style: italic;
  margin: 0 0 18px;
}

.inline-list {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

.inline-list .sep {
  margin: 0 10px;
  color: var(--rose);
}

.hero .wrap { max-width: 760px; }

.hero-cta-note {
  margin-top: 18px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.hero-subtext {
  max-width: 720px;
  margin: 0 auto 34px;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero h1 {
  white-space: nowrap;
  font-size: clamp(1.8rem, 4.4vw, 3.1rem);
}

@media (max-width: 640px) {
  .hero h1 { white-space: normal; }
}

.no-wrap-heading {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .no-wrap-heading { white-space: normal; }
}

.flow-line {
  text-align: center;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  font-style: italic;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

/* ---------- Lists ---------- */

.elegant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.elegant-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.elegant-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--rose);
}

.check-list li::before {
  content: "✓";
  color: var(--rose);
  font-weight: 700;
}

/* ---------- Principle / feature cards ---------- */

.principle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 50px;
  text-align: left;
  margin-top: 50px;
}

@media (max-width: 680px) {
  .principle-grid { grid-template-columns: 1fr; }
}

.principle h3 {
  margin-bottom: 10px;
}

.principle h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  margin-right: 10px;
  vertical-align: middle;
}

.principle p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ---------- Quote block ---------- */

.quote-block {
  text-align: center;
  max-width: 620px;
  margin: 40px auto;
  padding: 40px 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-block p {
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 14px;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Footer ---------- */

footer {
  background: var(--ink);
  color: var(--cream);
  padding: 20px 0;
  text-align: left;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

footer .nav-brand {
  color: var(--cream);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

footer .tagline {
  font-style: italic;
  color: rgba(245, 241, 238, 0.75);
  margin-bottom: 26px;
}

footer .follow {
  font-size: 0.95rem;
  white-space: nowrap;
}

footer .handle {
  color: var(--highlight);
  letter-spacing: 0.05em;
}

footer .disclaimer {
  max-width: 480px;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(245, 241, 238, 0.6);
  line-height: 1.55;
  text-align: right;
}

@media (max-width: 640px) {
  footer .wrap { flex-direction: column; align-items: flex-start; }
  footer .disclaimer { text-align: left; }
}

footer .legal {
  font-size: 0.82rem;
  color: rgba(245, 241, 238, 0.45);
  margin-top: 18px;
}

footer .legal span { margin: 0 8px; }

/* ---------- Forms (signup & survey pages) ---------- */

.form-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.form-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.form-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 56px 48px;
}

@media (max-width: 600px) {
  .form-card { padding: 40px 26px; }
}

.form-back {
  display: block;
  text-align: center;
  padding: 26px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.form-back a:hover { color: var(--ink); }

.form-card h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  text-align: center;
}

.form-intro {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.field {
  margin-bottom: 26px;
}

.field label {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 8px;
}

.field .helper {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-bottom: 8px;
  font-style: italic;
}

.field input[type="text"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--rose);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* Checkbox / radio groups */

.option-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.option-row:hover {
  border-color: var(--rose);
}

.option-row input {
  margin-top: 4px;
  accent-color: var(--rose);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.option-row.checked {
  border-color: var(--rose);
  background: rgba(223, 171, 178, 0.18);
}

.option-row.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.consent-row input {
  margin-top: 5px;
  accent-color: var(--rose);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.privacy-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

.skip-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.92rem;
  text-decoration: underline;
  color: var(--ink-faint);
}

.skip-link:hover { color: var(--ink); }

.form-error {
  display: none;
  background: rgba(200, 60, 60, 0.08);
  border: 1px solid rgba(200, 60, 60, 0.35);
  color: #a33;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* Confirmation page */

.confirm-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.confirm-card { max-width: 640px; }

.confirm-card .eyebrow { display: none; }

.while-you-wait {
  margin-top: 50px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.dua {
  margin-top: 50px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Section titles centered with a max width for readability */

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
}

.section-head p { margin-bottom: 0; }

@media (max-width: 680px) {
  section { padding: 64px 0; }
  .hero { padding: 80px 0 70px; }
}

/* ===================================================================
   Icon system — used on the redesigned landing page
=================================================================== */

.icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.35);
}

.icon-badge svg {
  width: 26px;
  height: 26px;
  stroke: var(--ink);
  stroke-width: 1.35;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* "What this is not" — muted horizontal row */

.not-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin: 40px 0 54px;
}

.not-item {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
}

.not-item .icon-badge {
  width: 42px;
  height: 42px;
  margin: 0;
  border-color: var(--line);
  background: none;
}

.not-item .icon-badge svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink-faint);
}

.not-item span {
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-faint);
  line-height: 1.4;
}

.divider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 44px;
}

.divider-row .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
}

.divider-row .line {
  width: 44px;
  height: 1px;
  background: var(--line);
}

/* Pull-line — large centered italic emphasis statement */

.pull-line {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-style: italic;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 6px;
  line-height: 1.5;
}

/* Icon feature grids */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 50px auto 0;
  max-width: 980px;
}

.icon-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 860px) {
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .icon-grid,
  .icon-grid.cols-4 { grid-template-columns: 1fr; }
}

.icon-card {
  text-align: center;
  padding: 30px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.band-rose .icon-card {
  background: rgba(245, 241, 238, 0.55);
  border-color: rgba(0, 0, 0, 0.08);
}

.icon-card p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 14px;
}

/* Scannable checklist — icon badge + text row, left-aligned for quick reading */

.check-rows {
  max-width: 680px;
  margin: 0 auto;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.check-rows .check-row:last-child { border-bottom: none; }

.check-row .icon-badge {
  width: 40px;
  height: 40px;
  margin: 0;
  background: none;
}

.check-row .icon-badge svg {
  width: 18px;
  height: 18px;
}

.check-row p {
  margin: 0;
  padding-top: 6px;
  font-size: 1.1rem;
  line-height: 1.5;
}
