/* ==========================================================
   CASCAIS FIGHT CENTER — design tokens
   Palette: black + white + "azulão" (electric royal blue)
   Type: Oswald (display, angular/condensed) + Inter (body) + JetBrains Mono (data/labels)
   Signature: diagonal "strike line" cuts referencing a punch/kick trajectory
   ========================================================== */

:root {
  --black: #060708;
  --panel: #0d0f12;
  --panel-2: #14171c;
  --line: #24282f;
  --blue: #16264a;
  --blue-bright: #3a5691;
  --blue-light: #6f93d9;
  --ember: #ff5a1f;
  --ember-dim: #e0480f;
  --fitness: #e0399e;
  --hit-green: #2fbf71;
  --kids-gold: #ffb545;
  --white: #f4f5f7;
  --grey: #9aa0ab;
  --grey-dim: #5b616c;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }

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

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  color: var(--blue-bright);
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blue-bright); }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .98;
  margin: 0;
  font-weight: 600;
}
h2 { font-size: clamp(30px, 4.6vw, 48px); }
h3 { font-size: 19px; }
p { color: var(--grey); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 94% 100%, 0 100%);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ember); color: var(--white); font-weight: 700; }
.btn-primary:hover { background: var(--ember-dim); transform: translate(-2px,-2px); }
.btn-secondary { border-color: var(--line); color: var(--white); background: transparent; }
.btn-secondary:hover { border-color: var(--white); transform: translate(-2px,-2px); }

/* ---------- real photo frames ---------- */
.photo-frame { overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame img.pos-top { object-position: 50% 12%; }
.mod-card .photo-frame { aspect-ratio: 4/3; }
.team-card .photo-frame { aspect-ratio: 3/4; }
.hero-photo.photo-frame { aspect-ratio: 4/5; }
@media (max-width: 939px) { .hero-photo.photo-frame { aspect-ratio: 16/9; } }

/* ---------- placeholder photo blocks ---------- */
/* PLACEHOLDER: substituir por fotos/vídeos reais do CFC antes do go-live */
.ph-photo {
  position: relative;
  background: linear-gradient(155deg, var(--panel-2), var(--panel) 60%, var(--black));
  border: 1px solid var(--line);
  display: flex; align-items: flex-end;
  overflow: hidden;
  min-height: 220px;
}
.ph-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(58,86,145,0.09) 0 2px, transparent 2px 14px);
}
.ph-photo::after {
  content: attr(data-label);
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--grey-dim);
  border: 1px solid var(--line);
  padding: 4px 8px;
}
.ph-tag {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  color: var(--line);
  font-size: clamp(28px, 4vw, 44px);
  padding: 18px 20px;
  -webkit-text-stroke: 1px var(--grey-dim);
  color: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,7,8,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo-word { font-family: var(--font-display); font-size: 15px; letter-spacing: .04em; display: none; }
@media (min-width: 480px) { .logo-word { display: block; } }

.nav-links { display: none; gap: 30px; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a { color: var(--grey); transition: color .15s ease; }
.nav-links a:hover { color: var(--blue-bright); }

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; background: none; border: 1px solid var(--line); color: var(--white);
  padding: 8px 12px; cursor: pointer; font-family: var(--font-mono); font-size: 12px;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--line); background: var(--panel); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 16px 24px; font-family: var(--font-mono); text-transform: uppercase; font-size: 13px; border-bottom: 1px solid var(--line); color: var(--grey); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 480px at 85% -10%, rgba(58,86,145,.28), transparent 60%),
    radial-gradient(ellipse 700px 400px at 6% 110%, rgba(255,90,31,.10), transparent 60%),
    var(--black);
}
.hero-inner {
  display: grid; gap: 40px;
  padding-bottom: 56px;
}
@media (min-width: 940px) { .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.hero-title { font-size: clamp(44px, 7.4vw, 84px); }
.hero-title .accent { color: var(--ember); }
.hero-sub { max-width: 480px; margin-top: 24px; font-size: 16.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero-photo { aspect-ratio: 4/5; }
@media (max-width: 939px) { .hero-photo { aspect-ratio: 16/9; } }

.principle-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.principle-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between;
  padding: 22px 24px; font-family: var(--font-mono); font-size: 12.5px; color: var(--grey);
  text-transform: uppercase; letter-spacing: .04em;
}
.principle-strip strong { color: var(--white); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 48px; max-width: 640px; }
.section-head p { font-size: 16px; }
.tagline-mono { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ember); margin-bottom: 4px; }

/* philosophy — two audiences */
.audience-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
.audience-card { background: var(--black); padding: 36px 32px; }
.audience-card h3 { font-size: 22px; margin-bottom: 14px; }
.audience-card .tag { font-family: var(--font-mono); font-size: 11px; color: var(--blue-bright); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; display: block; }
.audience-card p { font-size: 15px; }

/* modalidades */
.mod-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 800px) { .mod-grid { grid-template-columns: repeat(3, 1fr); } }
.mod-card { background: var(--black); display: flex; flex-direction: column; }
.mod-card .ph-photo { aspect-ratio: 4/3; min-height: 0; }
.mod-body { padding: 24px 22px; flex: 1; }
.mod-idx { font-family: var(--font-mono); color: var(--grey-dim); font-size: 12px; }
.mod-body h3 { margin-top: 10px; }
.mod-body p { font-size: 14px; margin-top: 10px; }
.mod-note { font-family: var(--font-mono); font-size: 11px; color: var(--blue-bright); margin-top: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* galeria — carrossel a ecrã inteiro */
.gallery-carousel {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  height: 60vh;
  min-height: 340px;
  max-height: 720px;
  overflow: hidden;
  background: var(--black);
}
.gallery-track { position: relative; width: 100%; height: 100%; }
.gallery-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.gallery-slide.is-active { opacity: 1; }
.gallery-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(28px) brightness(.5);
  transform: scale(1.15);
}
.gallery-slide img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.gallery-dots {
  position: absolute; left: 0; right: 0; bottom: 18px;
  display: flex; justify-content: center; gap: 10px;
  z-index: 2;
}
.gallery-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(244,245,247,.35);
  border: none; padding: 0; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.gallery-dots button.is-active { background: var(--ember); transform: scale(1.25); }

/* horario */
.schedule-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.schedule { width: 100%; border-collapse: collapse; min-width: 900px; font-family: var(--font-mono); font-size: 12.5px; }
table.schedule th, table.schedule td { border: 1px solid var(--line); padding: 11px 10px; text-align: left; vertical-align: top; }
table.schedule th { background: var(--panel); text-transform: uppercase; letter-spacing: .05em; color: var(--grey); font-weight: 400; font-size: 10.5px; border-bottom: 2px solid var(--blue-bright); }
table.schedule td.time { color: var(--grey); white-space: nowrap; }
table.schedule td small { color: var(--grey-dim); font-size: 10.5px; }
.class-pill { display: inline-block; padding: 2px 0; font-weight: 700; }
.class-pill.blue { color: var(--blue-light); }
.class-pill.kids { color: var(--kids-gold); }
.class-pill.grey { color: var(--grey); }
.class-pill.ember { color: var(--ember); }
.class-pill.fitness { color: var(--fitness); }
.class-pill.hit { color: var(--hit-green); }

/* barra colorida à esquerda de cada célula com aula, como no horário oficial */
table.schedule td:has(.class-pill) { position: relative; padding-left: 16px; }
table.schedule td:has(.class-pill)::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
}
table.schedule td:has(.class-pill.blue)::before { background: var(--blue-light); }
table.schedule td:has(.class-pill.grey)::before { background: var(--grey-dim); }
table.schedule td:has(.class-pill.kids)::before { background: var(--kids-gold); }
table.schedule td:has(.class-pill.fitness)::before { background: var(--fitness); }
table.schedule td:has(.class-pill.hit)::before { background: var(--hit-green); }
.schedule-note { margin-top: 18px; font-size: 13px; color: var(--grey-dim); }

/* equipa */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 720px; }
@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { border: 1px solid var(--line); }
.team-card .ph-photo { aspect-ratio: 3/4; min-height: 0; }
.team-info { padding: 18px 20px 22px; }
.team-info h3 { text-transform: none; font-family: var(--font-body); font-weight: 700; font-size: 18px; }
.team-role { font-family: var(--font-mono); font-size: 12px; color: var(--blue-bright); text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }

/* publico-alvo */
.for-you-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .for-you-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .for-you-grid { grid-template-columns: repeat(3, 1fr); } }
.for-you-card { border-left: 3px solid var(--blue); background: var(--panel); padding: 22px 22px; }
.for-you-card h3 { font-size: 16px; text-transform: none; font-family: var(--font-body); font-weight: 700; }
.for-you-card p { font-size: 14px; margin-top: 8px; }

/* contacto */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--grey-dim); letter-spacing: .06em; margin-bottom: 4px; }
.contact-list .value { font-size: 16px; }
.contact-note { font-size: 13px; color: var(--grey-dim); margin-top: 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-fine { font-family: var(--font-mono); font-size: 12px; color: var(--grey-dim); }
.footer-social { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 12px; }
.footer-social a { color: var(--grey); }
.footer-social a:hover { color: var(--blue-bright); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* whatsapp floating CTA */
.whatsapp-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: #25D366;
  color: #06110b;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.55); }
.whatsapp-float span { display: none; }
@media (min-width: 560px) { .whatsapp-float span { display: inline; } }

/* preview banner */
.preview-banner {
  background: var(--blue); color: var(--white);
  font-family: var(--font-mono); font-size: 12.5px; text-align: center;
  padding: 10px 16px; letter-spacing: .03em;
}
