/* =========================================================
   The Birth Chapter — Stylesheet
   ========================================================= */

:root {
  /* Colour palette */
  --cream: #f7f2e9;
  --cream-dark: #f1e9db;
  --blush: #e9c9bc;
  --blush-soft: #f0dccf;
  --brown: #7a5641;
  --brown-dark: #5c3f2c;
  --brown-darker: #4a3222;
  --ink: #4a3527;
  --white: #ffffff;

  /* Type */
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-script: "Playball", cursive;
  --font-body: "Cormorant Garamond", "Georgia", serif;

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3rem, 8vw, 6.5rem);
  --radius-pill: 999px;
  --max-width: 1200px;

  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brown-dark);
  font-weight: 500;
  margin: 0 0 0.6em;
  line-height: 1.15;
}

p {
  margin: 0 0 1.1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brown-dark);
  color: var(--white);
  padding: 0.6em 1em;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 0.85em 2.2em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  text-align: center;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brown-dark);
  color: var(--cream);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brown-darker);
}

.btn-blush {
  background: var(--blush);
  color: var(--brown-dark);
}
.btn-blush:hover,
.btn-blush:focus-visible {
  background: var(--blush-soft);
}

.btn-outline {
  background: transparent;
  border-color: var(--brown-dark);
  color: var(--brown-dark);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--brown-dark);
  color: var(--cream);
}

/* -------------------- Header / Nav -------------------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(122, 86, 65, 0.25);
  position: relative;
  z-index: 100;
}

.site-header.on-blush {
  background: var(--blush);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.logo {
  text-align: center;
  order: 2;
  flex: 1;
  margin: 0;
}

.logo img {
  width: clamp(110px, 12vw, 160px);
  height: auto;
  margin: 0 auto;
}

.primary-nav {
  order: 1;
}

.primary-nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.primary-nav a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brown-dark);
  padding-bottom: 0.2em;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--brown-dark);
}

.nav-spacer {
  order: 3;
  width: 1px;
  flex: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  order: 3;
}

.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--brown-dark);
  margin: 6px 0;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 780px) {
  .nav-wrap {
    justify-content: space-between;
  }
  .logo {
    order: 1;
    text-align: left;
  }
  .logo img {
    width: 96px;
    margin: 0;
  }
  .nav-toggle {
    display: block;
    order: 2;
  }
  .primary-nav {
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(122, 86, 65, 0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .site-header.on-blush .primary-nav {
    background: var(--blush);
  }
  .primary-nav.is-open {
    max-height: 320px;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .primary-nav li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(122, 86, 65, 0.15);
  }
  .nav-spacer {
    display: none;
  }
}

/* -------------------- Hero sections -------------------- */
.hero {
  padding: var(--section-pad) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid .hero-media {
    order: -1;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 0.9em;
}

.hero .lede {
  font-size: 1.3rem;
  color: var(--brown);
}

.tagline {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brown-dark);
  margin: 1.6em 0;
}

/* image placeholders (swap for real photography) */
.img-placeholder {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--blush-soft), var(--blush));
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--brown-dark);
  opacity: 0.6;
  text-align: center;
}
.img-placeholder svg {
  width: 34%;
  opacity: 0.55;
}
.img-placeholder.wide {
  aspect-ratio: 16 / 10;
}
.img-placeholder.square {
  aspect-ratio: 1 / 1;
}

/* Real photo frames — same footprint as the placeholders above,
   but cropping an actual <img> via object-fit instead of showing a gradient. */
.img-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-frame.square {
  aspect-ratio: 1 / 1;
}
.img-frame.wide {
  aspect-ratio: 16 / 10;
}
.img-frame.portrait {
  aspect-ratio: 4 / 5;
}

/* -------------------- Sections on blush -------------------- */
.section-blush {
  background: var(--blush);
}
.section-cream {
  background: var(--cream);
}
.section {
  padding: var(--section-pad) 0;
}
#chapters {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

/* -------------------- Chapters accordion (Home) -------------------- */
.chapters {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

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

.chapters-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.accordion-list {
  border-top: 1px solid var(--brown);
}

.accordion-item {
  border-bottom: 1px solid var(--brown);
}

.accordion-item > summary,
.accordion-item .acc-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brown-dark);
}

.accordion-item > summary::-webkit-details-marker {
  display: none;
}

.accordion-item .acc-icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  position: relative;
}
.accordion-item .acc-icon::before,
.accordion-item .acc-icon::after {
  content: "";
  position: absolute;
  background: var(--brown-dark);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-item .acc-icon::before {
  width: 100%;
  height: 2px;
}
.accordion-item .acc-icon::after {
  width: 2px;
  height: 100%;
  transition: transform var(--transition);
}
.accordion-item[open] .acc-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.accordion-item .acc-body {
  padding: 0 0 1.5rem;
  color: var(--brown);
  max-width: 42ch;
}

.chapters-media {
  align-self: start;
}

.chapters-media .btn {
  margin-top: 1.5rem;
  display: block;
  text-align: center;
}

.chapters-media .img-frame {
  margin-top: 1.5rem;
}

/* -------------------- About page bio banner -------------------- */
.bio-banner {
  background: var(--blush);
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.bio-banner::before,
.bio-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 70px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.bio-banner::before {
  top: 0;
  /* Paints the page's cream colour into the area ABOVE the wave curve,
     so the pink block's visible top edge follows the curve itself
     rather than a straight rectangle edge sitting behind a drawn line. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0,40 C200,70 400,10 600,40 C800,70 1000,10 1200,40 L1200,0 L0,0 Z' fill='%23f7f2e9'/><path d='M0,40 C200,70 400,10 600,40 C800,70 1000,10 1200,40' fill='none' stroke='%236b4a35' stroke-width='3'/></svg>");
}
.bio-banner::after {
  bottom: 0;
  /* Same idea, mirrored: paints cream into the area BELOW the curve. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0,40 C200,70 400,10 600,40 C800,70 1000,10 1200,40 L1200,80 L0,80 Z' fill='%23f7f2e9'/><path d='M0,40 C200,70 400,10 600,40 C800,70 1000,10 1200,40' fill='none' stroke='%236b4a35' stroke-width='3'/></svg>");
}

.bio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

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

.bio-grid h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.bio-grid .btn {
  margin-top: 1.5rem;
}

/* -------------------- About page: single continuous two-column layout -------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

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

.about-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

.about-subheading {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 500;
  color: var(--brown-dark);
  margin: 0 0 1.6em;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-top: 1.6em;
}
.about-text h2:first-of-type {
  margin-top: 1.2em;
}

.about-media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 480px;
}

/* Uncropped variant — image shown at its full natural proportions, no forced
   aspect-ratio or object-fit cover, so nothing is trimmed away. */
.img-frame.natural {
  aspect-ratio: auto;
}
.img-frame.natural img {
  width: 100%;
  height: auto;
  object-fit: initial;
}

/* -------------------- Packages -------------------- */
.packages-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--section-pad);
}
.packages-intro h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.package-card {
  border-top: 1px solid var(--brown);
  padding: var(--section-pad) 0;
}
.package-card:first-of-type {
  border-top: none;
  padding-top: 0;
}

.package-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.package-header h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.package-header .price {
  color: var(--brown-dark);
}

.package-header .package-tagline {
  font-weight: 600;
  color: var(--brown-dark);
}

.package-header .package-desc {
  color: var(--brown);
}

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

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

.package-columns h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.package-columns ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
}

.package-columns li {
  position: relative;
  padding: 0 0.5rem;
}

.package-note {
  text-align: center;
  max-width: 640px;
  margin: 2rem auto 0;
  color: var(--brown-dark);
}
.package-note strong {
  color: var(--brown-dark);
}

.package-availability {
  text-align: center;
  font-weight: 600;
  color: var(--brown-dark);
  margin-top: 1.5rem;
}

.package-hourly {
  text-align: center;
  font-weight: 600;
  color: var(--brown-dark);
}

.package-preference {
  text-align: center;
  font-style: italic;
  max-width: 640px;
  margin: 1.5rem auto 0;
  color: var(--brown-dark);
}

.not-sure {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding-top: var(--section-pad);
  border-top: 1px solid var(--brown);
}
.not-sure h2 {
  font-size: 1.9rem;
}

/* -------------------- FAQ -------------------- */
.faq-title {
  text-align: center;
  margin-bottom: var(--section-pad);
}
.faq-title h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.faq-card {
  background: var(--blush-soft);
  padding: 2.2rem 2rem;
}

.faq-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8em;
}

.faq-card p {
  color: var(--ink);
}

.faq-card strong {
  color: var(--brown-dark);
}

.faq-card .faq-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: underline;
}

/* -------------------- Contact form -------------------- */
.contact-section {
  background: var(--blush);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

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

.contact-grid h2 {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field label {
  display: block;
  font-family: var(--font-display);
  color: var(--brown-dark);
  margin-bottom: 0.4rem;
}

.form-field .req {
  font-size: 0.85rem;
  color: var(--brown);
  font-weight: 400;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  border: 1px solid var(--brown-dark);
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 0.85em 1.2em;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

.form-field textarea {
  border-radius: 18px;
  min-height: 140px;
  resize: vertical;
}

.form-field.checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.form-field.checkbox input {
  width: 1.1rem;
  height: 1.1rem;
}
.form-field.checkbox label {
  margin-bottom: 0;
}

.form-status {
  min-height: 1.5em;
  font-weight: 600;
}
.form-status[data-state="success"] {
  color: #3d6b3f;
}
.form-status[data-state="error"] {
  color: #8a3b2b;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--cream);
  padding: var(--section-pad) 0 2.5rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  border-top: 1px solid rgba(122, 86, 65, 0.35);
  padding-top: 2.5rem;
}

.footer-grid .footer-name {
  font-size: 1.7rem;
}

.footer-grid a.footer-email,
.footer-grid a.footer-instagram {
  font-style: italic;
  font-size: 1.05rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--brown);
}

/* -------------------- Utility -------------------- */
.text-center {
  text-align: center;
}
.mt-lg {
  margin-top: 2.5rem;
}
.mb-0 {
  margin-bottom: 0;
}

/* Flexible payment options: understated text emphasis, no white box */
.payment-options {
  max-width: 850px;
  margin: 2rem auto;
  padding: 0;
  text-align: center;
  background: transparent;
  border-radius: 0;
}
.payment-options p {
  margin-bottom: 0;
}
.payment-options strong {
  display: inline-block;
  margin-bottom: 0.35rem;
}
