/*
Theme Name: Ultrabet Brand Entry
Theme URI: https://ultrabet.qpon/
Author: Ultrabet Brazil
Description: Brazilian Portuguese brand-entry theme for Ultrabet Brazil.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: ultrabet-guide
*/

:root {
  --bg: #f7f8f3;
  --surface: #ffffff;
  --ink: #161a1d;
  --muted: #5b6268;
  --line: #d8ddd0;
  --brand: #16615a;
  --brand-strong: #0f403c;
  --accent: #c78b2a;
  --accent-soft: #fff2d3;
  --ok-soft: #e1f3ee;
  --danger-soft: #f7e2de;
  --radius: 8px;
  --content: 1160px;
  --measure: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--brand-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 26, 29, 0.97);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header__inner,
.site-footer__inner,
.content-shell {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 760;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: #20302e;
  color: #f6c65b;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__label {
  font-size: 0.78rem;
  color: #d1d7d4;
  font-weight: 560;
}

.nav-toggle {
  display: none;
}

.nav-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  cursor: pointer;
}

.nav-button span,
.nav-button::before,
.nav-button::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  color: #f7f7f7;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #f6c65b;
}

.page-main {
  min-height: 60vh;
}

.guide-hero {
  position: relative;
  overflow: hidden;
  background: #12201f;
  color: #fff;
  padding: clamp(44px, 6vw, 78px) 0;
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.media-frame img {
  width: 100%;
}

.snapshot-grid,
.status-grid,
.feature-list,
.problem-grid {
  display: grid;
  gap: 12px;
}

.snapshot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.snapshot-item,
.status-item {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255,255,255,.06);
}

.snapshot-item strong,
.status-item strong {
  display: block;
}

.status-grid,
.problem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.small-note {
  color: var(--muted);
  font-size: .95rem;
}

.guide-hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -38% 48%;
  height: 420px;
  background: rgba(42, 132, 119, 0.28);
  transform: rotate(-9deg);
}

.guide-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f6c65b;
  font-size: 0.84rem;
  font-weight: 740;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 820px;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  max-width: 760px;
  color: #e5ede8;
}

.hero-badges,
.quick-grid,
.topic-grid,
.legal-grid,
.footer-links,
.meta-list {
  display: grid;
  gap: 14px;
}

.hero-badges {
  grid-template-columns: repeat(4, fit-content(170px));
  margin: 26px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #f4f7f5;
  background: rgba(255,255,255,.06);
  font-size: 0.9rem;
  font-weight: 650;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 720;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  border-color: rgba(255,255,255,.42);
  color: #fff;
}

.button.light {
  background: var(--surface);
  color: var(--brand-strong);
}

.hero-visual {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  padding: 12px;
}

.section {
  padding: clamp(38px, 6vw, 70px) 0;
}

.section.alt {
  background: #eef2ea;
}

.narrow {
  max-width: var(--measure);
}

.quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.note,
.table-wrap,
.faq-item,
.legal-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card,
.note,
.faq-item,
.legal-box {
  padding: 20px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--ok-soft);
  color: var(--brand-strong);
  font-weight: 800;
}

.note {
  border-left: 4px solid var(--accent);
}

.warning {
  border-left-color: #b94b36;
  background: var(--danger-soft);
}

.step-list,
.check-list {
  padding-left: 1.25rem;
}

.step-list li,
.check-list li {
  margin: 0 0 10px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef2ea;
  font-size: 0.92rem;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 760;
}

.faq-item p {
  margin-bottom: 0;
}

.page-article {
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 66px) 0;
}

.page-article h1 {
  color: var(--brand-strong);
}

.page-article .updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  background: #151817;
  color: #edf1ee;
  margin-top: 32px;
  padding: 44px 0 28px;
}

.site-footer a {
  color: #edf1ee;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 34px;
}

.footer-links {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.footer-note {
  color: #c9d0cc;
  max-width: 680px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #c9d0cc;
  font-size: 0.92rem;
}

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

@media (max-width: 860px) {
  .nav-button {
    display: grid;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    padding: 14px;
    background: #151817;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .guide-hero__inner,
  .site-footer__grid,
  .quick-grid,
  .topic-grid,
  .status-grid,
  .feature-list,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
}

@media (max-width: 520px) {
  .site-header__inner,
  .site-footer__inner,
  .content-shell,
  .page-article {
    width: min(100% - 24px, var(--content));
  }

  .hero-badges {
    grid-template-columns: 1fr 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

}
