/* ============================================================
   Steadfast Doula Care — Stylesheet
   ============================================================ */

/* ── Design tokens ────────────────────────────────────────── */
:root {
  --primary-sage: #768970;
  --base-cream: #F9F7F2;
  --accent-clay: #C38164;
  --text-dark: #2F3230;
}

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

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Fraunces', Georgia, serif;
  background-color: var(--base-cream);
  color: var(--text-dark);
  line-height: 1.65;
}

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

a
{
  color: var(--accent-clay);
  font-weight: 600;
  text-decoration: none;
}

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

/* ── Utility ──────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background-color: var(--accent-clay);
  color: #fff;
  border: 2px solid var(--accent-clay);
}

.btn-primary:hover {
  background-color: var(--text-dark);
  color: var(--base-cream);
  border-color: var(--text-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--base-cream);
  border: 2px solid rgba(249, 247, 242, 0.7);
}

.btn-outline:hover {
  background-color: var(--base-cream);
  color: var(--text-dark);
}

/* ── Site Header ──────────────────────────────────────────── */
.site-header {
  background-color: var(--primary-sage);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(118, 137, 112, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-dark);
}

.logo:hover { opacity: 0.85; }

.logo-image {
  height: 3rem;
  width: auto;
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; }

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

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  font-size: 1.3rem;
  transition: background-color 0.2s, color 0.2s;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background-color: rgba(47, 50, 48, 0.15);
}

.btn-nav {
  background-color: var(--accent-clay) !important;
  color: #fff !important;
  font-weight: bold;
  padding: 0.4rem 1rem !important;
}

.btn-nav:hover {
  background-color: var(--text-dark) !important;
  color: var(--base-cream) !important;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background-color: var(--primary-sage);
  color: var(--base-cream);
  padding-block: 5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--base-cream);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background-color: var(--primary-sage);
  color: var(--base-cream);
  padding-block: 2.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--base-cream);
}

.page-hero p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0.85;
  max-width: 600px;
  margin-inline: auto;
}

/* ── General Page Content ─────────────────────────────────── */
.page-content {
  padding-block: 4rem;
}

.page-content h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p { margin-bottom: 1rem; max-width: 740px; }

/* ── Section Styles ───────────────────────────────────────── */
.section { padding-block: 4rem; }

.section-alt { background-color: var(--primary-sage); color: var(--base-cream); }

.section-alt h2 { color: var(--base-cream); }

.section h2 {
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.section p {
  max-width: 700px;
  font-size: 1.05rem;
}

/* ── Cards Grid ───────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.card {
  background-color: #fff;
  border: 1px solid rgba(47, 50, 48, 0.08);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgba(47, 50, 48, 0.06);
}

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

.card p { font-size: 0.975rem; color: #555; }

/* ── Services List ────────────────────────────────────────── */
.service-block {
  margin-bottom: 3.5rem;
}

.service-block p { margin-bottom: 0.85rem; }

.service-block ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 1rem;
}

.service-block ul li {
  padding: 0.3rem 0;
  font-size: 0.975rem;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial {
  background-color: rgba(249, 247, 242, 0.08);
  border-left: 4px solid var(--accent-clay);
  padding: 1.5rem;
  border-radius: 0 6px 6px 0;
}

.testimonial blockquote {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.testimonial cite { font-size: 0.9rem; color: var(--accent-clay); font-style: normal; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-info p { margin-bottom: 0.75rem; }

.contact-info a { color: var(--accent-clay); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(47, 50, 48, 0.3);
  border-radius: 4px;
  background-color: #fff;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-clay);
  box-shadow: 0 0 0 3px rgba(195, 129, 100, 0.2);
}

.contact-form textarea { min-height: 160px; resize: vertical; }

/* ── About ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.credentials {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 1rem;
}

.credentials li {
  padding: 0.4rem 0;
}

/* ── CTA Strip ────────────────────────────────────────────── */
.cta-strip {
  background-color: var(--primary-sage);
  color: var(--base-cream);
  padding-block: 3.5rem;
  text-align: center;
}

.cta-strip h2 { color: var(--base-cream); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.cta-strip p { margin-bottom: 1.75rem; max-width: 560px; margin-inline: auto; opacity: 0.9; }

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
  background-color: var(--primary-sage);
  color: var(--text-dark);
  text-align: center;
  padding-block: 2rem;
  font-size: 0.875rem;
}

.site-footer p + p { margin-top: 0.25rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-sage);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(47, 50, 48, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu a { display: block; width: 100%; }

  .site-header { position: relative; }

  .service-block,
  .service-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo { max-width: 340px; }
}
