@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400..900&family=Poppins:wght@700&display=swap');

/* === GLOBAL STYLES === */
* {
  box-sizing: border-box;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color:#EFE1E1;
}

/* === DROPDOWN NAV === */
.dropdown-nav {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  font-family: "Lato", sans-serif;
}

.nav-toggle {
  background-color: #9E9ECC;
  border: none;
  color: white;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background-color: #DDEDE0;
  border-radius: 0.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  max-height: 0;           /* collapsed by default */
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px); /* slight slide effect */
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-nav.open .nav-list {
  max-height: 500px;  /* large enough for menu */
  opacity: 1;
  transform: translateY(0);
}

.nav-list li {
  margin: 0;
}

.nav-list li a {
  display: block;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-list li a:hover {
  background-color: #9E9ECC;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* === SWEEP SECTIONS (Landing & Why Choose Us) === */
.sweep-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Left Column */
.left {
  background-color: #EFE1E1;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.left-content {
  position: relative;
  z-index: 2; /* On top of SVG */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

.logo {
  margin-top: 5%;
  width: 60%;
  max-width: 320px;
  height: auto;
}

.landing-text {
  font-size: 30pt;
  font-family: "Playfair Display", serif; /* <-- CHANGE THIS */
  margin-top: 10%;
  margin-bottom: 5%;
  color: #2b2b2b;
}

.landing-blurb {
  font-weight: normal;
  font-size: 30pt;
  font-family: "Playfair Display", serif; /* <-- CHANGE THIS */
  margin-top: 10%;
  margin-bottom: 5%;
  color: #2b2b2b;
}

.contact-button {
  height: 50px;
  width: 70%;
  font-family: "Lato", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem); /* responsive text size */
  margin-bottom: 2%;
  background-color: #BFD9E3;
  border-radius: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.contact-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.sub-text {
  font-size: 20pt;
  color: #2b2b2b;
  margin-top: 1rem;
}

.sub-text .phone-link {
  color: #3a6b4f;               /* soft green to match button */
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.sub-text .phone-link:hover,
.sub-text .phone-link:focus {
  color: #2f5a42;
  text-decoration-color: #2f5a42;
}


/* Right Column (Landing Image) */
.right {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* WHY SWEET PEA – desktop defaults */
.why-us-article {
  text-align: left;
}

h1.why-us-heading {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 3vw, 2.8rem);  /* bigger, scales with screen */
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.why-us-content {
  font-family: "Lato", sans-serif;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem); /* comfortable reading size */
  line-height: 1.6;
  margin-bottom: 1rem;
}


.right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/SweetPeaApp/images/landing_page.jpeg');
  background-size: cover; /* <-- Fill the section */
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
}

/* Right Column (Why Choose Us Image) */
.image-view {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.image-view::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/SweetPeaApp/images/why_sweetPea.jpeg');
  background-size: cover; /* <-- Fill the section */
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
}

/* SVG Curve (Shared by Sweep Sections) */
.curve {
  position: absolute;
  top: 0;
  left: 23%;
  width: 50vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  transform: scaleX(-1);
}

/* === SERVICES SECTION === */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 0;
}

.services-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

article.service-card {
    position: relative;
    border: 2px solid #5d5d5d;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    background-size: cover;
    display: flex;
    padding: 25px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    justify-content: flex-end; 
    text-align: center;
    align-items: center;
}

/* Service Card Backgrounds */
#card-home-help {
    background-image: url('/static/SweetPeaApp/images/home_help.jpeg');
    background-position: center bottom;
}
#card-companionship {
    background-image: url('/static/SweetPeaApp/images/companionship.jpeg');
    background-position: 70% 50%;
}
#card-respite {
    background-image: url('/static/SweetPeaApp/images/respite.jpeg');
    background-position: center;
}
#card-out-about {
    background-image: url('/static/SweetPeaApp/images/out&about.jpeg');
    background-position: center top;
}

/* Service Card Gradients */
#card-home-help::before {
    background: linear-gradient(to top, #9CB6A6 20%, rgba(248, 216, 197, 0) 70%);
}
#card-companionship::before {
    background: linear-gradient(to top, #D5A6BD 20%, rgba(213, 166, 189, 0) 70%);
}
#card-respite::before {
    background: linear-gradient(to top, #A3B49B 20%, rgba(163, 180, 155, 0) 70%);
}
#card-out-about::before {
    background: linear-gradient(to top, #CDBEDC 20%, rgba(203, 190, 220, 0) 70%);
}

/* Service Card Text */
h3.card-title {
    display: inline-block;
    background-color: #dcd6f0;
    border: 2px solid #4a4a8a;
    color: #4a4a8a;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
}

.card-description {
    font-size: 1.4rem;
    font-weight: 700; 
    color: #333;
    margin: 0 0 15px 0;
}

.see-more-btn {
    display: inline-block;
    text-decoration: none;
    background-color: #b2d8b2;
    border: 2px solid #6a9a6a;
    color: #3a5a3a;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.see-more-btn:hover {
    background-color: #a7d0a7;
    transform: scale(1.05);
}

/* === CARD SECTION (About Sweet Pea) === */
.cardSection {
  background-color: #EFE1E1;
  padding: 4rem 0;
  text-align: center;
  font-size: 30pt;
  margin: 0;
  margin-bottom: 0;
}

.card-container, /* This class isn't in base.html, but I'll leave it */
.services-section,
.contact-form {
  margin-bottom: 2.5rem;
}

.three-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
}

.card-one, .card-two, .card-three {
  border: black solid;
  border-radius: 30px;
  text-align: center;
  margin: 5%;
  filter: drop-shadow(8px 8px 10px gray);
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-one:hover,
.card-two:hover,
.card-three:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.card-one {
  background-color: #CC9E9E;
}

.card-two {
  background-color: #9CB6A6;
}

.card-three {
  background-color: #9E9ECC;
}

.card-header {
  font-family: "Playfair Display", serif; 
  font-size: 30pt;
  margin-bottom: 3%;
  padding-top: 3%;
}

.card-text {
  font-family: "lato", sans-serif;
  font-size: 24pt;
  text-align: center;
  margin: 3%;
}

.sweet-pea-image {
  width: 30%;
  height: auto;
  align-self: end;
}

.button-text {
  margin-top: 1%;
  margin-bottom: 3%;
  font-family: "lato", sans-serif;
  font-size: 24pt;
}

.form-button {
  height: 50px;
  width: 173px;
  font-family: "lato", sans-serif;
  font-size: 20pt;
  margin-bottom: 1%;
  margin-bottom: 2%;
  background-color:#9CAF88;
  border-radius: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* === QUOTE FULL BLEED SECTION === */
.quote-full-bleed {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-image: url('/static/SweetPeaApp/images/yellow.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* Use flexbox to position the text container */
  display: flex;
  align-items: center; /* Vertically center */
  justify-content: flex-start; /* Push to the left */
}

.quote-text-container {
  /* This creates the space on the left */
  padding-left: 8%; 

  /* This controls the line length nicely */
  max-width: 45%; /* <-- CHANGED FROM 40% */
  box-sizing: border-box; /* Ensures padding is included in the width */
}
.quote-text {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem); /* <-- CHANGED (Made smaller) */
  line-height: 1.4;
  font-weight: 500;
  color: black; /* Soft white text */
  /* Add shadow for readability against the image */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); 
}

/* --- Responsive Adjustments for Mobile --- */
@media (max-width: 768px) {
/* 4. Quote section mobile layout */
  .quote-full-bleed {
    height: 70vh; /* Shorter on mobile */
    display: flex;
    align-items: flex-end; /* Move text container to the BOTTOM */
    justify-content: center; /* Center it horizontally */
    position: relative; /* Needed for the opacity overlay */
  }

  .quote-full-bleed::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* ✅ stronger dark overlay */
    z-index: 1;
  }

  .quote-text-container {
    padding: 0; /* Reset desktop padding */
    max-width: 90%; /* Allow it to be wide */
    text-align: center;
    position: relative; /* Keep it relative */
    z-index: 2; /* Ensure text is on top of the overlay */
    
    /* This positions it over the floral shirt area */
    margin-bottom: 10%; 
  }
  
 .quote-text {
    font-size: 1.5rem;
    line-height: 1.3;
    color: #ffffff; /* ✅ white text on darker image */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  }
}

/* === ABOUT US SECTION === */
.about-us {
  background-color: #EFE1E1;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100vw;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.about-us-content {
  position: relative;
  z-index: 2; /* On top of SVG */
  width: 100%;
  max-width: 60%;
  margin: 0 auto;
  word-break: break-all;
}

.about-us-image {
  border-radius: 30px;
  margin-bottom: 3%;
  width: 100%;
}

.about-us-text {
 font-family: "Lato", sans-serif;
  font-size: 16pt;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
  text-align: left;
}

.about-us-right {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.about-us-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/SweetPeaApp/images/about_us_sweet_pea.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
}

.about-us-curve,
.testimonial-curve {
  position: absolute;
  top: 0;
  width: 50vw;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* LEFT side (About Us) */
.about-us-curve {
  left: 23%;
  transform: scaleX(-1);
}

/* RIGHT side (Testimonials) */
.testimonial-curve {
  left: 23%;           /* 👈 bring it in to align with About Us */
  transform: scaleX(1);
}


.about-us,
#Testimonials.sweep-section {
  background-color: #EFE1E1;
}



#Testimonials .left {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically centers the content block */
  align-items: center;     /* Horizontally centers the content */
  padding: 4rem 2rem;      /* Adds breathing room */
  height: 100%;            /* Ensures it fills the column */
  position: relative;      /* <-- ADD THIS */
  z-index: 2;              /* <-- ADD THIS */
}



/* This styles the "Testimonials" heading */
#Testimonials .testimonial-heading {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: #000000;
  margin-bottom: 3rem; /* Space between title and first quote */
  text-align: center;
}

/* This overrides the bad styles from .left-content */
#Testimonials .testimonial-article {
  position: static; /* Fixes the overlapping issue */
  transform: none;
  top: auto;
  width: 90%;
  max-width: 700px; /* Keeps lines readable */
  margin: 0 0 2rem 0; /* Creates nice spacing between quotes */
}

/* This styles the quote itself */
#Testimonials .testimonial-item {
  border-left: 4px solid #9E9ECC; /* Adds the accent border */
  padding-left: 1.5rem;
  text-align: left;
}

#Testimonials .testimonial-item h2 {
  font-family: "Lato", sans-serif;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 700;
  color: #000000;
}

#Testimonials .testimonial-item p {
  font-family: "Lato", sans-serif;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: #000000;
  margin: 0.5rem 0;
}

#Testimonials .testimonial-item small {
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  font-style: normal;
  color: #000000;
  font-weight: 700;
  display: block; /* Ensures it appears on its own line */
}

/* Right column (image background) */
.testimonial-image-view {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.testimonial-image-view::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/SweetPeaApp/images/testimonials.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
}


/* === CONTACT FORM SECTION === */
.contact-form {
  margin: 0;
  background-color: #EFE1E1;
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-info {
  font-family: "Lato", sans-serif;
  font-weight: normal;
  font-size: 20pt;
  color: #333;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
  padding-bottom: 7%;
}

.form-card-outer {
  background-color: #9CB6A6;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 650px;
  box-sizing: border-box;
}

.form-class-inner {
  background-color: #9E9ECC;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  padding: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background-color: #fafafa;
  font-family: "Lato", sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: #7e7ea0;
  outline: none;
  background-color: #fff;
}

.form-input:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button[type="submit"] {
  background-color: #cb9bbf;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-weight: bold;
  font-family: "Poppins", sans-serif;
}

button[type="submit"]:hover {
  background-color: #a67199;
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* === FOOTER === */
.footer-links {
  background-image: url('/static/SweetPeaApp/images/sweet_pea_4.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3rem;
  padding: 2rem 1rem;
  flex-wrap: wrap;
}

.link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-family: "Lato", sans-serif;
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  position: relative;
  padding-bottom: 1rem;
  cursor: pointer;
}

.link-item span {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.link-item span::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: #9E9ECC;
  margin: 0.3rem auto 0;
  transition: opacity 0.3s;
}

.link-item i {
  font-size: 3rem;
  transition: all 0.3s ease-in-out;
  z-index: 2;
}

.link-item:hover span {
  opacity: 0;
  transform: translateY(-8px);
}

.link-item:hover i {
  transform: scale(1.4);
  color: #9E9ECC;
}

.link-item:hover span::after {
  opacity: 0;
}

/* === SERVICE PAGE STYLES (Not in base.html) === */
nav .back-link {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #4a4a8a;
    text-decoration: none;
    margin: 20px 0 0 20px;
    padding: 10px 15px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

nav .back-link:hover {
    background-color: #f0ebf8;
}

main.content-page {
    background-color: #ffffff;
    margin: 20px auto 60px auto;
    padding: 30px 40px;
    border-radius: 10px;
    border: 1px solid #ddd;
    width: 80%;
    max-width: 900px;
    box-sizing: border-box;
    text-align: left;
}

.content-page h1 {
    font-size: 2.5rem;
    color: #4a4a8a;
    margin-top: 0;
    margin-bottom: 5px;
}

.content-tagline {
    font-size: 1.3rem;
    font-weight: 400;
    font-style: italic;
    color: #555;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.content-page p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    color: #333;
    margin-bottom: 15px;
}

.content-subheader {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a4a8a;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-list {
    list-style-type: none;
    padding-left: 25px;
    margin: 0;
}

.content-list li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    position: relative;
    margin-bottom: 10px;
}

.content-list li::before {
    content: '•';
    position: absolute;
    left: -25px;
    font-weight: bold;
    color: #8c60b9;
    font-size: 1.2rem;
}

/* === MOBILE RESPONSIVE === */
@media screen and (max-width: 954px), screen and (max-height: 1025px)  {

  /* 1. Landing page: hide image and SVG */
  .right,
  .curve {
    display: none !important;
  }

  .sweep-section {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 70vh;
  }

  .left-content {
    margin-top: 3rem;
    transform: none;
    top: auto;
    height: auto;         /* ✅ let it grow with content */
    max-width: 90%;       /* ✅ a bit of breathing room at the sides */
  }


  /* Let sections grow naturally */
  .cardSection,
  .services-section,
  .about-us,
  .contact-form {
    height: auto !important;
    min-height: unset !important;
  }

  /* Ensure each section has spacing from others */
  .cardSection,
  .services-section,
  .about-us,
  .contact-form {
    margin-bottom: 0;
    padding-bottom: 2rem;
    padding-top: 2rem;
  }

  /* 2. Cards stacked (cardSection) */
  .three-card {
    grid-template-columns: 1fr;
  }

  .card-one,
  .card-two,
  .card-three {
    margin: 2rem auto;
    width: 90%;
  }

  .card-text {
    font-size: 16pt;
  }

  .button-text {
    font-size: 18pt;
  }

  /* 3. Services section stacked */
  .services-grid {
      grid-template-columns: 1fr;
  }
  
  /* These are for the separate service pages */
  .content-page {
      width: 95%;
      padding: 25px 20px;
  }
  .content-page h1 {
      font-size: 2rem;
  }

  /* 5. About Us layout change */
  .about-us {
    grid-template-columns: 1fr;
    height: auto;
  }

  .about-us-right,
  .about-us-curve {
    display: none !important;
  }

  .about-us-content {
    max-width: 90%;
    padding: 2rem 0;
    height: auto;
    top: auto;
    transform: none;
  }

  .about-us-text {
    font-size: 70; /* This seems like a typo, maybe 16pt? */
  }

  .about-us-image {
    border-radius: 30px;
    margin-bottom: 3%;
    width: 80%;
  }

  /* 6. Contact form fit and resize */
  .contact-form {
    height: auto;
    padding: 2rem 1rem;
  }

  .form-card-outer,
  .form-class-inner {
    width: 95%;
    padding: 1rem;
  }

  .form-class-inner {
    align-items: center;
    margin-left: 2.5%;
  }

  .form-info {
    font-size: 16pt;
  }

  button[type="submit"] {
    font-size: 1rem;
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 1.5rem 0.5rem;
    gap: 1.2rem;
  }

  .link-item {
    font-size: 0;
  }

  .link-item span {
    display: none;
  }

  .link-item i {
    font-size: 3.5rem;
  }
}

/* === WHY SWEET PEA – tablet & mobile layout (<= 954px) === */
@media (max-width: 954px) {

  /* Make it a single-column layout */
  #WhySweetPea {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  #WhySweetPea .left {
    width: 100%;
    padding: 3rem 1.5rem 2.5rem;
    height: auto;
  }

  #WhySweetPea .left-content {
    top: auto;
    transform: none;
    max-width: 100%;
    text-align: left;
  }

  /* Hide the image + curve for this section on tablet & mobile */
  #WhySweetPea .image-view,
  #WhySweetPea .right,
  #WhySweetPea .curve {
    display: none;
  }

  /* Text sizing for this range */
  #WhySweetPea h1.why-us-heading {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  #WhySweetPea .why-us-content {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}


/* === WHY SWEET PEA – mobile layout === */
@media (max-width: 768px) {

  /* Make the section a single column and let it grow with content */
  #WhySweetPea {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  /* Text column padding & alignment */
  #WhySweetPea .left {
    padding: 3rem 1.5rem 2.5rem;
  }

  #WhySweetPea .left-content {
    top: auto;
    transform: none;
    max-width: 100%;
    text-align: left;
  }

  /* Hide the “why us” image and curve on small screens */
  #WhySweetPea .image-view {
    display: none;
  }

  #WhySweetPea .curve {
    display: none;
  }

  /* Slightly smaller but still readable text on mobile */
  #WhySweetPea h1.why-us-heading {
    font-size: 1.8rem;
  }

  #WhySweetPea .why-us-content {
    font-size: 1rem;
  }
}

/* =========================================
   TESTIMONIALS – tablet & mobile layout
   ========================================= */
/* === MOBILE RESPONSIVE === */
@media screen and (max-width: 954px) {

  /* 1. Hide large background images & curves on mobile only */
  .right,
  .image-view,
  .about-us-right,
  .about-us-curve,
  .testimonial-image-view,
  .testimonial-curve,
  .curve {
    display: none !important;
  }

  /* 2. Stack the sweep sections (Landing & Why Choose Sweet Pea) */
  .sweep-section {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 70vh;
  }

  .left-content {
    margin-top: 3rem;
    transform: none;
    top: auto;
    height: auto; /* don’t force 100vh on phones */
  }

  /* 3. Card section / services / about / contact – let them grow naturally */
  .cardSection,
  .services-section,
  .about-us,
  .contact-form {
    height: auto !important;
    min-height: unset !important;
    margin-bottom: 0;
    padding-bottom: 2rem;
    padding-top: 2rem;
  }

  /* 4. Cards stacked */
  .three-card {
    grid-template-columns: 1fr;
  }

  .card-one,
  .card-two,
  .card-three {
    margin: 2rem auto;
    width: 90%;
  }

  .card-text {
    font-size: 16pt;
  }

  .button-text {
    font-size: 18pt;
  }

  /* 5. Services grid stacked */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Separate service pages */
  .content-page {
    width: 95%;
    padding: 25px 20px;
  }

  .content-page h1 {
    font-size: 2rem;
  }

  /* 6. About us – single column, no image */
  .about-us {
    grid-template-columns: 1fr;
    height: auto;
  }

  .about-us-content {
    max-width: 90%;
    padding: 2rem 0;
    height: auto;
    top: auto;
    transform: none;
  }

  .about-us-image {
    border-radius: 30px;
    margin-bottom: 3%;
    width: 80%;
  }

  /* 7. Contact form tweaks */
  .contact-form {
    height: auto;
    padding: 2rem 1rem;
  }

  .form-card-outer,
  .form-class-inner {
    width: 95%;
    padding: 1rem;
  }

  .form-class-inner {
    align-items: center;
    margin-left: 2.5%;
  }

  .form-info {
    font-size: 16pt;
  }

  button[type="submit"] {
    font-size: 1rem;
    width: 100%;
  }

  /* 8. Footer icons only on mobile */
  .footer-links {
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 1.5rem 0.5rem;
    gap: 1.2rem;
  }

  .link-item {
    font-size: 0;
  }

  .link-item span {
    display: none;
  }

  .link-item i {
    font-size: 3.5rem;
  }
}

/* =========================================
   FIX FOR SHORT SCREENS (iPad style)
   Hide big side images for Why Sweet Pea + Testimonials
   ========================================= */
@media screen and (max-height: 1025px) {

  /* Hide the right-side art in those sweep sections */
  #WhySweetPea .image-view,
  #WhySweetPea .curve,
  #Testimonials .testimonial-image-view,
  #Testimonials .testimonial-curve {
    display: none !important;
  }

  /* Make those sections single-column so the text fills the width */
  #WhySweetPea,
  #Testimonials {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  #WhySweetPea .left,
  #Testimonials .left {
    padding: 3rem 1.5rem 2.5rem;
  }

  #WhySweetPea .left-content,
  #Testimonials .left-content {
    top: auto;
    transform: none;
    max-width: 100%;
    text-align: left;
  }
}




  /* Prevent accidental side-scroll */
  body {
    overflow-x: hidden;
  }
  
  /* =========================================
   LANDING – mobile: image as background,
   white text, hide SVG only
   ========================================= */
@media (max-width: 768px), (max-height: 1025px) {

  #Landing .logo {
    content: url('/static/SweetPeaApp/images/Logo-white.png');
  }

  /* Override earlier "hide everything" rules */
  #Landing .right {
    display: none !important;
  }

  #Landing .curve {
    display: none !important;
  }

  /* Turn landing into a background-image section */
  #Landing {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 70vh;
    position: relative;
  }

  #Landing::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/static/SweetPeaApp/images/landing_page.jpeg');
    background-size: cover;
    background-position: 70%;
    z-index: 0;
  }

  /* Dark overlay like quote section */
  #Landing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
  }

  /* Make left column transparent */
  #Landing .left {
    background: transparent;
    width: 100%;
    z-index: 2;
  }

  #Landing .left-content {
    position: relative;
    z-index: 2;
    transform: none;
    top: auto;
    max-width: 92%;
    margin-bottom: 12%;
    text-align: center;
  }

  /* White text on image */
  #Landing .landing-blurb,
  #Landing .landing-text,
  #Landing .sub-text {
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  }

  #Landing .sub-text .phone-link {
    color: #ffffff;
    text-decoration-color: #ffffff;
    font-weight: 700;
  }
}
