/* UDC Santo Adrião — site público */
:root {
  --blue: #005196;
  --blue-dark: #062b52;
  --blue-hero: #0d3a66;
  --gold: #eac632;
  --gold-text: #8a6d00;
  --ink: #0b1f3a;
  --muted: #4a5d75;
  --line: #e3e9f1;
  --soft: #f3f6fa;
  --highlight: #fdf6d8;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #003a6e; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Top bar */
.topbar { background: var(--blue-dark); color: #fff; font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; }
.topbar .mail { color: var(--gold); font-weight: 600; }
.topbar .social { display: flex; gap: 16px; align-items: center; }
.topbar .addr { opacity: .85; }

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand img { width: 60px; height: 60px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--blue); letter-spacing: .5px; line-height: 1; display: block; }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: 2px; margin-top: 4px; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a.active { color: var(--blue); border-bottom-color: var(--gold); }
.nav a.btn { border: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--blue); color: #fff; border-radius: 8px; align-items: center; justify-content: center; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 6px; font-weight: 700; font-size: 16px; border: 2px solid transparent; cursor: pointer; font-family: inherit; text-align: center; line-height: 1.2; }
.btn-gold { background: var(--gold); color: var(--ink) !important; }
.btn-gold:hover { background: #f1d354; }
.btn-blue { background: var(--blue); color: #fff !important; }
.btn-blue:hover { background: #00427b; }
.btn-white { background: #fff; color: var(--ink) !important; }
.btn-outline { border-color: #fff; color: #fff !important; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.nav .btn { padding: 12px 20px; font-size: 15px; }

/* Hero */
.hero { background-color: var(--blue-hero); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px); color: #fff; }
.hero.has-photo { background-size: cover; background-position: center; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: 3px; color: var(--gold-text); text-transform: uppercase; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(52px, 8vw, 96px); line-height: .92; text-transform: uppercase; }
.hero p { margin: 0; font-size: 19px; line-height: 1.55; max-width: 560px; color: #dce6f2; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Match card */
.match-card { flex: 1 1 380px; background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.match-card-head { background: var(--gold); padding: 12px 24px; font-weight: 700; font-size: 13px; letter-spacing: 2px; display: flex; justify-content: space-between; gap: 12px; text-transform: uppercase; }
.match-card-body { padding: 28px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; text-align: center; font-weight: 700; font-size: 15px; }
.side img, .crest-ph { width: 76px; height: 76px; object-fit: contain; }
.crest-ph { border-radius: 50%; background: #dfe7f1; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--blue); }
.vs { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--blue); }
.match-card-foot { border-top: 1px solid var(--line); padding: 16px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.match-card-foot strong { color: var(--ink); }

/* Quick strip */
.strip { background: var(--blue); color: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.strip-item { padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid rgba(255,255,255,.18); color: #fff; }
.strip-item:last-child { border-right: 0; }
a.strip-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.strip-label { font-size: 12px; letter-spacing: 2px; color: var(--gold); font-weight: 700; }
.strip-value { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; }

/* Sections */
.section { padding: 80px 0; }
.section.soft { background: var(--soft); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 32px; }
.section-head > div { display: flex; flex-direction: column; gap: 6px; }
.h2 { margin: 0; font-family: var(--display); font-size: clamp(38px, 5vw, 52px); font-weight: 800; text-transform: uppercase; color: var(--blue); line-height: 1; }
.h3 { margin: 0 0 20px; font-family: var(--display); font-size: 44px; font-weight: 800; text-transform: uppercase; color: var(--blue); line-height: 1; }
.more { font-weight: 700; }
.page-hero { background-color: var(--blue-hero); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px); color: #fff; }
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 12px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 7vw, 80px); line-height: .95; text-transform: uppercase; }
.page-hero p { margin: 0; font-size: 19px; color: #dce6f2; max-width: 640px; }
.empty { padding: 32px; border: 1px dashed #c6d3e3; border-radius: var(--radius); color: var(--muted); text-align: center; }

/* News */
.ph { background-color: #dfe7f1; background-image: repeating-linear-gradient(135deg, rgba(0,81,150,.08) 0 12px, transparent 12px 24px); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--soft); color: inherit; min-width: 0; }
.news-card:hover { color: inherit; box-shadow: 0 8px 24px rgba(11,31,58,.12); }
.news-card .thumb { height: 200px; object-fit: cover; width: 100%; }
.news-card.feature { grid-column: span 2; }
.news-card.feature .thumb { height: 340px; }
.news-card .body { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.news-meta { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--blue); text-transform: uppercase; }
.news-card h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.news-card.feature h3 { font-family: var(--display); font-size: 34px; line-height: 1.05; }
.news-card p { margin: 0; color: var(--muted); }
.news-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.news-side .thumb { height: 150px; }
@media (max-width: 700px) { .news-card.feature { grid-column: auto; } .news-card.feature .thumb { height: 220px; } }

.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.article h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 60px); line-height: 1; margin: 12px 0 24px; color: var(--ink); }
.article .lead { font-size: 20px; color: var(--muted); margin: 0 0 24px; }
.article .cover { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.article .text p { font-size: 18px; line-height: 1.7; margin: 0 0 1.2em; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #c6d3e3; font-weight: 600; }
.pager .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Matches + table */
.two-col { display: flex; flex-wrap: wrap; gap: 32px; }
.two-col > div { flex: 1 1 440px; min-width: 0; }
.fixtures { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.fixture { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fixture:last-child { border-bottom: 0; }
.fixture-date { width: 64px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; flex: none; }
.fixture-date .d { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--blue); }
.fixture-date .m { font-size: 12px; color: var(--muted); font-weight: 600; }
.fixture-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fixture-main .teams { font-weight: 600; }
.fixture-main .meta { font-size: 13px; color: var(--muted); }
.badge { font-family: var(--display); font-size: 22px; font-weight: 700; padding: 6px 12px; border-radius: 6px; min-width: 64px; text-align: center; background: #e3e9f1; color: var(--ink); white-space: nowrap; }
.badge.played { background: var(--blue); color: #fff; }
.badge.win { background: #0f7a3d; color: #fff; }
.badge.loss { background: #b42318; color: #fff; }
.badge.next { background: var(--gold); color: var(--ink); }
.badge.small { font-size: 18px; padding: 4px 10px; min-width: 0; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.table th { background: var(--blue); color: #fff; padding: 12px 8px; text-align: center; font-weight: 700; }
.table td { padding: 11px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.table .team { text-align: left; }
.table tr.us td { background: var(--highlight); font-weight: 700; }
.table .pts { font-weight: 700; }
.note { font-size: 13px; color: var(--muted); }

/* Teams */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-weight: 600; padding: 12px 18px; border-radius: 999px; border: 1px solid #c6d3e3; background: #fff; color: var(--ink); }
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.player { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.player-photo { height: 240px; position: relative; display: flex; align-items: end; padding: 12px; }
.player-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.player-num { position: relative; font-family: var(--display); font-weight: 800; font-size: 56px; color: var(--blue); line-height: 1; text-shadow: 0 1px 0 #fff; }
.player-photo img + .player-num { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.player-info { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; border-top: 4px solid var(--gold); }
.player-info strong { font-weight: 700; }
.player-info span { font-size: 13px; color: var(--muted); }
.pos-title { font-family: var(--display); font-size: 28px; text-transform: uppercase; color: var(--ink); margin: 40px 0 16px; }

/* Members CTA */
.cta { background: var(--gold); }
.cta .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { margin: 0; font-family: var(--display); font-size: clamp(44px, 6vw, 64px); font-weight: 800; text-transform: uppercase; line-height: .95; }
.cta p { margin: 0; font-size: 18px; color: #2b2a1a; max-width: 620px; }

/* Sponsors */
.sponsors { display: flex; flex-direction: column; gap: 28px; align-items: center; }
.sponsor-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.sponsor { height: 96px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; text-align: center; }
.sponsor img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .2s; }
.sponsor:hover img { filter: none; opacity: 1; }

/* Members form */
.members-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: start; }
.members-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.step-title { margin: 0 0 16px; font-family: var(--display); font-size: 36px; font-weight: 800; text-transform: uppercase; color: var(--blue); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; border: 0; padding: 0; margin: 0; }
.plan { position: relative; cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan-box { padding: 22px; border-radius: var(--radius); border: 1px solid #c6d3e3; background: #fff; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.plan input:checked + .plan-box { border: 3px solid var(--blue); background: #eef4fb; padding: 20px; }
.plan input:focus-visible + .plan-box { outline: 3px solid var(--gold); outline-offset: 2px; }
.plan-name { font-weight: 700; font-size: 13px; letter-spacing: 2px; color: var(--blue); text-transform: uppercase; }
.plan-price { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; }
.plan-desc { font-size: 14px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field.full { grid-column: 1 / -1; }
.field input, .field select { font: inherit; font-weight: 400; padding: 14px; border: 1px solid #b8c6d8; border-radius: 8px; background: #fff; color: var(--ink); min-height: 50px; }
.field .err, .err { color: #b42318; font-size: 13px; font-weight: 600; }
.field.has-error input, .field.has-error select { border-color: #b42318; }
.consent { display: flex; gap: 10px; align-items: start; font-size: 14px; color: var(--muted); margin-top: 16px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.hp { position: absolute; left: -9999px; }
.summary { flex: 1 1 340px; background: var(--soft); border-radius: var(--radius); overflow: hidden; position: sticky; top: 110px; }
.summary-head { background: var(--blue); color: #fff; padding: 20px 24px; display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 24px; font-weight: 700; }
.summary-head img { width: 44px; height: 44px; }
.summary-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; }
.summary-row span { color: var(--muted); }
.benefits { border-top: 1px solid #d5dfeb; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #33475f; margin: 0; list-style: none; padding-left: 0; }
.benefits li::before { content: '✓ '; color: var(--blue); font-weight: 700; }
.alert { padding: 14px 18px; border-radius: 8px; font-weight: 600; margin-bottom: 16px; }
.alert-error { background: #fdecea; color: #8a1c12; }
.alert-success { background: #e6f4ea; color: #12592d; }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.contact-card { background: var(--soft); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.contact-card h2 { margin: 0 0 4px; font-size: 13px; letter-spacing: 2px; color: var(--gold-text); text-transform: uppercase; }
.contact-card p { margin: 0; font-size: 18px; }
.map { width: 100%; height: 380px; border: 0; border-radius: var(--radius); margin-top: 32px; background: var(--soft); }

/* Footer */
.footer { background: var(--blue-dark); color: #dce6f2; }
.footer .wrap.cols { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 64px; padding-bottom: 32px; }
.footer .about { flex: 2 1 320px; display: flex; flex-direction: column; gap: 16px; }
.footer .about .brand-name { color: #fff; }
.footer .about img { width: 72px; height: 72px; }
.footer .about p { margin: 0; max-width: 380px; }
.footer .col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; }
.footer .col h2 { margin: 0; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 2px; }
.footer a { color: #dce6f2; }
.footer a:hover { color: #fff; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 20px; }

/* Mobile */
@media (max-width: 900px) {
  .topbar .addr { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 22px; }
  .brand-sub { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a.active { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--gold); padding-left: 12px; }
  .nav .btn { margin-top: 12px; border-radius: 8px; }
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 32px; gap: 28px; }
  .hero p { font-size: 16px; }
  .section { padding: 48px 0; }
  .match-card-body { padding: 18px 12px; }
  .side img, .crest-ph { width: 52px; height: 52px; }
  .vs { font-size: 30px; }
  .strip-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .summary { position: static; }
  .fixture { padding: 14px; gap: 12px; }
  .fixture-date { width: 44px; }
  .fixture-date .d { font-size: 22px; }
  .badge { font-size: 18px; min-width: 0; padding: 4px 10px; }
  .cta .actions .btn { flex: 1 1 100%; }
}
