/* AI 4 BR — stiluri comune */
:root {
  --ink: #13293D;
  --ink-2: #3E5263;
  --muted: #4A5C6B;
  --line: #DCE5EB;
  --line-2: #C9D6DF;
  --field: #9AAAB6;
  --bg: #FFFFFF;
  --band: #F2F6F8;
  --teal: #1F6F80;
  --teal-ink: #155866;
  --teal-soft: #E3F1F3;
  --accent: #C4540F;
  --accent-soft: #FDF4EE;
  --accent-line: #F0D2BD;
  --ok: #2E7D4F;
  --err: #B3261E;
  --err-soft: #FDECEC;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.band { background: var(--band); border-block: 1px solid #E3E9EE; }
.section { padding-block: clamp(48px, 7vw, 92px); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); max-width: 38em; }
.small { font-size: 16px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 8px; }

/* ---------- antet ---------- */
.site-header { border-bottom: 1px solid #E3E9EE; background: #fff; }
.site-header nav { display: flex; align-items: center; justify-content: space-between; gap: 10px clamp(12px, 2.2vw, 28px); padding-block: 12px; flex-wrap: wrap; }
.logo { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 3px; }
.logo b { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.5px; line-height: 1; }
.logo b span, .accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); font-weight: 600; font-size: clamp(15px, 1.4vw, 17px); }
.nav-links a { color: var(--ink); text-decoration: none; padding-block: 12px; }
.nav-links a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-links .pill { background: var(--accent); color: #fff; padding: 11px 16px; border-radius: 999px; line-height: 1.2; }
.nav-links .pill[aria-current="page"] { background: var(--ink); color: #fff; text-decoration: none; }

/* ---------- butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #A84609; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--band); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chip-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--teal-soft); color: var(--teal-ink); font-weight: 600; font-size: 15px; padding: 6px 14px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* ---------- prima pagină ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px); padding-block: clamp(36px, 7vw, 88px) clamp(40px, 6vw, 80px); }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -0.03em; }
.hero-card { flex: 1 1 360px; min-width: 0; background: var(--band); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.bubble-q { align-self: flex-end; max-width: 88%; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 18px 18px 4px 18px; font-size: 16px; line-height: 1.4; }
.bubble-a { align-self: flex-start; max-width: 92%; background: #fff; border: 1px solid var(--line); padding: 12px 16px; border-radius: 18px 18px 18px 4px; font-size: 16px; line-height: 1.45; }
.big-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 10px; }
.big-logo .word { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 9vw, 112px); line-height: 1; letter-spacing: -0.04em; display: flex; gap: .16em; }
.big-logo .tag { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); }

.stats-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.stats-head h2 { font-size: clamp(26px, 3vw, 34px); }
.live { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; display: flex; flex-direction: column; gap: 4px; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .lbl { font-weight: 700; font-size: 19px; }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 16px 12px; border-radius: 16px; }
  .stat .num { font-size: 40px; }
  .stat .lbl { font-size: 15px; line-height: 1.25; }
  .stat .small { display: none; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-size: 16px; font-weight: 600; color: var(--ink); }
.chip small { color: var(--muted); font-weight: 400; font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.card.warm { background: var(--accent-soft); border-color: var(--accent-line); }
.card h3 { font-size: 22px; line-height: 1.2; }
.card p { color: var(--ink-2); }
.icon-box { width: 52px; height: 52px; border-radius: 16px; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.card.warm .icon-box { background: #fff; color: var(--accent); }
.h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.steps .when { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.steps strong { font-size: 20px; line-height: 1.25; }
.steps span:last-child { color: var(--ink-2); font-size: 17px; }

.privacy { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.privacy > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.privacy .kicker { display: flex; align-items: center; gap: 10px; color: #9FD3DC; font-weight: 600; font-size: 16px; }
.privacy h2 { font-size: clamp(28px, 3.6vw, 40px); }
.privacy p { color: #D5E1EA; }

/* ---------- regulament ---------- */
.page-head { padding-block: clamp(36px, 6vw, 80px) 24px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.03em; max-width: 15em; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.rules li { border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; gap: 18px; }
.rules li.hot { border: 2px solid var(--accent); background: var(--accent-soft); }
.rules .n { flex: 0 0 auto; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--accent); }
.rules h2 { font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
.rules p { color: var(--ink-2); }

.flow { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 6vw, 72px); }
.flow-intro { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.note { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.note svg { flex: 0 0 auto; margin-top: 2px; color: var(--teal); }
.timeline { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 18px; }
.timeline .rail { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.timeline .ball { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 18px; }
.timeline li:first-child .ball { background: var(--accent); color: #fff; }
.timeline .line { flex: 1 1 auto; width: 2px; min-height: 24px; background: var(--line-2); }
.timeline li:last-child .line { background: transparent; }
.timeline .body { padding: 6px 0 30px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.timeline .when { font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
.timeline h3 { font-size: 22px; line-height: 1.25; }
.timeline p { color: var(--ink-2); }

.jury { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.jury li { border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.jury .ini { width: 48px; height: 48px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 17px; }
.jury strong { font-size: 18px; line-height: 1.25; }
.jury span:last-child { font-size: 16px; color: var(--ink-2); line-height: 1.4; }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; padding: 14px 0; line-height: 1.35; }
.faq details p { margin-bottom: 16px; color: var(--ink-2); }

/* ---------- formular ---------- */
.form-page { background: var(--band); }
.form-main { padding-block: clamp(28px, 5vw, 64px) clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 24px; }
.form-main h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.03em; }
.nodata { background: var(--ink); color: #fff; border-radius: 22px; padding: 20px 24px; display: flex; gap: 16px; align-items: flex-start; }
.nodata svg { flex: 0 0 auto; margin-top: 2px; color: #9FD3DC; }
.nodata strong { display: block; font-family: var(--display); font-size: 20px; letter-spacing: .02em; }
.nodata span { color: #D5E1EA; font-size: 17px; }
.form-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.form-col { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 960px) { .side { position: sticky; top: 16px; } }

fieldset.box { margin: 0; min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; }
fieldset.box legend { float: left; width: 100%; padding: 0; font-family: var(--display); font-weight: 700; font-size: 22px; display: flex; align-items: center; gap: 12px; }
fieldset.box legend + * { clear: both; }
.num-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: 0 0 auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label, .field .label { font-weight: 700; }
.count { font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.count.near { color: var(--err); }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; font-size: 18px; padding: 14px 16px;
  border: 1.5px solid var(--field); border-radius: 14px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; line-height: 1.5; min-height: 150px; }
input::placeholder, textarea::placeholder { color: #6B7C89; }
input:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,111,128,.25); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field-err { color: var(--err); font-size: 16px; font-weight: 600; }

.cat-chip { font: inherit; font-size: 16px; font-weight: 600; min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer; background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.cat-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-chip small { font-size: 16px; font-weight: 400; opacity: .8; }

.member { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 18px; padding: 14px; }
.member.is-senior { background: var(--accent-soft); border-color: var(--accent); }
.member .field { flex: 1 1 220px; min-width: 0; gap: 4px; }
.member label.mlabel { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member input[type=text] { padding: 12px 14px; border-radius: 12px; }
.badge-senior { display: none; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; }
.member.is-senior .badge-senior { display: inline-block; }
.senior-toggle { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; cursor: pointer; }
.member.is-senior .senior-toggle { background: var(--accent); border-color: var(--accent); color: #fff; }
.senior-toggle input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.icon-btn { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { color: var(--err); border-color: var(--err); }
.add-btn { align-self: flex-start; font: inherit; font-weight: 700; font-size: 17px; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border-radius: 999px; border: 2px dashed var(--field); background: #fff; color: var(--ink); cursor: pointer; }
.check-row { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line-2); border-radius: 16px; padding: 14px 16px; cursor: pointer; font-size: 17px; }
.check-row input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.check-row.teal { background: var(--teal-soft); border-color: transparent; }
.check-row.teal input { accent-color: var(--teal-ink); }
.check-row .t { display: flex; flex-direction: column; gap: 2px; }
.check-row b { display: flex; align-items: flex-start; gap: 8px; }
.check-row b svg { flex: 0 0 auto; margin-top: 4px; }

.alert { background: var(--err-soft); border: 1.5px solid var(--err); color: #7A1712; border-radius: 16px; padding: 14px 18px; font-weight: 600; }
.alert:empty { display: none; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.panel.warm { background: var(--accent-soft); border-color: var(--accent-line); }
.panel h2 { font-size: 20px; }
.bar { height: 8px; border-radius: 999px; background: #E3E9EE; overflow: hidden; }
.bar i { display: block; height: 8px; width: 0; background: var(--ok); border-radius: 999px; transition: width .25s ease; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--muted); }
.checklist .tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--field); background: #fff; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.checklist .tick svg { visibility: hidden; }
.checklist li.ok { color: var(--ink); }
.checklist li.ok .tick { background: var(--ok); border-color: var(--ok); }
.checklist li.ok .tick svg { visibility: visible; }

.done { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 760px; }
.done .big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; }
.done h1 { font-size: clamp(32px, 4.6vw, 52px); }
.done p { font-size: 19px; color: var(--ink-2); }
[hidden] { display: none !important; }

/* ---------- subsol ---------- */
.site-footer { border-top: 1px solid #E3E9EE; background: #fff; }
.site-footer .wrap { padding-block: 32px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 16px; color: var(--ink-2); }
.site-footer .wrap > div { display: flex; flex-direction: column; gap: 6px; }
.site-footer .wrap > div:first-child { flex: 1 1 420px; min-width: 0; }
.site-footer strong { color: var(--ink); }
.site-footer a { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bar i { transition: none; } }

/* ---- Rotary Club Brăila bar (added when hosted on rotarybraila.ro) ---- */
.rotary-bar { background: #1681e5; color: #fff; font-size: 15px; }
.rotary-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.rotary-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.rotary-bar a:hover, .rotary-bar a:focus-visible { color: #fff; text-decoration: underline; }
.rb-brand { display: inline-flex; align-items: center; gap: 10px; }
.rb-brand img { width: 30px; height: 30px; background: #fff; border-radius: 50%; padding: 2px; }
.rb-links { display: flex; gap: 18px; }
@media (max-width: 480px) { .rb-links a:last-child { display: none; } }
