/* Best Swim — estilos (mobile-first, sem frameworks) */
:root {
  --navy: #0b2040;
  --navy-2: #17386b;
  --coral: #ff6a5c;
  --coral-ink: #c4372a;      /* coral escurecido para texto pequeno sobre branco (contraste AA) */
  --text: #4a5b76;           /* cinzento-azulado do corpo de texto */
  --muted: #5d6d86;
  --line: #e2e8f0;
  --panel: #eef3f8;
  --white: #fff;
  --radius: 18px;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--coral); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Cabeçalho ---------- */
.site-header { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 8px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.035em; color: var(--navy); }
.logo-desc { font-size: .6875rem; letter-spacing: .02em; color: var(--muted); }
.logo { flex: 1 0 100%; }
.nav { order: 2; display: flex; gap: 12px; font-size: .875rem; font-weight: 500; }
.site-header .header-cta { order: 3; margin-left: auto; padding: 9px 12px; font-size: .875rem; }
.nav a { text-decoration: none; color: var(--navy); padding: 4px 0; }
.nav a:hover { color: var(--coral-ink); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--coral); color: var(--navy); box-shadow: 0 8px 22px -10px rgba(255,106,92,.9); }
.btn-primary:hover { background: #ff7d70; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: 10px 18px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.link-arrow { font-family: var(--font-head); font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--navy); }

/* ---------- Tipografia comum ---------- */
.eyebrow { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 18px; }
.eyebrow-num { color: var(--muted); }
.eyebrow-num span { color: var(--coral-ink); }
.lead { font-size: 1.1875rem; line-height: 1.6; max-width: 36em; }
.body-lg { font-size: 1.125rem; line-height: 1.7; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 0; }
.hero-grid { display: grid; gap: 36px; }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 4.6vw, 4.1rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }
.hero-visual { margin: 0; border-radius: 24px; overflow: hidden; background: var(--panel); aspect-ratio: 4 / 3; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.strip { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip li { padding: 18px 8px; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--navy); letter-spacing: -0.01em; }
.strip li + li { border-left: 1px solid var(--line); }
.strip-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-right: 8px; vertical-align: middle; }

/* ---------- Secções ---------- */
.section { padding: 72px 0; }
.section-line { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.section-head.split { display: grid; gap: 24px; }
.section-head.split h2 { max-width: 18em; }
.wide-visual { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); }
.wide-visual img { width: 100%; height: 100%; object-fit: cover; }

.cards { display: grid; gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: 0 24px 48px -28px rgba(11,32,64,.35); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { padding: 24px 24px 28px; }
.card-body h3 { margin-bottom: 10px; }

/* ---------- Faixa escura (processo) ---------- */
.band { background: var(--navy); color: #c3cfe2; padding: 76px 0; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow-num { color: #9fb1cc; }
.band .eyebrow-num span { color: var(--coral); }
.band .section-head h2 { max-width: 16em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { border-top: 1px solid rgba(255,255,255,.18); padding: 28px 0 32px; }
.step-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.04em; color: var(--coral); line-height: 1; margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { max-width: 26em; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 40px; }
.contact-copy h2 { margin-bottom: 22px; }
.note { margin-top: 28px; padding-left: 16px; border-left: 2px solid var(--coral); font-size: .9375rem; color: var(--muted); max-width: 28em; }
.form-panel { background: var(--panel); border-radius: 24px; padding: 24px; }
.form { display: grid; gap: 18px; }
.form-legend { font-size: .875rem; color: var(--muted); }
.req { color: var(--coral-ink); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: .875rem; }
.grid-2 { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
label, legend { font-size: .9375rem; font-weight: 500; color: var(--navy); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy);
  background: #fff; border: 1px solid #cdd7e4; border-radius: 12px; padding: 13px 14px; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230b2040' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { resize: vertical; min-height: 120px; }
input::placeholder { color: #64738a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(23,56,107,.18); }
[aria-invalid="true"] { border-color: #b3261e !important; }
.field-error { font-size: .875rem; color: #a3201a; font-weight: 500; }
.radios { border: 0; padding: 0; margin: 0; }
.radios legend { padding: 0; margin-bottom: 8px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choice { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .9375rem; color: var(--text); cursor: pointer; line-height: 1.5; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--coral-ink); flex: none; }
.choice a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.consent { padding-top: 4px; }
.form-status { border-radius: 12px; padding: 14px 16px; font-size: .9375rem; font-weight: 500; }
.form-status.is-success { background: #e3f4ea; color: #12522d; border: 1px solid #b7e0c6; }
.form-status.is-error { background: #fdeceb; color: #8c1d18; border: 1px solid #f2bcb8; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: .875rem; color: var(--muted); }
.site-footer a { color: var(--navy); text-underline-offset: 3px; }

/* ---------- Páginas de texto (privacidade) ---------- */
.doc { padding: 56px 0 72px; }
.doc .container { max-width: 800px; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; letter-spacing: -0.02em; }
.doc p, .doc li { margin-bottom: 12px; }
.doc ul { padding-left: 1.2em; margin: 0 0 12px; }
.doc a { color: var(--navy); text-underline-offset: 3px; }
.doc .updated { font-size: .875rem; color: var(--muted); margin-bottom: 28px; }
.doc mark { background: #fff2c2; color: #5b4300; padding: 1px 6px; border-radius: 4px; font-weight: 500; }
.doc .todo { background: #fff9e3; border: 1px solid #f2dd8f; border-radius: 12px; padding: 14px 16px; font-size: .9375rem; color: #5b4300; margin-bottom: 28px; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .form-panel { padding: 36px; }
  .hero-visual { aspect-ratio: 16 / 10; }
  .strip li { font-size: 1.0625rem; }
}
@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; backdrop-filter: saturate(1.4) blur(10px); }
  .header-inner { column-gap: 16px; flex-wrap: nowrap; padding-top: 16px; padding-bottom: 16px; }
  .logo { flex: 0 0 auto; }
  .nav { order: 0; margin-left: auto; margin-right: 12px; gap: 32px; }
  .site-header .header-cta { order: 0; margin-left: 0; padding: 10px 18px; font-size: .9375rem; }
  .nav { font-size: .9375rem; }
  .logo-desc { font-size: .75rem; }
  section[id] { scroll-margin-top: 76px; }
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 72px; }
  .hero-visual { aspect-ratio: 4 / 5; }
  .strip { margin-top: 72px; }
  .section { padding: 112px 0; }
  .section-head { margin-bottom: 56px; }
  .section-head.split { grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: end; }
  .wide-visual { aspect-ratio: 5 / 2; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .band { padding: 112px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
  .steps li { padding-top: 32px; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
  .contact-copy { position: sticky; top: 112px; }
}

@media (max-width: 420px) {
  .nav { gap: 10px; font-size: .8125rem; }
  .site-header .header-cta { padding: 9px 11px; font-size: .8125rem; }
}
