/* ================= FONT ================= */
@font-face {
  font-family: "Rodfat Two Demo";
  src: url("../fonts/Rodfat two-Demo.ttf") format("truetype");
  font-display: swap;
}

/* ================= THEME & HERO VARS ================= */
:root {
  --ink: #222222;
  --bg: #f9f7f4;
  --white: #ffffff;
  --gold: #c39b3a;
  --gold-soft: #e6d4a2;
  --navy: #001b3d;
  --border-subtle: #e3e3e3;
  --radius: 14px;
  --transition: 0.25s ease;

  /* Hero background controls (global defaults) */
  --hero-bg: url("../images/Hero_placeholder.JPG");
  --hero-pos-x: 25%;
  --hero-pos-y: 50%;
  --hero-bg-opacity: 0.75;

  /* Hero diagonal mask controls */
  --hero-split-angle: 160deg;
  --hero-mask-start: 60%;
  --hero-mask-end: 62%;

  /* Pill sizing (logos fill pill height, pill does NOT grow) */
  --pill-h: 120px;   /* desktop pill height */
  --pill-pad-y: 8px;
  --pill-pad-x: 12px;
  --pill-gap: 10px;
}

/* ================= RESET ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

/* ================= GLOBAL ================= */
.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.section {
  padding: 1.5rem 0;
}

.section-alt {
  background-color: var(--white);
}

h1,
h2,
h3 {
  font-family: "Rodfat Two Demo", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 0.98rem;
}

/* Watermark */
.logo-background {
  position: fixed;
  inset: 0;
  background: center / 60% no-repeat url("../images/logo.png");
  opacity: 0.15;
  pointer-events: none;
  z-index: -2;
}

/* ================= NAV TOGGLE (LYCEUM LOGO ICON) ================= */
.nav-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 40;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background-color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

/* Hide the old three lines */
.nav-toggle span {
  display: none;
}

.nav-toggle-logo {
  width: 100%;
  height: 100%;
  display: block;
}

/* Use the Lyceum logo as the icon */
.nav-toggle::before {
  content: "";
  display: block;
  width: 55px;
  height: 55px;
  background-image: url("../images/menu-icon-lyceum.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.25s ease;
}

@media (max-width: 600px) {
  .nav-toggle {
    width: 50px;
    height: 50px;
  }
  .nav-toggle::before {
    width: 45px;
    height: 45px;
  }
}

/* Hover / focus */
.nav-toggle:hover,
.nav-toggle:focus-visible {
  outline: none;
  background-color: #062c63;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* When nav is open: rotate the icon (subtle “X” cue) */
.nav-toggle.open {
  border-color: var(--gold);
  background-color: var(--navy);
}

.nav-toggle.open::before {
  transform: rotate(45deg);
}

/* ================= SIDE NAV ================= */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: min(260px, 78vw);
  height: 100vh;
  background-color: #0b1120;
  color: #f9f7f4;
  padding: 4.2rem 1.5rem 2rem;
  transform: translateX(-100%);
  transition: transform var(--transition);
  z-index: 35;
  display: flex;
  flex-direction: column;
}

.side-nav.open {
  transform: translateX(0);
}

.side-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* NAV SOCIAL ICONS */
.nav-social {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(248, 250, 252, 0.12);
  display: flex;
  justify-content: flex-start;
  gap: 0.9rem;
}

.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-social img {
  width: 22px;
  height: 22px;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-social a:hover img,
.nav-social a:focus-visible img {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 0.4rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  background-color: rgba(249, 247, 244, 0.08);
  color: var(--gold);
  transform: translateX(2px);
}

.nav-has-children {
  margin-top: 0.25rem;
}

.nav-who-toggle {
  text-align: left;
}

.nav-submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  padding-left: 0.4rem;
  margin-top: 0;
  opacity: 0;
  transition:
    max-height var(--transition),
    opacity var(--transition),
    margin-top var(--transition);
}

.nav-submenu.open {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.1rem;
}

.nav-submenu .nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  padding: 0.4rem 0.4rem;
}

.who-caret {
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

.side-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
  z-index: 30;
}

.side-nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.nav-link.current {
  color: var(--gold);
  font-weight: 600;
}

.nav-link.active {
  background-color: rgba(249, 247, 244, 0.12);
  color: var(--gold);
  transform: translateX(2px);
}

.nav-submenu .nav-link.active {
  background-color: rgba(249, 247, 244, 0.18);
  border-left: 2px solid var(--gold);
  padding-left: 0.6rem;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: visible;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5vh;
  padding: 1.5rem 1rem;
  z-index: 1;
}

/* Background image + diagonal mask */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-repeat: no-repeat;
  background-size: 105% auto;
  background-position: var(--hero-pos-x, 25%) var(--hero-pos-y, 50%);
  opacity: var(--hero-bg-opacity, 0.55);
  -webkit-mask-image: linear-gradient(
    var(--hero-split-angle, 160deg),
    black var(--hero-mask-start, 60%),
    transparent var(--hero-mask-end, 62%)
  );
  mask-image: linear-gradient(
    var(--hero-split-angle, 160deg),
    black var(--hero-mask-start, 60%),
    transparent var(--hero-mask-end, 62%)
  );
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
}

/* Hero logo */
.hero-logo {
  height: clamp(175px, 30vh, 260px);
  width: auto;
  opacity: 0.96;
  position: absolute;
  right: -30%;
  top: 50%;
  transform: translateY(-50%);
  transition:
    transform var(--transition),
    right var(--transition),
    height var(--transition),
    opacity var(--transition);
}

/* Hero text */
.hero-text {
  position: relative;
  padding: 1.5rem 2rem;
  background: rgba(249, 247, 244, 0.8);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

/* Hero typography */
.hero h1 {
  margin: 0;
  padding: 0;
  border: none;
  text-align: center;
  line-height: 1.05;
}

.hero-title-main {
  display: block;
  font-family: "Rodfat Two Demo", sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.05em;
  background: linear-gradient(
    to bottom,
    rgb(140, 43, 43) 0%,
    rgb(90, 20, 20) 50%,
    black 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-sub {
  display: block;
  font-family: "Rodfat Two Demo", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.2rem;
  background: linear-gradient(
    to bottom,
    rgb(140, 43, 43) 0%,
    rgb(90, 20, 20) 50%,
    black 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-family: "Rodfat Two Demo", sans-serif;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  color: #000;
  text-align: center;
  line-height: 1.2;
  margin-top: 0.15rem;
}

/* Ultra-subtle outline for hero text */
.hero-title-main,
.hero-title-sub,
.hero-tagline {
  -webkit-text-stroke: 0.15px rgba(0, 0, 0, 0.15);
  text-stroke: 0.15px rgba(0, 0, 0, 0.15);
}

/* ================= COLLECTIVE PILLS ================= */
.pill {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--pill-gap);
  padding: var(--pill-pad-y) var(--pill-pad-x);
  min-height: var(--pill-h);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.pill-link {
  text-decoration: none;
  color: inherit;
  display: flex;
}

/* Faint background watermark inside pill */
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 35%;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.pill-mkg::before {
  background-image: url("../images/logo-full-mkg.png");
}

.pill-savate::before {
  background-image: url("../images/logo-full-savate.png");
}

.pill-ergovita::before {
  background-image: url("../images/logo-full-ergovita.png");
}

.pill:hover::before {
  opacity: 0.6;
}

/* Inline logo */
.collective-logo {
  flex: 0 0 auto;
  height: calc(var(--pill-h) - (var(--pill-pad-y) * 2));
  width: auto;
  object-fit: contain;
  margin: 0;
  z-index: 2;
}

/* Text content */
.pill-content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
}

.pill h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.pill p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
}

/* Homepage collective pills – spacing + hover */
#collective .pill {
  margin-bottom: 0.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#collective .pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ================= CARDS / GRID ================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
}

.section-alt .card {
  background-color: var(--bg);
}

.center-text {
  text-align: center;
  margin-top: 1.4rem;
}

.micro-note {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: #777777;
}

/* ===== MKG Blend stacked pills ===== */
.blend-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Savate-style 2x2 pill grid */
.blend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Slightly narrower, more "strip-like" feel */
.blend-pill {
  min-height: auto;
  align-items: flex-start;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.blend-pill::before {
  opacity: 0.03;
}

@media (max-width: 700px) {
  .blend-stack {
    gap: 1rem;
  }
}

/* ================= ACCORDION (CARD-STYLE) ================= */
.accordion {
  margin-top: 1.25rem;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

.card-stack {
  border: none;
  padding: 0;
}

.accordion-card {
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.accordion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--gold);
}

/* Header button */
.accordion-toggle {
  width: 100%;
  padding: 0.9rem 1.2rem;
  text-align: left;
  border: none;
  background: var(--navy);
  color: #f9f7f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: "Rodfat Two Demo", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.accordion-toggle:hover,
.accordion-toggle:focus-visible {
  background: #062c63;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* The + / – icon on the right */
.accordion-toggle .carat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  margin-left: 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
}

/* Panel body */
.accordion-panel {
  display: none;
  padding: 0.9rem 1rem 1.1rem;
  font-size: 0.95rem;
  color: #444444;
  background: #ffffff;
}

.accordion-panel p {
  margin: 0 0 0.6rem;
  line-height: 1.6;
}

.accordion-panel p:last-child {
  margin-bottom: 0;
}

.accordion-panel a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color var(--transition),
    border-color var(--transition);
}

.accordion-panel a:hover {
  color: var(--gold);
}

/* ================= BUTTONS ================= */
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border: none;
  border-radius: 10px;
  font-family: "Rodfat Two Demo", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #062c63;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ================= MINI COLLECTIVE PILLS (Explore Section) ================= */

.explore-collective {
  padding: 2.5rem 0 3rem;
  border-top: 3px solid var(--gold);
  background: var(--bg);
}

.explore-collective-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* all 3 fit on desktop */
  gap: 1.1rem;
  margin-top: 1.5rem;
}

/* Half-height pills for the explore strip (DESKTOP BASE) */
.pill-mini {
  --pill-h: 70px;
  min-height: var(--pill-h);
  padding: 0.6rem 0.9rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
}

/* Centered, more visible background logo just for mini pills (DESKTOP) */
.pill-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 65%;
  opacity: 0.20;
  pointer-events: none;
  z-index: 0;
}

/* Per-pill logo images (reuse your existing assets) */
.pill-lyceum-home::before {
  background-image: url("../images/Logo.png");
}

.pill-mkg::before {
  background-image: url("../images/logo-full-mkg.png");
}

.pill-savate::before {
  background-image: url("../images/logo-full-savate.png");
}

.pill-ergovita::before {
  background-image: url("../images/logo-full-ergovita.png");
}

/* Hover effect */
.pill-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.pill-mini:hover::before {
  opacity: 0.65;
}

/* Text tweaks */
.pill-mini .pill-content {
  position: relative;
  z-index: 1; /* above watermark */
  margin: 0;
}

.pill-mini h3 {
  font-size: 0.9rem;
  margin: 0;
}

/* Remove body copy in minis if any sneaks in */
.pill-mini p {
  display: none;
}

/* ====== TABLET & SMALL DESKTOP ====== */
@media (max-width: 800px) {
  .explore-collective-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .pill-mini {
    --pill-h: 80px;
  }
}

/* ====== SMALL PHONES (shared) ====== */
@media (max-width: 700px) {
  .explore-collective .pill-mini {
    --pill-h: 70px;
    padding: 0.8rem .8rem;
    flex-direction: row;
    align-items: center;
    text-align: center;
  }

  .explore-collective .pill-mini::before {
    background-position: center 55%;
    background-size: 55%;
    opacity: 0.22;
  }

  .explore-collective .pill-mini h3 {
    font-size: 1rem;
  }
}

/* ====== IPHONE-SCALE (extra small screens) ======
   This is the “iPhone-safe” override that should finally
   push the logo low enough to be fully visible.           */
@media (max-width: 480px) {
  .explore-collective .pill-mini {
    --pill-h: 70px;              /* give the logo vertical room */
  }

  .explore-collective .pill-mini::before {
    background-position: center 50%;  /* bottom-center */
    background-size: 52%;
    opacity: 0.20;
  }
}

/* Logo watermark for Lyceum Home mini pill */
.pill-lyceum-home::before {
  background-image: url("../images/Logo.png");
}

/* ================= FORM BASICS (used everywhere) ================= */
.contact-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  font: inherit;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
  background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(195, 155, 58, 0.25);
}

/* ================= CONTACT / SOCIAL LINKS ================= */
.contact-social {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-social a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition:
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.contact-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ================= FOOTER ================= */
.site-footer {
  padding: 1.5rem 0 2rem;
  font-size: 0.8rem;
  color: #777777;
  background: none;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.footer-copy {
  margin: 0;
}

/* Desktop: text links */
.footer-social-text {
  display: flex;
  gap: 1rem;
}

.footer-social-text a {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--navy);
}

.footer-social-text a:hover {
  color: var(--gold);
}

/* Mobile: icon links */
.footer-social-icons {
  display: none;
}

.footer-social-icons img {
  width: 22px;
  height: 22px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-social-icons img:hover {
  opacity: 1;
}

/* ================= FADE-IN ================= */
.fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= TYPOGRAPHY / UTILITIES ================= */
br.br-tight {
  display: none;
}

.section p {
  margin: 0 0 0.6rem;
  line-height: 1.6;
}

.stack-tight p {
  margin-bottom: 0.4rem;
}

.section p:last-child,
.stack-tight p:last-child {
  margin-bottom: 0;
}

/* Centered, narrow content for main text sections */
.container-narrow {
  width: min(720px, 100% - 3rem);
  margin: 0 auto;
}

/* Section header with centered text */
.section-header-centered {
  text-align: center;
  margin: 0 auto 1.75rem;
}

.section-header-centered h2 {
  color: #000000;
}

.section-header-centered p {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  color: #222222;
}

/* Price list */
.price-list {
  list-style: none;
  padding-left: 0;
  margin: 0.6rem 0 0.8rem;
}

.price-list li {
  margin-bottom: 0.35rem;
}

.section-header-centered a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.section-header-centered a:hover {
  color: var(--gold);
}

/* ================= COLLAPSIBLE SECTIONS (if used) ================= */
.section-collapsible {
  margin-bottom: 1.75rem;
}

.section-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.section-toggle h2 {
  margin: 0;
  color: #000000;
}

.section-caret {
  font-size: 1.3rem;
  font-weight: 700;
  margin-left: 1rem;
  transition: transform 0.25s ease;
}

.section-collapsible.open .section-caret {
  transform: rotate(90deg);
}

.section-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.35s ease;
}

.section-collapsible.open .section-body {
  max-height: 1000px;
  opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero {
    min-height: 30vh;
    padding-top: 0.25rem;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    padding: 0 1.5rem;
  }

  /* Hide floating logo on mobile */
  .hero-logo {
    display: none;
  }

  .hero-text {
    padding: 1rem 1.1rem;
    max-width: 100%;
    position: relative;
    overflow: hidden;
  }

  .hero-text::before {
    content: none;
  }

  .hero-text * {
    position: relative;
    z-index: 1;
  }

  .logo-background {
    background-size: 90%;
  }

  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.5rem 0;
  }

  /* Footer layout tweaks */
  .footer-social-text {
    display: none;
  }

  .footer-social-icons {
    display: flex;
    gap: 1.2rem;
  }

  .footer-inner {
    gap: 1rem;
  }
}

@media (max-width: 700px) {
  :root {
    --pill-h: 92px;
    --pill-pad-y: 8px;
    --pill-pad-x: 12px;
    --pill-gap: 8px;
  }

  .pill {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pill .collective-logo {
    height: auto;
    max-height: 100px;
    margin-bottom: 0.5rem;
  }

  .pill-content {
    text-align: center;
  }

  .pill::before {
    background-position: center bottom;
    background-size: 60%;
    opacity: 0.06;
  }
}

/* ================= PAGE-SPECIFIC WATERMARKS ================= */
.page-mkg .logo-background {
  background-image: url("../images/logo-full-mkg.png");
}

.page-savate .logo-background {
  background-image: url("../images/logo-full-savate.png");
}

.page-ergovita .logo-background {
  background-image: url("../images/logo-full-ergovita.png");
}

/* ================= PAGE-SPECIFIC HERO IMAGES ================= */

/* Home page (index.html) */
.page-home {
  --hero-pos-x: 175%;
  --hero-pos-y: 50%;
  --hero-bg-opacity: 0.8;
}

.page-home .hero::after {
  background-size: 115% auto;
}

/* MKG page */
.page-mkg {
  --hero-bg: url("../images/hero_mkg_placeholder.JPG");
  --hero-pos-x: 0%;
  --hero-pos-y: 40%;
  --hero-bg-opacity: 0.8;
}

.page-mkg .hero::after {
  background-size: 105% auto;
}

/* Savate page */
.page-savate {
  --hero-bg: url("../images/hero_savate_placeholder.JPG");
  --hero-pos-x: 100%;
  --hero-pos-y: 45%;
  --hero-bg-opacity: 0.8;
}

.page-savate .hero::after {
  background-size: 115% auto;
}

/* Ergo Vita page */
.page-ergovita {
  --hero-bg: url("../images/hero_ergovita_placeholder.JPG");
  --hero-pos-x: 110%;
  --hero-pos-y: 60%;
  --hero-bg-opacity: 0.8;
}

.page-ergovita .hero::after {
  background-size: 115% auto;
}

/* Session Leaders page */
.page-leaders {
  --hero-bg: url("../images/Hero_placeholder.jpg");
  --hero-pos-x: 175%;
  --hero-pos-y: 50%;
  --hero-bg-opacity: 0.8;
}

.page-leaders .hero::after {
  background-size: 115% auto;
}

/* ================= PAGE-SPECIFIC HERO LOGOS ================= */
.page-mkg .hero-logo {
  right: -55%;
  top: 48%;
  height: 230px;
  opacity: 0.8;
}

.page-savate .hero-logo {
  right: -35%;
  top: 52%;
  height: 210px;
  opacity: 0.8;
}

.page-ergovita .hero-logo {
  right: -26%;
  top: 50%;
  height: 220px;
  opacity: 1;
}

/* ================= CONTACT SECTION ================= */
#contact {
  border-top: 3px solid var(--gold);
  padding-top: 3rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

/* MAP */
.map-wrapper {
  border: 2px solid var(--gold);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* CONTACT FORM CARD (navy with gold outline) */
.contact-form-wrapper {
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  height: 100%;
  display: flex;
  align-items: center;
}

/* Form content inside the navy card */
.contact-form-wrapper .contact-form {
  width: 100%;
  color: #f9f7f4;
}

.contact-intro {
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e5e7eb;
}

.contact-form-wrapper .form-group label {
  color: #f9f7f4;
  font-weight: 500;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--gold);
  color: #ffffff;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(195, 155, 58, 0.4);
}

/* Button stays gold */
.contact-form-wrapper .btn-primary {
  background-color: var(--gold);
  color: #000;
  border: 1px solid var(--gold);
  font-weight: 600;
}

/* Success message */
.form-success {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.7);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}

/* Keep heading + footer text in contact section dark */
#contact h2,
#contact .center-text {
  color: #222222;
}

/* Responsive contact layout */
@media (max-width: 900px) {
  .contact-row {
    grid-template-columns: 1fr;
  }

  .map-wrapper iframe {
    min-height: 320px;
  }
}

/* ================= MISC ================= */
.hidden {
  display: none !important;
}

/* ================= BACK TO TOP (Mobile Only) ================= */
.back-to-top {
  display: none; /* hidden by default */
  text-align: center;
  margin: 2rem auto 0;
  padding: 0.75rem 1.25rem;
  width: fit-content;
  font-family: "Rodfat Two Demo", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.back-to-top:hover {
  background: #062c63;
  transform: translateY(-3px);
}

/* Show ONLY on mobile */
@media (max-width: 700px) {
  .back-to-top {
    display: block;
  }
}