/* ==============================================
   LottoVentra – Main Stylesheet
   Theme: Australian Lotto (AU/EN) | 18+
   Design language: Fredoka One + Nunito
   ============================================== */

:root {
  /* Brand colours */
  --lv-gradient:     linear-gradient(135deg, #b7ff00 0%, #ffe100 30%, #aa00ff 60%, #ff007b 80%, #005dde 100%);
  --lv-green:        #2a8133;
  --lv-green-mid:    #7fa885;
  --lv-green-lt:     #d4edda;
  --lv-blue:         #005dde;
  --lv-blue-lt:      #e1f0ff;
  --lv-gold:         #ffe100;
  --lv-gold-dk:      #f9bf2d;
  --lv-dark:         #333333;
  --lv-muted:        #666666;
  --lv-border:       #e0e0e0;
  --lv-cream:        #fffef8;
  --lv-white:        #ffffff;
  --lv-header-bg:    #e1f0ff;
  --lv-footer-bg:    #0d2416;

  /* Typography */
  --font-heading:    'Fredoka One', cursive;
  --font-body:       'Nunito', sans-serif;

  /* Layout */
  --max-w:       1310px;
  --header-h:    70px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.13);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.18);

  --ease: 0.25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--lv-dark);
  background: var(--lv-gradient);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--header-h);
}
a { color: inherit; text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--lv-green); }
img { max-width: 100%; display: block; }
.ventra-page { overflow-x: hidden; }

/* ── Layout ── */
.ventra-wrap {
  width: min(var(--max-w), calc(100% - 40px));
  margin: 0 auto;
}

/* ── Header ── */
.ventra-header {
  background: var(--lv-header-bg);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-h);
  border-bottom: 4px solid var(--lv-green-mid);
}
.ventra-header__row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ventra-brand img {
  height: 40px;
  width: auto;
  transition: transform var(--ease);
}
.ventra-brand img:hover { transform: scale(1.04); }

.ventra-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #3e2723;
}
.ventra-nav a {
  padding: 5px 2px;
  position: relative;
}
.ventra-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lv-green);
  transition: width var(--ease);
}
.ventra-nav a:hover { color: var(--lv-green); }
.ventra-nav a:hover::after { width: 100%; }

.ventra-menu-toggle {
  display: none;
  background: #b3d6ff;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: #3e2723;
  align-items: center;
  gap: 6px;
}

/* ── Buttons ── */
.ventra-btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--ease);
  text-decoration: none;
}
.ventra-btn--gold {
  background: var(--lv-green-mid);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(42,129,51,0.3);
}
.ventra-btn--gold:hover {
  background: var(--lv-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(42,129,51,0.4);
  color: #fff;
}
.ventra-btn--blue {
  background: var(--lv-blue);
  color: #fff;
}
.ventra-btn--blue:hover {
  background: #0046b0;
  transform: translateY(-2px);
  color: #fff;
}
.ventra-btn--light {
  background: var(--lv-white);
  color: #333;
  border: 1px solid var(--lv-border);
}
.ventra-btn--light:hover {
  background: #f0f8e8;
  color: var(--lv-green);
}
.ventra-btn--green {
  background: var(--lv-green);
  color: #ffffff;
  padding: 16px 32px;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(42,129,51,0.3);
}
.ventra-btn--green:hover {
  background: #92ffa4;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(42,129,51,0.4);
}

/* ── Hero ── */
.ventra-hero {
  padding: 64px 0 54px;
  background: rgba(255,255,255,0.96);
}
.ventra-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
}
.ventra-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lv-green-lt);
  border: 1px solid var(--lv-green-mid);
  border-radius: 999px;
  padding: 6px 16px;
  color: var(--lv-green);
  font-weight: 800;
  font-size: 13px;
}
.ventra-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.1;
  margin: 18px 0 14px;
  color: var(--lv-dark);
}
.ventra-hero p {
  font-size: 17px;
  color: var(--lv-muted);
  max-width: 560px;
}
.ventra-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.ventra-hero__panel {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(127,168,133,0.15), rgba(0,93,222,0.10));
  border: 1px solid rgba(127,168,133,0.3);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.ventra-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.ventra-stat {
  background: linear-gradient(135deg, #f0fff4, #e8f4fb);
  border: 1px solid var(--lv-green-lt);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
}
.ventra-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--lv-green);
}
.ventra-stat span { font-size: 13px; color: var(--lv-muted); }

/* ── Sections ── */
.ventra-section {
  padding: 72px 0;
  background: rgba(255,255,255,0.96);
}
.ventra-section--cream {
  background: linear-gradient(135deg, rgba(255,254,248,0.97), rgba(212,237,218,0.6));
}
.ventra-section--navy {
  background: rgba(13,36,22,0.97);
  color: #fff;
}

/* ── Headings ── */
.ventra-heading { max-width: 760px; margin-bottom: 36px; }
.ventra-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  margin: 10px 0 12px;
  color: var(--lv-dark);
}
.ventra-heading p { color: var(--lv-muted); font-size: 17px; margin: 0; }
.ventra-section--navy .ventra-heading h2 { color: #fff; }
.ventra-section--navy .ventra-heading p { color: #a8c8b0; }

/* ── Grid ── */
.ventra-grid { display: grid; gap: 22px; }
.ventra-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ventra-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ── Cards ── */
.ventra-card {
  background: var(--lv-white);
  border: 1px solid var(--lv-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.ventra-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ventra-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--lv-dark);
}
.ventra-card p { margin: 0; color: var(--lv-muted); }

.ventra-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--lv-green-lt);
  border-radius: var(--radius-md);
  color: var(--lv-green);
  font-size: 24px;
  margin-bottom: 16px;
}

/* ── Feature layout ── */
.ventra-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.ventra-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.ventra-list li {
  background: #f0fff4;
  border: 1px solid var(--lv-green-lt);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 42px;
  color: var(--lv-dark);
  position: relative;
}
.ventra-list li::before {
  content: '✔';
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--lv-green);
  font-weight: 900;
}

/* ── FAQ ── */
.ventra-faq { display: grid; gap: 12px; }
.ventra-faq details {
  background: var(--lv-white);
  border: 1px solid var(--lv-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  transition: box-shadow var(--ease);
}
.ventra-faq details[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--lv-green-mid);
}
.ventra-faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--lv-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ventra-faq summary::-webkit-details-marker { display: none; }
.ventra-faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--lv-green-mid);
  transition: transform var(--ease);
  flex-shrink: 0;
}
.ventra-faq details[open] summary::after { transform: rotate(45deg); }
.ventra-faq p { margin: 14px 0 0; color: var(--lv-muted); }

/* ── Legal box ── */
.ventra-legal-box {
  background: linear-gradient(135deg, #fff8e1, #fffde7);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border-left: 6px solid var(--lv-gold-dk);
  box-shadow: var(--shadow-sm);
}
.ventra-legal-box p { color: var(--lv-dark); margin: 0; line-height: 1.75; }
.ventra-legal-box a { color: var(--lv-blue); text-decoration: underline; }
.ventra-legal-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}
.ventra-legal-icons img { height: 36px; width: auto; opacity: 0.85; transition: opacity var(--ease); }
.ventra-legal-icons img:hover { opacity: 1; }
.ventra-18badge { height: 58px !important; }

/* ── Forms ── */
.ventra-form { display: grid; gap: 14px; }
.ventra-form label { font-weight: 700; color: var(--lv-dark); }
.ventra-input,
.ventra-textarea,
.ventra-select {
  width: 100%;
  border: 1px solid var(--lv-border);
  border-radius: var(--radius-md);
  min-height: 50px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #f9f9f9;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.ventra-input:focus,
.ventra-textarea:focus,
.ventra-select:focus {
  outline: none;
  border-color: var(--lv-green-mid);
  box-shadow: 0 0 0 3px rgba(127,168,133,0.2);
  background: #fff;
}
.ventra-textarea { min-height: 140px; resize: vertical; }
.ventra-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--lv-muted);
}

/* ── Footer ── */
.ventra-footer {
  background: var(--lv-footer-bg);
  color: #d4edda;
  padding: 56px 0 28px;
}
.ventra-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 32px;
}
.ventra-footer img { height: 38px; width: auto; margin-bottom: 16px; }
.ventra-footer p { color: #a8c8b0; font-size: 14px; line-height: 1.65; margin: 0; }
.ventra-footer h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 18px;
}
.ventra-footer a { display: block; margin: 8px 0; color: #a8c8b0; }
.ventra-footer a:hover { color: #fff; }
.ventra-disclaimer {
  margin-top: 36px;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  font-size: 14px;
  color: #c8ddc8;
  line-height: 1.7;
}
.ventra-disclaimer h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}
.ventra-disclaimer a { color: var(--lv-green-mid); text-decoration: underline; }
.ventra-copy {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 13px;
  color: #6a8c72;
  text-align: center;
}

/* ── Auth Modal ── */
.ventra-modal,
.ventra-age {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,20,10,0.75);
  padding: 20px;
}
.ventra-modal.is-visible,
.ventra-age.is-visible { display: flex; }
.ventra-modal__box,
.ventra-age__box {
  width: min(500px, 100%);
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.ventra-modal__close {
  float: right;
  border: none;
  background: #f0f0f0;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
  line-height: 38px;
  text-align: center;
}
.ventra-modal__close:hover { background: #e0e0e0; }
.ventra-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.ventra-tab {
  flex: 1;
  border: 1px solid var(--lv-border);
  background: #f5f5f5;
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--ease);
}
.ventra-tab.is-active { background: var(--lv-green); color: #fff; border-color: var(--lv-green); }
.ventra-panel { display: none; }
.ventra-panel.is-active { display: block; }
.ventra-panel h2 { font-family: var(--font-heading); font-size: 26px; margin: 0 0 8px; }
.ventra-panel > p { color: var(--lv-muted); font-size: 14px; margin-bottom: 18px; }

/* ── Age Gate ── */
.ventra-age__box { text-align: center; }
.ventra-age__box h2 { font-family: var(--font-heading); font-size: 30px; margin-bottom: 14px; }
.ventra-age__box p { color: var(--lv-muted); margin-bottom: 24px; }
.ventra-age__box .ventra-hero__actions { justify-content: center; }

/* ── Cookie Bar ── */
.ventra-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1900;
  display: none;
}
.ventra-cookie.is-visible { display: block; }
.ventra-cookie__box {
  width: min(1100px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--lv-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.ventra-cookie__box p { margin: 0; font-size: 14px; color: var(--lv-muted); }
.ventra-cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Inner page title ── */
.ventra-page-title {
  padding: 54px 0 46px;
  background: rgba(255,255,255,0.96);
  border-bottom: 3px solid var(--lv-green-lt);
}
.ventra-page-title h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 54px);
  margin: 0 0 14px;
  color: var(--lv-dark);
}
.ventra-page-title p {
  color: var(--lv-muted);
  max-width: 720px;
  font-size: 17px;
  margin: 0;
}

/* ── Content card ── */
.ventra-content {
  background: #fff;
  border: 1px solid var(--lv-border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}
.ventra-content h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--lv-dark);
  margin-top: 32px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--lv-green-lt);
  padding-bottom: 6px;
}
.ventra-content h2:first-child { margin-top: 0; }
.ventra-content p { color: var(--lv-muted); line-height: 1.75; }
.ventra-content ul { color: var(--lv-muted); line-height: 1.8; }
.ventra-content a { color: var(--lv-blue); text-decoration: underline; }

/* ── Thanks page ── */
.ventra-thanks {
  text-align: center;
  padding: 72px 0;
  background: rgba(255,255,255,0.96);
}
.ventra-thanks__icon { font-size: 78px; margin-bottom: 18px; line-height: 1; }
.ventra-thanks h1 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5vw, 60px);
  margin: 0 0 14px;
  color: var(--lv-green);
}
.ventra-thanks p { font-size: 18px; color: var(--lv-muted); max-width: 560px; margin: 0 auto 28px; }

/* ── Info cards (Responsible page) ── */
.ventra-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.ventra-info-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--lv-border);
  background: #fff;
}
.ventra-info-card--warning { background: #fff8e1; border-color: #ffe082; }
.ventra-info-card--danger  { background: #fff5f5; border-color: #ffcdd2; }
.ventra-info-card--success { background: #f0fff4; border-color: var(--lv-green-lt); }
.ventra-info-card--info    { background: #e3f2fd; border-color: #90caf9; }
.ventra-info-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 10px;
}
.ventra-info-card p { margin: 0; font-size: 14px; color: var(--lv-muted); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .ventra-menu-toggle { 
    display: inline-flex !important; 
  }
  
  .ventra-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 74px;
    background: #ffffff;
    border: 2px solid #666;
    border-radius: 8px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    z-index: 1001;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    gap: 12px;
    width: auto;
    max-width: calc(100% - 20px);
    min-width: 200px;
  }
  
  .ventra-nav a {
    display: block;
    width: 100%;
    padding: 12px 8px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
  }
  
  .ventra-nav a:hover {
    background: #f0f0f0;
    border-radius: 4px;
  }
  
  .ventra-nav.is-open { 
    display: flex;
  }
  
  .ventra-hero__grid,
  .ventra-feature,
  .ventra-grid--2,
  .ventra-grid--3,
  .ventra-footer__grid,
  .ventra-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ventra-hero__stats { grid-template-columns: 1fr 1fr; }
  .ventra-section { padding: 48px 0; }
  .ventra-cookie__box { flex-direction: column; align-items: flex-start; }
  .ventra-content { padding: 22px 18px; }
  .ventra-hero h1 { font-size: 32px; }
}
