/* Layout: dark gym-floor pages, tall condensed uppercase headlines, one warm "Cascais sun" accent reserved for actions */
:root {
  --bg: #0d1215;
  --surface: #151c20;
  --surface-2: #1c252b;
  --line: #29353c;
  --fg: #edf1f3;
  --muted: #9aa8b0;
  --accent: #f1b33c;
  --accent-ink: #1b1404;
  --sea: #5aa7d6;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px;
  --max: 1160px;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
}
h1.display { font-size: clamp(2.9rem, 8.2vw, 6.2rem); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-family: var(--display); font-stretch: 85%; font-weight: 750; font-size: 1.35rem; line-height: 1.15; margin: 0; text-wrap: balance; }
.eyebrow, .label {
  font-family: var(--display); font-stretch: 100%; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0;
}
.label { color: var(--muted); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 58ch; margin: 0; }
.muted { color: var(--muted); }
p { margin: 0; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--display); font-stretch: 90%; font-weight: 750;
  font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--accent); cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #f6c25b; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); background: transparent; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 0.85rem; }
.text-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ---------- header ---------- */
#site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  font-family: var(--display); font-stretch: 72%; font-weight: 800;
  font-size: 1.45rem; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.bar-end { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 600 0.75rem/1 var(--body); letter-spacing: 0.06em; padding: 7px 9px; border-radius: 999px;
}
.lang-btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--fg);
  border-radius: 999px; padding: 8px 14px; font: 600 0.85rem var(--body); cursor: pointer;
}
@media (max-width: 960px) {
  .bar { gap: 12px; }
  .menu-btn { display: inline-block; }
  .bar-end { margin-left: auto; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; color: var(--fg); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav-cta { margin-top: 16px; }
}
@media (max-width: 480px) {
  .bar { gap: 8px; }
  .brand { font-size: 1.15rem; }
  .bar-end { gap: 6px; }
  .lang-btn { padding: 7px 6px; font-size: 0.7rem; }
  .menu-btn { padding: 8px 10px; font-size: 0.8rem; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); display: grid; gap: 36px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.section-head .stack { display: grid; gap: 12px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- photo placeholders ---------- */
.photo {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--r);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--fg) 4%, transparent) 14px 15px),
    var(--surface-2);
  border: 1px dashed var(--line);
  min-height: 260px;
  display: grid; place-items: center;
}
.photo img, .photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo video { z-index: 1; background: var(--surface-2); }
.photo .ph { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 16px; }
.photo.tall { aspect-ratio: 4 / 5; max-width: 100%; }
.photo.wide { aspect-ratio: 16 / 9; max-width: 100%; }

/* ---------- hero ---------- */
.hero { display: grid; gap: 40px; padding-block: clamp(40px, 7vw, 88px); align-items: center; }
.hero-text { display: grid; gap: 24px; min-width: 0; }
.hero-media { position: relative; min-width: 0; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .plan-card { position: absolute; left: -48px; bottom: 32px; width: 300px; }
}
.plan-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; display: grid; gap: 12px; margin-top: 16px; z-index: 2;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
}
.plan-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 0.92rem; }
.plan-tag { color: var(--sea); white-space: nowrap; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.plan-list .num { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.plan-foot { font-size: 0.85rem; color: var(--accent); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) 0; display: grid; gap: 22px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
@media (min-width: 640px) { .grid.two, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; display: grid; gap: 12px; align-content: start;
}
.card .num-tag { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--line); }
.card p { color: var(--muted); }
.card .text-link { margin-top: 6px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--fg); }
.checks li::before {
  content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23000'/%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23fff'/%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' stroke='%23000' stroke-width='2.2' fill='none'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='20' height='20' mask='url(%23m)'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- reviews ---------- */
.reviews { display: grid; gap: 16px; }
.reviews > * { min-width: 0; }
@media (min-width: 720px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; display: flex; flex-direction: column; gap: 18px;
}
.review blockquote { margin: 0; color: var(--muted); font-size: 0.98rem; }
.review blockquote::before { content: "“"; display: block; font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 0.6; color: var(--accent); margin-bottom: 10px; }
.review-who { display: flex; align-items: center; gap: 14px; }
.review-who strong { display: block; font-size: 1.02rem; }
.review-tag { display: block; color: var(--sea); font-size: 0.85rem; }
.avatar {
  position: relative; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--surface-2); border: 2px dashed var(--line);
  font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--muted);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- band (guide) ---------- */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band-inner { padding-block: clamp(56px, 8vw, 96px); display: grid; gap: 24px; }
@media (min-width: 900px) { .band-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }
.codeword {
  display: inline-block; font-family: var(--display); font-stretch: 72%; font-weight: 800;
  font-size: clamp(4rem, 12vw, 8rem); line-height: 0.85; color: var(--accent); letter-spacing: 0.02em;
}

/* ---------- steps / phases ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps > li { min-width: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 3px solid var(--accent); padding-top: 18px; display: grid; gap: 8px; }
.step .when { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.step p { color: var(--muted); }

/* ---------- about ---------- */
.about { display: grid; gap: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; } .about .photo { position: sticky; top: 100px; } }
.letter { display: grid; gap: 20px; max-width: 62ch; font-size: 1.08rem; }
.letter .sign { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 2.2rem; text-transform: uppercase; color: var(--accent); }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(110px, 0.6fr) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 16px; }
.contact-grid > * { min-width: 0; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { text-decoration: none; transition: border-color .15s ease; }
a.contact-card:hover { border-color: var(--accent); }
.contact-card .big { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; color: var(--fg); }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: 0.92rem; display: grid; gap: 6px; }
.form input, .form textarea {
  width: 100%; box-sizing: border-box; background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font: 400 1rem var(--body);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 130px; resize: vertical; }
.fine { font-size: 0.82rem; color: var(--muted); }
.form-status { font-weight: 600; color: var(--accent); min-height: 1.4em; }
.form .btn { justify-self: start; }

/* ---------- footer ---------- */
#site-footer { margin-top: 0; }
.foot-cta { background: var(--accent); color: var(--accent-ink); }
.foot-cta-inner { padding-block: clamp(48px, 7vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-cta .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.foot-cta .btn.ghost { background: transparent; color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.foot-grid { padding-block: 56px 24px; display: grid; gap: 32px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-grid .brand { display: inline-block; margin-bottom: 10px; }
.foot-links { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.foot-links a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--fg); }
.legal { padding-block: 16px 40px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }
