:root {
  --bg: #0a0a0a;
  --bg-alt: #141414;
  --card: #1b1b1b;
  --border: #2a2a2a;
  --text: #f2f2f0;
  --text-dim: #b7b3ac;
  --accent: #c3d92e;
  --accent-dark: #a5ba1f;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

p { margin: 0 0 16px; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.btn-accent {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-dark {
  background: #0a0a0a;
  color: var(--text);
}
.btn-lg { padding: 16px 32px; font-size: 0.95rem; }

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: block; }
.logo img {
  display: block;
  height: 72px;
  width: auto;
}

.main-nav { display: flex; gap: 14px; }
.main-nav a:not(.btn) {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.main-nav a:not(.btn):hover { color: var(--accent); }

.header-cta { white-space: nowrap; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Mobile menu overlay */
.mobile-menu[hidden] { display: none; }
.mobile-menu:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
/* Mobile menu buttons — both links reuse .btn.btn-accent as-is (same
   typography, colors, padding as the desktop header buttons); only width
   is adapted for an easy, comfortable tap target inside the overlay. */
.mobile-menu-cta {
  min-width: 220px;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding: 140px 0 90px;
  background-color: var(--bg);
  background-image:
    linear-gradient(96deg, rgba(10,10,10,0.94) 0%, rgba(10,10,10,0.62) 48%, rgba(10,10,10,0.28) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.12) 42%, var(--bg) 100%),
    url("../img/grup.webp");
  background-position: center 50%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0,0,0,0.5);
}
.hero .hero-lead { text-shadow: 0 2px 14px rgba(0,0,0,0.6); color: #e9e7e2; }
.hero-media { display: none; }
.hero-lead {
  max-width: 620px;
  font-size: 1.1rem;
}
.hero-reassure {
  max-width: 620px;
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--text-dim);
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}
.rating-line {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.rating-line strong { color: var(--text); }
.stars { color: var(--accent); letter-spacing: 2px; }
.dot { color: var(--border); }

/* Sections */
.section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section-lead { max-width: 640px; font-size: 1.05rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.location-line { margin-top: 24px; color: var(--text); }
.location-line strong { color: var(--accent); }
.section-cta { margin-top: 8px; }

/* Despre C15 — photo band */
#despre {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(10,10,10,0.90), rgba(10,10,10,0.84)),
    url("../img/despre.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid var(--border);
}
#despre .wrap { position: relative; z-index: 1; }
#despre p { color: #d7d4cd; text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
#despre h2 { text-shadow: 0 2px 16px rgba(0,0,0,0.5); }

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}
.feature-cards { display: grid; gap: 16px; }
.feature-text p:last-of-type { margin-bottom: 0; }
@media (max-width: 860px) {
  .feature-layout { grid-template-columns: 1fr; gap: 28px; }
}

/* Real C15 photos (CE ESTE + PENTRU CINE)
   Edge-faded so the photo dissolves into the section instead of sitting in a card.
   Fade = alpha mask built from 4 directional gradients, intersected. */
.section-photo {
  margin: 28px 0 8px;
  margin-left: -24px;                 /* reach into the outer .wrap gutter */
  width: calc(100% + 44px);
}
.section-photo img {
  display: block;
  width: 100%;
  height: auto;

  /* per-photo fade depths (edge → opaque); tuned to keep faces clear */
  --f-top: 15%;
  --f-bottom: 24%;
  --f-left: 7%;
  --f-right: 22%;

  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 var(--f-top)),
    linear-gradient(to top,    transparent 0, #000 var(--f-bottom)),
    linear-gradient(to right,  transparent 0, #000 var(--f-left)),
    linear-gradient(to left,   transparent 0, #000 var(--f-right));
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to bottom, transparent 0, #000 var(--f-top)),
    linear-gradient(to top,    transparent 0, #000 var(--f-bottom)),
    linear-gradient(to right,  transparent 0, #000 var(--f-left)),
    linear-gradient(to left,   transparent 0, #000 var(--f-right));
          mask-composite: intersect;
}

/* per-photo tuning — strongest fade never lands on a face/subject:
   #ce-este      = two people talking (second man's back sits at the right edge) → gentle right
   #pentru-cine  = coach + member on the rower (edges are ceiling / floor / equipment) → can fade harder */
#ce-este     .section-photo img { --f-top: 14%; --f-bottom: 22%; --f-left: 8%; --f-right: 12%; }
#pentru-cine .section-photo img { --f-top: 15%; --f-bottom: 24%; --f-left: 8%; --f-right: 22%; }

@supports not ((mask-composite: intersect) or (-webkit-mask-composite: source-in)) {
  /* very old browsers: single-edge fade toward the text, no hard card either */
  .section-photo img {
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--f-right));
            mask-image: linear-gradient(to left, transparent 0, #000 var(--f-right));
  }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-dim);
}
.check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 4px;
}
.card p { margin-bottom: 0; }

/* Discreet text link after a card grid (e.g. "CE URMEAZĂ" → /program) */
.section-more {
  display: inline-block;
  margin-top: 28px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--accent);
}
.section-more:hover { color: var(--text); }

.card-grid.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  column-gap: 20px;
  align-items: start;
}
.testimonial {
  break-inside: avoid;
  margin-bottom: 20px;
}
.testimonial .stars { margin-bottom: 12px; font-size: 0.9rem; display: block; }
.testimonial p { margin-bottom: 12px; }
.testimonial-author {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 14px;
  margin-bottom: 0;
}
.reviews-cta { margin-top: 8px; }

/* Program hero (/program) — compact, no photo, unlike the homepage hero.
   Keeps the schedule close to the fold instead of pushing it down the page. */
.program-hero { padding: 150px 0 40px; }
.program-hero .hero-lead { max-width: 620px; font-size: 1.05rem; }

/* Program blocks (/program) — reusable photo + content layout for a class
   offering. Both OnRamp sections share this exact markup/class structure so
   future class types (Membership, Kids, PT) can reuse it unchanged. */
.program-media { margin: 0; overflow: hidden; }
.program-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.program-content { display: flex; flex-direction: column; justify-content: center; }

.class-schedule { margin: 4px 0 28px; }
.schedule-label {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.schedule-times {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text);
}
.schedule-times span { display: block; margin-bottom: 4px; }
.schedule-times span:last-child { margin-bottom: 0; }

/* Weekly CrossFit class schedule (/program, dynamic — see js/schedule.js) */
.weekly-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px 20px;
  margin: 20px 0 36px;
}
.weekly-schedule-day {
  border-top: 2px solid var(--border);
  padding-top: 16px;
}
.schedule-status { color: var(--text-dim); }

/* Form */
.booking-form { max-width: 640px; margin-top: 32px; }
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-row-split { flex-direction: row; gap: 20px; }
.form-row-split > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }

label {
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dim);
}

input, textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 3px;
  width: 100%;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
input.invalid, textarea.invalid { border-color: #d9534f; }

.error-msg {
  color: #e08b87;
  font-size: 0.8rem;
  min-height: 1em;
  display: block;
}

.btn-submit { margin-top: 8px; }
.form-fallback { font-size: 0.85rem; margin-top: 16px; }
.form-fallback a { color: var(--accent); }

.form-success {
  max-width: 640px;
  margin-top: 32px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 4px;
}
.form-success h3 { color: var(--accent); }
.form-success p { margin: 0; }

/* CTA band */
.cta-band {
  background: var(--accent);
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: #0a0a0a; }
.cta-band p { max-width: 540px; margin: 0 auto 20px; color: #14110c; }
.cta-band .btn { margin-top: 8px; }

/* Footer */
.site-footer { background: var(--bg-alt); padding: 60px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .footer-logo { font-family: var(--font-head); font-weight: 700; }
.site-footer h4 {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.site-footer a, .site-footer p { display: block; color: var(--text-dim); margin-bottom: 8px; font-size: 0.9rem; }
.site-footer a:hover { color: var(--accent); }
.footer-note { font-size: 0.8rem; color: #6f6b64; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-bottom a { display: inline; color: var(--text-dim); text-decoration: underline; }
.footer-bottom a:hover { color: var(--accent); }

/* Legal pages */
.legal { padding: 120px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-dim); }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.88em;
}
.legal-updated { font-size: 0.85rem; color: #6f6b64; margin-bottom: 8px; }
.legal-back { margin-top: 48px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 0.92rem;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-table th { color: var(--text); background: var(--bg-alt); }
.legal-table td { color: var(--text-dim); }

/* Cookie consent banner */
#c15-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  gap: 16px 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
}
#c15-consent p { margin: 0; max-width: 620px; }
#c15-consent a { color: var(--accent); }
#c15-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
#c15-consent button {
  padding: 9px 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
}
#c15-consent button.c15-accept {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 60px;
    background: var(--bg);
  }
  .site-header { position: absolute; }
  .logo img { height: 56px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .hero-media { display: block; }
  .hero-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1537 / 1023;
    background: url("../img/grup.webp") center 35% / cover no-repeat var(--bg);
  }
  .hero-photo::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 96px;
    background: linear-gradient(180deg, rgba(10,10,10,0.72), transparent);
  }
  .hero-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 44%;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(10,10,10,0.10) 32%,
      rgba(10,10,10,0.42) 60%,
      rgba(10,10,10,0.82) 86%,
      var(--bg) 100%
    );
  }
  .hero-stripe {
    display: none;
  }

  .hero .wrap { padding-top: 34px; }
  .hero h1,
  .hero .hero-lead,
  .hero .hero-reassure { text-shadow: none; }
  .hero .hero-lead { color: var(--text-dim); }

  .section { padding: 52px 0; }
  .cta-band { padding: 44px 0; }

  /* Photos: full-bleed, fade only top & bottom into the section (no side fade) */
  .section-photo {
    margin: 22px -24px 12px;
    width: auto;
  }
  .section-photo img,
  #ce-este .section-photo img,
  #pentru-cine .section-photo img {
    --f-top: 11%;
    --f-bottom: 16%;
    --f-left: 0%;
    --f-right: 0%;
  }

  .form-row-split { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }

  .program-hero { padding: 96px 0 32px; }
  .program-media img { min-height: 240px; }

  .weekly-schedule { grid-template-columns: 1fr; gap: 24px; }
}
