/* --- GLOBAL STYLES & VARIABLES --- */
:root {
  --color-amber-500: #f59e0b;
  --color-amber-600: #d97706;
  --color-amber-400: #fbbf24;
  --color-amber-300: #fcd34d;
  --color-cyan-400: #22d3ee;
  --color-gray-800: #1f2937;
  --color-gray-700: #374151;
  --color-gray-600: #4b5563;
  --color-gray-200: #e5e7eb;
  --color-gray-100: #f3f4f6;
  --color-orange-50: #fff7ed;
  --color-orange-500-alpha: rgba(249, 115, 22, 0.05);
  --color-white: #ffffff;
  --color-white-alpha-10: rgba(255, 255, 255, 0.1);
  --color-teal-dark: #0d9488;
  --glow-pink: #ff69b4;
  --bg-main: #fefbf6;
  --bg-gradient-start: #fffcf8;
  --bg-white: #ffffff;
}

/* body {
  font-family: "Nunito", sans-serif;
  background-color: var(--bg-main);
  color: var(--color-gray-800);
  overflow-x: hidden;
  margin: 0;
} */

.main-wrapper {
  overflow-x: hidden;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

.text-center {
  text-align: center;
}
.highlight-text {
  color: var(--color-amber-500);
}

/* --- BUTTONS --- */
.btn {
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-amber-500);
  color: var(--color-white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.btn-primary:hover {
  background-color: var(--color-amber-600);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-gray-700);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-gray-200);
}

.btn-cta {
  background-color: var(--color-white);
  color: var(--color-amber-600);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: background-color 0.3s ease;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 6rem;
  overflow: hidden;

  /* Gradient overlay + background image */
  background-image:
    linear-gradient(
      to bottom,
      var(--bg-gradient-start),
      var(--bg-white)
    ),
    url('/assets/img/ahs-connect/hero-bg.png');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}




.hero-container {
  position: relative;
  z-index: 10;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.hero-text-content {
  width: 100%;
  text-align: center;
}
.hero-text-content h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--color-gray-800);
}
.hero-text-content p {
  font-size: 1rem;
  color: var(--color-gray-600);
  max-width: 32rem;
  margin: 0 auto 2rem;
}
.title-break {
  display: none;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.hero-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 2.5rem;
}
.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 280px;
}

.hero-image-clipper {
  position: relative;
  width: 100%;
  height: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  clip-path: url(#heroImageBlob);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-heart-glow {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  width: 4rem;
  height: 4rem;
}

.hero-image-heart-glow svg {
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 10px var(--glow-pink))
    drop-shadow(0 0 20px var(--glow-pink));
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
}

/* --- FEATURES SECTION --- */
.features-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--bg-white);
}

.features-section h2 {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-gray-600);
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1rem;
}
.wavy-line-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}
.wavy-line-container1.wavy-line-connection {
  position: relative;
  height: 50px; /* Adjust as needed */
}

.wavy-line-image1 {
  position: absolute;
  top: 0;
  left: 10%; /* Push image to 70% from the left (towards right) */
  transform: translateX(-50%); /* Center the image around the 70% point */
  width: 60px; /* Adjust size as needed */
  height: auto;
}

.feature-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
}

.feature-card-group {
  width: 100%;
  max-width: 24rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease-in-out;
  background-color: var(--bg-white);
  border: 2px dashed var(--color-amber-400);
  height: 100%;
  box-sizing: border-box;
}

.feature-card-group:hover .feature-card {
  background-color: var(--color-amber-500);
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: transparent;
}


.heart-icon-wrapper-img {

  width: 150px !important;
  height: auto !important;

}

.heart-icon-wrapper svg {
  position: absolute;
  width: 100px;
  height: auto;
  transition: all 0.3s ease;
}

.heart-bg {
  fill: var(--color-orange-50);
}
.feature-card-group:hover .heart-bg {
  fill: var(--color-white);
}

.heart-stroke {
  fill: none;
  stroke: var(--color-amber-400);
  stroke-width: 2.5;
}
.feature-card-group:hover .heart-stroke {
  stroke: var(--color-cyan-400);
}

.icon-container {
  position: relative;
  color: var(--color-amber-400);
  transition: color 0.3s ease;
}
.feature-card-group:hover .icon-container {
  color: var(--color-cyan-400);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  color: var(--color-gray-800);
}
.feature-card-group:hover .feature-card h3 {
  color: var(--color-white);
}

.feature-card p {
  text-align: center;
  line-height: 1.625;
  transition: color 0.3s ease;
  color: var(--color-gray-600);
}
.feature-card-group:hover .feature-card p {
  color: var(--color-white);
  opacity: 0.9;
}

/* --- CONNECTION SECTION --- */
.connection-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--bg-white);
}

.connection-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.connection-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.connection-image-container {
  position: relative;
  width: 100%;
  max-width: 20rem;
}

.connection-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  clip-path: url(#connectionImageBlob);
}

.swoosh-container {
  position: absolute;
  bottom: -1.25rem;
  right: 0.5rem;
  z-index: 10;
}

.connection-text-content {
  width: 100%;
  text-align: center;
}

.connection-text-content h2 {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.wavy-line-connection {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.connection-text-content p {
  color: var(--color-gray-600);
  font-size: 1rem;
  line-height: 1.625;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
.connection-text-content p:not(:last-child) {
  margin-bottom: 1rem;
}

/* --- CTA SECTION --- */
.cta-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.cta-content {
  position: relative;
  background-color: var(--color-amber-500);
  color: var(--color-white);
  padding: 2rem;
  border-radius: 2.5rem;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.cta-bg-circle {
  position: absolute;
  border-radius: 9999px;
  background-color: var(--color-white-alpha-10);
}
.cta-bg-circle.circle1 {
  top: -2rem;
  left: -2rem;
  width: 6rem;
  height: 6rem;
}
.cta-bg-circle.circle2 {
  bottom: -2.5rem;
  right: -1.5rem;
  width: 8rem;
  height: 8rem;
}

.cta-text-content {
  position: relative;
  z-index: 10;
}
.cta-text-content h2 {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-text-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- RESPONSIVE STYLES --- */

/* Small devices (sm, 640px and up) */
@media (min-width: 640px) {
  .btn {
    padding: 0.75rem 2rem;
  }
  .btn-cta {
    font-size: 1.125rem;
  }

  /* Hero */
  .hero-text-content h1 {
    font-size: 3rem;
  }
  .hero-text-content p {
    font-size: 1.125rem;
  }
  .hero-buttons {
    flex-direction: row;
  }
  .hero-image-container {
    max-width: 450px;
    height: 400px;
  }
  .doodle-squiggle {
    top: -2.5rem;
    left: 0;
    width: 6rem;
  }
  .doodle-smiley {
    width: 5rem;
  }
  .doodle-triangle-cyan {
    display: block;
    position: absolute;
    top: 33.33%;
    left: -1rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--color-cyan-400);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    transform: rotate(30deg);
  }
  .doodle-blue-blob {
    width: 4rem;
    height: 4rem;
  }
  .doodle-peach-blob {
    right: 2.5rem;
    width: 3rem;
    height: 3rem;
  }
  .hero-image-heart-glow {
    top: 3rem;
    right: 4rem;
    width: 5rem;
    height: 5rem;
  }
  .hero-bg-heart.heart1 {
    width: 40rem;
    height: 40rem;
  }
  .hero-bg-heart.heart3 {
    width: 30rem;
    height: 30rem;
  }

  /* Features */
  .features-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .features-section h2 {
    font-size: 2.25rem;
  }
  .section-subtitle {
    font-size: 1.125rem;
  }
  .wavy-line-container {
    margin-bottom: 4rem;
  }

  /* Connection */
  .connection-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .connection-image-container {
    max-width: 24rem;
  }
  .swoosh-container {
    right: 1.25rem;
  }
  .connection-text-content h2 {
    font-size: 2.25rem;
  }
  .connection-text-content p {
    font-size: 1.125rem;
  }

  /* CTA */
  .cta-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .cta-content {
    padding: 3rem;
  }
  .cta-bg-circle.circle1 {
    width: 8rem;
    height: 8rem;
  }
  .cta-bg-circle.circle2 {
    width: 10rem;
    height: 10rem;
  }
  .cta-text-content h2 {
    font-size: 2.25rem;
  }
  .cta-text-content p {
    font-size: 1.125rem;
  }
}

/* Medium devices (md, 768px and up) */
@media (min-width: 768px) {
  .hero-section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  .hero-text-content h1 {
    font-size: 3.75rem;
  }
  .title-break {
    display: inline;
  }

  .features-section h2 {
    font-size: 3rem;
  }
}

/* Large devices (lg, 1024px and up) */
@media (min-width: 1024px) {
  /* Hero */
  .hero-content {
    flex-direction: row;
    gap: 2rem;
  }
  .hero-text-content {
    width: 60%;
    text-align: left;
  }
  .hero-text-content p {
    margin-left: 0;
  }
  .hero-buttons {
    justify-content: flex-start;
  }
  .hero-image-wrapper {
    width: 40%;
    justify-content: flex-start;
    margin-top: 0;
  }
  .hero-image-container {
    max-width: 500px;
    height: 450px;
  }
  .hero-bg-heart.heart2 {
    display: block;
    position: absolute;
    top: 50%;
    right: -15rem;
    width: 40rem;
    height: 40rem;
    transform: translateY(-50%) rotate(-12deg);
  }
  .doodle-squiggle {
    left: -3rem;
  }
  .doodle-smiley {
    right: 3rem;
  }
  .doodle-triangle-cyan {
    left: -2rem;
  }
  .doodle-blue-blob {
    left: -1.5rem;
    width: 4rem;
    height: 4rem;
  }
  .doodle-peach-blob {
    right: 5rem;
    width: 3rem;
    height: 3rem;
  }
  .doodle-triangle-amber {
    right: 1rem;
  }

  /* Features */
  .feature-cards-container {
    flex-wrap: nowrap;
    gap: 1.5rem;
  }
  .feature-card-group {
    max-width: none;
  }

  /* Connection */
  .connection-container {
    flex-direction: row;
    gap: 5rem;
  }
  .connection-image-wrapper {
    width: 50%;
  }
  .connection-text-content {
    width: 50%;
    text-align: left;
  }
  .wavy-line-connection {
    justify-content: flex-start;
  }
  .connection-text-content p {
    margin-left: 0;
  }
  .swoosh-container {
    right: 2.5rem;
  }

  /* CTA */
  .cta-content {
    padding: 4rem;
  }
  .cta-text-content h2 {
    font-size: 3rem;
  }
}

/* Extra-large devices (xl, 1280px and up) */
@media (min-width: 1280px) {
  .hero-text-content {
    width: 50%;
  }
  .hero-image-wrapper {
    width: 50%;
  }
  .connection-image-container {
    max-width: 32rem;
  }
}
