/* ===========================================================
   Sandy Safe Abortion Clinic — Magazine / Sage & Cream theme
   =========================================================== */

:root {
  --cream: #f5f0e8;
  --cream-2: #ece5d8;
  --sage-soft: #dce5d4;
  --sage: #a8c0a0;
  --sage-deep: #7d9b76;
  --sage-darker: #5a7556;
  --ink: #1f2a1c;
  --ink-soft: #3a463a;
  --muted: #6b7468;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(31, 42, 28, 0.06);
  --shadow-md: 0 12px 32px rgba(31, 42, 28, 0.10);
  --shadow-lg: 0 24px 60px rgba(31, 42, 28, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-darker); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sage-deep); }

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(125, 155, 118, 0.18);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 14px 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sage-deep), var(--sage-darker));
  color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.primary-nav { display: flex; gap: 22px; margin-left: auto; }
.primary-nav a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.primary-nav a:hover { color: var(--sage-darker); }
.header-cta { display: flex; gap: 8px; }

.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--sage-deep); color: var(--cream); }
.btn-primary:hover { background: var(--sage-darker); color: var(--cream); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-outline.btn-light { color: var(--cream); border-color: var(--cream); }
.btn-outline.btn-light:hover { background: var(--cream); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding: 10px 14px; }
.btn-ghost:hover { color: var(--sage-darker); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ============ HERO ============ */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 500;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage-darker); margin-bottom: 14px;
  padding: 6px 14px; border-radius: 999px; background: var(--sage-soft);
}
.hero { padding: 60px 0 90px; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero-copy .accent { color: var(--sage-darker); display: block; font-size: .55em; font-weight: 600; margin-top: 8px; letter-spacing: .02em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 28px; max-width: 52ch; }
.hero-bullets { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; }
.hero-bullets li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: .98rem; }
.hero-bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(168, 192, 160, 0.25); }

.hero-media { position: relative; }
.hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-img-lg { aspect-ratio: 4 / 5; }
.hero-img-sm { position: absolute; bottom: -30px; left: -30px; width: 45%; aspect-ratio: 1; border: 6px solid var(--cream); }
.hero-badge {
  position: absolute; top: 24px; right: -10px;
  background: var(--ink); color: var(--cream);
  padding: 14px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-badge strong { font-family: var(--font-head); font-size: 1.2rem; }
.hero-badge span { font-size: .72rem; color: var(--sage); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--sage-soft); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark p, .section-dark .eyebrow { color: var(--sage-soft); }
.section-dark .eyebrow { background: rgba(245, 240, 232, 0.08); color: var(--sage); }
.section-dark a { color: var(--sage); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; margin-top: 12px; }

.lead-text { font-size: 1.1rem; color: var(--ink-soft); max-width: 920px; margin: 0 auto 24px; text-align: center; line-height: 1.7; }

.delivery-banner {
  margin-top: 50px; padding: 36px;
  background: var(--white); border-radius: var(--radius-lg);
  text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(125, 155, 118, 0.15);
}
.delivery-banner h3 { font-size: 1.4rem; margin-bottom: 18px; }
.delivery-banner .cta-row { justify-content: center; }

/* ============ MAGAZINE GRID ============ */
.mag-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.mag-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(125, 155, 118, 0.12); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.mag-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mag-card-body { padding: 28px; }
.mag-feature { grid-row: span 2; }
.mag-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mag-feature .mag-card-body { padding: 30px; }
.mag-feature h3 { font-size: 1.6rem; }
.mag-cta { background: linear-gradient(135deg, var(--sage-deep), var(--sage-darker)); color: var(--cream); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 32px; }
.mag-cta h3 { color: var(--cream); margin-bottom: 18px; }
.mag-cta .btn-outline { color: var(--cream); border-color: var(--cream); }
.mag-cta .btn-outline:hover { background: var(--cream); color: var(--ink); }
.mag-cta .btn-primary { background: var(--cream); color: var(--ink); }
.mag-cta .btn-primary:hover { background: var(--white); color: var(--ink); }

/* ============ SPLIT TWO ============ */
.split-two { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-two.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; }
.stack-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack-media img { aspect-ratio: 1; }
.sub-h { margin-top: 24px; font-size: 1.15rem; color: var(--sage-darker); }
.big-quote { font-family: var(--font-head); font-size: 1.2rem; color: var(--cream); margin-top: 18px; padding-left: 18px; border-left: 3px solid var(--sage); }

/* ============ STEP GRID ============ */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; transition: transform .25s, box-shadow .25s; border: 1px solid rgba(125, 155, 118, 0.12); }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.step-num { position: absolute; top: 16px; left: 16px; background: var(--ink); color: var(--cream); padding: 6px 12px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .08em; }
.step-card h3 { padding: 24px 24px 6px; }
.step-card p { padding: 0 24px 24px; margin: 0; }

/* ============ TESTIMONIALS ============ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi { margin: 0; background: var(--white); padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid rgba(125, 155, 118, 0.12); }
.testi img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 4px solid var(--sage-soft); margin-bottom: 18px; }
.testi blockquote { font-style: italic; color: var(--ink-soft); margin: 0 0 18px; font-size: .98rem; line-height: 1.6; }
.testi figcaption { display: flex; flex-direction: column; align-items: center; }
.testi figcaption strong { font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.testi figcaption span { font-size: .85rem; color: var(--muted); }

/* ============ CONTACT ============ */
.contact-form { background: var(--white); padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: grid; gap: 14px; border: 1px solid rgba(125, 155, 118, 0.15); }
.contact-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  padding: 12px 14px; border: 1.5px solid rgba(125, 155, 118, 0.3); border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; background: var(--cream);
  transition: border-color .2s; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--sage-deep); background: var(--white); }
.form-note { color: var(--sage-darker); font-weight: 600; margin: 4px 0 0; text-align: center; }

.contact-block { background: var(--sage-soft); padding: 24px; border-radius: var(--radius); margin-top: 18px; }
.contact-block h4 { margin-bottom: 12px; color: var(--sage-darker); }
.contact-block p { margin: 6px 0; color: var(--ink-soft); font-size: .95rem; }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: var(--cream); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-grid h5 { color: var(--cream); font-family: var(--font-head); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid p { color: rgba(245, 240, 232, 0.7); font-size: .92rem; margin: 6px 0; }
.footer-grid a { color: rgba(245, 240, 232, 0.85); }
.footer-grid a:hover { color: var(--sage); }
.brand-light .brand-text strong { color: var(--cream); }
.brand-light .brand-text small { color: rgba(245, 240, 232, 0.6); }
.footer-base { border-top: 1px solid rgba(245, 240, 232, 0.1); margin-top: 40px; padding: 22px 0; }
.footer-base p { text-align: center; color: rgba(245, 240, 232, 0.5); font-size: .85rem; margin: 0; }

/* ============ FLOATING ACTIONS ============ */
.floating-actions { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 12px; z-index: 60; }
.fa-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--white); box-shadow: var(--shadow-lg); transition: transform .2s; }
.fa-btn:hover { transform: scale(1.08); }
.fa-call { background: var(--sage-deep); }
.fa-wa { background: #25D366; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .primary-nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid rgba(125,155,118,0.18);
    padding: 10px 22px 18px;
  }
  .primary-nav.open a { padding: 12px 0; border-bottom: 1px solid rgba(125,155,118,0.12); }

  .hero { padding: 40px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-img-sm { width: 38%; left: -16px; bottom: -20px; }

  .mag-grid { grid-template-columns: 1fr; }
  .mag-feature { grid-row: auto; }

  .split-two { grid-template-columns: 1fr; gap: 36px; }
  .split-two.reverse .split-media { order: 0; }

  .step-grid, .testi-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .delivery-banner { padding: 26px 20px; }
  .delivery-banner h3 { font-size: 1.15rem; }
  .contact-form { padding: 24px; }
  .hero-badge { right: 8px; top: 12px; padding: 10px 14px; }
  .hero-badge strong { font-size: 1rem; }
  .fa-btn { width: 50px; height: 50px; }
}