/* ============================================================
   BACK NINE BEACH CLUB — Coaches Page
   ============================================================ */

/* ── Nav active state for this page ──────────────────────── */
.nav-active {
  color: var(--gold) !important;
}

.nav-active::after {
  transform: scaleX(1) !important;
}

/* ── Page Header ─────────────────────────────────────────── */
.coaches-header {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 2rem 5rem;
}

.coaches-header-bg {
  position: absolute;
  inset: 0;
  background:
    url('images/Bang.svg') center/cover no-repeat,
    var(--green-deep);
  transform: scale(1.05);
  filter: blur(2px) brightness(0.35) saturate(0.6);
}

.coaches-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,20,16,0.4) 0%,
    rgba(10,20,16,0.65) 60%,
    var(--green-deep) 100%
  );
}

.coaches-header-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.coaches-header-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.ch-line {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.coaches-header-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.coaches-header-title em {
  font-style: italic;
  color: var(--gold-light);
}

.coaches-header-sub {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(212, 201, 184, 0.7);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Intro stat strip ────────────────────────────────────── */
.coaches-intro-strip {
  background: var(--green-rich);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.coaches-intro-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.cis-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 3rem;
  gap: 0.25rem;
}

.cis-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
}

.cis-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.cis-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border-mid);
}

/* ── Main coaches area ───────────────────────────────────── */
.coaches-main {
  padding: 5rem 0 6rem;
  background: var(--green-deep);
}

.coaches-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Loading / Error states ──────────────────────────────── */
.coaches-loading {
  text-align: center;
  padding: 5rem 0;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.coaches-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--border-mid);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.coaches-loading p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.coaches-error {
  text-align: center;
  padding: 4rem 0;
  color: rgba(220, 120, 100, 0.8);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.hidden { display: none !important; }

/* ── Coach Grid ──────────────────────────────────────────── */
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Coach Card ──────────────────────────────────────────── */
.coach-card {
  background: var(--green-rich);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.coach-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px var(--gold-dim);
}

/* Photo */
.coach-photo-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--green-mid);
}

.coach-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s;
  filter: brightness(0.9) saturate(0.85);
}

.coach-card:hover .coach-photo {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

/* Photo placeholder (shown when no image loads) */
.coach-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--green-mid) 0%, var(--green-bright) 100%);
  gap: 0.5rem;
}

.coach-photo-placeholder .placeholder-initial {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 300;
  color: rgba(201, 168, 76, 0.2);
  line-height: 1;
}

.coach-photo-placeholder .placeholder-icon {
  font-size: 2rem;
  opacity: 0.3;
}

/* Specialty badge over photo */
.coach-specialty-badge {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  background: rgba(10, 20, 16, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.specialty-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Card body */
.coach-body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.coach-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.coach-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.coach-divider {
  width: 2rem;
  height: 1px;
  background: var(--border-mid);
  margin-bottom: 1rem;
}

.coach-bio {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  line-height: 1.75;
  color: var(--text-dim);
  flex: 1;
}

.coach-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.coach-tag {
  font-family: var(--font-sans);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  border: 1px solid var(--border-mid);
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
}

.coach-book-btn {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  padding: 0.7rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.coach-book-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-deep);
}

/* ── Booking CTA strip ───────────────────────────────────── */
.coaches-cta {
  background: var(--green-rich);
  border-top: 1px solid var(--border);
  padding: 5rem 0;
}

.coaches-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.coaches-cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.coaches-cta-sub {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 500px;
}

.coaches-cta-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Footer reuse ────────────────────────────────────────── */
footer {
  background: var(--green-deep);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(138, 127, 112, 0.5);
}

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

  .coaches-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .coaches-cta-sub { max-width: 100%; }

  .cis-stat { padding: 1.5rem 1.5rem; }
}

@media (max-width: 600px) {
  .coaches-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .coaches-intro-inner {
    gap: 0;
  }

  .cis-stat { padding: 1.25rem 1rem; }
}
