/* ============================================
   Sacred Birth Doula — Style Sheet
   Palette: earthy pastels, light blues & greens
   ============================================ */

:root {
  /* Colors */
  --sage: #b5c7b0;
  --sage-light: #d4e2d0;
  --sage-pale: #eef3ec;
  --blue-mist: #c5d5e4;
  --blue-pale: #e8eff5;
  --cream: #faf8f5;
  --warm-white: #fdfcfa;
  --sand: #e8e0d6;
  --sand-light: #f3efe9;
  --text-dark: #3d3d3d;
  --text-medium: #5a5a5a;
  --text-light: #7a7a7a;
  --accent: #8fa889;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Nunito Sans', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 5rem 0;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.7;
  font-size: 16px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--text-dark);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-medium);
}

.section-intro {
  text-align: center;
  max-width: 600px;
  margin: -0.5rem auto 2.5rem;
  color: var(--text-light);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #7a9574;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(143, 168, 137, 0.35);
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar.scrolled {
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
  padding: 0.6rem 0;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: white;
  transition: color 0.3s;
}

.navbar.scrolled .nav-logo {
  color: var(--text-dark);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

.navbar.scrolled .nav-links a {
  color: var(--text-medium);
}

.nav-links a:hover,
.navbar.scrolled .nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar.scrolled .nav-cta {
  background: var(--sage-pale);
  border-color: var(--sage-light);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
}

.navbar.scrolled .nav-toggle span {
  background: var(--text-dark);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #8fa889 0%, #a7bfca 50%, #c5d5e4 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(181, 199, 176, 0.2) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.hero-logo {
  max-width: 280px;
  margin: 0 auto 1.5rem;
  border-radius: 8px;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.15));
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.hero h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

/* ---- Section Base ---- */
.section {
  padding: var(--section-padding);
}

/* ---- About ---- */
.about {
  background: var(--cream);
}

.about-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.about-image {
  max-width: 500px;
  width: 100%;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--text-medium);
}

.about-text p:first-of-type::first-line {
  font-weight: 400;
}

.about-location {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* ---- Services ---- */
.services {
  background: var(--warm-white);
}

.services-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--sage-pale);
  border-radius: 16px;
  overflow: hidden;
}

.services-details {
  padding: 2.5rem 2.5rem 2rem;
}

.services-details ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.services-details li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--text-medium);
}

.services-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.services-price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
}

.services-payment {
  background: var(--sand-light);
  padding: 2rem 2.5rem;
}

.services-payment h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.services-payment p {
  color: var(--text-medium);
  margin-bottom: 1rem;
}

.services-payment ul {
  list-style: none;
}

.services-payment li {
  color: var(--text-medium);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.services-payment li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--blue-pale);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.testimonial p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial footer {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

/* ---- Resources ---- */
.resources {
  background: var(--cream);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 750px;
  margin: 0 auto;
}

.resource-group h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sage-light);
}

.resource-group ul {
  list-style: none;
}

.resource-group li {
  padding: 0.35rem 0;
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* ---- Contact ---- */
.contact {
  background: var(--warm-white);
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-medium);
  font-size: 1.05rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: var(--sage-pale);
  transition: all 0.3s;
}

.contact-item:hover {
  background: var(--sage-light);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

/* ---- Footer ---- */
.footer {
  background: var(--sand-light);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--sand);
}

.footer p {
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer-location {
  margin-top: 0.25rem;
  font-size: 0.8rem !important;
  color: var(--text-light);
  opacity: 0.7;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--warm-white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--text-medium) !important;
    font-size: 1rem;
  }

  .nav-cta {
    background: var(--sage-pale) !important;
    border-color: var(--sage-light) !important;
    text-align: center;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .services-details,
  .services-payment {
    padding: 1.75rem 1.5rem;
  }

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

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

  .contact-item {
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
  }

  .hero-logo {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: 1rem;
  }

  .services-price {
    font-size: 2rem;
  }
}
