/* ==========================================================
   Rosanna Sinoo — site styles
   Colours and fonts match the original Squarespace theme.
   ========================================================== */

:root {
  --sand: #e1d5c5;      /* main background */
  --ink: #222121;       /* main text */
  --olive: #928334;     /* olive sections + footer */
  --peach: #d1a391;     /* buttons, peach sections */
  --blush: #debdb4;     /* light pink sections */

  --font-heading: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1400px;
  --header-h: 84px;
}

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.4; }
h4 { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.5; }

p { margin: 0 0 1em; }

em, .italic { font-style: italic; }
.upper { text-transform: uppercase; letter-spacing: 0.04em; }
.center { text-align: center; }
.small { font-size: 0.85rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--sand); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--peach);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.3;
  text-decoration: none;
  padding: 0.85em 1.8em;
  border-radius: 6px;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .85; }
.btn--olive { background: var(--olive); color: var(--sand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sand);
  height: var(--header-h);
  display: flex; align-items: center;
}
.site-header__inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; font-size: 0.95rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s;
}
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1px; }

.dropdown { position: relative; }
.dropdown > button {
  font: inherit; font-size: 0.95rem; color: inherit; background: none; border: 0;
  padding: 0; cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.dropdown > button::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.dropdown__menu {
  position: absolute; top: 100%; left: -18px; padding: 14px 18px 10px;
  background: var(--sand); min-width: 170px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu,
.dropdown.open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }

.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit;
}
.menu-toggle span {
  display: block; width: 28px; height: 1px; background: currentColor; margin: 7px 0;
  transition: transform .3s, opacity .3s;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .menu-toggle { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    background: var(--sand);
    flex-direction: column; justify-content: center; gap: 22px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  .nav a, .dropdown > button { font-size: 1.6rem; font-family: var(--font-heading); }
  .dropdown { display: flex; flex-direction: column; align-items: center; }
  .dropdown > button { justify-content: center; }
  .dropdown__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; padding: 10px 0 0; min-width: 0; align-items: center;
    display: none;
  }
  .dropdown.open .dropdown__menu { display: flex; }
  .dropdown__menu a { font-size: 1.2rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 130px) var(--gutter); position: relative; }
.section--tight { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.wrap { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 900px; margin: 0 auto; }

.bg-sand  { background: var(--sand); color: var(--ink); }
.bg-olive { background: var(--olive); color: var(--sand); }
.bg-peach { background: var(--peach); color: var(--ink); }
.bg-blush { background: var(--blush); color: var(--ink); }
.bg-dark  { background: #1c1712; color: var(--sand); }

/* Full-bleed photo section with darkened overlay */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(460px, 72vh, 760px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--sand);
  padding: 80px var(--gutter);
}
.hero--short { min-height: clamp(380px, 60vh, 640px); }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; background: rgba(20, 16, 10, .42); z-index: 1;
}
.hero--dark::after { background: rgba(20, 14, 8, .62); }
.hero__content { position: relative; z-index: 2; max-width: 980px; }
.hero h1, .hero h2 { margin-bottom: .4em; }

/* ---------- Layout helpers ---------- */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.col-right { grid-column: 2; }
.align-start { align-items: start; }

@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .col-right { grid-column: auto; }
  .order-first-mobile { order: -1; }
}

.photo { width: 100%; object-fit: cover; }
.photo--portrait { aspect-ratio: 2 / 3; }
.photo--landscape { aspect-ratio: 3 / 2; }
.photo--square { aspect-ratio: 1; }

/* ---------- Home: services cards ---------- */
.service-card { text-decoration: none; display: block; }
.service-card .photo { aspect-ratio: 4 / 5; transition: transform .6s ease; }
.service-card__img { overflow: hidden; }
.service-card:hover .photo { transform: scale(1.03); }
.service-card h4 { margin-top: 16px; }
@media (max-width: 760px) { .service-card .photo { aspect-ratio: 4 / 3; } }

/* ---------- Quotes / testimonials ---------- */
.quote { text-align: center; }
.quote h3 { margin-bottom: .8em; }
.quote cite { font-style: normal; font-size: 1.05rem; }

.testimonials { columns: 2; column-gap: clamp(32px, 6vw, 80px); max-width: 1000px; margin: 0 auto; }
.testimonial { break-inside: avoid; text-align: center; margin: 0 0 56px; }
.testimonial h4 { font-style: italic; }
.testimonial p { font-size: .85rem; font-style: italic; }
@media (max-width: 760px) { .testimonials { columns: 1; } }

/* ---------- Lists ---------- */
.list-dots { padding-left: 1.2em; margin: 0 0 1em; }
.list-dots li { margin-bottom: .55em; }

.lined-list { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; }
.lined-list li {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center;
  padding: 22px 0; font-style: italic;
}
.lined-list li::before { content: ""; border-top: 1px solid rgba(34,33,33,.25); }
@media (max-width: 760px) {
  .lined-list li { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .lined-list li::before { width: 60px; margin: 0 auto; }
}

.package li { margin-bottom: .7em; }

/* ---------- Doula definition ---------- */
.definition .phonetic { font-size: .8rem; margin-top: -0.4em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--olive); color: var(--sand);
  padding: 64px var(--gutter) 72px; text-align: center; font-size: .9rem;
}
.site-footer__top {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(24px, 8vw, 120px); flex-wrap: wrap; margin-bottom: 28px;
}
.site-footer .footer-name { font-family: var(--font-heading); font-size: 1.5rem; }
.site-footer a { color: var(--sand); }
.site-footer .credits { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 40px; }
.site-footer .credits a { color: var(--blush); }

.social { display: flex; gap: 18px; justify-content: center; }
.social a { display: inline-flex; width: 26px; height: 26px; opacity: .95; }
.social a:hover { opacity: .7; }
.social svg { width: 100%; height: 100%; fill: currentColor; }
.social--ink a { color: var(--ink); width: 30px; height: 30px; }

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.2em; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
