/* ============================================================
   GLOBAL CARNIVORE COACHES — GLOBAL CSS (CANONICAL)
============================================================ */

/* ================= ROOT ================= */

:root {
  --primary-blue: #192168;
  --accent-red: #AF1E2D;
  --accent-red-dark: #8E1824;
  --text-color: #1A1A1A;
  --white: #FFFFFF;
  --off-white: #F4F4F6;
  --light-gray: #E6E6EB;
  --radius: 10px;
  --shadow: 0 10px 28px rgba(0,0,0,.18);
  --max-width: 1100px;
}

/* ================= RESET ================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* ================= BODY ================= */

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--off-white);
  color: var(--text-color);
}

/* ================= WRAP ================= */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

/* ================= NAV ================= */

.top-nav {
  background: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.brand-mini img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-link {
  color: #fff;
  margin-left: 18px;
  font-weight: 600;
  text-decoration: none;
}

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

.hero {
  background: #0e0e14;
  color: #fff;
}

.hero h1 {
  font-family: "Cinzel", serif;
  color: #fff;
  margin-top: 0;
}

.tag {
  color: #E0E0E0;
  font-weight: 600;
}

.lead-hero {
  color: #D0D0D0;
  line-height: 1.6;
}

/* ================= TYPOGRAPHY ================= */

h2, h3 {
  font-family: "Cinzel", serif;
  color: var(--primary-blue);
  margin-top: 0;
}

.subline {
  display: block;
  font-size: 0.9rem;
  color: #555;
  font-weight: 600;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ================= CARDS ================= */

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  min-width: 0;
}

/* ================= COLUMN SYSTEM ================= */

.cols {
  display: grid;
  gap: 24px;
}

.cols.sidebar {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
}

.cols > * {
  min-width: 0;
}

.card-aside {
  background: var(--light-gray);
  padding: 20px;
  border-radius: var(--radius);
}

/* ================= BUTTONS ================= */

.btn {
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-red-dark);
}

/* ============================================================
   COACH GALLERY — LOCKED 4-COLUMN GRID
   ============================================================ */

#coachGallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  align-items: start;
}

#coachGallery > * {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  text-align: center;
  overflow: hidden;
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#coachGallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

#coachGallery h3,
#coachGallery h4 {
  margin: 10px 0 6px;
  line-height: 1.2;
  min-height: 2.4em;
}

/* ================= MEDIA SAFETY ================= */

img {
  max-width: 100%;
  height: auto;
}

iframe {
  width: 100%;
  display: block;
}

/* ================= FOOTER ================= */

footer {
  text-align: center;
  padding: 30px;
  font-size: 0.85rem;
  color: #777;
}

/* ============================================================
   GLOBAL MODAL SYSTEM — ISOLATED & STABLE
============================================================ */

/* Full isolation from profile.css */
.modal-overlay {
  all: initial;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Restore sane defaults inside modal */
.modal-overlay * {
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

/* Modal shell */
.modal-shell {
  background: #fff;
  width: min(920px, 92vw);
  max-height: 90vh;
  overflow-y: auto;

  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  padding: 32px;

  position: relative;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;

  background: none;
  border: none;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
}

/* Header */
.modal-header {
  text-align: center;
}

.profile-avatar {
  margin: 16px auto;
  width: 160px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ✅ THE IMPORTANT PART */
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
  align-items: start;
}

/* Bio */
.bio-box {
  line-height: 1.65;
}

/* Before / After */
.before-after {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.before-after img {
  width: 100%;
  border-radius: 10px;
}

/* Languages */
.language-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.language-tag {
  background: var(--primary-blue);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* Book button — sane size */
.book-btn-fixed {
  display: block;
  max-width: 320px;
  margin: 24px auto 0;
  padding: 12px 28px;

  background: var(--accent-red);
  color: #fff;

  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

/* Mobile only */
@media (max-width: 520px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}


