/* ============================
   HOME PAGE STYLES - Exact Replica (Pass 2)
   ============================ */

/* --- BLOCK 1: HERO (ai-201_g6) --- */
.home-hero {
  position: relative;
  min-height: 811px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 0 20px 0;
}

/* Background image element positioned to elevate doctor and chair */
.home-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-hero-bg-img {
  position: absolute;
  top: -470px; /* Fine-tuned to match original desktop hero framing */
  left: 0;
  width: 100%;
  height: calc(100% + 470px);
  object-fit: cover;
  object-position: 50% 0;
  display: block;
}

.home-hero-main,
.home-hero-cards {
  position: relative;
  z-index: 2;
}

.home-hero-main {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 108px 20px 32px;
  display: flex;
  justify-content: flex-end;
}

.home-hero-content {
  text-align: right;
  width: 100%;
  max-width: 612px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* "Profesional" & "service" exact styling */
.hero-title-first {
  font-family: var(--font-regular);
  font-size: 64px;
  line-height: 0.5;
  color: var(--color-white);
  margin-bottom: 18px;
  text-align: right;
  display: block;
}

.hero-title-second {
  font-family: var(--font-regular);
  font-size: 64px;
  line-height: 0.5;
  color: var(--color-white);
  margin-bottom: 38px;
  text-align: right;
  display: block;
}

/* "DENTAL CARE" exact styling */
.hero-title-main {
  font-family: var(--font-black);
  font-size: 70px;
  line-height: 1.1;
  color: var(--color-white);
  text-align: right;
  margin-bottom: 36px;
  letter-spacing: 0.5px;
  display: block;
}

/* Hero CTA button: blue background, white text, thin white border */
.home-hero-content .btn-hero-blue {
  width: 227px;
  height: 66px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 3 Bottom Cards in Hero: exact rgba(1, 75, 128, 0.57), no blur */
.home-hero-cards {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 400px);
  justify-content: space-between;
  gap: 12px;
}

.hero-card {
  background-color: var(--color-primary-card-bg); /* rgba(1, 75, 128, 0.57) */
  backdrop-filter: none; /* Pure transparency showing hero image clearly */
  -webkit-backdrop-filter: none;
  height: 165px;
  padding: 24px 28px;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.hero-card-title {
  font-family: var(--font-black);
  font-size: 20px;
  color: var(--color-white);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  text-align: center;
}

.hero-card-text {
  font-family: var(--font-regular);
  font-size: 15px;
  color: var(--color-white);
  line-height: 1.45;
  text-align: center;
  max-width: 350px;
}

/* --- BLOCK 2: COMMITTED TO SUCCESS (ai-5FBseS) --- */
.home-about-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.home-about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.home-about-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-about-heading {
  font-family: var(--font-bold);
  font-size: 36px;
  line-height: 1.3;
  color: var(--color-primary);
}

.home-about-text {
  font-family: var(--font-regular);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.home-about-left .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.home-about-right {
  position: relative;
}

.home-about-img {
  width: 100%;
  height: 544px;
  object-fit: cover;
}

.about-overlay-card {
  position: absolute;
  bottom: 20px;
  left: 30px;
  right: 30px;
  background-color: rgba(1, 75, 128, 0.9);
  padding: 24px 28px;
  color: var(--color-white);
}

.about-overlay-title {
  font-family: var(--font-black);
  font-size: 18px;
  color: var(--color-white);
  margin-bottom: 8px;
}

.about-overlay-text {
  font-family: var(--font-regular);
  font-size: 14px;
  color: var(--color-white);
  line-height: 1.5;
}

/* --- BLOCK 3: WE OFFER (ai-H7Amto) --- */
.home-offer-section {
  padding: 80px 0;
  background-color: var(--color-primary-light);
}

.section-header-center {
  text-align: center;
  margin-bottom: 56px;
}

.section-header-center h3,
.section-header-center h2 {
  font-family: var(--font-bold);
  font-size: 36px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-header-center p {
  font-family: var(--font-regular);
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.home-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.home-offer-card {
  display: flex;
  flex-direction: column;
}

.home-offer-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-bottom: 20px;
}

.home-offer-title {
  font-family: var(--font-bold);
  font-size: 18px;
  color: var(--color-text-heading);
  margin-bottom: 10px;
}

.home-offer-text {
  font-family: var(--font-regular);
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- BLOCK 4: TESTIMONIALS (ai-fjSMa8) --- */
.home-testimonials-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.home-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.testimonial-card-box {
  background-color: var(--color-primary-light);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
}

.testimonial-stars {
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-family: var(--font-regular);
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-family: var(--font-bold);
  font-size: 16px;
  color: var(--color-text-heading);
}

/* --- BLOCK 5: GALLERY (ai-zIZ8B1) --- */
.home-gallery-section {
  padding: 80px 0 100px;
  background-color: var(--color-white);
}

.home-gallery-main-img {
  width: 100%;
  max-width: 1018px;
  height: 544px;
  object-fit: cover;
  margin: 0 auto 32px;
}

.home-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1018px;
  margin: 0 auto;
}

.home-gallery-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-gallery-thumb:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* --- RESPONSIVE BEHAVIOR --- */
@media (max-width: 1260px) {
  .home-hero-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .hero-card {
    height: auto;
    min-height: 165px;
  }
}

@media (max-width: 992px) {
  /* Preserve the previously validated mobile crop; desktop uses a stronger elevation. */
  .home-hero-bg-img {
    top: -230px;
    height: calc(100% + 230px);
  }

  .home-hero {
    min-height: 962px;
    background-attachment: scroll;
    background-position: 70% top;
    padding: 0 0 40px 0;
  }

  .home-hero-main {
    padding: 33px 16px 24px;
    justify-content: flex-end;
  }

  .home-hero-content {
    max-width: 100%;
    align-items: flex-end;
  }

  .hero-title-first,
  .hero-title-second {
    font-size: 40px;
    line-height: 0.5;
  }

  .hero-title-first {
    margin-bottom: 12px;
  }

  .hero-title-second {
    margin-bottom: 24px;
  }

  .hero-title-main {
    font-size: 40px;
    line-height: 1.3;
    margin-bottom: 24px;
  }

  .home-hero-content .btn-hero-blue {
    width: 164px;
    height: 56px;
    font-size: 14px;
  }

  .home-hero-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
    padding: 0 16px;
  }

  .hero-card {
    height: auto;
    min-height: 115px;
    padding: 20px 16px;
  }

  .hero-card-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .home-about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-about-img {
    height: 380px;
  }

  .about-overlay-card {
    position: static;
    margin-top: 16px;
  }

  .home-offer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .home-gallery-main-img {
    height: 320px;
  }

  .home-gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .home-hero {
    min-height: 962px;
  }

  .hero-title-first,
  .hero-title-second {
    font-size: 34px;
  }

  .hero-title-main {
    font-size: 36px;
  }

  .home-gallery-thumbs {
    grid-template-columns: 1fr;
  }
}

/* Production content refinements */
.hero-heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
}

.home-gallery-main-img {
  overflow: hidden;
  cursor: pointer;
}

.home-gallery-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-section .testimonial-card-box h3 {
  font-family: var(--font-bold);
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 14px;
}

@media (max-width: 992px) {
  .hero-heading { align-items: flex-end; }
}

/* Keep the longer Fort Myers headline within the approved hero composition. */
.hero-title-main { font-size: 62px; }
@media (max-width: 992px) { .hero-title-main { font-size: 40px; } }
@media (max-width: 480px) { .hero-title-main { font-size: 36px; } }
