:root {
  /* Cores principais */
  --color-bg: #FAF7F2;              /* Off-white quente - fundo principal */
  --color-text: #2B1810;            /* Marrom escuro - texto principal */
  --color-text-secondary: #6B4E3D;  /* Marrom médio - texto secundário */
  
  /* Elementos interativos */
  --color-accent: #A67C52;          /* Mocha claro - destaque/hover */
  --color-button: #8B6F47;          /* Mocha médio - botões */
  --color-button-text: #FFFFFF;     /* Branco - texto em botões */
  
  /* Superfícies e cards */
  --color-card-bg: #FFFFFF;         /* Branco puro - cards */
  --color-border: #DDD3C8;          /* Bege suave - bordas */
  
  /* Call-to-actions e elementos especiais */
  --color-cta: #A67C52;             /* Mocha claro - CTA principal */
  --color-cta-text: #FFFFFF;        /* Branco - texto CTA */
  --color-success: #7C9873;         /* Verde sálvia - sucesso */
  --color-warning: #D4A574;         /* Dourado suave - avisos/estrelas */
  
  /* Elementos específicos */
  --color-footer-text: #2B1810;     /* Marrom escuro - footer */
  --color-footer-cred: #6B4E3D;     /* Marrom médio - créditos */
  --color-faq-bg: #F5F0E8;          /* Bege muito claro - FAQ */
  --color-faq-text: #2B1810;        /* Marrom escuro - FAQ texto */
  --color-faq-content: #4A3828;     /* Marrom - FAQ conteúdo */
  
  /* Modal e overlay */
  --color-modal-bg: #FFFFFF;        /* Branco - modal */
  --color-modal-text: #2B1810;      /* Marrom escuro - modal texto */
  
  /* Transparências e overlays - RGB values for rgba usage */
  --overlay-rgb: 250, 247, 242;     /* Overlay claro */
  --header-bg-rgb: 250, 247, 242;   /* Header semi-transparente */
  --card-shadow-rgb: 43, 24, 16;    /* Sombra marrom suave */
  --modal-shadow-rgb: 43, 24, 16;   /* Sombra modal */
  --age-overlay-rgb: 43, 24, 16;    /* Overlay escuro */
  
  /* Gradientes */
  --gradient-about-start: rgba(245, 240, 232, 1);
  --gradient-about-end: rgba(250, 247, 242, 1);
}

html, body { height: 100%; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}
* { box-sizing: border-box; }
img { max-width: 100%; display: block; }
p > a { color: var(--color-text-secondary); }
li > a { color: var(--color-text-secondary); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(var(--header-bg-rgb), 0.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { width: 180px; height: 40px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--color-text-secondary); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a:focus, .nav a.active { color: var(--color-accent); }
.cta-header { margin-left: 12px; background: var(--color-cta); color: var(--color-cta-text); text-transform: uppercase; font-weight: 800; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.cta-header:hover { filter: brightness(1.05); }

.hero { padding: 48px 0 16px 0; text-align: center; }
.hero h1 { font-size: 40px; line-height: 1.2; margin: 0 0 12px 0; font-weight: 800; }
.hero p { margin: 0 auto; max-width: 780px; color: var(--color-text-secondary); font-size: 18px; }
.hero-icon { width: 72px; height: 72px; margin: 20px auto 0 auto; opacity: 0.9; }

/* Background area below hero */
.bg-after-hero {
  position: relative;
  padding-top: 8px;
}
/* Blurred background image layer */
.bg-after-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/public/background.jpg') center top / cover no-repeat;
  filter: blur(1px);
  transform: scale(1.05);
  z-index: -1000;
}
/* Overlay for contrast - adaptable for themes */
.bg-after-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--overlay-rgb), 0.65) 0%, rgba(var(--overlay-rgb), 0.85) 60%, rgba(var(--overlay-rgb), 0.92) 100%);
  z-index: 1;
}
/* Keep content above overlays */
.bg-after-hero > * { position: relative; z-index: 2; }

.section { padding: 16px 0 48px 0; }
.cards { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: 16px; box-shadow: 0 10px 30px rgba(var(--card-shadow-rgb), 0.3); padding: 16px; }
.card-row { display: flex; align-items: center; gap: 16px; }
.card-left { flex: 0 0 120px; display: flex; align-items: center; justify-content: center; }
.casino-logo { width: 200px; height: 100px; object-fit: contain; }
.card-mid { flex: 1 1 auto; }
.casino-name { font-size: 20px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; margin: 0 0 6px 0; }
.offer { font-size: 18px; font-weight: 700; }
.offer small { display: block; color: var(--color-text-secondary); font-weight: 500; }
.card-right { flex: 0 0 260px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.rating { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.rating .score { font-size: 28px; font-weight: 800; }
.stars { color: var(--color-warning); display: flex; gap: 2px; }
.cta { background: var(--color-cta); color: var(--color-cta-text); text-transform: uppercase; font-weight: 900; letter-spacing: 0.5px; padding: 12px 18px; border-radius: 12px; text-decoration: none; text-align: center; white-space: nowrap; }
.cta:hover { filter: brightness(1.05); }

.about { background: linear-gradient(180deg, var(--gradient-about-start) 0%, var(--gradient-about-end) 100%); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-title { font-size: 24px; font-weight: 800; margin: 0 0 12px 0; }
.section-subtitle { color: var(--color-text-secondary); margin: 0 0 24px 0; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; flex: 1 1 240px; }
.stat .num { font-size: 28px; font-weight: 800; }
.stat .label { color: var(--color-text-secondary); font-size: 14px; }

/* Use flex for responsiveness per PRD */
.info-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.info-item { display: flex; gap: 12px; background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; flex: 1 1 calc(50% - 16px); }
.info-item i { color: var(--color-accent); font-size: 20px; }
.info-item p { margin: 0; color: var(--color-text-secondary); }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--color-faq-bg); color: var(--color-faq-text); border-radius: 10px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 600; position: relative; }
.faq summary::marker { display: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq .content { padding: 0 18px 16px 18px; color: var(--color-faq-content); }

.site-footer { background: var(--color-bg); color: var(--color-footer-text); padding: 32px 0; border-top: 1px solid var(--color-border); }
.footer-logos { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-logos img { height: 28px; width: auto; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--color-footer-text); text-transform: uppercase; font-size: 12px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Center footer content */
.site-footer .container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-logos { justify-content: center; }
.footer-links { justify-content: center; }
.footer-brand { max-width: 900px; margin-bottom: 16px; }
.footer-brand .site-name { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.footer-brand .site-cred { color: var(--color-footer-cred); font-size: 13px; line-height: 1.5; opacity: 0.95; }

/* trust row */
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.trust-row__item { display: inline-flex; align-items: center; justify-content: center; opacity: 0.9; transition: opacity .15s ease; }
.trust-row__item:hover { opacity: 1; }
.trust-row__item img { height: 40px; width: auto; display: block; }

.age-overlay { position: fixed; inset: 0; background: rgba(var(--age-overlay-rgb), 0.85); display: none; align-items: center; justify-content: center; z-index: 2000; }
.age-modal { background: var(--color-modal-bg); color: var(--color-modal-text); max-width: 520px; width: calc(100% - 32px); border-radius: 12px; padding: 20px; box-shadow: 0 20px 60px rgba(var(--modal-shadow-rgb), 0.4); }
.age-modal h2 { margin: 0 0 8px 0; font-size: 22px; }
.age-modal p { margin: 0 0 16px 0; color: var(--color-text-secondary); }
.age-actions { display: flex; gap: 12px; justify-content: flex-end; }
.btn { display: inline-block; border: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--color-button); color: var(--color-button-text); }
.btn-secondary { background: var(--color-bg); color: var(--color-text); }

.page-title { font-size: 32px; font-weight: 800; margin: 24px 0; }
.prose { color: var(--color-text-secondary); }
.prose p { margin: 0 0 16px 0; }
.prose h2 { color: var(--color-text); margin: 24px 0 12px 0; font-size: 20px; }
.prose ul { padding-left: 18px; }

.site-image { display: flex; align-items: center; justify-content: center; }

/* Tablet improvements */
@media (max-width: 1199px) {
  .card-right { flex: 0 0 220px; }
}
@media (max-width: 900px) {
  .card { padding: 16px; }
  .card-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .card-left { order: 1; justify-content: flex-start; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
  .card-mid { order: 2; display: flex; flex-direction: column; align-items: center; }
  .card-right { order: 3; flex-direction: column; align-items: center; flex: 1 1 100%; }
  .rating { flex-direction: row; align-items: center; justify-content: flex-start; min-width: 0; gap: 8px; }
}
/* Mobile refinements */
@media (max-width: 600px) {
  .nav { gap: 14px; }
  .card { padding: 14px; }
  .card-left { margin-bottom: 4px; }
  .casino-logo { width: 160px; height: 80px; }
  .casino-name { font-size: 18px; }
  .offer { font-size: 16px; }
  .rating .score { font-size: 24px; }
  .stars { font-size: 14px; }
  .cta { width: 100%; }
  .info-item { flex: 1 1 100%; }
}
