/* Landing page styles */

/* =========================================
   HERO SECTION
   ========================================= */

.section-landing-page {
  width: 100%;
  height: 92vh;
  min-height: 600px;
background-image: url('https://allergydoc.co.za/wp-content/uploads/landing-page-V2-scaled.webp');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle right-side gradient for text legibility */
.section-landing-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(30, 10, 20, 0.55) 0%,
    rgba(30, 10, 20, 0.25) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-box {
  grid-column: 2;
  padding: 2rem 4rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.main-header {
  font-size: 4.8rem;
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.main-header strong {
  font-weight: 800;
  color: var(--color-tint-dark);
}

.hero-description {
  font-size: 1.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 3.6rem;
  line-height: 1.65;
  max-width: 46rem;
}

.btn-box {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-hero:link,
.btn-hero:visited {
  background-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero:hover,
.btn-hero:active {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 8px 28px rgba(240, 101, 149, 0.4);
}

.btn-info:link,
.btn-info:visited {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.btn-info:hover,
.btn-info:active {
  background-color: rgba(255, 255, 255, 0.28);
  color: var(--color-white);
  border-color: var(--color-white);
}

/* =========================================
   WHAT WE DO SECTION
   ========================================= */

.what-we-do-section {
  max-width: 1200px;
  margin: 9rem auto 5rem;
  padding: 0 3rem;
}

.what-we-do-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  align-items: center;
  row-gap: 7rem;
  column-gap: 3rem;
}

/* Explicit grid placement for images (alternating sides) */
.what-we-do-container > .img-circle-wrapper:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.what-we-do-container > .img-circle-wrapper:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.what-we-do-container > .img-circle-wrapper:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
}

.WWD-description {
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 1.75;
  padding: 0 1rem;
}

.WWD-description-one {
  grid-column: 2;
  grid-row: 1;
}

.WWD-description-two {
  grid-column: 1;
  grid-row: 2;
}

.WWD-description-three {
  grid-column: 2;
  grid-row: 3;
}

.what-we-do-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-white);
  box-shadow: 0 8px 32px rgba(240, 101, 149, 0.2);
}

.img-circle-wrapper {
  position: relative;
  width: 55%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  place-self: center;
}

.img-circle-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 60% 60%,
    rgba(240, 101, 149, 0.2),
    rgba(240, 101, 149, 0.06)
  );
  transform: translate(10px, 12px) scale(1.06);
  z-index: -1;
}

/* =========================================
   ABOUT OUR DOCTORS — SECTION HEADER
   ========================================= */

.doctors-section-header {
  text-align: center;
  padding: 9rem 2rem 0;
}

/* =========================================
   FOUNDER SECTION
   ========================================= */

.founder-section {
  max-width: 1200px;
  margin: 4rem auto 6rem;
  padding: 4rem;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Pink accent bar on left edge */
.founder-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-primary-light)
  );
}

.founder-box {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}

.header--founder {
  font-size: 2.8rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 2.4rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.founder-img-box {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.founder-img {
  width: 88%;
  border-radius: var(--radius-md);
  display: block;
}

.founder-description {
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
}

.founder-description p {
  margin-bottom: 1.4rem;
}

.founder-description p:last-of-type {
  margin-bottom: 2.8rem;
}

.founder-description a:link,
.founder-description a:visited {
  align-self: flex-start;
  padding: 1.4rem 2.8rem;
  text-decoration: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  transition:
    background-color 0.25s,
    box-shadow 0.25s,
    transform 0.2s;
}

.founder-description a:hover,
.founder-description a:active {
  background-color: #d94f7d;
  box-shadow: 0 8px 24px rgba(240, 101, 149, 0.35);
  transform: translateY(-2px);
}

/* =========================================
   OTHER DOCTORS SECTION
   ========================================= */

.other-doctors-section {
  max-width: 1200px;
  margin: 0 auto 9rem;
  padding: 0 3rem;
}

.other-doctors-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.other-doctors {
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.other-doctors:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.doctor-img-box {
  position: relative;
  overflow: hidden;
}

.doctor-img-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-primary-light)
  );
}

.doctor-img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.other-doctors:hover .doctor-img {
  transform: scale(1.04);
}

.header--doctor {
  font-size: 1.9rem;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin: 2rem 1.5rem 0.8rem;
  letter-spacing: -0.01em;
}

.doctor-description {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: 1.5rem;
  color: var(--color-text-dark);
  line-height: 1.65;
  padding: 0 1.8rem 2rem;
}

.doctor-description p {
  margin: 0.8rem 0;
}

.doctor-description a:link,
.doctor-description a:visited {
  display: block;
  margin-top: auto;
  padding-top: 1.6rem;
  text-decoration: none;
  text-align: center;
  background-color: var(--color-primary);
  padding: 1.2rem 1.6rem;
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.45rem;
  transition:
    background-color 0.25s,
    box-shadow 0.25s,
    transform 0.2s;
  margin-top: auto;
}

.doctor-description a:hover,
.doctor-description a:active {
  background-color: #d94f7d;
  box-shadow: 0 6px 20px rgba(240, 101, 149, 0.3);
  transform: translateY(-2px);
}

/* =========================================
   OUR SERVICES SECTION
   ========================================= */

.our-services-section {
  background-color: var(--color-white);
  padding: 9rem 3rem;
}

.treatments-section {
  max-width: 1200px;
  margin: 0 auto;
}

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

/* Card */
.treatment-card {
  text-align: center;
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding-bottom: 3rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: visible;
}

.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(240, 101, 149, 0.14);
}

/* Image wrapper */
.treatment-image-wrapper {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

/* Image */
.treatment-image-wrapper > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-bottom: 3px solid var(--color-primary);
}

.treatment-card:hover .treatment-image-wrapper > img {
  transform: scale(1.05);
}

/* Overlapping circular icon */

/* Title */
.treatment-title {
  margin-top: 2.4rem;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
  padding: 0 1.6rem;
}

/* Description */
.treatment-description {
  margin: 1.2rem 1.8rem 0;
  font-size: 1.45rem;
  line-height: 1.65;
  color: var(--color-text-mid);
}

/* =========================================
   STATS SECTION
   ========================================= */

.stats-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #c93f6e 100%);
  padding: 8rem 3rem;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative blob */
.stats-section::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 55rem;
  height: 55rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.stats-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-white);
  padding: 2rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-family: 'Rubik', sans-serif;
  font-size: 5.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-white);
}

.stat-suffix {
  font-family: 'Rubik', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1;
  align-self: flex-start;
  margin-top: 0.6rem;
}

.stat-label {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}
