/* =========================
   Guardian Midwifery — Styles (v2, airy)
   ========================= */

:root {
  --navy: #24485A;
  --navy-deep: #1F3B4D;
  --paper: #FFFFFF;
  --cream: #F4EFE3;
  --cream-2: #EFE7D6;
  --sand: #E8C0BC;
  --sage: #728377;
  --sage-soft: #DCE4D6;
  --brand-green: #728377;
  --brand-pink: #E8C0BC;
  --terracotta: #728377;
  --terracotta-soft: #E8C0BC;
  --text: #33322E;
  --text-light: #6A675F;
  --text-on-dark: #F4EFE3;

  --display: 'Playfair Display', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxwidth: 1140px;
  --narrowmax: 780px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: opacity 0.2s, color 0.2s; }

/* LAYOUT */
.container { max-width: var(--maxwidth); margin: 0 auto; padding: 0 1.75rem; }
.container.narrow { max-width: var(--narrowmax); }
.text-center { text-align: center; }
.section { padding: 7rem 0; }
.section-cream { background: var(--cream); }
@media (max-width: 768px) { .section { padding: 4.5rem 0; } }

/* ICONS */
.icon { width: 40px; height: 40px; color: var(--terracotta); flex: none; }
.icon-sm { width: 18px; height: 18px; vertical-align: -3px; }

/* TYPOGRAPHY */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.75rem;
}
.eyebrow-light { color: var(--terracotta-soft); }
.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  line-height: 1.12;
  color: var(--navy-deep);
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}
.display-light { color: var(--cream); }
.display em { font-style: italic; font-weight: 500; color: var(--terracotta); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-head .display { margin-bottom: 1rem; }
.section-lead { color: var(--text-light); font-size: 1.05rem; margin: 0; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-pink); color: #111; border-color: #111; box-shadow: none; }
.btn-primary:hover { background: #f0d3cf; color: #111; }
.btn-ghost { background: transparent; color: var(--navy-deep); border-color: rgba(31, 59, 77, 0.25); }
.btn-ghost:hover { border-color: var(--navy-deep); background: rgba(31, 59, 77, 0.04); }
.btn-light { background: var(--brand-pink); color: #111; border-color: #111; }
.btn-light:hover { background: #f0d3cf; color: #111; }

/* HEADER NAV */
.site-header {
  background: var(--navy-deep);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-row { display: flex; align-items: center; gap: 2rem; }
.nav-logo { flex: none; }
.nav-logo img { height: 50px; width: auto; }
@media (max-width: 880px) { .nav-logo img { height: 44px; } }
.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-links a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-pink);
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  padding: 0.6rem 1.5rem;
  background: var(--brand-pink);
  color: #111;
  border: 1.5px solid #111;
  box-shadow: none;
}
.nav-cta:hover { background: #f0d3cf; color: #111; }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--brand-pink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: auto; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-deep);
    padding: 0.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav-links a {
    padding: 0.9rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .site-header.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* HERO */
.hero {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 740px;
  padding: 3rem 0;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 15% 0%, rgba(143, 165, 140, 0.07), transparent 60%),
    radial-gradient(55% 50% at 90% 10%, rgba(114, 131, 119, 0.06), transparent 60%),
    var(--paper);
}
@media (max-width: 600px) {
  .hero { min-height: 520px; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/logos/pattern.png');
  background-size: 480px;
  background-repeat: repeat;
  opacity: 0.04;
  pointer-events: none;
}
.hero-bg-photo {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-logo { max-width: 440px; width: 84%; margin: 0 auto 1.75rem; }
/* TAGLINE OVERLAY ON PHOTO */
.photo-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(31, 59, 77, 0.16);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 59, 77, 0.80), rgba(31, 59, 77, 0.15) 42%, rgba(31, 59, 77, 0) 68%);
  pointer-events: none;
}
.overlay-tagline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 1.5rem 1.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.overlay-tagline em { font-style: italic; font-weight: 500; color: var(--sand); }
.hero-sub {
  max-width: 620px;
  margin: 0 auto 2.25rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: #111111;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ABOUT */
#about {
  position: relative;
  z-index: 1;
  background: transparent;
  margin-top: -11rem;
  padding-top: 2rem;
}
@media (max-width: 600px) {
  #about { margin-top: 0; padding-top: 2.5rem; }
}
.about-wrap { max-width: 1000px; margin: 0 auto; }
.about-wrap::after { content: ""; display: block; clear: both; }
.about-title { margin-bottom: 1.5rem; text-align: center; }
.about-photo {
  position: relative;
  float: right;
  width: 42%;
  max-width: 430px;
  margin: 0.4rem 0 1.25rem 2.5rem;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.about-wrap > p { font-size: 1.05rem; margin: 0 0 1.2rem; color: var(--text); }
.cred-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.cred-chips span {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--brand-pink);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.about-wrap .credentials {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--navy-deep);
  margin-top: 1.5rem;
}
@media (max-width: 760px) {
  .about-photo { float: none; width: 100%; max-width: none; margin: 0 0 1.75rem; }
}

/* PULL-QUOTE BANNER */
.quote-banner {
  position: relative;
  background: var(--navy-deep);
  padding: 5.5rem 0;
  text-align: center;
  overflow: hidden;
}
.quote-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/logos/pattern.png');
  background-size: 420px;
  opacity: 0.05;
  pointer-events: none;
}
.big-quote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.4;
  color: var(--cream);
}

/* DIFFERENCE LIST */
.difference-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 3rem;
}
.difference-list li { display: flex; gap: 1rem; align-items: flex-start; }
.difference-list .icon { width: 30px; height: 30px; margin-top: 2px; color: var(--sage); }
.difference-list strong { color: var(--navy-deep); font-weight: 600; }
.difference-list div { font-size: 1.02rem; color: var(--text-light); }
@media (max-width: 760px) { .difference-list { grid-template-columns: 1fr; } }

/* MIDWIFERY IS... */
.midwifery-is p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.65;
  color: var(--navy-deep);
  margin: 0 0 1.5rem;
}
.midwifery-is .closing-line {
  font-style: italic;
  color: var(--terracotta);
  margin-top: 2rem;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 0.9rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid rgba(31, 59, 77, 0.09);
  border-radius: 12px;
  padding: 1.3rem 1.15rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(31, 59, 77, 0.09); }
.service-card .icon { width: 28px; height: 28px; margin-bottom: 0.6rem; }
.service-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-deep);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.service-card p { margin: 0; color: var(--text-light); font-size: 0.86rem; line-height: 1.5; }

/* GALLERY (masonry) */
.masonry { column-count: 3; column-gap: 1rem; }
.masonry img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 14px;
  break-inside: avoid;
}
.masonry img.focus-right { object-fit: cover; object-position: right center; aspect-ratio: 4/3; }
@media (max-width: 860px) { .masonry { column-count: 2; } }
@media (max-width: 520px) { .masonry { column-count: 1; } }

/* TESTIMONIALS (uses quote-banner base) */
.testimonials .reviews-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--cream);
  max-width: 620px;
  margin: 0 auto 2.25rem;
  position: relative;
  z-index: 1;
}
.testimonials .eyebrow, .testimonials .display, .testimonials .btn { position: relative; z-index: 1; }

/* FAQ */
.faq-list { border-top: 1px solid rgba(31, 59, 77, 0.12); }
.faq-list details { border-bottom: 1px solid rgba(31, 59, 77, 0.12); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 2.5rem 1.5rem 0;
  position: relative;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy-deep);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--terracotta);
  font-family: var(--sans);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-body { padding: 0 2.5rem 1.6rem 0; }
.faq-body p { margin: 0; color: var(--text-light); font-size: 1.02rem; }
.faq-pending { font-style: italic; opacity: 0.6; }

/* RESOURCES */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}
.resource-group h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 1rem;
  color: var(--navy-deep);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--terracotta-soft);
}
.resource-list { list-style: none; padding: 0; margin: 0; }
.resource-list li { padding: 0.9rem 0; border-bottom: 1px solid rgba(31, 59, 77, 0.08); }
.resource-list li:last-child { border-bottom: none; }
.resource-list a {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy-deep);
}
.resource-list a::after { content: " \2197"; font-size: 0.8em; color: var(--terracotta); }
.resource-list a:hover { color: var(--terracotta); }
.resource-desc { display: block; font-size: 0.9rem; color: var(--text-light); margin-top: 0.25rem; }
.resource-pending { color: var(--text-light); font-size: 1.05rem; }
.resource-pending span {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.75;
  margin-top: 0.1rem;
}

/* CONTACT */
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--paper);
  border: 1px solid rgba(31, 59, 77, 0.12);
  border-radius: 999px;
  color: var(--navy-deep);
  transition: border-color 0.2s, background 0.2s;
}
.contact-card:hover { border-color: var(--brand-green); background: rgba(114, 131, 119, 0.06); }
.contact-card .icon { width: 18px; height: 18px; margin: 0; }
.contact-value { font-family: var(--sans); font-size: 0.85rem; font-weight: 500; }

#contact { padding-top: 3.5rem; }
#contact .section-head { margin-bottom: 1.25rem; }
#contact .section-head .section-lead { margin-top: 0.5rem; }
.offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 780px;
  margin: 3.5rem auto 0;
}
.office {
  text-align: center;
  background: var(--paper);
  border: 1px solid rgba(31, 59, 77, 0.1);
  border-radius: 16px;
  padding: 2rem 1.5rem;
}
.office .icon { width: 30px; height: 30px; margin: 0 auto 0.75rem; }
.office h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--navy-deep); margin: 0 0 0.5rem; }
.office p { margin: 0; color: var(--text-light); font-size: 0.98rem; line-height: 1.6; }
@media (max-width: 620px) { .offices { grid-template-columns: 1fr; } }

/* INQUIRY FORM */
.inquiry {
  max-width: 780px;
  margin: 2rem auto 0;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(31, 59, 77, 0.12);
}
.inquiry-head { text-align: center; margin-bottom: 1.5rem; }
.inquiry-head .display { margin-bottom: 1rem; }
.inquiry-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-row-compact { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.form-row-compact .field { flex: 0 1 230px; min-width: 190px; }
.inquiry-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F3B4D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; border: none; padding: 0; margin: 0; min-width: 0; }
.field-label {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
}
.field-label em { color: var(--terracotta); font-style: normal; }
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid rgba(31, 59, 77, 0.2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.inquiry-form textarea { resize: vertical; }
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(114, 131, 119, 0.18);
}
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder { color: #a49f95; }
.radio-row { display: flex; gap: 1.5rem; flex-wrap: wrap; padding-top: 0.35rem; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.98rem;
  color: var(--text);
}
.radio input { width: 18px; height: 18px; accent-color: var(--terracotta); margin: 0; }
.radio:has(input:checked) { color: var(--navy-deep); font-weight: 500; }
.form-submit { align-self: center; margin-top: 0.5rem; }
.form-note { text-align: center; font-size: 0.9rem; color: var(--text-light); font-style: italic; margin: 0.25rem 0 0; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* FOOTER */
.site-footer { background: var(--navy-deep); color: var(--text-on-dark); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244, 239, 227, 0.15);
}
.footer-wordmark { font-family: var(--display); font-weight: 600; font-size: 1.7rem; color: var(--cream); margin: 0 0 0.75rem; letter-spacing: 0.01em; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--sand); margin: 0; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; font-size: 0.95rem; color: rgba(244, 239, 227, 0.85); }
.footer-col a { color: rgba(244, 239, 227, 0.85); }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 1.75rem; text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.8rem; letter-spacing: 0.05em; color: rgba(244, 239, 227, 0.55); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
}
