/* ============================================================
   Stop-ECT.org — Doctors' Coalition Against Electroconvulsive
   Therapy. Shared stylesheet. Mobile-first, self-contained.
   ============================================================ */

:root {
  --blue:        #0174c7;
  --blue-dark:   #015a99;
  --navy:        #22344d;
  --navy-2:      #2c3e50;
  --ink:         #1f2a37;
  --muted:       #5b6b7f;
  --line:        #e2e8f0;
  --bg:          #f4f8fc;
  --white:       #ffffff;
  --accent:      #d64c00;
  --shadow:      0 6px 24px rgba(20, 40, 70, 0.08);
  --shadow-lg:   0 14px 40px rgba(20, 40, 70, 0.14);
  --radius:      12px;
  --wrap:        1080px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1.1em; }

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

img { max-width: 100%; height: auto; }

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

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(20, 40, 70, .05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  letter-spacing: .2px;
  text-decoration: none;
  line-height: 1.15;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
}
.brand small {
  display: block;
  font-family: inherit;
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--navy-2);
  font-weight: 600;
  font-size: .95rem;
}
.nav-links a:hover { background: var(--bg); text-decoration: none; color: var(--blue); }
.nav-links a.cta {
  background: var(--blue);
  color: #fff;
}
.nav-links a.cta:hover { background: var(--blue-dark); color: #fff; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  width: 44px; height: 40px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
  position: relative;
  transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-links a.cta { text-align: center; margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(11,45,80,.62), rgba(11,45,80,.72)),
    linear-gradient(135deg, #4a7fb5 0%, #7fa8ce 45%, #bcd3ea 100%);
  color: #fff;
  text-align: center;
  padding: 74px 0 64px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 5.2vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: .5px;
  max-width: 15ch;
  margin: 0 auto .35em;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  font-weight: 600;
  margin: 0 auto;
  max-width: 40ch;
  color: #eaf3fb;
}
.hero .hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* page hero (interior pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  text-align: center;
  padding: 52px 0 44px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.5rem); }
.page-hero p  { color: #d7e2ef; margin: 0; max-width: 60ch; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .06s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(1,116,199,.32); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-block { display: block; width: 100%; }

/* ---------- Sections & layout ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.section.alt { background: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.lead {
  font-size: 1.15rem;
  color: var(--navy-2);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.callout {
  border-left: 4px solid var(--blue);
  background: #eaf3fb;
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 24px;
}
.callout cite { display: block; margin-top: 8px; font-size: .85rem; color: var(--muted); font-style: normal; }

.quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy);
  border-left: 4px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin: 0 0 20px;
}

.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat .num { font-family:"Poppins",sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--blue); line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 14px; } }

/* bulleted purpose list */
.check-list { list-style: none; margin: 0 0 1em; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ---------- Forms ---------- */
.form-card {
  max-width: 640px;
  margin: 0 auto;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy-2);
  margin-bottom: 6px;
}
.field .req { color: var(--accent); }
input[type="text"],
input[type="email"],
input[type="name"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1,116,199,.15);
}
textarea { min-height: 96px; resize: vertical; }

.agreement {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 26px;
  font-size: .96rem;
}
.agreement h3 { font-size: 1.05rem; }
.agreement ol { margin: 0 0 .5em; padding-left: 1.3em; }
.agreement ol li { margin-bottom: 10px; }
.agreement .pledge {
  font-style: italic;
  border-left: 3px solid var(--blue);
  padding-left: 16px;
  color: var(--navy);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .97rem;
}
table.data thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  white-space: nowrap;
}
table.data tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
table.data tbody tr:nth-child(even) { background: #f8fbfe; }
table.data tbody tr:hover { background: #eef5fc; }
.empty-row td { text-align: center; color: var(--muted); padding: 26px; font-style: italic; }

/* ---------- Thank you ---------- */
.confirm {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.confirm .checkmark {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fb36b, #1f8f52);
  color: #fff;
  display: grid; place-items: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 24px rgba(31,143,82,.35);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c7d3e2;
  padding: 40px 0 30px;
  text-align: center;
  font-size: .92rem;
}
.site-footer a { color: #eaf3fb; }
.site-footer .foot-links {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  justify-content: center;
  list-style: none; margin: 0 0 18px; padding: 0;
}
.site-footer .foot-links a { font-weight: 600; }
.site-footer .addr { color: #93a6bd; margin: 6px 0 0; }
.site-footer .copy { color: #7e93ac; margin-top: 10px; }

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
