/* Canada Wide Lotto - Distinct design */
:root {
  --w: min(1180px, 100% - 32px);
  --bg: #f5f3ef;
  --surface: #fff;
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
  --accent: #1e3a2f;
  --accent-light: #2d5a47;
  --gold: #8b6914;
  --gold-light: #a67c1a;
  --border: #e5e2dc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
}

.container {
  width: var(--w);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header - minimal, light */
.site-header {
  background: var(--surface);
  padding: 20px 0;
  border-bottom: 2px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.site-title:hover {
  color: var(--accent);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent);
}

.btn {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(30, 58, 47, 0.06);
}

/* Hero - full-width image background, content overlaid */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--accent);
  padding: 40px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/images/hde33ccf3-home_page_bg.webp") center/cover;
  opacity: 0.25;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 47, 0.92) 0%, rgba(30, 58, 47, 0.7) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  width: var(--w);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-content {
  flex: 1;
  max-width: 540px;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #fff;
}

.hero h1 .highlight {
  color: #f5d78a;
  font-style: italic;
}

.hero-subtitle {
  font-size: 16px;
  color: #fff;
  margin: 0 0 24px;
}

.countdown-box {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 18px 24px;
  margin-bottom: 20px;
}

.countdown-title {
  font-size: 11px;
  color: #fff;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: system-ui, sans-serif;
}

.countdown-grid {
  display: flex;
  gap: 14px;
}

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

.countdown-label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown-value {
  width: 68px;
  height: 68px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}

.hero-cta {
  padding: 16px 32px;
  font-size: 14px;
  background: var(--gold) !important;
  color: #fff !important;
}

.hero-cta:hover {
  background: var(--gold-light) !important;
}

.hero-trust {
  font-size: 12px;
  color: #fff;
  margin: 10px 0 0;
}

.hero-image-wrap {
  flex-shrink: 0;
}

.hero-image {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* Steps - horizontal row */
.section {
  padding: 48px 0;
}

.section-title {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 28px;
  color: var(--ink);
  text-align: left;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-num {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.step-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  opacity: 0.85;
}

.step-title {
  font-family: system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}

.step-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

/* Footer - compact */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 32px 0 24px;
}

.footer-block {
  margin-bottom: 20px;
}

.footer-heading {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #e8c547;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-text {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 8px;
  color: #fff;
}

.license-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #e8c547;
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 11px;
  color: #ccc;
  margin: 16px 0;
  line-height: 1.5;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-badges img {
  height: 28px;
  width: auto;
  opacity: 0.7;
}

/* Auth overlay */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.auth-overlay.active {
  display: flex;
}

.auth-box {
  background: var(--surface);
  border-radius: 8px;
  padding: 40px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-title {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--ink);
}

.auth-desc {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 20px;
}

.auth-input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

.auth-btn {
  padding: 14px;
  font-size: 14px;
  width: 100%;
}

.auth-switch {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.auth-msg {
  display: none;
  color: #0d7d4d;
  font-size: 13px;
}

.auth-form.active .auth-msg {
  display: block;
}

/* Popups */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-overlay.active {
  display: flex;
}

.popup {
  background: var(--surface);
  padding: 32px;
  border-radius: 8px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.popup h3 {
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 12px;
}

.popup p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

/* About page */
.page-header {
  padding: 32px 0 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-header .section-title {
  margin: 0;
}

.about-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.about-image {
  width: 100%;
  max-width: 420px;
  border-radius: 6px;
  display: block;
}

.about-content h3 {
  font-family: Georgia, serif;
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--ink);
}

.about-content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
}

.mission-card h3 {
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mission-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
}

.team-card h3 {
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--ink);
}

.team-card .role {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.team-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
}

.contact-info h3 {
  font-size: 12px;
  margin: 0 0 20px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.contact-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-submit {
  padding: 14px;
  font-size: 14px;
}

/* Burger */
.burger {
  display: none;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: left;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    align-self: flex-start;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-image {
    max-width: 280px;
  }

  .nav-list {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform 0.3s;
    z-index: 100;
    border-bottom: 2px solid var(--border);
  }

  .nav-list.active {
    transform: translateY(0);
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .burger {
    display: flex;
  }

  .countdown-value {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .auth-box {
    padding: 28px 20px;
  }
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 24px;
  }

  .section {
    padding: 32px 0;
  }
}
