/*
Theme Name: Unborn Babies Count
Theme URI: https://unbornbabiescount.org
Author: Drummer Boy Hosting
Description: Custom advocacy homepage theme for Unborn Babies Count.
Version: 1.0.0
Text Domain: unborn-babies-count
*/

:root {
  --blue-900: #052b52;
  --blue-800: #073967;
  --blue-700: #0a4da2;
  --blue-600: #1263cf;
  --blue-500: #2479dc;
  --blue-100: #eaf4ff;
  --ink: #071a33;
  --muted: #4d5d73;
  --line: #cbdcf0;
  --white: #ffffff;
  --soft: #f6fbff;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(5, 43, 82, 0.08);
  box-shadow: 0 4px 22px rgba(5, 43, 82, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue-600), var(--blue-800));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.18);
  font: 800 29px/1 var(--serif);
}

.brand-name {
  display: block;
  color: var(--blue-700);
  font: 700 24px/1.05 var(--serif);
}

.brand-tagline {
  display: block;
  margin-top: 1px;
  color: #394b60;
  font-size: 12px;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #071a33;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-nav a {
  white-space: nowrap;
}

.primary-nav a:hover {
  color: var(--blue-600);
}

.search-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.search-button svg,
.link-arrow svg,
.stat-icon svg,
.feature-icon svg,
.mail-icon svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(4, 38, 73, 0.98) 0%, rgba(4, 38, 73, 0.86) 30%, rgba(4, 38, 73, 0.22) 58%, rgba(4, 38, 73, 0.05) 100%),
    url("assets/images/hero-unborn-child.png");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 92px;
}

.hero-copy {
  max-width: 520px;
}

.hero h1 {
  margin: 0;
  font: 700 clamp(48px, 5vw, 72px)/0.98 var(--serif);
  letter-spacing: 0;
}

.hero h1 span {
  color: #8fc8ff;
}

.hero-rule,
.eyebrow-rule {
  width: 48px;
  height: 1px;
  margin: 28px 0 24px;
  background: rgba(255, 255, 255, 0.78);
}

.hero p {
  max-width: 430px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-600);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(18, 99, 207, 0.26);
}

.button:hover {
  background: #0a58bd;
}

.section {
  padding: 64px 0;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.mission {
  text-align: center;
  background: var(--white);
  box-shadow: inset 0 14px 28px rgba(5, 43, 82, 0.05);
}

.mission-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: var(--blue-700);
}

.mission-heading::before,
.mission-heading::after {
  content: "";
  width: 170px;
  height: 1px;
  background: var(--blue-500);
}

.mission-heart {
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  color: var(--blue-500);
  font-size: 26px;
}

.mission h2,
.feature-card h3,
.fight-copy h2,
.matter-copy h2,
.case-header h2,
.signup h2 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.08;
}

.mission h2 {
  font-size: 30px;
  text-transform: uppercase;
}

.mission p {
  max-width: 760px;
  margin: 22px auto 0;
  font-size: 19px;
  line-height: 1.45;
}

.mission em {
  color: var(--blue-600);
}

.feature-band {
  background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  min-height: 270px;
  padding: 26px 52px 8px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.feature-card:last-child {
  border-right: 0;
}

.feature-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: var(--blue-600);
  background: #e2eefc;
  font-size: 43px;
}

.feature-card h3 {
  color: var(--blue-700);
  font-size: 21px;
  text-transform: uppercase;
}

.feature-card p {
  margin: 12px auto 26px;
  max-width: 240px;
  color: #0e233b;
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.matters {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(4, 37, 70, 0.98) 0%, rgba(4, 37, 70, 0.85) 36%, rgba(4, 37, 70, 0.7) 100%),
    url("assets/images/mother-newborn.png");
  background-position: center;
  background-size: cover;
}

.matters-grid {
  min-height: 410px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 90px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  color: #9dccff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow-rule {
  width: 70px;
  margin: 0;
  background: rgba(157, 204, 255, 0.8);
}

.matter-copy h2 {
  max-width: 460px;
  font-size: clamp(38px, 4vw, 54px);
}

.matter-copy p {
  max-width: 380px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
}

.stats {
  display: grid;
  gap: 30px;
}

.stat {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 24px;
}

.stat-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
  font-size: 38px;
  backdrop-filter: blur(6px);
}

.stat p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: 19px;
  line-height: 1.45;
}

.fight {
  background: var(--white);
}

.fight-grid {
  display: grid;
  grid-template-columns: 430px 1fr;
  align-items: center;
  gap: 74px;
}

.fight-images img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 14px 30px rgba(5, 43, 82, 0.1);
}

.fight-kicker {
  margin-bottom: 16px;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.fight-copy h2 {
  max-width: 560px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 48px);
}

.fight-copy p {
  max-width: 520px;
  margin: 20px 0 28px;
  color: #314258;
}

.case-section {
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
  border-top: 1px solid rgba(203, 220, 240, 0.72);
}

.case-header {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.case-header h2 {
  color: var(--ink);
  font-size: clamp(34px, 4vw, 48px);
}

.case-header p {
  margin: 18px auto 0;
  color: #314258;
  font-size: 18px;
  line-height: 1.55;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.case-card {
  min-height: 260px;
  padding: 28px 24px;
  border: 1px solid #d9e6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(5, 43, 82, 0.08);
}

.case-card h3 {
  margin: 0 0 14px;
  color: var(--blue-700);
  font: 700 22px/1.12 var(--serif);
}

.case-card p {
  margin: 0;
  color: #263a52;
  line-height: 1.5;
}

.quote {
  padding: 44px 0;
  background: linear-gradient(90deg, #e9f5ff 0%, #f7fbff 100%);
}

.quote-inner {
  display: grid;
  grid-template-columns: 90px 1fr 210px;
  align-items: center;
  gap: 26px;
}

.quote-mark {
  color: var(--blue-500);
  font: 700 86px/1 var(--serif);
}

.quote blockquote {
  margin: 0;
  color: #0f2b4c;
  font: italic 28px/1.38 var(--serif);
}

.quote cite {
  color: var(--blue-600);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.signup {
  padding: 48px 0 56px;
  background: var(--white);
}

.signup-inner {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 42px;
  max-width: 760px;
  margin: 0 auto;
}

.mail-icon {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e6f4;
  border-radius: 50%;
  color: var(--blue-500);
  background: #eef6ff;
  box-shadow: inset 0 0 0 10px var(--white);
  font-size: 52px;
}

.signup h2 {
  font-size: 29px;
}

.signup p {
  max-width: 620px;
  margin: 4px 0 18px;
  color: var(--muted);
}

.signup-form {
  display: flex;
  max-width: 520px;
  border: 1px solid #d8e2ee;
  border-radius: 4px;
  overflow: hidden;
}

.signup-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 18px;
  color: var(--ink);
  font: inherit;
}

.signup-form input:focus {
  outline: 2px solid rgba(18, 99, 207, 0.2);
  outline-offset: -2px;
}

.signup-form button {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  box-shadow: none;
}

.site-footer {
  color: var(--white);
  background: radial-gradient(circle at 20% 0%, #0b4a84 0%, var(--blue-900) 42%, #031d38 100%);
}

.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.25fr;
  gap: 54px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-mark {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 18px;
}

.footer-brand .brand-tagline {
  color: rgba(255, 255, 255, 0.8);
}

.socials {
  display: flex;
  gap: 26px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.footer-col h3 {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.45;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  font-size: 13px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 78px;
  }

  .primary-nav {
    gap: 18px;
    font-size: 11px;
  }

  .hero {
    min-height: 560px;
    background-image:
      linear-gradient(90deg, rgba(4, 38, 73, 0.98) 0%, rgba(4, 38, 73, 0.86) 48%, rgba(4, 38, 73, 0.36) 100%),
      url("assets/images/hero-unborn-child.png");
  }

  .features,
  .matters-grid,
  .fight-grid,
  .case-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .features {
    gap: 0;
  }

  .feature-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-card:last-child {
    border-bottom: 0;
  }

  .matters-grid {
    gap: 42px;
    padding: 70px 0;
  }

  .fight-grid {
    gap: 40px;
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-inner {
    grid-template-columns: 70px 1fr;
  }

  .quote cite {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .wrap,
  .footer-inner,
  .hero-inner {
    width: min(100% - 32px, var(--max));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0 16px;
  }

  .primary-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 16px;
    overflow: visible;
    line-height: 1.2;
    padding-bottom: 0;
  }

  .search-button {
    width: 24px;
    height: 18px;
  }

  .brand-name {
    font-size: 21px;
  }

  .hero {
    min-height: 660px;
    align-items: end;
    background-position: 62% center;
  }

  .hero-inner {
    padding: 130px 0 52px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero p,
  .mission p,
  .stat p {
    font-size: 16px;
  }

  .mission-heading {
    gap: 18px;
  }

  .mission-heading::before,
  .mission-heading::after {
    width: 60px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .stat {
    grid-template-columns: 62px 1fr;
    gap: 16px;
  }

  .stat-icon {
    width: 62px;
    height: 62px;
    font-size: 30px;
  }

  .quote-inner,
  .signup-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: auto;
  }

  .quote blockquote {
    font-size: 23px;
  }

  .quote cite {
    grid-column: auto;
  }

  .mail-icon {
    margin: 0 auto;
  }

  .signup-form {
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .primary-nav a:nth-child(3) {
    min-width: auto;
  }

  .hero h1 {
    font-size: 40px;
  }

  .signup-form {
    display: grid;
  }

  .signup-form input {
    min-height: 46px;
  }

  .footer-grid {
    gap: 30px;
  }
}
