/*
  Be Relentless Fitness Center — shared stylesheet for every page.
  All .html pages link this one file, so a change here (e.g. a color or
  font) shows up everywhere at once.
*/

/* Theme color variables — change these to restyle the whole site. */
:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --card: #120d0c;
  --fg: #ececec;
  --muted: #a3a3a3;
  --border: #3a2a28;
  --primary: #e2402a;
  --primary-foreground: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3 {
  font-family: "Anton", "Oswald", ui-sans-serif, sans-serif;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--primary);
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 3px;
  padding: 0.95rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  transform: scale(1.03);
  background: #c8341f;
}

.btn-outline {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--fg);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(226, 64, 42, 0.4);
}

.brand span {
  font-family: "Anton", "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.1rem;
  white-space: nowrap;
}

.brand strong {
  color: var(--primary);
  font-weight: 400;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.6rem 1.25rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 1.1rem;
}

.nav-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu .container {
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.mobile-menu a {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(58, 42, 40, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.mobile-menu a:last-of-type {
  border-bottom: none;
}

.mobile-menu a[aria-current="page"] {
  color: var(--primary);
}

.mobile-menu .btn {
  margin: 0.75rem 0;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9), var(--bg));
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 6rem 1.25rem;
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.75rem, 12vw, 7rem);
  line-height: 0.9;
}

.hero h1 .accent {
  color: var(--primary);
  display: block;
}

.hero-tag {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.25rem;
  color: var(--muted);
}

.hero-copy {
  margin-top: 1rem;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero .hero-inner {
  min-height: 0;
  padding: 5rem 1.25rem;
  align-items: center;
  max-width: 50rem;
}

.page-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 8vw, 4rem);
}

.page-hero p {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Sections ---------- */

section {
  padding: 4.5rem 0;
}

.section-border {
  border-top: 1px solid var(--border);
}

.section-alt {
  background: rgba(31, 26, 25, 0.3);
}

.section-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

/* ---------- Grid cards ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-4 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 3px;
  padding: 1.5rem;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: rgba(226, 64, 42, 0.6);
}

.card h3 {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.card p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Store: product cards ---------- */

.product-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(226, 64, 42, 0.16), transparent 65%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-icon {
  width: 45%;
  height: 45%;
  color: var(--primary);
  opacity: 0.9;
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-card .product-price {
  margin-top: 0;
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  color: var(--fg);
}

/* ---------- Plans (memberships) ---------- */

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 3px;
  padding: 1.5rem;
  isolation: isolate;
}

.plan.featured {
  border-color: var(--primary);
  background: linear-gradient(to bottom, rgba(226, 64, 42, 0.12), var(--card));
}

.plan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.plan-name {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1.1rem;
  color: var(--muted);
}

.plan-subtext {
  margin-top: 0.25rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}

.plan-price-row {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.plan-price {
  font-family: "Anton", sans-serif;
  font-size: 3rem;
  line-height: 1;
}

.plan-save {
  padding-bottom: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
}

.plan-term {
  margin-top: 0.5rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  min-height: 1rem;
}

.plan-divider {
  margin-top: 1.25rem;
  height: 1px;
  width: 100%;
  background: var(--border);
}

.plan-perks {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  flex: 1;
}

.plan-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.35rem 0;
}

.plan-perks li::before {
  content: "";
  margin-top: 0.4rem;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--primary);
}

.plan .btn {
  margin-top: 1.75rem;
}

/* ---------- Classes timetable ---------- */

.class-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 3px;
  padding: 1.5rem 1.75rem;
}

.class-card + .class-card {
  margin-top: 1.5rem;
}

.class-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.class-header h2 {
  font-size: 1.5rem;
}

.class-coach {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}

.class-desc {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.class-schedule {
  list-style: none;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.class-schedule li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.class-schedule li span:last-child {
  color: var(--fg);
}

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

.trainer-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 3px;
  padding: 2rem;
}

.trainer-card + .trainer-card {
  margin-top: 2rem;
}

.trainer-card h2 {
  margin-top: 0.5rem;
  font-size: 1.75rem;
}

.trainer-card .bio {
  margin-top: 1.25rem;
}

.trainer-card .bio p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.trainer-card .bio p + p {
  margin-top: 1rem;
}

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

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

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-list a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.contact-list a:hover {
  color: var(--primary);
}

.hours-card {
  position: relative;
  margin-top: 2rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 3px;
  padding: 1.5rem;
}

.hours-card h2 {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
}

.hours-card ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.hours-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hours-card li span:last-child {
  color: var(--fg);
}

/* ---------- Form ---------- */

.form-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 3px;
  padding: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}

.field:first-child {
  margin-top: 0;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-status.success {
  color: var(--primary);
}

.form-status.error {
  color: #f87171;
}

/* ---------- Account / admin tables & lists ---------- */

.simple-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.simple-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.simple-list li:last-child {
  border-bottom: none;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 32rem;
}

.data-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.data-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table select {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(226, 64, 42, 0.4);
}

.footer-brand span {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.1rem;
}

.footer-tag {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-social {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.site-footer h3 {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
}

.footer-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-list a {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-list a:hover {
  color: var(--primary);
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-hours li span:last-child {
  color: var(--fg);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ---------- Animated border glow ---------- */
/* A comet of light chases around the border of a card on hover, plus a
   soft outer glow — both built from the existing --primary color only. */

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes border-spin {
  to {
    --border-angle: 360deg;
  }
}

.card,
.plan,
.class-card,
.trainer-card,
.hours-card,
.form-card {
  transition: border-color 0.15s ease, box-shadow 0.3s ease;
}

.card::before,
.plan::before,
.class-card::before,
.trainer-card::before,
.hours-card::before,
.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    var(--primary) 60deg,
    transparent 150deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: border-spin 3.5s linear infinite;
  animation-play-state: paused;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover,
.plan:hover,
.class-card:hover,
.trainer-card:hover,
.hours-card:hover,
.form-card:hover {
  box-shadow: 0 0 0 1px rgba(226, 64, 42, 0.2), 0 12px 32px -12px rgba(226, 64, 42, 0.55);
}

.card:hover::before,
.plan:hover::before,
.class-card:hover::before,
.trainer-card:hover::before,
.hours-card:hover::before,
.form-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

.plan.featured {
  box-shadow: 0 12px 32px -14px rgba(226, 64, 42, 0.5);
}

.plan.featured::before {
  opacity: 0.6;
  animation-play-state: running;
}

.plan.featured:hover::before {
  opacity: 1;
}
