/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #fdfdfd;
  color: #000;
  width: 100%;
  overflow-x: hidden;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  height: 60px;
}

.logo {
  width: 220px;
  margin-left: 160px;
  margin-top: 30px;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 10px 24px;
  background-color: #0077b6; /* Darker blue for better contrast */
  color: #ffffff; /* White text stays readable */
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  margin-right: 160px;
  margin-top: 50px;
}

/* Hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px 20px;
  background: #ffffff;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text {
  max-width: 40%;
  margin-top: 10px;
  text-align: left;
}

.hero-text .cta-button {
  margin-top: 25px;
}

.highlighted-text {
  white-space: nowrap;
  display: inline-block;
  margin-bottom: 20px;
}

/* ✅ Fix Deprecated <h1> Font-Size Warning */
article h1,
aside h1,
nav h1,
section h1 {
  font-size: 32px; /* Ensures consistent sizing */
  font-weight: bold;
}

/* Hero Layout */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wellbeing-tools {
  order: -2;
  width: 160px;
  position: relative;
  left: -150px;
  top: 60px;
}

.care_feed {
  order: -1;
  width: 160px;
  position: relative;
  left: -60px;
  top: 60px;
}

/* Hero Image Container */
.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero Woman Image */
.hero-image {
  width: 220px;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}

/* Calendar Widget */
.calendar-widget {
  position: absolute;
  bottom: -5px;
  left: 310px;
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100px;
  z-index: 3;
}

.calendar-widget img {
  width: 100px;
  height: 100px; /* Explicit size prevents shifting */
  object-fit: contain;
}

/* Features */
.features {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
}

.feature-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.features {
  min-height: 300px; /* Prevents content from shifting */
}

.feature {
  max-width: 220px;
}

.icon {
  height: 80px;
  margin-bottom: 16px;
}

/* Testimonials */
.testimonials {
  padding: 60px 20px;
  background: #f5f5f5;
  text-align: center;
}

.testimonial-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.testimonial {
  max-width: 280px;
}

.avatar {
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
}

/* Footer */
.footer {
  background: #C3CBB6;
  color: #2f2f2f;
  text-align: center;
  padding: 60px 20px;
}

.footer form {
  margin-top: 20px;
}

.footer input[type="email"] {
  padding: 12px;
  width: 250px;
  border: none;
  border-radius: 6px;
  margin-right: 10px;
}

.footer button {
  padding: 12px 20px;
  background-color: #01949A; /* Accent Teal for better contrast */
  color: #ffffff; /* White text stays readable */
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Forms */
form {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.form-input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  width: 260px;
  height: 48px;
  box-sizing: border-box;
}

form .cta-button {
  height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 6px;
  background-color: #0077b6; /* Darker blue for better contrast */
  color: #ffffff; /* White text stays readable */
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  margin: 0;
}

/* ------------------------------------------
   ✅ MOBILE FIXES
------------------------------------------ */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 1rem;
  }

  .logo {
    margin: 0 auto 1rem;
    width: 180px;
  }

  .cta-button {
    margin: 0 auto 1rem auto;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    max-width: 100%;
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
  }

  .hero-image-container {
    flex-direction: column;
    margin-top: 2rem;
    gap: 1rem;
  }

  .care_feed,
  .wellbeing-tools {
    position: static !important;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }

  /* ✅ Hide Hero Woman & Calendar Widget on mobile */
  .hero-image,
  .calendar-widget {
    display: none !important;
  }

  .features {
    padding: 2rem 1rem;
  }

  .feature-grid,
  .testimonial-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .footer {
    padding: 2rem 1rem;
  }

  .footer form {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer input[type="email"],
  .footer button {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  form {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 1rem;
  }

  .form-input,
  .cta-button {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    height: 48px;
    box-sizing: border-box;
  }
}
