:root {
  --primary: #0052cc;
  --primary-soft: #3b82f6;
  --primary-dark: #003a94;
  --secondary: #00a389;
  --secondary-soft: #22c55e;
  --accent: #f97316;
  --accent-soft: #fed7aa;

  --bg-body: #f3f4f6;
  --bg-soft: #ffffff;
  --bg-soft-alt: #edf2ff;
  --bg-muted: #e5e7eb;

  --text-main: #111827;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
  --text-on-primary: #ffffff;

  --border-subtle: #e5e7eb;
  --border-strong: #cbd5f5;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 4px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-2xs: 0.35rem;
  --space-xs: 0.65rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;

  --transition-fast: 0.15s ease-out;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-main);
  background:
    radial-gradient(circle at 0 0, #e0f2fe 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #fef3c7 0, transparent 55%),
    var(--bg-body);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-xs);
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 60px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-header.centered h2::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.15rem;
}

p {
  margin-bottom: var(--space-sm);
  font-size: 0.98rem;
  color: var(--text-soft);
}

a {
  color: var(--primary);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-soft);
}

a:not(.btn, .nav a, .logo a)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  transition: width var(--transition-fast);
}

a:not(.btn, .nav a, .logo a):hover::after {
  width: 100%;
}

strong {
  font-weight: 600;
  color: var(--primary-dark);
}

.container,
.content {
  width: 92%;
  max-width: 1120px;
  margin: 0 auto;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.header-inner,
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo a {
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.35);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.logo a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(34, 197, 94, 0.14));
}

.nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-sm);
  align-items: center;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav a:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
}

#menu-toggle {
  display: none;
}

.hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero.hero-legal {
  padding-top: var(--space-lg);
}

.hero .container,
.hero .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.hero-layout {
  width: 92%;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-content {
  background: rgba(255, 255, 255, 0.96);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.08) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.08) 0, transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.hero-content p {
  font-size: 1rem;
  color: var(--text-soft);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.hero-content .highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-sm);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.3);
  font-size: 0.86rem;
  font-weight: 500;
  color: #166534;
}

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

.hero-image img {
  max-width: 100%;
  max-height: 320px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #0f172a;
  object-fit: cover;
}

.btn-volver-inicio,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: var(--space-sm);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-on-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-volver-inicio:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.05);
}

.about-section {
  padding: var(--space-xl) 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.legal-section {
  padding-top: var(--space-lg);
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-header.centered {
  text-align: center;
}

.section-header .subtitle {
  margin-top: var(--space-xs);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.about-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.about-block.reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
}

.about-text {
  padding: var(--space-md);
  border-radius: var(--radius);
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
}

.about-text h3 {
  margin-bottom: var(--space-xs);
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #fef3c7);
  padding: 0.1rem;
}

.about-image img {
  width: 100%;
  display: block;
  border-radius: calc(var(--radius-lg) - 4px);
  box-shadow: var(--shadow-sm);
}

.features-section {
  padding: var(--space-xl) 0;
  background: #f1f5f9;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.feature-item {
  background: #ffffff;
  border-radius: var(--radius);
  padding: var(--space-md);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.feature-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(16, 185, 129, 0.2));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature-item:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

.feature-item h4 {
  margin-bottom: var(--space-2xs);
}

.why-section {
  padding: var(--space-xl) 0;
  background: #ffffff;
}

.why-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: var(--space-lg);
  align-items: center;
}

.why-text p + p {
  margin-top: var(--space-xs);
}

.why-image {
  border-radius: var(--radius-lg);
  padding: 0.15rem;
  background: conic-gradient(from 180deg, #bfdbfe, #bbf7d0, #fee2e2, #bfdbfe);
}

.why-image img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 4px);
  display: block;
  box-shadow: var(--shadow);
}

.bookmakers-section {
  padding: var(--space-xl) 0;
  background: #f9fafb;
}

.bookmakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.bookmakers-grid.single-bookmaker {
  max-width: 700px;
  margin-inline: auto;
}

.bookmaker-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: var(--shadow);
}

.bookmaker-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.bookmaker-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.bookmaker-card h3,
.bookmaker-card h4 {
  margin-bottom: 0;
}

.bookmaker-card p {
  margin-bottom: 0;
}

.bookmaker-btn {
  margin-top: var(--space-sm);
  align-self: flex-start;
  padding-inline: 1.6rem;
}
.btn-oficial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;

  /* Cores inspiradas em Betsson (laranja) dentro do layout novo */
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;

  box-shadow: 0 10px 25px rgba(248, 113, 113, 0.25);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    filter 0.18s ease-out,
    background 0.18s ease-out;
  white-space: nowrap;
}

.btn-oficial:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(248, 113, 113, 0.35);
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.btn-oficial:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(248, 113, 113, 0.3);
}

.btn-oficial:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

.testimonials-section {
  padding: var(--space-xl) 0;
  background: #eef2ff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: var(--space-md);
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.testimonial-author {
  margin-top: var(--space-xs);
  font-weight: 600;
  text-align: right;
  color: var(--primary-dark);
}

.contact-section {
  padding: var(--space-xl) 0;
  background: #f9fafb;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: var(--space-lg);
}

.contact-info h2 {
  margin-bottom: var(--space-xs);
}

.contact-info .subtitle {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.contact-details {
  list-style: none;
  margin-top: var(--space-xs);
}

.contact-details li {
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

.contact-details strong {
  color: var(--text-main);
}

.contact-form form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(203, 213, 225, 0.9);
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f9fafb;
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-soft);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.btn-submit {
  margin-top: var(--space-xs);
}

.important-message {
  padding: var(--space-lg) 0;
  background: #0f172a;
  color: #e5e7eb;
}

.message-box {
  background: rgba(15, 23, 42, 0.88);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid rgba(251, 191, 36, 0.8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

.message-box h3 {
  color: #facc15;
  margin-bottom: var(--space-xs);
}

.message-box p {
  color: #e5e7eb;
  font-size: 0.96rem;
}

.message-box .last-line {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(248, 250, 252, 0.18);
  font-weight: 600;
  color: #fbbf24;
}

.footer-section {
  padding: var(--space-lg) 0 var(--space-sm);
  background: #020617;
  color: #e5e7eb;
  border-top: 1px solid rgba(30, 64, 175, 0.7);
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.img-container {
  width: 220px;
  height: 70px;
  border-radius: var(--radius);
  background: #020617;
  border: 1px solid rgba(51, 65, 85, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.img-container img {
  max-height: 46px;
  object-fit: contain;
}

.footer-links {
  text-align: center;
  font-size: 0.88rem;
}

.footer-links a {
  color: #e5e7eb;
  margin: 0 0.45rem;
}

.footer-links a:hover {
  color: #bfdbfe;
}

.sitename {
  color: #bfdbfe;
  font-weight: 600;
}

.about-section ul {
  margin-left: 1.2rem;
  margin-bottom: var(--space-sm);
}

.about-section li {
  margin-bottom: 0.25rem;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.about-section h2 {
  margin-top: var(--space-sm);
}

.about-section h3 {
  margin-top: var(--space-xs);
}

.last-updated {
  margin-top: var(--space-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.hero,
.about-section,
.features-section,
.why-section,
.bookmakers-section,
.testimonials-section,
.contact-section,
.important-message {
  opacity: 0;
  transform: translateY(10px);
  animation: fade-in-section 0.55s ease-out forwards;
}

.hero {
  animation-delay: 0.02s;
}

.about-section {
  animation-delay: 0.06s;
}

.features-section {
  animation-delay: 0.1s;
}

@keyframes fade-in-section {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .hero .container,
  .hero .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    order: -1;
  }

  .about-block,
  .about-block.reverse,
  .why-content,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-text {
    padding: var(--space-sm);
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 var(--space-sm);
  }

  .nav li {
    width: 100%;
  }

  .nav a {
    width: 100%;
    padding: 0.5rem 0.8rem;
  }

  #menu-toggle:checked ~ .nav {
    max-height: 260px;
  }

  .hero-content {
    padding: var(--space-md);
  }

  .hero {
    padding-top: var(--space-lg);
  }

  .footer-logos {
    gap: var(--space-xs);
  }

  .img-container {
    width: 150px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 3rem;
    --space-lg: 2rem;
  }

  .hero-content {
    padding: 1.1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .section-header {
    margin-bottom: var(--space-md);
  }
}
