/* ===========================
   EKD Midwifery - Stylesheet
   Colors from logo:
   Primary (dark forest green): #2D4A3E
   Accent (soft pink/cream):    #E8C4C0
   =========================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #FAFAF8;
  line-height: 1.7;
}

a {
  color: #2D4A3E;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #D4A69F;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: #2D4A3E;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

/* --- Utility --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: #F5E6E3;
}

.section--green {
  background-color: #2D4A3E;
  color: #F5E6E3;
}

.section--green h2,
.section--green h3,
.section--green h4 {
  color: #E8C4C0;
}

.section--green a {
  color: #E8C4C0;
  text-decoration: underline;
}

.section--green a:hover {
  color: #fff;
}

.section--green .btn--accent {
  color: #2D4A3E;
}

.section--green .btn--accent:hover {
  color: #2D4A3E;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
}

.btn--primary {
  background-color: #2D4A3E;
  color: #F5E6E3;
  border-color: #2D4A3E;
}

.btn--primary:hover {
  background-color: #1E3529;
  color: #fff;
  border-color: #1E3529;
}

.btn--outline {
  background-color: transparent;
  color: #2D4A3E;
  border-color: #2D4A3E;
}

.btn--outline:hover {
  background-color: #2D4A3E;
  color: #F5E6E3;
}

.btn--accent {
  background-color: #E8C4C0;
  color: #2D4A3E;
  border-color: #E8C4C0;
}

.btn--accent:hover {
  background-color: #D4A69F;
  border-color: #D4A69F;
}

/* --- Header / Navigation --- */
.header {
  background-color: #2D4A3E;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo img {
  height: 55px;
  width: auto;
}

.header__logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: #E8C4C0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header__logo-tagline {
  font-size: 0.65rem;
  color: #E8C4C0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #E8C4C0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: #fff;
  background-color: rgba(232, 196, 192, 0.15);
}

/* Dropdown */
.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2D4A3E;
  min-width: 220px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 100;
  padding: 0.5rem 0;
}

.nav__item:hover .nav__dropdown {
  display: block;
}

.nav__dropdown .nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  border-radius: 0;
}

.nav__dropdown .nav__link:hover {
  background-color: rgba(232, 196, 192, 0.2);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #E8C4C0;
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

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

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

/* --- Hero Section --- */
.hero {
  background-color: #2D4A3E;
  color: #F5E6E3;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  color: #E8C4C0;
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  opacity: 0.95;
}

.hero .btn {
  margin: 0.5rem;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background-color: #2D4A3E;
  color: #F5E6E3;
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  color: #E8C4C0;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Card Layout --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 4px solid #E8C4C0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.card h3 {
  margin-bottom: 0.75rem;
}

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

/* --- Service Categories (Clinical Services grid) --- */
.service-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-category {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid #E8C4C0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-category h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.service-category ul {
  list-style: none;
  padding: 0;
}

.service-category li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  font-size: 0.92rem;
  color: #555;
}

.service-category li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  background-color: #E8C4C0;
  border-radius: 50%;
}

@media (max-width: 700px) {
  .service-categories {
    grid-template-columns: 1fr;
  }
}

/* --- Services List --- */
.services-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.services-list li {
  padding: 0.6rem 0 0.6rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
}

.services-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 10px;
  height: 10px;
  background-color: #E8C4C0;
  border-radius: 50%;
}

/* --- Fee Table --- */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.fee-table th,
.fee-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #e0ddd8;
}

.fee-table th {
  background-color: #2D4A3E;
  color: #E8C4C0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.fee-table tr:hover td {
  background-color: #F5E6E3;
}

/* --- OON Reasons --- */
.oon-reasons {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.oon-reasons li {
  padding: 1rem 1rem 1rem 1.75rem;
  position: relative;
  border-left: 3px solid #E8C4C0;
  margin-bottom: 0.75rem;
  background: #fff;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Testimonials --- */
.testimonial {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left: 4px solid #E8C4C0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: #2D4A3E;
  font-size: 0.9rem;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid #e0ddd8;
  padding: 1.25rem 0;
}

.faq-question {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: #2D4A3E;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 1rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2D4A3E;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2D4A3E;
  box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

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

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  accent-color: #2D4A3E;
}

/* --- Bio Layout (About page) --- */
.bio-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.bio-layout__photo img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* --- Photo Gallery (Office photos) --- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.photo-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- Page Photo (single featured image) --- */
.page-photo {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 2rem auto;
  max-width: 500px;
}

.page-photo img {
  width: 100%;
  display: block;
}

.page-photo--wide {
  max-width: 700px;
}

.page-photo--float-right {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 300px;
}

/* --- Responsive: Bio + Photos --- */
@media (max-width: 700px) {
  .bio-layout {
    grid-template-columns: 1fr;
  }

  .bio-layout__photo {
    max-width: 280px;
    margin: 0 auto 1rem;
  }

  .page-photo--float-right {
    float: none;
    margin: 1.5rem auto;
    max-width: 350px;
  }

  .photo-gallery img {
    height: 200px;
  }
}

/* --- Coming Soon (placeholder pages) --- */
.coming-soon {
  text-align: center;
  padding: 4rem 2rem;
}

.coming-soon h2 {
  margin-bottom: 1rem;
}

.coming-soon p {
  font-size: 1.1rem;
  color: #666;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.footer {
  background-color: #2D4A3E;
  color: #E8C4C0;
  padding: 3rem 0 1.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer h4 {
  color: #E8C4C0;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: rgba(232, 196, 192, 0.85);
  font-size: 0.9rem;
}

.footer a:hover {
  color: #fff;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.4rem;
}

.footer__bottom {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 196, 192, 0.2);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2D4A3E;
    padding: 1rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .nav__list.active {
    display: flex;
  }

  .nav__link {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }

  .nav__dropdown {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    background-color: rgba(0,0,0,0.1);
    border-radius: 0;
  }

  .nav__item:hover .nav__dropdown {
    display: none;
  }

  .nav__item.mobile-open .nav__dropdown {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .header__logo-text {
    font-size: 1rem;
  }

  .header__logo-tagline {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

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

  .services-list {
    grid-template-columns: 1fr;
  }
}
