/**
 * RS Cricket Institute - Coaches Page Stylesheet (coaches.css)
 * Loaded exclusively on page-coaches.php
 * Fully aligned with page-services.php section-wise 100vh scroll-snap presentation
 * Matches _Our Coaches.pdf specifications
 */

.coaches-page-wrapper {
  background-color: var(--color-white);
  color: var(--color-dark-elevated);
  overflow-x: clip;
}

/* ========================================================
   1. HERO HEADER SECTION
   ======================================================== */
.coaches-hero-section {
  position: relative;
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--color-dark-base);
}

/* ========================================================
   2. EXPERIENCE / STATS SECTION
   ======================================================== */
.coaches-trust-section {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-text-on-dark-soft);
}

.coach-stats-grid,
.coaches-trust-section .d-flex.flex-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  align-items: stretch;
}

.coach-stat-box {
  background: var(--color-light-ivory);
  border: 1px solid var(--color-light-border-warm);
  border-radius: 16px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 135px;
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.coach-stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px var(--color-primary-soft);
}

.coach-stat-box .stat-num {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  display: block;
  margin: 0;
  text-align: center;
}

.coach-stat-box .stat-label {
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 8px;
  margin-bottom: 0;
  display: block;
  text-align: center;
  line-height: 1.35;
}

/* ========================================================
   3. HEAD COACH SPOTLIGHT
   ======================================================== */
.coaches-head-section {
  background: var(--color-dark-base);
  color: var(--color-white);
}

.head-coach-img-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--color-black) 45%, transparent);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 440px;
}

.head-coach-img-box img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  transition: transform 0.4s ease;
}

.head-coach-img-box:hover img {
  transform: scale(1.02);
}

/* ========================================================
   4. MEET THE TEAM COACH CARDS
   ======================================================== */
.coaches-panel-section {
  background: var(--color-light-ivory);
}

.coach-team-card {
  background: var(--color-white);
  border: 1px solid var(--color-light-border-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px var(--color-light-border-subtle);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.coach-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--color-black) 8%, transparent);
  border-color: var(--color-primary);
}

.coach-card-img-wrap {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  background: var(--color-text-on-dark-soft);
}

.coach-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.coach-team-card:hover .coach-card-img-wrap img {
  transform: scale(1.03);
}

.coach-card-body {
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.coach-role-pill {
  background: var(--color-primary-tint-strong);
  color: var(--color-primary-darker);
  font-weight: 600;
  font-size: var(--fs-2xs);
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
}

.coach-card-name {
  color: var(--color-dark-slate);
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.coach-card-role-sub {
  color: var(--color-text-muted-mid);
  font-size: var(--fs-2xs);
  letter-spacing: 0.8px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.coach-card-accent-line {
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  margin-bottom: 14px;
  border-radius: 1px;
}

.coach-card-bio {
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.coach-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coach-card-bullets li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--color-dark-elevated);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.coach-card-bullets li .bullet-dot {
  color: var(--color-primary);
  font-size: var(--fs-lg);
  line-height: 1;
  flex-shrink: 0;
}

/* ========================================================
   5. HOW WE COACH SECTION (METHODS & PHOTO GRID)
   ======================================================== */
.coaches-methods-section {
  background: var(--color-dark-base);
  color: var(--color-white);
}

.coach-method-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coach-method-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.coach-method-icon-wrap {
  width: var(--icon-box-size-lg, 48px);
  height: var(--icon-box-size-lg, 48px);
  min-width: var(--icon-box-size-lg, 48px);
  min-height: var(--icon-box-size-lg, 48px);
  flex-shrink: 0;
  border-radius: var(--icon-box-radius, 12px);
  background: var(--icon-box-bg-dark, var(--color-primary-soft)) !important;
  border: 1px solid var(--icon-box-border-dark, var(--color-primary-soft-lg)) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rs-gold, var(--color-primary));
  transition: var(--transition-smooth, all 0.3s cubic-bezier(0.16, 1, 0.3, 1));
}

.coach-method-icon-wrap img,
.coach-method-icon-wrap svg {
  width: var(--icon-image-size, 18px) !important;
  height: var(--icon-image-size, 18px) !important;
  max-width: var(--icon-image-size, 18px) !important;
  max-height: var(--icon-image-size, 18px) !important;
  object-fit: contain;
  display: block;
}

.coach-method-item:hover .coach-method-icon-wrap {
  transform: translateY(-2px) scale(1.06);
  border-color: var(--color-primary) !important;
  background: color-mix(in oklab, var(--color-primary) 22%, transparent) !important;
  box-shadow: 0 6px 18px color-mix(in oklab, var(--color-primary) 30%, transparent);
}

.coach-method-item h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}

.coach-method-item p {
  color: var(--color-text-muted-light);
  font-size: var(--fs-sm);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Training Photos Mosaic */
.training-mosaic-tall {
  position: relative;
  height: 100%;
  min-height: 380px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--color-black) 35%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-primary) 20%, transparent);
}

.training-mosaic-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.training-mosaic-tall:hover img {
  transform: scale(1.03);
}

.training-mosaic-stacked {
  position: relative;
  height: 50%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--color-black) 35%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-primary) 20%, transparent);
}

.training-mosaic-stacked img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.training-mosaic-stacked:hover img {
  transform: scale(1.03);
}

.training-mosaic-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: color-mix(in srgb, var(--color-black) 75%, transparent);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--fs-xs);
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
  letter-spacing: 0.3px;
}

/* ========================================================
   6. BOTTOM CTA
   ======================================================== */
.coaches-cta-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-top: 1px solid color-mix(in oklab, var(--color-primary) 20%, transparent);
}

/* ========================================================
   RESPONSIVE ADJUSTMENTS
   ======================================================== */
@media (max-width: 991.98px) {
  .coaches-hero-section {
    min-height: auto;
    padding: 6rem 0 3.5rem;
    background-position: center;
  }
  .coaches-trust-section,
  .coaches-head-section,
  .coaches-panel-section,
  .coaches-methods-section,
  .coaches-cta-section {
    padding: 3.75rem 0;
    min-height: auto;
  }
  .head-coach-img-box {
    max-height: 380px;
    margin-bottom: 2rem;
  }
  .coach-card-img-wrap {
    height: 240px;
  }
  .training-mosaic-tall {
    min-height: 260px;
    height: 260px;
    margin-bottom: 14px;
  }
  .training-mosaic-stacked {
    height: 160px;
  }
}

@media (max-width: 767.98px) {
  .coach-stats-grid,
  .coaches-trust-section .d-flex.flex-wrap {
    gap: 12px;
  }
  .coach-stat-box {
    padding: 18px 10px;
    min-height: 115px;
    border-radius: 14px;
  }
  .coach-stat-box .stat-num {
    font-size: var(--fs-3xl);
  }
  .coach-stat-box .stat-label {
    font-size: var(--fs-2xs);
    letter-spacing: 0.5px;
    margin-top: 6px;
  }
}

@media (max-width: 575.98px) {
  .coach-stats-grid,
  .coaches-trust-section .d-flex.flex-wrap {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .coach-stat-box {
    padding: 14px 6px;
    min-height: 95px;
    border-radius: 12px;
  }
  .coach-stat-box .stat-num {
    font-size: var(--fs-2xl);
  }
  .coach-stat-box .stat-label {
    font-size: var(--fs-2xs);
    letter-spacing: 0.2px;
    margin-top: 4px;
  }
  .coach-card-body {
    padding: 18px 18px 20px;
  }
}
