/* Clube de Regatas Saldanha da Gama — estilos do site */

:root {
  --bg: #ffffff;
  --soft: #f2f5f4;
  --ink: #15202b;
  --text: #3b4650;
  --muted: #6a757e;
  --line: #e1e7e5;

  --accent: #0a6a72;
  --accent-hover: #08555c;
  --accent-soft: #e2f0ef;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --pad: clamp(18px, 4vw, 40px);
  --radius-lg: 28px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17.5px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Botões e links */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline { border-color: #c9d3d0; color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link::after { content: "→"; transition: transform .15s ease; }
.link:hover::after { transform: translateX(3px); }

a[href^="tel:"], a[href^="https://wa.me"]:not(.btn) { white-space: nowrap; }

.kicker { color: var(--accent); font-weight: 600; font-size: 15px; }

/* Cabeçalho */

.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.header.is-scrolled { border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(8px)) { .header { background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); } }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.brand strong { font-size: 18px; color: var(--ink); font-weight: 700; letter-spacing: -0.015em; }

.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; white-space: nowrap;
}
.nav a:not(.btn):hover { background: var(--soft); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { margin-left: 10px; }

.menu-btn {
  display: none; min-height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid #c9d3d0; background: #fff; color: var(--ink);
  font: 600 15px/1 var(--font); cursor: pointer;
}
.menu-btn .when-open { display: none; }
.menu-btn[aria-expanded="true"] .when-open { display: inline; }
.menu-btn[aria-expanded="true"] .when-closed { display: none; }

@media (max-width: 980px) {
  .header .wrap { flex-wrap: wrap; }
  .nav ul { flex-wrap: wrap; }
  .js .menu-btn { display: inline-block; }
  .js .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 22px; box-shadow: 0 18px 30px rgba(21, 32, 43, .08);
  }
  .js .nav.is-open { display: block; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .nav a:not(.btn) { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .js .nav .btn { margin: 12px 0 0; width: 100%; }
}

/* Início: destaque */

.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-top: 18px; font-size: clamp(40px, 5.4vw, 70px); line-height: 1.02; letter-spacing: -0.035em; }
.hero p.lead { margin-top: 22px; font-size: clamp(18px, 1.5vw, 20px); max-width: 44ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); }
.hero-photo img, .hero-photo video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.hero-photo video { object-position: center; }

.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts .icon { color: var(--accent); }

/* Vídeo de fundo fixo em todas as páginas */
html { background: #0f1c21; }
body { background: transparent; }
.bg-video { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0f1c21; }
.bg-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.bg-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 30; }

/* Topos das páginas: o vídeo aparece por inteiro, com texto branco */
.hero--bg, .page-top--bg {
  display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(180deg, rgba(8, 18, 22, .28) 0%, rgba(8, 18, 22, .72) 100%);
}
.hero--bg { min-height: min(80vh, 780px); padding: clamp(96px, 12vw, 160px) 0 clamp(40px, 6vw, 64px); }
.page-top.page-top--bg { min-height: min(56vh, 540px); padding: clamp(96px, 10vw, 140px) 0 clamp(36px, 5vw, 56px); }
.hero--bg .wrap, .page-top--bg .wrap { width: 100%; }
.hero--bg h1, .page-top--bg h1 { color: #fff; text-shadow: 0 2px 28px rgba(0, 0, 0, .3); }
.hero--bg .lead, .page-top--bg .lead { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 16px rgba(0, 0, 0, .35); }
.hero--bg .kicker, .page-top--bg .kicker { color: #b3eaec; }
.hero--bg .btn--outline, .page-top--bg .btn--outline { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .65); }
.hero--bg .btn--outline:hover, .page-top--bg .btn--outline:hover { background: rgba(255, 255, 255, .24); border-color: #fff; }
.hero--bg .facts { color: rgba(255, 255, 255, .88); }
.hero--bg .facts .icon { color: #b3eaec; }

/* Destaque com vídeo largo: texto em cima, vídeo na largura toda */
.hero--wide .wrap { display: block; }
.hero-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px clamp(32px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.hero-intro .lead { margin-top: 0; }
.hero--wide .hero-photo { aspect-ratio: 16 / 9; }
.hero--wide .facts { border-top: 0; margin-top: 18px; padding-top: 0; }
@media (max-width: 860px) {
  .hero-intro { grid-template-columns: 1fr; }
  .hero--wide .hero-photo { aspect-ratio: 16 / 9; border-radius: var(--radius); }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
}

/* Seções */

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--soft { background: var(--soft); }

.head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.head p { margin-top: 12px; max-width: 52ch; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.prose > * + * { margin-top: 18px; }
.prose h2 + p { margin-top: 20px; }

/* Fotos */

.photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.photo img, .photo video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Vídeos em loop: botão de pausar no canto */
.video-toggle {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .88); color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 10px rgba(21, 32, 43, .18);
}
.video-toggle:hover { background: #fff; }
.video-toggle .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.video-toggle .icon-play { display: none; fill: currentColor; }
.video-toggle[data-state="paused"] .icon-play { display: block; }
.video-toggle[data-state="paused"] .icon-pause { display: none; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo--square { aspect-ratio: 1 / 1; }
.photo--tall { aspect-ratio: 4 / 5; }
.caption { margin-top: 12px; font-size: 14.5px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.tile .photo { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.tile h3 { margin-top: 16px; }
.tile p { margin-top: 6px; font-size: 15.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .tiles { gap: 14px; } .tile h3 { font-size: 18px; } }

.archive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.archive .photo { aspect-ratio: 1 / 1; border-radius: 14px; }
.archive img { filter: grayscale(1); }

/* Listas simples */

.types { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 26px; }
.types li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.types li:nth-child(odd) { padding-right: 16px; }

.note { font-size: 15px; color: var(--muted); }

/* Associe-se */

.join {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch;
  background: var(--accent-soft); border-radius: var(--radius-lg); overflow: hidden;
}
.join-text { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.join-text p { margin-top: 16px; max-width: 46ch; }
.join-text .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.join .photo { border-radius: 0; min-height: 280px; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } .join .photo { order: -1; aspect-ratio: 16 / 9; min-height: 0; } }

/* Visite */

.info { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info dt, .info .label { font-weight: 600; color: var(--ink); }
.info p + p { margin-top: 2px; }
.info a { color: var(--ink); text-decoration-color: #b9c6c3; text-underline-offset: 3px; }
.info a:hover { text-decoration-color: var(--accent); }
@media (max-width: 520px) { .info > div { grid-template-columns: 1fr; gap: 4px; } }

/* Topo das páginas internas */

.page-top { padding: clamp(36px, 6vw, 80px) 0 clamp(36px, 5vw, 56px); }
.page-top h1 { margin-top: 14px; max-width: 18ch; font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -0.035em; }
.page-top .lead { margin-top: 20px; max-width: 56ch; font-size: clamp(18px, 1.5vw, 20px); }

/* Blocos de estrutura (foto + texto alternados) */

.feature + .feature { margin-top: clamp(64px, 8vw, 104px); }
.feature--flip .photo-col { order: 2; }
@media (max-width: 860px) { .feature--flip .photo-col { order: 0; } }
.photo-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: end; }
.photo-pair .photo:first-child { aspect-ratio: 4 / 5; }
.photo-pair .photo:last-child { aspect-ratio: 3 / 4; }

.checks { margin-top: 24px; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checks strong { color: var(--ink); font-weight: 600; }
.checks span { color: var(--muted); font-size: 16px; }
@media (max-width: 520px) { .checks li { grid-template-columns: 1fr; gap: 2px; } }

/* Linha do tempo */

.timeline { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline .year { font-size: 26px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1.1; }
.timeline .year small { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.timeline h3 { margin-bottom: 6px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 8px; } }

.sticky { position: sticky; top: 112px; }
@media (max-width: 860px) { .sticky { position: static; } }

/* História em capítulos */

.pull {
  max-width: 34ch; margin: 0 0 clamp(36px, 5vw, 56px);
  padding-left: 24px; border-left: 3px solid var(--accent);
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; color: var(--ink);
}
.pull cite { display: block; margin-top: 12px; font-size: 15px; font-style: normal; font-weight: 400; letter-spacing: 0; color: var(--muted); }

.story { border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 36px; padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.chapter .era { position: sticky; top: 112px; align-self: start; font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--accent); }
.chapter .era small { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.chapter h3 { font-size: clamp(22px, 2.2vw, 28px); }
.chapter p { margin-top: 14px; max-width: 68ch; }
.chapter figure { margin-top: 26px; max-width: 580px; }
.chapter figure.small { max-width: 320px; }
.chapter figure img { filter: grayscale(1); }
@media (max-width: 720px) {
  .chapter { grid-template-columns: 1fr; gap: 10px; }
  .chapter .era { position: static; }
}

.sources { font-size: 15px; color: var(--muted); }
.sources li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sources a { color: var(--ink); text-underline-offset: 3px; }

/* Esportes e fundadores */

.list-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--line); }
.list-2 li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.list-2 p { margin-top: 6px; font-size: 16px; }
@media (max-width: 700px) { .list-2 { grid-template-columns: 1fr; } }

.names { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
.names li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.names small { display: block; color: var(--muted); font-weight: 400; font-size: 14.5px; }
@media (max-width: 520px) { .names { grid-template-columns: 1fr; } }

.quote { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; color: var(--ink); font-weight: 500; letter-spacing: -0.015em; max-width: 30ch; }

/* Passos */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.steps p { margin-top: 8px; font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Faixa de chamada */

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  background: var(--accent-soft); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px);
}
.cta p { margin-top: 10px; max-width: 52ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contato */

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact .info > div { grid-template-columns: 120px 1fr; }

.form { background: var(--soft); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; }
.form h2 { font-size: clamp(24px, 2.4vw, 30px); }
.form > p { margin-top: -6px; font-size: 16px; color: var(--muted); }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; color: var(--ink); font-size: 15px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid #d3dcd9; border-radius: 14px; padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 106, 114, .14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form .btn { justify-self: start; }
.form .note a { color: var(--ink); }

.map { margin-top: clamp(48px, 6vw, 80px); border-radius: var(--radius-lg); overflow: hidden; height: clamp(320px, 40vw, 460px); background: var(--soft); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Rodapé */

.footer { background: var(--soft); padding: clamp(48px, 6vw, 72px) 0 28px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 14px; letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.footer-grid li + li { margin-top: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid .brand + p { margin-top: 16px; max-width: 30ch; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* As seções viram painéis levemente translúcidos sobre o vídeo */
.section { background: rgba(255, 255, 255, .86); }
.section--soft { background: rgba(242, 245, 244, .88); }
.footer { background: rgba(242, 245, 244, .92); }
@supports (backdrop-filter: blur(1px)) {
  .section, .footer { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
/* Celulares e tablets: sem desfoque (pesa em aparelhos simples com o vídeo rodando atrás),
   com o fundo um pouco mais sólido para o texto continuar fácil de ler */
@media (max-width: 860px) {
  .header, .section, .footer { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header { background: rgba(255, 255, 255, .97); }
  .section { background: rgba(255, 255, 255, .96); }
  .section--soft { background: rgba(242, 245, 244, .965); }
  .footer { background: rgba(242, 245, 244, .97); }
}

/* Logo oficial no cabeçalho */
.brand--logo img { width: auto; height: 52px; border-radius: 9px; }
@media (max-width: 420px) { .brand--logo img { height: 44px; border-radius: 8px; } }
