/* =========================================================
   Parimatch Guatemala — bespoke stylesheet
   Palette: signature black #1c1c1d/#060606, fiery red #f54943, chrome grey #9e9ea0
   ========================================================= */

:root {
  --ink-900: #060606;
  --ink-800: #1c1c1d;
  --ink-700: #262627;
  --ink-600: #313133;
  --red: #f54943;
  --red-dark: #c7332e;
  --red-glow: rgba(245, 73, 67, 0.35);
  --grey: #9e9ea0;
  --grey-light: #c7c7c9;
  --white: #ffffff;
  --win: #35c26a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 2px solid var(--red);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { height: 20px; width: auto; }

.desktop-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: center; }
.desktop-nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--grey-light);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--white); border-color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; align-items: center; border: 1px solid var(--ink-600); border-radius: 999px; overflow: hidden; }
.lang-switch a {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  color: var(--grey);
  letter-spacing: 0.04em;
}
.lang-switch a.active { background: var(--red); color: var(--white); }
.lang-switch a:not(.active):hover { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 8px 24px -8px var(--red-glow); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; border-color: var(--ink-600); color: var(--white); }
.btn-ghost:hover { border-color: var(--red); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--ink-600);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--ink-800);
  border-bottom: 2px solid var(--red);
  padding: 18px 24px 26px;
}
.mobile-nav.open { display: block; }
.mobile-nav a.mnav-link {
  display: block;
  padding: 12px 4px;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  border-bottom: 1px solid var(--ink-600);
}
.mobile-nav .mnav-lang { display: flex; gap: 10px; margin: 16px 0; }
.mobile-nav .mnav-lang a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--ink-600);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.mobile-nav .mnav-lang a.active { background: var(--red); border-color: var(--red); }
.mobile-nav .mnav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(6,6,6,0.97) 0%, rgba(6,6,6,0.88) 32%, rgba(6,6,6,0.45) 62%, rgba(6,6,6,0.25) 100%),
    url("/assets/images/hero-world-cup.png") right center / cover no-repeat,
    var(--ink-900);
  border-bottom: 1px solid var(--ink-700);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 76px 24px 56px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); display: inline-block; }

.hero-title {
  font-size: clamp(32px, 5.4vw, 54px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 640px;
}
.hero-title span { color: var(--red); }

.hero-sub {
  font-size: 16px;
  color: var(--grey-light);
  max-width: 520px;
  margin: 0 0 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 28px; }
.trust-item { display: flex; align-items: center; gap: 12px; max-width: 220px; }
.trust-item img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.trust-num { font-weight: 900; font-size: 18px; display: block; }
.trust-label { font-size: 12.5px; color: var(--grey); display: block; }

/* ---------- Section shell ---------- */
.section { padding: 64px 0; border-bottom: 1px solid var(--ink-700); }
.section-head { max-width: 640px; margin: 0 0 34px; }
.section-title {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-note { color: var(--grey); font-size: 14.5px; margin: 10px 0 0; }
.section-foot { margin-top: 30px; display: flex; justify-content: center; }

/* ---------- Odds board ---------- */
.market-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.market-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink-600);
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-light);
}
.market-tab.active { background: var(--white); color: var(--ink-900); border-color: var(--white); }

.odds-board { display: flex; flex-direction: column; gap: 10px; }
.match-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.match-row.featured {
  border-color: var(--red);
  background: linear-gradient(120deg, var(--ink-800), #241213);
}
.match-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.league-tag { font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--grey); text-transform: uppercase; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  padding: 3px 9px;
  letter-spacing: 0.04em;
}
.live-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--white);
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.teams { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.team { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.team img { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; }
.team-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink-600);
  color: var(--grey-light);
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.vs { color: var(--grey); font-size: 12px; font-weight: 700; }

.odds-cells { display: flex; gap: 8px; flex-wrap: wrap; }
.odds-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ink-700);
  border: 1px solid var(--ink-600);
}
.odds-cell span:first-child { font-size: 10px; color: var(--grey); font-weight: 700; }
.odds-cell strong { font-size: 15.5px; }
.odds-cell:hover { border-color: var(--red); background: var(--ink-600); }

/* ---------- Verticals strip ---------- */
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.vertical-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 168px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  display: flex;
  align-items: flex-end;
}
.vertical-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vertical-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,0.15) 0%, rgba(6,6,6,0.92) 88%);
  z-index: 1;
}
.vertical-body { position: relative; z-index: 2; padding: 18px; width: 100%; }
.vertical-name { font-weight: 900; font-size: 17px; margin: 0 0 4px; }
.vertical-desc { font-size: 12.5px; color: var(--grey-light); margin: 0 0 10px; }
.vertical-link { font-size: 12.5px; font-weight: 800; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.vertical-link::after { content: "→"; }

/* ---------- Aviator panel ---------- */
.aviator-panel {
  border-radius: 20px;
  background: linear-gradient(120deg, var(--ink-800) 0%, #2a1213 60%, var(--ink-900) 100%);
  border: 1px solid var(--ink-700);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.aviator-copy p { color: var(--grey-light); font-size: 15px; max-width: 460px; }
.aviator-name { font-weight: 900; font-size: 26px; margin: 0 0 10px; }
.aviator-name span { color: var(--red); }
.aviator-visual { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.multiplier {
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.flight-graphic { width: 100%; max-width: 260px; height: auto; }
.aviator-cta { margin-top: 22px; }

/* ---------- Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}
.feature-card img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 14px; }
.feature-name { font-weight: 800; font-size: 16px; margin: 0 0 8px; }
.feature-desc { font-size: 13.5px; color: var(--grey); margin: 0; }

/* ---------- Payments ---------- */
.pay-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink-600);
  background: var(--ink-800);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--grey-light);
}
.pay-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- SEO article ---------- */
.seo-article { max-width: 780px; margin: 0 auto; }
.seo-article h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 20px;
}
.seo-article h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 40px 0 14px;
  padding-top: 6px;
  border-top: 1px solid var(--ink-700);
}
.seo-article h2:first-of-type { border-top: none; padding-top: 0; }
.seo-article h3 { font-size: 17.5px; font-weight: 800; margin: 24px 0 10px; color: var(--white); }
.seo-article p { color: var(--grey-light); font-size: 15.5px; margin: 0 0 16px; }
.seo-article strong { color: var(--white); }
.seo-article a { color: var(--red); text-decoration: underline; }

.seo-article table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 18px 0 26px;
  font-size: 14px;
}
.seo-article th, .seo-article td {
  border: 1px solid var(--ink-700);
  padding: 10px 12px;
  text-align: left;
  overflow-wrap: anywhere;
  color: var(--grey-light);
}
.seo-article th { background: var(--ink-800); color: var(--white); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* FAQ accordion (behaviour applied to h3/p pairs inside the FAQ region) */
.seo-article .faq-zone h3 {
  cursor: pointer;
  position: relative;
  padding-right: 28px;
  margin: 14px 0 0;
  border-top: 1px solid var(--ink-700);
  padding-top: 16px;
}
.seo-article .faq-zone h3::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
  transition: transform .2s ease;
}
.seo-article .faq-zone h3.open::after { content: "–"; }
.seo-article .faq-zone p.faq-a {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height .25s ease;
}
.seo-article .faq-zone p.faq-a.open {
  max-height: 600px;
  margin: 10px 0 6px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-800); border-top: 2px solid var(--red); padding: 48px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; margin-bottom: 30px; }
.footer-brand img { height: 20px; margin-bottom: 14px; }
.footer-tag { color: var(--grey); font-size: 13.5px; max-width: 260px; }
.footer-col-title { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); margin: 0 0 14px; }
.footer-col a.footer-link { display: block; font-size: 14px; color: var(--grey-light); margin-bottom: 10px; }
.footer-col a.footer-link:hover { color: var(--white); }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-700); display: flex; align-items: center; justify-content: center; }
.social-row img { width: 17px; height: 17px; }

.footer-legal { border-top: 1px solid var(--ink-600); padding-top: 22px; }
.footer-legal p { color: var(--grey); font-size: 12.5px; line-height: 1.6; margin: 0 0 10px; }
.footer-age {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink-600);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 13px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-copy { color: var(--grey); font-size: 12.5px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .aviator-panel { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .desktop-nav, .header-actions .lang-switch, .header-actions .btn { display: none; }
  .burger { display: flex; }
  .header-actions { gap: 10px; }
  .hero { background-position: 78% center; }
  .hero-inner { padding: 52px 20px 40px; }
}

@media (min-width: 861px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero-inner { padding: 44px 18px 34px; }
  .section { padding: 44px 0; }
  .match-row { grid-template-columns: 1fr; }
  .odds-cells { justify-content: flex-start; }
  .aviator-panel { padding: 26px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 560px) {
  .seo-article table { font-size: 12px; }
  .seo-article th, .seo-article td { padding: 6px 7px; }
}

@media (max-width: 420px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-title { font-size: 30px; }
}
