/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Solitreo&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');


/* CSS Variables */

:root {
  --primary-font: "Source Sans 3", sans-serif;
  --secondary-font: "Solitreo", cursive;
  --primary-color: #3a335c;
  /*dark purple for text*/
  --secondary-color: #5e39a7;
  --secondary-color-rgb: 94, 57, 167;
   /*dusty grape*/
  --highlight-color: #faf4f0;
  /*soft blush*/
  --light-highlight-color: #bfcfc6;
  /*sage*/
  --off-white-backgrounds: #edf4ed;
  /*lighter tint than the sage*/
  --light-purple-backgrounds: #e2cff0;
  /*lavender*/
}

/* -----------------------------------------------Global Styles */

html,
body {
  height: 100%;
}

body {
  font-family: var(--primary-font);
}

p, li {
  font-size: 1.05rem;
  line-height: 1.75;
}

/*overrides the default black text by bootstrap*/
p,
li,
label,
input,
textarea {
  color: var(--primary-color);
}

/*stabilizes width, prevents layout from expanding*/
main {
  width: 100%;
  max-width: 100%;
}

/*Global box sizing reset, prevents padding-caused overflow*/

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

h1,
h2,
h3,
h4 {
  font-family: var(--secondary-font);
  color: var(--secondary-color);
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3rem); /* min, preferred, max */
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.2rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

h4 {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.btn {
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
}

/* ----------------------------------------------------Navbar */

.navbar-name {
  display: flex;
  align-items: center;
  line-height: 1;
  padding-top: 0.1rem;
  font-size: 1.75rem;
  color: var(--secondary-color);
  letter-spacing: 0.02em;
}

#navbar {
  background-color: var(--off-white-backgrounds);
  -webkit-box-shadow: 0 1px 6px var(--primary-color);
  box-shadow: 0 1px 6px var(--primary-color);
}

.nav-link {
  font-family: var(--primary-font);
  color: var(--secondary-color);
}

.nav-link:hover {
  color: var(--secondary-color);
  font-weight: 400;
  /* or inherit */
  text-decoration: underline;
  text-underline-offset: 6px;
}

.navbar .nav-link.active {
  color: var(--secondary-color);
  font-weight: 400;
  /* or inherit */
  text-decoration: underline;
  text-underline-offset: 6px;
}

.navbar-toggler-icon-custom {
  font-size: 1.5rem;
  /* icon size */
  color: var(--secondary-color);
  /* your purple */
  transition: transform 0.3s ease;
  /* optional for smooth rotation if desired */
}

.navbar-toggler {
  border: none;
  /* removes the border */
  background: none;
  /* removes background color */
  box-shadow: none;
}

.navbar-toggler:focus {
  outline: none;
  /* removes the default focus border */
  box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.3);
  /* soft purple glow */
  ;
  /* removes any Bootstrap shadow */
}

/* ----------------------------------------------------Main Content */

/* -----------------------------------------------Hero Section */

#hero-content {
  max-width: 580px;
  /* anywhere 560–620 is fine */
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

#hero {
  position: relative;
  background: url(../images/hero1.webp);
  background-color: var(--light-highlight-color);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left bottom;
  width: 100%;
  min-height: 70vh;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

#hero h1 {
  margin-top: 5rem;
}

#hero h2 {
  margin-bottom: 3rem;
}

.hero-text {
  font-family: var(--secondary-font);
  color: var(--secondary-color);
}

.custom-button {
  background-color: var(--secondary-color);
  border: none;
}

.custom-button:hover {
  background-color: var(--light-highlight-color);
  color: var(--highlight-color);
}

/* ---------------------------------------------------------------Service cards on home page */

#services-home {
  background: var(--off-white-backgrounds);
  /*lighter tint than the sage*/
}

#services-home h3 {
  color: var(--secondary-color);
}

.card {
  border: none;
  /*removes the extra left and right padding created by the card class. The div inside already has enough padding for the content*/
  padding: 0;
  border-radius: 0;
  /*offset-x offset-y blur-radius color*/
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-body {
  padding: 1.5rem;
}

.card-link {
  color: var(--secondary-color);
  border: 1.5px solid var(--secondary-color);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.card-link:hover,
.card-link:focus {
  color: white;
  background-color: var(--secondary-color);
  border: 1.5px solid var(--secondary-color);
}


/* ------------------------------------------------------About Me preview on Home Page */

#about-me-home {
  background-color: var(--highlight-color);
  padding: 2rem 0;
}

#doula-home-pic {
  border: 2px solid var(--light-highlight-color);
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-height: 350px;
  height: auto;
}

#about-preview-text {
  padding-left: 2rem;
}

#about-preview-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

#about-preview-text a {
  color: var(--secondary-color);
}

#about-preview-text a:hover {
  color: var(--highlight-color);
  background-color: var(--secondary-color);
  border: 1.5px solid var(--secondary-color);
}


/*--------------------------------------------------------Testimonials*/

#home-page-testimonial {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.testimonial-quote {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
  margin-bottom: -0.5rem;
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary-color);
  font-family: var(--secondary-font); 
  
}

/*---------------------------------------------------Featured section on home page*/

#featured {
  background-color: var(--off-white-backgrounds);
  padding: 2rem 0;
}

/* -----------------------------------------------------------Services Page */

#services-intro p,
.service-section p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.services-line {
  display: none; /* hide by default on mobile */
}

.service-section {
  /*makes sure the content of each service section isn't hidden behind the fixed navbar when linking from the home page cards*/
  scroll-margin-top: 64px;
  align-items: center;
  /* spacing between text and image */
}

#birth-service,
#fertility-service {
  background-color: var(--off-white-backgrounds);
  padding: 1rem 0;
}

.service-text {
  flex: 1;
}

.services-picture {
  max-width: 100%;
  padding: 0;
  position: relative;
  height: auto;
  display: block;
  border: 2px solid var(--light-highlight-color);
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-picture img {
  filter: grayscale(100%);
  /* keep it grayscale */
}

.service-title-overlay {
  position: absolute;
  bottom: 10%;
  /* 10% from the bottom of the image */
  left: 50%;
  /* horizontally center */
  transform: translateX(-50%);
  font-size: clamp(3rem, 10vw, 5rem);
  /*lets the font scale between a minimum and maximum depending on the viewport width*/
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 10;
  text-shadow: 
    1px 1px 2px rgba(0,0,0,0.4),
    -1px -1px 2px rgba(0,0,0,0.4),
    1px -1px 2px rgba(0,0,0,0.4),
    -1px 1px 2px rgba(0,0,0,0.4);
}

.service-section li::marker {
  /*Replaces the bullet point in the lists with a unicode flower, ::marker is a pseudo element*/
  content: "\2740";
  color: var(--light-highlight-color);
}

#services-intro {
  background-color: var(--highlight-color);
}

#packages {
  background-color: var(--off-white-backgrounds);
}


/* ---------------------------------------------------About Me Page*/

#doula-bio-pic {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--light-highlight-color);
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#my-story {
  background: var(--highlight-color);
  margin-top: 2rem;
}

#credentials li::marker {
  /*Replaces the bullet point in the lists with a unicode flower, ::marker is a pseudo element*/
  content: "\2740";
  color: var(--light-highlight-color);
}

/*-----------------------------------------------------Contact Page*/

#contact {
  background-color: var(--off-white-backgrounds);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.4rem rgba(var(--secondary-color-rgb), 0.25);
 }

/* -----------------------------------------------------------------Footer */

body>footer {
  position: sticky;
  top: 100%;
}

.footer {
  padding: 1rem 0;
  background-color: var(--light-highlight-color);
  -webkit-box-shadow: 0 -1px 6px var(--primary-color);
  box-shadow: 0 -1px 6px var(--primary-color);
}

.footer a {
  color: var(--secondary-color);
  font-size: 1.5rem;
  text-decoration: none;
}

.footer a:hover {
  color: var(--highlight-color);
}

/*----------------------------------------------Modal and Accordion*/

#modal-button {
  font-weight: 600;
  letter-spacing: 0.08em;
}

#modal-button:hover {
  background-color: var(--highlight-color);
  color: var(--secondary-color);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* FAQ question text */
.accordion-button {
  color: var(--secondary-color);
  font-weight: 600;
}

/* FAQ answer text */
.accordion-body p {
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--light-highlight-color-rgb), 0.25);
}

.accordion-button:not(.collapsed) {
  background-color: var(--light-highlight-color);
  color: var(--secondary-color);
}


/* ----------------------------------------------------------------------------Media Queries */

/* Medium devices (tablets, 768px and up) */

@media screen and (min-width: 768px) {
  #doula-home-pic {
    min-height: 400px;
  }

  .services-line {
    display: block; /* show on tablet and larger */
  }
}

/* Extra large devices( laptops, 1200px and up*/

@media screen and (min-width: 1200px) {
  .card-body {
    /* ensures all card buttons line up */
    min-height: 200px;
  }
}

/* XXL devices (Desktops, 1400px and up) */

@media screen and (min-width: 1400px) {
  #doula-home-pic {
    max-height: 400px;
  }
}