/* Homepage - Option B: Dark & Authoritative */

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.92), rgba(29, 53, 87, 0.88)),
              url('../images/anatomy-gi-tract.jpg') center center / cover no-repeat;
  color: var(--color-white);
  padding: var(--space-20) 0 var(--space-16);
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

/* Stomach outline motif - top right */
.hero::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 320px;
  height: 320px;
  border: 2px solid rgba(124, 224, 232, 0.08);
  border-radius: 50% 50% 50% 30% / 60% 40% 60% 40%;
  transform: rotate(-15deg);
}

/* Endoscope tube motif - flowing curve bottom */
.hero::after {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -80px;
  width: 200px;
  height: 400px;
  border: 2px solid rgba(124, 224, 232, 0.06);
  border-radius: 0 0 120px 0;
  border-left: none;
  border-top: none;
}

/* Additional GI motif shapes */
.hero .hero__motif {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero .hero__motif--stomach {
  right: 5%;
  top: 15%;
  width: 240px;
  height: 240px;
  border: 1.5px solid rgba(124, 224, 232, 0.1);
  border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
  transform: rotate(10deg);
}

.hero .hero__motif--colon {
  right: 15%;
  bottom: 10%;
  width: 160px;
  height: 100px;
  border: 1.5px solid rgba(124, 224, 232, 0.06);
  border-radius: 50px 50px 0 0;
  border-bottom: none;
}

.hero .hero__motif--dot-1 {
  right: 8%;
  top: 60%;
  width: 8px;
  height: 8px;
  background: rgba(124, 224, 232, 0.15);
  border-radius: 50%;
}

.hero .hero__motif--dot-2 {
  right: 25%;
  top: 20%;
  width: 5px;
  height: 5px;
  background: rgba(124, 224, 232, 0.12);
  border-radius: 50%;
}

.hero .hero__motif--dot-3 {
  right: 35%;
  bottom: 25%;
  width: 6px;
  height: 6px;
  background: rgba(124, 224, 232, 0.1);
  border-radius: 50%;
}

.hero .hero__motif--line {
  right: 12%;
  top: 40%;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 224, 232, 0.12), transparent);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-10);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__accent-line {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  display: inline-block;
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-3);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
  font-size: var(--text-5xl);
}

.hero__credentials {
  font-size: var(--text-xl);
  color: var(--color-text-on-dark-muted);
  margin-bottom: var(--space-2);
}

.hero__title {
  font-size: var(--text-lg);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Doctor portrait in hero */
.hero__portrait {
  position: relative;
  z-index: 1;
}

.hero__portrait img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(124, 224, 232, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero__portrait-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Welcome */
.welcome {
  padding: var(--space-16) 0;
}

.welcome__inner {
  max-width: 800px;
}

.welcome h2 {
  margin-bottom: var(--space-6);
  padding-left: var(--space-5);
  position: relative;
}

.welcome h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

.welcome p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text);
}

/* Bariatric Highlight */
.bariatric {
  background: var(--color-bg-dark);
  padding: var(--space-16) 0;
  color: var(--color-white);
}

.bariatric .section-title {
  color: var(--color-white);
}

.bariatric__intro {
  max-width: 700px;
  color: var(--color-text-on-dark-muted);
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
}

.bariatric__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.bariatric-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: border-color var(--transition-base);
}

.bariatric-card:hover {
  border-color: var(--color-accent);
}

.bariatric-card h3 {
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.bariatric-card p {
  color: var(--color-text-on-dark-muted);
  margin-bottom: var(--space-4);
}

.bariatric-card .card__link {
  color: var(--color-accent);
}

/* Services Grid */
.services-section {
  padding: var(--space-16) 0;
  background: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* Locations */
.locations {
  padding: var(--space-16) 0;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  margin-top: var(--space-8);
}

.locations-group h3 {
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
  position: relative;
}

.locations-group h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

.location-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  padding-left: var(--space-5);
  border-left: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.location-item:hover {
  border-left-color: var(--color-accent);
}

.location-item:last-child {
  border-bottom: none;
}

.location-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.location-item p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin: 0;
}

/* Responsive */
@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 899px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__accent-line {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__portrait {
    order: -1;
    max-width: 280px;
    margin: 0 auto var(--space-2);
  }

  .hero__portrait img {
    height: 320px;
  }

  .hero__accent-line {
    margin-bottom: var(--space-3);
  }

  .hero__subtitle {
    margin-bottom: var(--space-1);
  }

  .hero__actions {
    justify-content: center;
  }

  .hero .hero__motif {
    display: none;
  }

  .hero__title {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: var(--space-8) 0 var(--space-8);
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__portrait img {
    height: 260px;
  }

  .bariatric__grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }
}
