/* home.css - Home Page Specific Sections */

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  background-color: #5bc6f5; /* Clean light blue solid color for subpages */
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image ONLY for the homepage hero */
.hero.home-hero {
  background: #5bc6f5 url('../img/hero-woman.webp') no-repeat center right;
  background-size: cover;
}

@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 60px);
  }
  .hero.home-hero {
    background-position: 75% center;
  }
}

@media (max-width: 768px) {
  .hero.home-hero {
    background-position: 80% center;
  }
}

@media (max-width: 480px) {
  .hero.home-hero {
    background-position: 85% center;
    /* Soft color overlay so text remains fully readable on tiny phone displays */
    background-image: linear-gradient(90deg, rgba(91, 198, 245, 0.95) 0%, rgba(91, 198, 245, 0.85) 60%, rgba(91, 198, 245, 0.2) 100%), url('../img/hero-woman.webp');
  }
}

/* Background image for Hollywood Smile hero */
.hero.hollywood-hero {
  background: #fdf5f3 url('../img/hollywood-hero.jpg') no-repeat center right;
  background-size: cover;
}

@media (max-width: 992px) {
  .hero.hollywood-hero {
    background-position: 65% center;
  }
}

@media (max-width: 768px) {
  .hero.hollywood-hero {
    background-position: 70% center;
  }
}

@media (max-width: 480px) {
  .hero.hollywood-hero {
    background-position: 75% center;
    background-image: linear-gradient(90deg, rgba(253, 245, 243, 0.95) 0%, rgba(253, 245, 243, 0.85) 60%, rgba(253, 245, 243, 0.2) 100%), url('../img/hollywood-hero.jpg');
  }
}

/* Background decorative blur shapes disabled to let background image shine */
.hero::before, .hero::after {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 20px);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-teal-glow);
  color: var(--accent-teal);
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 24px;
}

.hero-tag svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--primary-600);
  margin-bottom: 36px;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.5rem; }
  .hero-features { grid-template-columns: 1fr; }
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hero-feature-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.hero-feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-feature-item p {
  font-size: 0.85rem;
  color: var(--primary-600);
}

/* Treatment Section */
.treatments-section {
  background-color: var(--white);
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .treatments-grid {
    grid-template-columns: 1fr;
  }
}

.treatment-card {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--border-radius-md);
  padding: 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.treatment-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.2);
}

.treatment-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-sm);
  background: rgba(13, 148, 136, 0.08);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.treatment-card:hover .treatment-icon-wrapper {
  background: var(--accent-teal);
  color: var(--white);
}

.treatment-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.treatment-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.treatment-card p {
  font-size: 0.95rem;
  color: var(--primary-600);
  margin-bottom: 24px;
  flex: 1;
}

.treatment-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-teal);
}

.treatment-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.treatment-card:hover .treatment-link svg {
  transform: translateX(4px);
}

/* Process Timeline (How It Works) */
.process-section {
  background-color: var(--primary-50);
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Line connecting steps */
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--primary-200);
  z-index: 1;
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process-steps::before {
    display: none;
  }
}

.step-card {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-full);
  background: var(--white);
  border: 4px solid var(--primary-50);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-teal);
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

.step-card:hover .step-number {
  background: var(--accent-teal);
  color: var(--white);
  transform: scale(1.05);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--primary-600);
  max-width: 300px;
}

/* Before / After Slider Component */
.results-section {
  background-color: var(--white);
}

.ba-slider-container {
  max-width: 700px;
  margin: 0 auto;
}

.ba-slider {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  user-select: none;
}

@media (max-width: 576px) {
  .ba-slider {
    height: 300px;
  }
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Before Image (placed on top, dynamic width controlled by handle) */
.ba-img-before {
  width: 100%;
  z-index: 2;
  /* clip-path will crop the image dynamically based on JS width percentage */
  clip-path: inset(0 50% 0 0);
}

.ba-img-after {
  z-index: 1;
}

/* Slide Drag Handle */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--white);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.ba-handle-button {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  background: var(--white);
  border: 4px solid var(--accent-teal);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  font-size: 1.25rem;
}

/* Before/After Badges */
.ba-badge {
  position: absolute;
  top: 20px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  z-index: 4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ba-badge-before {
  left: 20px;
}

.ba-badge-after {
  right: 20px;
}

/* Google Reviews Section */
.reviews-section {
  background-color: var(--primary-50);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: var(--white);
  border: 1px solid var(--primary-100);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.2);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-teal);
  font-family: var(--font-primary);
  border: 2px solid var(--accent-teal-light);
}

.reviewer-name-wrap {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-900);
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-badge {
  font-size: 0.75rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.review-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.google-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.review-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.review-rating svg {
  width: 14px;
  height: 14px;
  fill: #fbbf24;
}

.review-text {
  font-size: 0.95rem;
  color: var(--primary-600);
  line-height: 1.6;
  font-style: italic;
}

.google-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
}

.google-stars-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.google-rating-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-900);
  font-family: var(--font-primary);
}

.google-reviews-count {
  font-size: 0.9rem;
  color: var(--primary-600);
}

/* Premium Brand Banner with Custom Laboratory Text Overlay */
.hero-brand-banner {
  position: relative;
  margin-bottom: 32px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 21/9;
  background: #5bc6f5 url('../assets/img/hero-woman.webp') no-repeat center right;
  background-size: cover;
  display: flex;
  align-items: center;
}

.hero-banner-content {
  width: 55%;
  padding: 24px 36px;
  text-align: left;
  z-index: 10;
}

.hero-banner-text {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
  font-family: var(--font-primary);
}

.hero-banner-highlight {
  color: var(--primary-900);
  background: var(--white);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  display: inline-block;
  margin-top: 8px;
  font-size: 1.35rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
  .hero-brand-banner {
    aspect-ratio: 16/9;
  }
  .hero-banner-text {
    font-size: 1.3rem;
  }
  .hero-banner-highlight {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero-brand-banner {
    aspect-ratio: 16/9;
    background-position: 70% center;
  }
  .hero-banner-content {
    width: 65%;
    padding: 16px 24px;
  }
  .hero-banner-text {
    font-size: 1.15rem;
  }
  .hero-banner-highlight {
    font-size: 1rem;
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .hero-brand-banner {
    aspect-ratio: 1.33;
    background-position: 80% center;
  }
  .hero-banner-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(91,198,245,0.98) 0%, rgba(91,198,245,0.85) 60%, rgba(91,198,245,0.2) 100%);
    display: flex;
    align-items: center;
    padding: 16px;
  }
  .hero-banner-text {
    font-size: 1.1rem;
  }
  .hero-banner-highlight {
    font-size: 0.9rem;
    margin-top: 4px;
  }
}

/* Restructured Split-Level Hero & Slogan Styles */
.hero-main-slogan {
  font-size: 5.4rem;
  font-weight: 800;
  color: #1b5597;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: none;
  margin: 0;
  max-width: 1000px;
}

.hero-bottom-section {
  padding: 80px 0;
  background-color: var(--primary-50);
  border-bottom: 1px solid var(--primary-200);
  position: relative;
  z-index: 10;
}

.hero-bottom-section .hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 992px) {
  .hero-main-slogan {
    font-size: 3.9rem;
  }
  .hero-bottom-section {
    padding: 60px 0;
  }
  .hero-bottom-section .hero-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero-main-slogan {
    font-size: 2.85rem;
  }
}

