:root {
  --accent-color: #625448;
  --accent-text: #ffffff;
  --base-bg: #ffffff;
  --base-text: #9a6860;
  --muted: #e9ddd9; /* light pinky divider */
}

/* Apply Cormorant to headlines and titles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cormorant', serif;
}

/* Apply Crimson Pro to all body text */
p,
li,
a,
span {
  font-family: 'Crimson Pro', serif;
}

/* Base */
* {
  box-sizing: border-box;
}
body {
  font-family: Georgia, 'Times New Roman', serif;
  margin: 0;
  background: var(--base-bg);
  color: var(--base-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Header: logo bar + stacked/centered nav */
header {
  top: 0;
  z-index: 1000;
  background: var(--base-bg);
  border-bottom: 1px solid var(--muted);
  width: 100%; /* Ensures it spans the full width of the page */
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 1.8rem;
}
h4 {
  font-size: 1.5rem;
  font-weight: 200;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1rem 0.9rem;
}

/* Full-width hero breakout */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  min-width: 100%;
  padding: 0;
}

.hero-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(
    -50%,
    -50%
  ); /* Centers the text overlay both horizontally and vertically */
  text-align: center;
  color: white;
  z-index: 2; /* Ensures the text appears on top of the image */
  width: 80%; /* Adjust as needed for smaller screens */
  max-width: 700px; /* Limits the width on larger screens */
}

.quote-box {
  background-color: rgba(
    0,
    0,
    0,
    0.2
  ); /* Semi-transparent black background for readability */
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
}

.quote {
  font-size: 1.5em; /* Adjust font size as needed */
  font-style: italic;
  line-height: 1.6;
}

/* Reset container constraints */
.hero-image-container {
  margin: 0;
  max-width: none;
  padding: 0;
}

/* Make image cover full area */
.hero-image {
  width: 100vw;
  min-height: 100vh; /* Remove fixed height */
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Top bar (logo left, hamburger right) */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: left;
  gap: 0.6rem;
  text-align: left;
}
.logo img {
  max-height: 150px;
}

/* Stacked/centered nav group (desktop) */
.nav-wrap {
  position: relative; /* This makes the navbar stick to the top of the viewport */
}
/* We keep your UL + LI but style like a "link cloud" */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0 0.5rem;
  display: flex;
  flex-wrap: wrap; /* this makes the stack/rows */
  gap: 0.6rem 2rem; /* row gap / column gap */
  justify-content: center; /* centered like original */
  max-width: 920px; /* controls how many items per row */
  margin-inline: auto; /* center the whole group */
}
.nav-links a {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.8rem;
  white-space: nowrap;
  padding: 0.25rem 0;
  transition: opacity 0.2s ease;
}
.nav-links a:hover {
  opacity: 0.7;
}

/* Hamburger (two lines → X) */
.hamburger {
  width: 30px;
  height: 24px;
  cursor: pointer;
  position: relative;
  display: none; /* hidden on desktop */
}
.hamburger .line {
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  transition: all 0.35s ease;
}
.hamburger .line1 {
  top: 0;
}
.hamburger .line2 {
  bottom: 0;
}
.hamburger.change .line1 {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.change .line2 {
  transform: rotate(-45deg) translate(5px, -5px);
}

/*. below is the grid box about me page styles */

.doulacontainer {
  display: flex;
  align-items: center; /* Vertically centers the image and text */
  gap: 20px; /* Adds space between the image and the text content */
  padding: 20px; /* Adds some space around the entire container */
}

.profile-image {
  flex-shrink: 0; /* Prevents the image from shrinking */
  width: 50%; /* Adjusts the image size; you can use a fixed pixel value if you prefer */
  max-width: 500px; /* A max-width is good practice for larger screens */
  height: auto;
  border-radius: 8px; /* Optional: Adds rounded corners to the image */
}

.text-content {
  flex: 1; /* Allows the text content to grow and fill the remaining space */

  color: var(--accent-text); /* A dark gray color for better readability */
  line-height: 1.6; /* Improves readability by adding space between lines of text */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .doulacontainer {
    flex-direction: column; /* Stacks the image and text vertically on small screens */
  }

  .profile-image {
    width: 100%; /* Makes the image full-width on mobile */
    max-width: none;
  }
}

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* This makes the section take up the full viewport height */
  overflow: hidden;
}

/* Full-width hero breakout */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  min-width: 100%;
  padding: 0;
}

/* Reset container constraints */
.hero-image-container {
  margin: 0;
  max-width: none;
  padding: 0;
}

/* Make image cover full area */
.hero-image {
  width: 100%;
  height: auto; /* Remove fixed height */
  max-height: 400px; /* Set a maximum height to prevent excessive size */
  object-fit: cover;
  object-position: center;
}

.hero-text-overlay {
  /* Reposition the text to the bottom of the image */
  top: auto; /* Overrides 'top: 50%' from desktop styles */
  bottom: 0; /* Positions the text at the bottom */
  left: 0; /* Aligns to the left edge */
  transform: none; /* Removes the centering transform */
  width: 100%; /* Makes the text box take up the full width */
  max-width: none; /* Removes the max-width limit */
  padding: 15px; /* Adds padding to the sides */
}

.quote-box {
  /* Adjust padding and background for mobile */
  padding: 10px;
  border-radius: 0; /* Makes the corners sharp to fit the full width */
}

.quote {
  font-size: 1em; /* Reduce the font size for smaller screens */
}

.photo-credit {
  font-size: 0.9em; /* Smaller font for the photo credit */
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .quote {
    font-size: 1.2em;
  }
  .logo img {
    max-height: 80px;
  }
  h2 {
    font-size: 1.5rem;
  }

  h4 {
    padding: 1rem;
    line-height: 1.6;
    font-weight: 400;
    font-size: 18px;
  }
}

/* Hero (simple, centered like the reference) */
.hero {
  max-width: 980px;
  margin: clamp(2rem, 6vw, 5rem) auto;
  padding: 0 1rem 2rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 3.6vw, 3rem);
  margin: 0 0 1rem;
  color: var(--base-text);
  font-weight: 600;
}
.hero p.lead {
  font-size: clamp(1.25rem, 2.4vw, 2.2rem);
  margin: 0 auto 1.5rem;
  max-width: 46ch;
}
.hero p.sub {
  font-size: 1.25rem;
  max-width: 70ch;
  margin: 0.25rem auto 0;
  opacity: 0.85;
}
/* Full-width section with centered image */
.image-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.5rem; /* some spacing above and below */
  background-color: #fff; /* keep background white */
}

.center-image {
  max-width: 50%; /* scales nicely on desktop */
  max-height: 700px;
}

.center-image2 {
  max-width: 60%;
  max-height: 960px;
  margin-top: 4rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .center-image {
    max-width: 95%; /* smaller padding on mobile */
  }
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    background: none;
    border: none;
    margin-right: 1rem;
    height: 20px;
  }
  /* Hide the stacked nav by default on mobile; show as dropdown */
  .nav-links {
    display: none;
    position: absolute;
    right: 1rem;
    left: auto;
    top: 100%;
    background: var(--base-bg);
    border: 1px solid var(--muted);
    padding: 0.75rem 1rem;
    max-width: 85vw;
    width: 260px;
    justify-content: flex-start; /* align left inside dropdown */
    gap: 0.35rem 0.5rem;
    z-index: 1000;
  }

  .nav-links a {
    word-wrap: break-word;
  }
  .nav-links.show {
    display: flex;
    flex-direction: column;
  }

  .nav-links a {
    word-wrap: break-word; /* Your current rule */
    white-space: normal; /* Add this to allow wrapping */
    display: block; /* Make the link a block-level element */
  }

  /* Add breathing room so hero doesn't hide under the dropdown */
  .nav-wrap {
    min-height: 0;
  }
}
a.clickhere {
  text-decoration: underline;
 
}

/* Content sections below hero */
section {
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.text-section {
  /* This applies the background color to the entire width of the page */
  background-color: var(--accent-color);
  min-width: 100%;
}

.text-section-2 {
  /* This applies the background color to the entire width of the page */
  background-color: var(--base-text);
  min-width: 100%;
}
.section-alt {
  /* You can adjust this value to control how wide the text block is */
  color: var(--accent-text);
  /* This centers the block-level element horizontally on the page */
  margin: 0 auto;
  background: var(--accent-color);

  /* This sets a maximum width for the text block */
  max-width: 900px; /* Adjust this value as needed */

  /* This ensures the text itself is left-aligned within its container */
  text-align: left;
}
.section-alt-2 {
  background: var(--accent-color);
  color: var(--accent-text);
  text-align: center;
  justify-content: center;
  min-width: 100%;
}

.section-alt-3 {
  /* You can adjust this value to control how wide the text block is */
  color: var(--accent-text);
  /* This centers the block-level element horizontally on the page */
  margin: 0 auto;
  background: var(--base-text);

  /* This sets a maximum width for the text block */
  max-width: 900px; /* Adjust this value as needed */

  /* This ensures the text itself is left-aligned within its container */
  text-align: left;
}

.section-alt a {
  color: var(--accent-text);
}

#titles {
  text-align: center;
  justify-content: center;
}

/* Services Section */
.services-section {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #fff;
  color: var(--base-text);
}

.services-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.services-section h3 {
  font-size: 1.5rem;
  font-weight: bold;

  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: 3rem;
  border-radius: 4px;
}

/* 3-column layout */
.services-columns {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.service {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  margin: 0 auto;
}

.service h4 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--base-text);
}

.service p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--base-text);
}

/* Border image */
.services-border img {
  width: 100%;
  justify-content: center;
  height: auto;
  margin-top: 2rem;
  display: block;
}

/* ----------------------------- */
/* Fade + slide-in animations    */
/* ----------------------------- */
.fade-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.9s ease-out forwards;
}

.fade-text.delay {
  animation-delay: 0.3s;
}
.fade-text.delay-2 {
  animation-delay: 0.6s;
}
.fade-text.delay-3 {
  animation-delay: 0.9s;
}
.fade-text.delay-4 {
  animation-delay: 1.2s;
}
.fade-text.delay-5 {
  animation-delay: 1.5s;
}
.fade-text.delay-6 {
  animation-delay: 1.8s;
}
.fade-text.delay-7 {
  animation-delay: 2.1s;
}
.fade-text.delay-8 {
  animation-delay: 2.4s;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
