@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   GLC Retailer Licensing Portal — Design Tokens & Layout
   Georgia Lottery Corporation brand system
   ============================================================ */

/* --- Tokens --- */
:root {
  --red:        #1a5c2a;
  --red-dark:   #124020;
  --red-light:  #e8f2ea;
  --gold:       #F5A800;
  --gold-light: #fff8e6;
  --dark:       #0d1f11;
  --gray-900:   #212529;
  --gray-700:   #495057;
  --gray-600:   #5c6270;
  --gray-500:   #5c6270;
  --gray-400:   #adb5bd;
  --gray-300:   #ced4da;
  --gray-200:   #e9ecef;
  --gray-100:   #f4f5f7;
  --white:      #ffffff;
  --green:      #155c2c;
  --green-light:#e8f5ed;
  --orange:     #7a4500;

  --font: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-base: 15px;
  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.06);

  --header-height: 72px;
  --container: 1200px;
  --sidebar: 280px;
}

/* --- Skip link (WCAG 2.4.1) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--red);
  color: #fff;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* --- Visually hidden (WCAG utility) --- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Global focus (WCAG 2.4.7) --- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--font-size-base); scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--gray-100);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3 { letter-spacing: -0.3px; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
p a, .alert a, label a { text-decoration: underline; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { color: var(--dark); line-height: 1.25; font-weight: 600; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo img { height: 48px; width: auto; }
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo-text span:first-child {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
}
.site-logo-text span:last-child {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600, #6c757d);
  border-radius: var(--radius);
  transition: color .15s;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.site-nav a:hover { color: var(--red); text-decoration: none; }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active { color: var(--red); font-weight: 600; }
.site-nav a.active::after { transform: scaleX(1); }
.site-nav .btn-apply {
  background: var(--red);
  color: var(--white) !important;
  padding: 9px 20px;
  font-weight: 600;
  margin-left: 10px;
  border-radius: var(--radius);
  letter-spacing: 0.2px;
}
.site-nav .btn-apply::after { display: none; }
.site-nav .btn-apply:hover { background: var(--red-dark); text-decoration: none; color: var(--white) !important; }

.btn-signout {
  background: var(--gray-200);
  color: var(--gray-700);
  padding: 9px 20px;
  font-weight: 600;
  margin-left: 10px;
  border-radius: var(--radius);
  letter-spacing: 0.2px;
  text-decoration: none;
}
.btn-signout::after { display: none; }
.btn-signout:hover { background: var(--gray-300); color: var(--gray-900); text-decoration: none; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: all .2s;
}

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  margin-top: auto;
  border-top: 3px solid var(--gold);
}
.footer-main {
  padding: 40px 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { font-size: 13px; margin-top: 12px; line-height: 1.7; }
.footer-col h5 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  padding: 3px 0;
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  text-decoration: none;
  transition: color .15s;
}
.footer-social a:hover { color: var(--white); }

/* --- Hero --- */
.hero {
  background: linear-gradient(140deg, var(--dark) 0%, #1e4428 55%, #2a5e38 100%);
  color: var(--white);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,168,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 600px; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,168,0,0.15);
  border: 1px solid rgba(245,168,0,0.4);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  line-height: 1.75;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Page sections --- */
.page-section { padding: 56px 0; }
.section-header { margin-bottom: 36px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--gray-700); font-size: 15px; }

/* --- Main layout (portal pages with sidebar) --- */
.portal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px 0;
}
.portal-layout.with-sidebar {
  grid-template-columns: 1fr var(--sidebar);
}
.portal-main { min-width: 0; }

/* --- Page header bar --- */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}
.page-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-header h1 {
  font-size: 1.4rem;
  margin: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--gray-300); }          /* › separator — decorative */
.breadcrumb span:last-child { color: var(--gray-700); font-weight: 500; } /* current page */

/* --- Announcement carousel --- */
.announcement-carousel {
  background: var(--gold);
  color: var(--dark);
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 60px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}
.carousel-slide a { color: var(--dark); text-decoration: underline; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.12);
  border: none;
  color: var(--dark);
  font-size: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  line-height: 1;
  padding: 0;
}
.carousel-btn:hover { background: rgba(0,0,0,0.22); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 4px 0 5px;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}
.carousel-dot.active { background: var(--dark); }

/* --- Telerik footer badge --- */
.telerik-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* --- Quick link cards --- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}
.quick-link-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.quick-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
  text-decoration: none;
}
.quick-link-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 14px;
  background: var(--gold);
  color: #fff;
}
.quick-link-card h3 { font-size: 1rem; margin-bottom: 6px; }
.quick-link-card p { font-size: 13px; color: var(--gray-500); }

/* --- Info section (2 col) --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.eligibility-list { margin-top: 16px; }
.eligibility-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  color: var(--gray-700);
}
.eligibility-list li:last-child { border-bottom: none; }
.eligibility-list li .check { color: var(--green); font-size: 16px; flex-shrink: 0; margin-top: 2px; }

/* --- Timeline (About page) --- */
.timeline { margin-top: 24px; }
.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 36px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--gray-200);
}
.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timeline-content h4 { margin-bottom: 4px; }
.timeline-content p { font-size: 14px; color: var(--gray-500); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .portal-layout.with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
    z-index: 99;
    gap: 0;
  }
  .site-nav.open a { padding: 12px 24px; border-radius: 0; }
  .hamburger { display: flex; }
  .quick-links { grid-template-columns: 1fr; margin-top: 24px; }
  .hero h1 { font-size: 1.8rem; }
  h1 { font-size: 1.5rem; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================================
   FANCY ENHANCEMENT LAYER  (additive — safe to remove as a block)
   Adds depth, gradients, motion, and polish across all pages.
   ============================================================ */
:root {
  /* Brand gradients */
  --grad-brand:    linear-gradient(135deg, #1a5c2a 0%, #2a7d3e 100%);   /* capped at #2a7d3e — #38a05a fails 4.5:1 WCAG with white text */
  --grad-brand-dk: linear-gradient(150deg, #0d1f11 0%, #163d22 55%, #1f5530 100%);
  --grad-gold:     linear-gradient(135deg, #F5A800 0%, #ffc233 100%);
  --grad-sheen:    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);

  /* Layered shadows for real depth */
  --shadow-sm:  0 1px 2px rgba(13,31,17,0.06);
  --shadow:     0 1px 3px rgba(13,31,17,0.05), 0 6px 16px rgba(13,31,17,0.07);
  --shadow-md:  0 6px 20px rgba(13,31,17,0.09), 0 18px 40px rgba(13,31,17,0.08);
  --shadow-lg:  0 12px 30px rgba(13,31,17,0.12), 0 32px 64px rgba(13,31,17,0.12);
  --shadow-glow:0 0 0 1px rgba(26,92,42,0.08), 0 8px 30px rgba(26,92,42,0.18);

  --ring: 0 0 0 4px rgba(26,92,42,0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Motion keyframes --- */
@keyframes fadeInUp   { from { opacity:0; transform: translateY(18px); } to { opacity:1; transform:none; } }
@keyframes fadeIn     { from { opacity:0; } to { opacity:1; } }
@keyframes floatY     { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes auroraDrift{ 0% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(40px,-30px,0) rotate(8deg); } 100% { transform: translate3d(0,0,0) rotate(0deg); } }
@keyframes sheenSweep { 0% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(230%) skewX(-18deg); } }
@keyframes shimmerText{ 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes pulseSoft  { 0%,100% { box-shadow: 0 0 0 0 rgba(245,168,0,0.45); } 50% { box-shadow: 0 0 0 8px rgba(245,168,0,0); } }

/* --- Hero: richer gradient, animated aurora + parallax orbs --- */
.hero { background: var(--grad-brand-dk); }
.hero::after { animation: auroraDrift 18s var(--ease-out) infinite; }
.hero::before { animation: floatY 14s ease-in-out infinite; }
.hero-content > * { animation: fadeInUp .7s var(--ease-out) both; }
.hero-content > *:nth-child(1) { animation-delay: .05s; }
.hero-content > *:nth-child(2) { animation-delay: .15s; }
.hero-content > *:nth-child(3) { animation-delay: .25s; }
.hero-content > *:nth-child(4) { animation-delay: .35s; }
.hero-eyebrow { backdrop-filter: blur(4px); }
/* Gradient shimmer on hero headline */
.hero h1 {
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 40%, #ffe9b0 50%, #ffffff 60%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp .7s var(--ease-out) both, shimmerText 6s linear infinite 1s;
}

/* --- Header: frosted glass on scroll --- */
.site-header {
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(255,255,255,0.88);
  transition: box-shadow .25s var(--ease-out), background .25s var(--ease-out), height .25s var(--ease-out);
}
.site-header.scrolled {
  box-shadow: 0 6px 28px rgba(13,31,17,0.14);
  background: rgba(255,255,255,0.96);
}

/* --- Quick-link cards: gradient icons + glow lift --- */
.quick-link-card { transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-out), border-color .25s; }
.quick-link-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.quick-link-icon { transition: transform .3s var(--ease-spring); box-shadow: inset 0 0 0 1px rgba(13,31,17,0.04); }
.quick-link-card:hover .quick-link-icon { transform: scale(1.08) rotate(-4deg); }

/* --- Section tags / eyebrows shimmer subtly --- */
.section-tag { box-shadow: inset 0 0 0 1px rgba(26,92,42,0.08); }

/* --- Footer: subtle depth --- */
.site-footer { background: var(--grad-brand-dk); }
.site-footer .footer-col a { transition: color .15s, transform .15s var(--ease-out); }
.site-footer .footer-col a:hover { transform: translateX(3px); }

/* --- Scroll-reveal system (only active once JS marks body) --- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  will-change: opacity, transform;
}
.reveal-ready .reveal.in-view { opacity: 1; transform: none; }
.reveal-ready .reveal.delay-1 { transition-delay: .08s; }
.reveal-ready .reveal.delay-2 { transition-delay: .16s; }
.reveal-ready .reveal.delay-3 { transition-delay: .24s; }
.reveal-ready .reveal.delay-4 { transition-delay: .32s; }

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
}
