/* ============================================================
   forecza.com — Bright Data-Forecast Editorial Identity
   Palette: cloud white #F6F9FC, cobalt #315FD2, deep navy #162A4A,
            mint #45B79A, coral #E77968, pale sky #DDEAF4, footer #10213A
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #F6F9FC;
  color: #162A4A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #315FD2; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

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

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; color: #162A4A; }
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }
p { margin-bottom: 0.85rem; }

.text-small { font-size: 0.875rem; color: #4a5a72; }

/* --- LAYOUT --- */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- RESPONSIBLE WARNING BANNER --- */
.responsible-warning {
  background: #162A4A;
  color: #DDEAF4;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  line-height: 1.4;
}
.responsible-warning strong { color: #fff; }

/* --- HEADER --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #DDEAF4;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 820px;
}

/* Desktop: logo far right */
.site-logo {
  display: flex;
  align-items: center;
}
.site-logo a {
  display: flex;
  align-items: center;
}
.site-logo img {
  width: 64px;
  height: 40px;
}

/* Desktop: no visible menu */
.desktop-nav { display: none; }

/* Header left empty on desktop — logo is at far right via flex */
.header-left { flex: 1; }

/* --- MOBILE BURGER --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  z-index: 110;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #162A4A;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 42, 74, 0.97);
  z-index: 105;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  display: block;
  opacity: 1;
}
.mobile-menu a {
  display: block;
  color: #DDEAF4;
  font-size: 1.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:hover { color: #45B79A; }

/* --- HERO --- */
.hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  color: #162A4A;
  margin-bottom: 0.75rem;
}
.hero p {
  font-size: 1rem;
  color: #4a5a72;
  max-width: 680px;
  margin: 0 auto 1.25rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.hero-badge {
  background: #DDEAF4;
  color: #315FD2;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* --- SECTION --- */
section { padding: 1.5rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #315FD2;
  margin-bottom: 0.5rem;
}

/* --- CARD (wide row, one per row) --- */
.card-item {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(22,42,74,0.06);
  border: 1px solid #eef3f8;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card-item.highlighted {
  border-left: 4px solid #315FD2;
  box-shadow: 0 2px 12px rgba(49,95,210,0.08);
}

/* Score + Logo row */
.card-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.card-score {
  font-size: 1.6rem;
  font-weight: 700;
  color: #315FD2;
  min-width: 3.2rem;
  line-height: 1;
}
.card-score .score-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  color: #7a8a9e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 80px;
  background: #F6F9FC;
  border-radius: 10px;
  padding: 0.6rem;
  border: 1px solid #eef3f8;
}
.card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.card-logo.colored {
  /* Each card can have a unique background via inline style */
}

.card-body { flex: 1; }
.card-body p {
  font-size: 0.9rem;
  color: #3a4a5e;
  margin-bottom: 0.75rem;
}
.card-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
}
.card-bullets li {
  font-size: 0.85rem;
  color: #4a5a72;
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}
.card-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #45B79A;
}
.card-regulatory-note {
  font-size: 0.75rem;
  color: #7a8a9e;
  font-style: italic;
  margin-bottom: 0.75rem;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #315FD2;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.card-cta:hover { background: #254bb5; }

/* Highlighted card: score left, logo center */
.highlighted .card-top {
  display: flex;
  align-items: center;
}
.highlighted .card-score {
  order: 0;
  text-align: center;
}
.highlighted .card-logo {
  order: 1;
  margin: 0 auto;
}

/* --- THREE-STEP SECTION --- */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #315FD2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.15rem;
}
.step-text h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.step-text p { font-size: 0.88rem; color: #4a5a72; }

/* --- INFO BLOCKS (payment, regulator, protection) --- */
.info-block {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #eef3f8;
  box-shadow: 0 1px 4px rgba(22,42,74,0.05);
  margin-bottom: 1rem;
}
.info-block p { font-size: 0.9rem; color: #3a4a5e; }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid #eef3f8;
  padding: 1rem 0;
}
.faq-question {
  font-weight: 600;
  font-size: 0.95rem;
  color: #162A4A;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.25rem 0;
}
.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  color: #315FD2;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-question.open::after {
  content: "−";
}
.faq-answer {
  display: none;
  padding-top: 0.6rem;
  font-size: 0.88rem;
  color: #4a5a72;
  line-height: 1.5;
}
.faq-answer.open { display: block; }

/* --- FOOTER --- */
.site-footer {
  background: #10213A;
  color: #b0c4d8;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  line-height: 1.6;
}
.site-footer p { margin-bottom: 0.9rem; color: #b0c4d8; }
.site-footer strong { color: #d0dce8; }
.footer-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0;
  align-items: center;
}
.footer-resource-link {
  display: inline-flex;
  align-items: center;
}
.footer-resource-link img {
  width: auto;
  height: 40px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-resource-link:hover img { opacity: 1; }
.footer-mandatory {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: #7a8a9e;
}

/* --- 18+ POPUP --- */
.age-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,42,74,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.age-popup-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.age-popup-box h2 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  color: #162A4A;
}
.age-popup-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.age-popup-btn {
  padding: 0.6rem 2rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.age-popup-btn.yes {
  background: #315FD2;
  color: #fff;
}
.age-popup-btn.yes:hover { background: #254bb5; }
.age-popup-btn.no {
  background: #eef3f8;
  color: #162A4A;
}
.age-popup-btn.no:hover { background: #dde4ec; }

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #162A4A;
  color: #DDEAF4;
  padding: 1rem 1.5rem;
  z-index: 998;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.cookie-banner.show { display: flex; }
.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn.accept { background: #45B79A; color: #fff; }
.cookie-btn.accept:hover { background: #3aa086; }
.cookie-btn.decline { background: #2a3f5a; color: #b0c4d8; }
.cookie-btn.decline:hover { background: #3a5575; }

/* --- INTERNAL TRANSITION PAGE --- */
.transition-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 2rem;
}
.transition-page .loader {
  width: 40px;
  height: 40px;
  border: 3px solid #DDEAF4;
  border-top-color: #315FD2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.transition-page p {
  font-size: 0.95rem;
  color: #4a5a72;
  max-width: 460px;
}
.fallback-btn {
  margin-top: 1.5rem;
  display: inline-block;
  background: #315FD2;
  color: #fff;
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.fallback-btn:hover { background: #254bb5; }

/* --- PUBLIC PAGES --- */
.page-content {
  padding: 2rem 0 3rem;
}
.page-content h1 { margin-bottom: 1.25rem; }
.page-content h2 { margin-top: 2rem; }
.page-content p, .page-content li {
  font-size: 0.92rem;
  color: #3a4a5e;
}
.page-content ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.3rem; }

/* Contact form */
.contact-form { max-width: 480px; }
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #162A4A;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #DDEAF4;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 1rem;
  background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  background: #315FD2;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  .hero { padding: 1.5rem 0 1rem; }
  .hero p { font-size: 0.9rem; }

  .site-header .container {
    /* On mobile: logo centered, burger on right */
    flex-direction: row;
  }
  .header-left { display: none; }
  .site-logo {
    order: 0;
    margin: 0 auto;
  }
  .site-logo img {
    width: 52px;
    height: 32px;
  }
  .mobile-menu-toggle {
    display: block;
    order: 1;
  }

  /* Mobile: burger on mobile only */
  .mobile-menu-toggle { display: block; }

  .card-top { flex-direction: column; align-items: flex-start; }
  .highlighted .card-score { order: 0; text-align: left; }
  .highlighted .card-logo { margin: 0; }

  .card-logo { width: 140px; height: 70px; }

  .footer-resources { justify-content: center; }

  .cookie-banner { flex-direction: column; text-align: center; }
}

@media (min-width: 769px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}
