@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand accent */
  --red: #c1272d;
  --red-dark: #8f1414;
  --red-glow: rgba(193, 39, 45, 0.35);

  /* Dark theme surfaces */
  --bg: #0a0a0c;
  --bg-alt: #131316;
  --card: #18181c;
  --card-alt: #1e1e23;
  --card-border: #29292f;

  /* Text */
  --white: #ffffff;
  --black: #0a0a0c;
  --text: #d8d8dd;
  --text-dim: #8d8d96;

  /* Legacy tokens still used by the manager portal (light UI) */
  --off-white: #f5f5f5;
  --gray: #6b6b6b;
  --border: #e6e6e6;
  --error: #ff5252;

  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --max-width: 1180px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  text-transform: uppercase;
  color: var(--white);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.accent { color: var(--red); }

/* ---------- Reveal-on-scroll ----------
   Sections render fully visible by default (see the comment in main.js) —
   main.js adds .reveal-hidden right before it starts observing them, so a
   script error elsewhere can never leave a section permanently invisible. */

.reveal-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-hidden.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-hidden { transition: none; opacity: 1; transform: none; }
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
  background: var(--bg);
}

.section--tight {
  padding: 2.5rem 0;
}

.section--off {
  background: var(--bg-alt);
}

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head p {
  color: var(--text-dim);
  margin-bottom: 0;
}

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.open-status::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent);
  flex-shrink: 0;
}

.open-status.is-open { color: #3bb54a; }
.open-status.is-closed { color: var(--text-dim); }

.status-bar {
  display: flex;
  justify-content: center;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--card-border);
}

.status-bar .open-status { margin: 0; font-size: 0.8rem; }

.status-bar:has(.open-status[hidden]) { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 26px var(--red-glow);
}

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

.btn-outline {
  background: transparent;
  border-color: var(--card-border);
  color: var(--white);
}

.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-dark {
  background: var(--bg);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

.btn-dark:hover { background: var(--card); border-color: var(--white); }

.btn-block { width: 100%; justify-content: center; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }

.btn-ghost {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.btn-danger {
  background: transparent;
  border-color: var(--error);
  color: var(--error);
}

.btn-danger:hover { background: var(--error); color: var(--white); }

.whatsapp-icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.fb-icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.btn-facebook {
  background: #1877f2;
  box-shadow: 0 10px 26px rgba(24, 119, 242, 0.35);
}

.btn-facebook:hover { background: #145dc4; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.92);
  border-bottom: 1px solid var(--card-border);
  /* No backdrop-filter here: it (like transform/filter) makes this element
     the containing block for any position:fixed descendant, which would
     trap .main-nav and .nav-overlay inside the header's own box instead of
     the viewport — shrinking the mobile menu to a sliver pinned at the top. */
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
}

.brand-logo {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}

.brand-main span { color: var(--red); }

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.main-nav a:hover { color: var(--red); }

.header-cta { display: flex; align-items: center; gap: 0.8rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--card-border);
  color: var(--white);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

.nav-close { display: none; }

.nav-overlay { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--bg);
  color: var(--white);
  border-bottom: 1px solid var(--card-border);
}

.hero-inner {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  max-width: 640px;
}

.hero-inner p {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 46ch;
}

.hero-inner .open-status { margin-bottom: 0.4rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

/* ---------- Announcement ticker ---------- */

.announce-bar {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
}

.announce-bar[hidden] { display: none; }

.announce-track {
  display: inline-flex;
  gap: 3.5rem;
  padding: 0.55rem 0;
  animation: marquee 28s linear infinite;
}

.announce-track span {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Specials ---------- */

.specials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.special-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.special-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55);
}

.special-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  /* Specials photos are often flyer graphics with text baked in near the
     edges, and come in whatever aspect ratio was supplied — object-fit:
     cover cropped some of that text off (e.g. the Women's Month flyer).
     contain + a background fill shows the whole image instead. */
  object-fit: contain;
  background: var(--bg-alt);
  transition: transform 0.5s ease;
}

.special-card:hover .special-photo { transform: scale(1.04); }

.special-card-body {
  padding: 1.6rem;
}

.special-card .tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.special-card .price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--white);
  margin: 0.4rem 0 0.6rem;
}

.special-card p { color: var(--text-dim); }

.empty-note {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- Loading skeletons ---------- */
/* Shown as the initial markup of a Firestore-driven grid, before JS has
   loaded real data; the render functions overwrite it once data arrives. */

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.skel-line {
  background: var(--card-alt);
  border-radius: 6px;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.skel-photo {
  aspect-ratio: 4 / 3;
  background: var(--card-alt);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

/* ---------- Gym times ---------- */

.times-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.times-table th, .times-table td {
  text-align: left;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--card-border);
}

.times-table th {
  background: var(--red);
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}

.times-table td { color: var(--text); }

.times-table tr:last-child td { border-bottom: none; }

.times-table tr:nth-child(even) td { background: var(--card-alt); }

/* ---------- Facilities ---------- */

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-auto-flow: dense;
  gap: 1.4rem;
}

/* Every 3rd card (starting with the first) gets extra room — breaks up
   what would otherwise be a uniform wall of identical cards. Safe at any
   card count: with fewer than 2 columns available it just behaves like a
   normal 1-column card. */
.facility-card:nth-child(3n+1) {
  grid-column: span 2;
}

.facility-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.facility-card:hover { border-color: var(--red); transform: translateY(-3px); }

.facility-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: rgba(193, 39, 45, 0.14);
  color: var(--red);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.facility-card .icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.facility-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

.facility-card p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 1rem;
}

/* A repeating bento pattern — a couple of bigger tiles mixed in with the
   rest, instead of a uniform wall of same-size squares. Safe at any photo
   count: dense packing just fills gaps, and a single photo still renders
   fine on its own. */
.gallery-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(5n+4) { grid-row: span 2; }

.gallery-item {
  position: relative;
  margin: 0;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
  border: 1px solid var(--card-border);
}

/* The image always fills the whole tile — a caption used to share that
   space and shrink the image to fit, which is what was forcing such a
   tight, over-zoomed crop on captioned photos. The caption now floats over
   the photo instead of competing with it for room. */
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.07); }

/* ---------- Trainers ---------- */

.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.trainer-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.trainer-card:hover { border-color: var(--red); transform: translateY(-3px); }
.trainer-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.trainer-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--red);
  padding: 3px;
  transition: transform 0.2s ease;
}

.trainer-card:hover .trainer-photo { transform: scale(1.06); }

.trainer-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-alt);
  color: var(--red);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  border: 3px solid var(--red);
}

.trainer-spec {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.trainer-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0 0 0.4rem;
}

.trainer-card p { color: var(--text-dim); }

.trainer-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.trainer-chip {
  background: var(--card-alt);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.trainer-chip--more {
  color: var(--red);
  border-color: var(--red-glow);
}

.trainer-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.trainer-card-actions .btn { margin-top: 0 !important; }

/* ---------- Coach contact number ---------- */

.trainer-contact { margin-top: 0.9rem; }

.trainer-contact-empty {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-style: italic;
}

.trainer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.trainer-contact-link svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex-shrink: 0;
}

.trainer-contact-link:hover { color: var(--red); }

.trainer-contact-link--button {
  width: 100%;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 10px 26px var(--red-glow);
  transition: background 0.15s ease, transform 0.15s ease;
}

.trainer-contact-link--button svg { color: var(--white); }

.trainer-contact-link--button:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.trainer-modal-contact { margin-top: 0.4rem; }

.trainer-modal-contact .trainer-contact-empty {
  display: block;
  text-align: center;
  padding: 0.85rem 0;
}

/* ---------- Coach profile popup ---------- */

.trainer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  animation: trainerFadeIn 0.18s ease;
}

body.modal-open { overflow: hidden; }

@keyframes trainerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.trainer-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: trainerPopIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes trainerPopIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.trainer-modal:focus { outline: none; }

.trainer-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(10, 10, 12, 0.6);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.trainer-modal-close:hover { background: var(--red); border-color: var(--red); }

.trainer-modal-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--card-border);
}

.trainer-modal-photos--split { grid-template-columns: 1fr 1fr; }

.trainer-modal-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card-alt), var(--bg-alt));
}

.trainer-modal-photos--split .trainer-modal-photo { aspect-ratio: 1 / 1; }

.trainer-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trainer-modal-photo--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    repeating-linear-gradient(135deg, rgba(193, 39, 45, 0.06) 0 12px, transparent 12px 24px),
    var(--card-alt);
}

.trainer-modal-photo-initial {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.4rem;
  color: var(--red);
  border: 3px solid var(--red);
  border-radius: 50%;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trainer-modal-photo-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trainer-modal-body {
  padding: 1.6rem 1.8rem 1.9rem;
}

.trainer-modal-spec {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.trainer-modal-body h3 {
  margin: 0 0 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.trainer-modal-facilities {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.trainer-modal-facilities svg {
  width: 15px;
  height: 15px;
  color: var(--red);
  flex-shrink: 0;
}

.trainer-modal-services {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.trainer-modal-services li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text);
  font-size: 0.92rem;
}

.trainer-modal-services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}

.trainer-modal-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
}

.trainer-modal-bio {
  color: var(--text);
  margin: 0.8rem 0 1.4rem;
  line-height: 1.6;
}

.trainer-modal-products {
  background: var(--card-alt);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.4rem;
}

.trainer-modal-products h4 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

.trainer-modal-product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.trainer-card .btn { margin-top: 0.8rem; }

/* ---------- Refer a friend ---------- */

.refer-band {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow);
}

.refer-badge {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(193, 39, 45, 0.14);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.refer-badge svg { width: 2.2rem; height: 2.2rem; }

.refer-copy h2 { margin-bottom: 0.5rem; }

.refer-copy p {
  color: var(--text-dim);
  max-width: 60ch;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .refer-band {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.6rem;
  }

  .refer-copy p { margin-left: auto; margin-right: auto; }
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border: 2px solid var(--red);
  transform: translateY(-8px);
  box-shadow: 0 25px 60px var(--red-glow);
}

.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.price-card .term {
  color: var(--text-dim);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.price-card .amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  color: var(--red);
  margin: 0.2rem 0;
}

.price-card .amount small {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 600;
}

.price-card .note {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.numbered-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.numbered-list li {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--white);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.numbered-list li:hover {
  border-color: var(--red);
  background: var(--card-alt);
  transform: translateX(4px);
}

.numbered-list .num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9px;
  background: rgba(193, 39, 45, 0.16);
  border: 1px solid rgba(193, 39, 45, 0.4);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.about-stack {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
}

.about-stack-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.8rem 1.8rem 2.4rem;
  box-shadow: var(--shadow);
  position: relative;
}

.about-stack-card h3 { color: var(--red); font-size: 1.15rem; }

.about-stack-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.about-stack-card li { margin-bottom: 0.5rem; }

.about-badge {
  width: 3.4rem;
  height: 3.4rem;
  margin: -1.7rem 0 -1.7rem 1.6rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px var(--red-glow);
  z-index: 2;
}

.about-badge svg { width: 1.6rem; height: 1.6rem; }

/* ---------- Steps / Getting Started ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.step-card .step-num {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  box-shadow: 0 10px 24px var(--red-glow);
}

.step-card h3 { font-size: 1.1rem; }
.step-card p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-band-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* A strong, near-opaque brand-red overlay (plus a faint diagonal texture)
   sits above the photo — so whichever photo is picked, it only ever reads
   as subtle texture behind the red band, never competes with the white
   text on top of it. */
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 26px),
    linear-gradient(120deg, rgba(193, 39, 45, 0.92), rgba(143, 20, 20, 0.92));
  pointer-events: none;
}

.cta-band .container { position: relative; z-index: 2; }

.cta-band h2 { color: var(--white); }

.cta-band p { color: rgba(255,255,255,0.9); max-width: 50ch; margin: 0 auto 1.6rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.contact-list span { color: var(--white); }

.contact-list strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.parking-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.parking-note[hidden] { display: none; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  min-height: 260px;
  filter: grayscale(0.3) invert(0.92) contrast(0.9);
}

.map-embed iframe { width: 100%; height: 100%; min-height: 260px; border: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  color: var(--text-dim);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.footer-grid a { text-decoration: none; color: var(--text-dim); }
.footer-grid a:hover { color: var(--red); }

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links[hidden] { display: none; }

.social-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.social-links a:hover { color: var(--red); border-color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 1.2rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--text-dim);
}

.footer-bottom a:hover { color: var(--red); }

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 60;
  background: #25d366;
  color: var(--white);
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.5);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.whatsapp-float:hover { transform: scale(1.08); }

.whatsapp-float svg { width: 1.7rem; height: 1.7rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-close { display: none; }

  .main-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 300px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 4.5rem 1.5rem 1.5rem;
    gap: 1.3rem;
    border-left: 1px solid var(--card-border);
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 70;
    overflow-y: auto;
  }

  .site-header.nav-open .main-nav { transform: translateX(0); }

  .main-nav .nav-close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 60;
  }

  .site-header.nav-open .nav-overlay { display: block; }

  .header-cta .btn-primary span.btn-text-full { display: none; }
}

@media (max-width: 520px) {
  /* Below this, the gallery/facilities grids are down to one column anyway
     — force every tile back to a single span so the bento sizing doesn't
     fight a single-column layout. */
  .gallery-item:nth-child(5n+1),
  .gallery-item:nth-child(5n+4) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .facility-card:nth-child(3n+1) {
    grid-column: span 1;
  }
}
