/* Wargandí Gaming Commission — Institutional Stylesheet
   Palette: Híbrido KUNAISA + Commission gold accent */

:root {
  --terracota: #B8412A;
  --terracota-hover: #9A361F;
  --terracota-light: #E8D4CE;
  --kuna-green: #2D5016;
  --kuna-green-light: #4A7A26;
  --bg: #F5F3EE;
  --bg-elevated: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-mute: #7A7A7A;
  --gold: #D4A537;
  --gold-hover: #B8902F;
  --gold-soft: #F5E6B8;
  --border: #E5E0D6;

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --shadow-sm: 0 1px 2px rgba(26,26,26,0.06);
  --shadow-md: 0 4px 12px rgba(26,26,26,0.08);
  --shadow-lg: 0 12px 32px rgba(26,26,26,0.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracota); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--terracota-hover); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--ink-soft); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(212,165,55,0.2);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 66px; height: 66px; display: block; flex-shrink: 0; }
.footer-brand .brand-mark { width: 44px; height: 44px; }
img.brand-mark { object-fit: contain; }
.brand-text { color: var(--bg); }
.brand-text strong { display: block; font-family: var(--font-serif); font-size: 1rem; font-weight: 600; line-height: 1.1; }
.brand-text small { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); opacity: 0.9; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--bg); font-size: 0.92rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

.lang-toggle { display: flex; gap: 4px; margin-left: 8px; padding-left: 16px; border-left: 1px solid rgba(245,243,238,0.2); }
.lang-toggle button { color: var(--bg); font-size: 0.82rem; font-weight: 600; padding: 4px 8px; opacity: 0.6; }
.lang-toggle button.active { opacity: 1; color: var(--gold); }

.nav-toggle { display: none; color: var(--bg); font-size: 1.4rem; padding: 4px 8px; }

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  background: var(--ink);
  background-image: url("../images/hero-wgc-1280.webp?v=2");
  background-size: cover;
  background-position: center;
  color: var(--bg);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.65) 0%, rgba(26,26,26,0.35) 50%, rgba(26,26,26,0.85) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; background: rgba(212,165,55,0.15); border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 24px; }
.hero h1 { color: var(--bg); margin-bottom: 18px; max-width: 720px; }
.hero .lead { color: rgba(245,243,238,0.85); font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 640px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: all .2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--terracota); color: var(--bg); }
.btn-primary:hover { background: var(--terracota-hover); color: var(--bg); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-gold { background: transparent; color: var(--bg); border: 1.5px solid var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--ink); }

/* Sections */
section { padding: 80px 0; }
.section-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracota); margin-bottom: 12px; }
.section-title { margin-bottom: 16px; max-width: 720px; }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 640px; margin-bottom: 48px; }

/* Mandate cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 32px 28px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-top-color: var(--terracota); }
.card-icon { width: 44px; height: 44px; background: var(--gold-soft); color: var(--terracota); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px; }
.card h3 { margin-bottom: 12px; color: var(--ink); }
.card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }

/* Parent authority banner */
.parent-authority {
  background: var(--ink);
  color: var(--bg);
  padding: 60px 0;
  text-align: center;
}
.parent-authority h2 { color: var(--bg); margin-bottom: 24px; }
.parent-authority p { color: rgba(245,243,238,0.75); max-width: 720px; margin: 0 auto 28px; }
.parent-logo { display: inline-block; margin-bottom: 28px; }
.parent-logo img { width: 140px; height: 140px; }
.parent-divider { width: 60px; height: 1px; background: var(--gold); margin: 0 auto 24px; }

/* Legal framework strip */
.legal-strip {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.legal-strip .container { padding-top: 60px; padding-bottom: 60px; }
.legal-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; }
.legal-item { padding: 20px; border-left: 3px solid var(--terracota); background: var(--bg); }
.legal-item strong { display: block; font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.legal-item span { font-size: 0.88rem; color: var(--ink-soft); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 64px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-col h4 { color: var(--gold); font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(245,243,238,0.75); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { color: rgba(245,243,238,0.75); font-size: 0.92rem; margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand strong { font-family: var(--font-serif); font-size: 1.1rem; color: var(--bg); }
.footer-bottom { border-top: 1px solid rgba(245,243,238,0.1); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: rgba(245,243,238,0.5); }

/* Page banner (internal pages) */
.page-banner {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 60px;
  border-bottom: 3px solid var(--gold);
}
.page-banner h1 { color: var(--bg); }
.page-banner .breadcrumb { font-size: 0.85rem; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }

/* Content */
.content-wrap { max-width: 820px; margin: 0 auto; }
.content-wrap h2 { margin-top: 48px; margin-bottom: 18px; }
.content-wrap h2:first-child { margin-top: 0; }
.content-wrap p { margin-bottom: 18px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; }
.content-wrap ul { margin: 0 0 24px 24px; color: var(--ink-soft); }
.content-wrap li { margin-bottom: 8px; }
.callout { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 20px 24px; margin: 28px 0; border-radius: 0 4px 4px 0; }
.callout strong { color: var(--ink); display: block; margin-bottom: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { background: var(--bg-elevated); border: 1px solid var(--border); padding: 32px; border-radius: 4px; }
.contact-info h3 { color: var(--terracota); margin-bottom: 16px; font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-info p { font-size: 0.98rem; margin-bottom: 6px; }
.contact-info p strong { color: var(--ink); }
.contact-block { margin-bottom: 28px; }

form.contact-form { background: var(--bg-elevated); border: 1px solid var(--border); padding: 32px; border-radius: 4px; }
form.contact-form .field { margin-bottom: 18px; }
form.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
form.contact-form input, form.contact-form textarea, form.contact-form select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); font-family: inherit; font-size: 0.95rem; color: var(--ink); transition: border-color .2s ease; }
form.contact-form input:focus, form.contact-form textarea:focus, form.contact-form select:focus { outline: none; border-color: var(--terracota); }
form.contact-form textarea { resize: vertical; min-height: 120px; }

/* Responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav { position: fixed; top: 64px; right: 0; width: 80%; max-width: 320px; height: calc(100vh - 64px); background: var(--ink); flex-direction: column; align-items: flex-start; padding: 24px; gap: 8px; transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); border-left: 1px solid rgba(212,165,55,0.2); }
  .nav.open { transform: translateX(0); }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(245,243,238,0.08); }
  .nav a:hover, .nav a.active { border-bottom-color: var(--gold); }
  .lang-toggle { margin-left: 0; margin-top: 12px; padding-left: 0; border-left: none; border-top: 1px solid rgba(245,243,238,0.1); padding-top: 16px; width: 100%; }
  .nav-toggle { display: block; }
  .hero { min-height: 88vh; }
  .hero h1 { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 56px 0; }
  .page-banner { padding: 60px 0 40px; }
}

[hidden] { display: none !important; }
.lang-en .es-only, .lang-es .en-only { display: none !important; }

/* Hero responsive WebP variants */

/* Logo: shrink on mobile to fit header */
@media (max-width: 720px) { .site-header .brand-mark { width: 56px; height: 56px; } }

/* Hero responsive WebP v2 */
@media (min-width: 1280px) { .hero { background-image: url("../images/hero-wgc-1920.webp?v=2"); } }
@media (max-width: 760px)  { .hero { background-image: url("../images/hero-wgc-768.webp?v=2"); } }
