/* BetNação: Desafio do Gol — site styles, taken from the game UI: night-blue plates with gold bevels, glossy yellow capsules with a
   thick navy outline, brush-stroke headings, Montserrat Black / ExtraBold / SemiBold (same files and licence as the game). */

@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --night: #071A47;
  --navy: #0B2A6F;
  --navy-hi: #1B4AA6;
  --navy-lo: #0A2462;
  --gold: #FFD21E;
  --gold-hi: #FFE985;
  --gold-lo: #E6A800;
  --cream: #FFF4C2;
  --text: #EAF0FF;
  --muted: #B8C4E6;
  --red: #FF4A3D;
  --blue: #2F8CFF;
  --green: #4BE35A;
  --radius: 22px;
  --page: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  color: var(--text);
  background: var(--night) radial-gradient(1200px 700px at 50% -10%, #12398f 0%, var(--night) 60%) no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }   /* height:auto: the width/height attributes only reserve the ratio, never stretch */
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }

.wrap { width: min(var(--page), 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(27, 74, 166, .92), rgba(10, 36, 98, .92));
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  font-weight: 800; font-size: 14px; text-decoration: none; color: var(--text);
  padding: 9px 14px; border-radius: 999px; border: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--night); background: var(--gold); border-color: var(--navy); }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--gold); border: 3px solid var(--navy); color: var(--night); font-size: 22px; cursor: pointer;
  }
  .nav { display: none; position: absolute; left: 16px; right: 16px; top: 74px; flex-direction: column; padding: 12px;
    background: var(--navy); border: 3px solid var(--gold); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
  .nav.open { display: flex; }
  .nav a { font-size: 16px; padding: 12px 16px; }
}

/* ---------------------------------------------------------------- building blocks */
.capsule {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 900; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  color: var(--navy) !important; padding: 14px 30px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, #FFC400 100%);
  border: 4px solid var(--navy);
  box-shadow: inset 0 -6px 0 var(--gold-lo), 0 6px 0 rgba(0, 0, 0, .35), 0 0 0 3px rgba(11, 42, 111, .35);
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}
.capsule:hover { transform: translateY(-2px); }
.capsule:active { transform: translateY(2px); box-shadow: inset 0 -3px 0 var(--gold-lo), 0 2px 0 rgba(0, 0, 0, .35); }
.capsule.blue { color: var(--text) !important; background: linear-gradient(180deg, var(--navy-hi), var(--navy-lo)); border-color: var(--gold); box-shadow: inset 0 -6px 0 #071d55, 0 6px 0 rgba(0,0,0,.35); }

.plate {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy-hi) 0%, var(--navy) 38%, var(--navy-lo) 100%);
  border: 3px solid var(--gold);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 -8px 0 rgba(0, 0, 0, .18), 0 14px 30px rgba(0, 0, 0, .35);
}

.brush-title {
  display: inline-block; position: relative; margin: 0 0 18px; padding: 10px 34px 14px;
  font-weight: 900; font-size: clamp(26px, 4.4vw, 42px); line-height: 1.1; text-transform: uppercase; color: var(--gold);
  background: url("../img/ui/brush.webp") center / 100% 100% no-repeat;
  transform: rotate(-2deg);
  text-shadow: 0 3px 0 var(--night);
}
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head p { max-width: 680px; margin: 6px auto 0; color: var(--muted); font-size: 17px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: var(--night); color: var(--cream); border: 2px solid var(--gold);
}
.chip.gold { background: var(--gold); color: var(--navy); border-color: var(--navy); }

.phone {
  border-radius: 34px; padding: 8px; background: linear-gradient(180deg, #2a3b66, #0b1430);
  border: 3px solid var(--gold); box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 414 / 896; object-fit: cover; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/ui/bg.webp") center 30% / cover no-repeat;
  opacity: .55;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,71,.2) 0%, rgba(7,26,71,.55) 55%, var(--night) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; padding: 48px 0 70px; }
.hero-logo { width: min(560px, 100%); filter: drop-shadow(0 10px 20px rgba(0,0,0,.45)); }
.hero h1 { font-weight: 900; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; margin: 18px 0 10px; color: var(--cream); text-transform: uppercase; }
.hero p.lead { font-size: 18px; max-width: 560px; color: var(--text); margin: 0 0 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.hero-art .phone { width: 250px; transform: rotate(4deg); position: relative; z-index: 1; }
.hero-art .player { position: absolute; left: -10px; bottom: -20px; width: 250px; z-index: 2; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 28px; }
  .hero-logo { margin-inline: auto; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { min-height: 440px; }
  .hero-art .phone { width: 210px; }
  .hero-art .player { width: 190px; left: calc(50% - 210px); }
}

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: -34px; position: relative; z-index: 2; }
.stat { text-align: center; padding: 18px 10px 16px; }
.stat b { display: block; font-weight: 900; font-size: 34px; color: var(--gold); line-height: 1; }
.stat span { font-weight: 800; font-size: 13px; text-transform: uppercase; color: var(--cream); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats .stat:last-child { grid-column: span 2; } }

/* ---------------------------------------------------------------- how to play */
.how { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.steps { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 58px 1fr; gap: 16px; align-items: start; padding: 18px 20px; }
.step .n {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 26px; color: var(--navy); background: var(--gold); border: 4px solid var(--navy); box-shadow: 0 0 0 3px var(--gold);
}
.step h3 { margin: 2px 0 4px; font-weight: 900; font-size: 19px; text-transform: uppercase; color: var(--cream); }
.step p { margin: 0; color: var(--text); }
.rings { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ring { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; }
.ring i { width: 16px; height: 16px; border-radius: 50%; border: 4px solid currentColor; display: inline-block; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } .how .phone { width: 240px; margin-inline: auto; } }

/* ---------------------------------------------------------------- locations */
.beaches { display: grid; gap: 44px; }
.beach { display: grid; grid-template-columns: 1fr 240px; gap: 0; overflow: hidden; }
.beach:nth-child(even) { grid-template-columns: 240px 1fr; }
.beach:nth-child(even) .beach-shot { order: -1; }
.beach-main { display: flex; flex-direction: column; }
.beach-art { position: relative; aspect-ratio: 748 / 300; overflow: hidden; border-bottom: 3px solid var(--gold); }
.beach-art img { width: 100%; height: 100%; object-fit: cover; }
.beach-art .num {
  position: absolute; left: 16px; top: 14px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 22px; color: var(--navy); background: var(--gold); border: 4px solid var(--navy);
}
.beach-art .chips { position: absolute; right: 14px; top: 14px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.beach-body { padding: 22px 26px 26px; }
.beach-body h3 { margin: 0 0 4px; font-weight: 900; font-size: clamp(24px, 3vw, 32px); color: var(--gold); text-transform: uppercase; line-height: 1.1; }
.beach-body .tag { margin: 0 0 14px; font-weight: 800; color: var(--cream); }
.beach-body .story { margin: 0 0 16px; font-size: 16.5px; }
.beach-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.beach-body li { position: relative; padding-left: 28px; }
.beach-body li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--gold); }
.beach-shot { display: flex; align-items: center; justify-content: center; padding: 22px; background: radial-gradient(circle at 50% 40%, rgba(255,210,30,.18), transparent 70%), var(--night); }
.beach-shot .phone { width: 190px; }
@media (max-width: 820px) {
  .beach, .beach:nth-child(even) { grid-template-columns: 1fr; }
  .beach:nth-child(even) .beach-shot { order: 0; }
  .beach-shot { border-top: 3px solid var(--gold); }
}

/* ---------------------------------------------------------------- challenges + locker */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.duo .plate { padding: 26px; display: grid; grid-template-columns: 1fr 170px; gap: 20px; align-items: center; }
.duo h3 { margin: 0 0 8px; font-weight: 900; font-size: 24px; text-transform: uppercase; color: var(--gold); }
.duo p { margin: 0 0 12px; }
.duo .phone { width: 170px; padding: 6px; border-radius: 26px; }
.duo .phone img { border-radius: 20px; }
.balls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.balls img { width: 44px; height: 44px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
@media (max-width: 980px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .duo .plate { grid-template-columns: 1fr; } .duo .phone { margin-inline: auto; } }

/* ---------------------------------------------------------------- fair play */
.fair { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: center; padding: 24px 28px; }
.fair .badge { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); border: 5px solid var(--navy); box-shadow: 0 0 0 3px var(--gold); font-size: 40px; }
.fair h3 { margin: 0 0 6px; font-weight: 900; text-transform: uppercase; color: var(--cream); }
.fair p { margin: 0; }
@media (max-width: 560px) { .fair { grid-template-columns: 1fr; text-align: center; } .fair .badge { margin-inline: auto; } }

/* ---------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact .plate { padding: 28px; }
.contact h3 { margin: 0 0 10px; font-weight: 900; font-size: 22px; text-transform: uppercase; color: var(--gold); }
.mail { display: inline-block; font-weight: 900; font-size: clamp(16px, 2.2vw, 20px); word-break: break-all; margin: 6px 0 14px; }
form { display: grid; gap: 14px; }
label { font-weight: 800; font-size: 14px; text-transform: uppercase; color: var(--cream); display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; color: var(--night); background: var(--cream); border: 3px solid var(--navy); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 0 0 2px var(--gold);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--gold); }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- documents (privacy / support) */
.doc-hero { text-align: center; padding: 46px 0 10px; }
.doc-hero p { color: var(--muted); margin: 0; }
.doc { padding: 34px clamp(20px, 4vw, 48px); margin: 22px 0 70px; }
.doc h2 { font-weight: 900; font-size: 22px; text-transform: uppercase; color: var(--gold); margin: 30px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.table-wrap { overflow-x: auto; margin: 10px 0 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 900; font-size: 13px; text-transform: uppercase; color: var(--gold); padding: 10px 12px; border-bottom: 2px solid var(--gold); }
.table td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 210, 30, .25); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.contact ul { padding-left: 22px; }
.faq details { border-bottom: 2px solid rgba(255, 210, 30, .35); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 900; font-size: 17px; color: var(--cream); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 3px solid var(--gold); background: linear-gradient(180deg, var(--navy), var(--night)); padding: 34px 0 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.footer img { height: 54px; width: auto; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer nav a { font-weight: 800; text-decoration: none; color: var(--text); }
.footer nav a:hover { color: var(--gold); }
.footer small { color: var(--muted); display: block; width: 100%; }
