/* ============================================================
   Georgia Lottery — Retailer Licensing Portal (Prototype)
   Design system. Brand-inspired (navy + gold + peach), not a
   copy of protected assets. Fonts per RFP brand pages:
   Open Sans / Lato (Google Fonts).
   ============================================================ */

:root {
  /* Brand palette (GLC-inspired) */
  --glc-navy:        #002b6b;
  --glc-navy-deep:   #001b45;
  --glc-blue:        #0a4ea3;
  --glc-blue-light:  #e8f0fb;
  --glc-gold:        #ffc20e;
  --glc-gold-deep:   #e0a800;
  --glc-peach:       #ff7e47;   /* Georgia peach accent */
  --glc-green:       #1b8a4b;
  --glc-green-light: #e6f4ec;
  --glc-red:         #c8202f;
  --glc-red-light:   #fcebec;
  --glc-amber:       #b6781e;
  --glc-amber-light: #fdf3e0;

  /* Neutrals */
  --ink:        #15233b;
  --ink-2:      #46566f;
  --muted:      #6b7a93;
  --line:       #dde4ee;
  --line-2:     #eef2f8;
  --surface:    #ffffff;
  --surface-2:  #f6f8fc;
  --surface-3:  #eef2f8;

  /* Type */
  --font-head: 'Lato', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', system-ui, sans-serif;

  /* Geometry */
  --radius:    10px;
  --radius-sm: 7px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16,33,66,.06), 0 1px 3px rgba(16,33,66,.08);
  --shadow:    0 4px 14px rgba(16,33,66,.10);
  --shadow-lg: 0 18px 48px rgba(16,33,66,.18);
  --ring:      0 0 0 3px rgba(10,78,163,.28);

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface-2);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-2); }
a  { color: var(--glc-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: .8rem; }

/* ---------- Top brand bar ---------- */
.gov-bar {
  background: var(--glc-navy-deep);
  color: #cdd9ee;
  font-size: .76rem;
  padding: 5px 0;
}
.gov-bar .wrap { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.gov-bar a { color: #cdd9ee; }

.site-header {
  background: var(--glc-navy);
  color: #fff;
  border-bottom: 4px solid var(--glc-gold);
  position: sticky; top: 0; z-index: 40;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 0; min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: radial-gradient(circle at 30% 28%, var(--glc-gold), var(--glc-gold-deep));
  display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.2);
}
.brand .mark span { font-family: var(--font-head); font-weight: 900; color: var(--glc-navy-deep); font-size: 1.25rem; }
.brand .txt b { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; display: block; letter-spacing: .2px; }
.brand .txt small { color: var(--glc-gold); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }

.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.main-nav a {
  color: #dbe6f7; padding: 8px 13px; border-radius: 8px; font-weight: 600;
  font-size: .9rem;
}
.main-nav a:hover { background: rgba(255,255,255,.10); text-decoration: none; }
.main-nav a.active { background: var(--glc-gold); color: var(--glc-navy-deep); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .92rem;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: .15s ease; text-decoration: none; line-height: 1;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--glc-blue); color: #fff; }
.btn-primary:hover { background: #08407f; text-decoration: none; color:#fff; }
.btn-gold { background: var(--glc-gold); color: var(--glc-navy-deep); }
.btn-gold:hover { background: var(--glc-gold-deep); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--glc-blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--glc-blue); background: var(--glc-blue-light); text-decoration: none; }
.btn-danger { background: var(--glc-red); color: #fff; }
.btn-danger:hover { background: #a4121f; text-decoration: none; color:#fff; }
.btn-success { background: var(--glc-green); color: #fff; }
.btn-success:hover { background: #136b39; text-decoration: none; color:#fff; }
.btn-sm { padding: 7px 13px; font-size: .82rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- Cards / surfaces ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-head {
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head h3 { margin: 0; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 800; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 100px; text-transform: uppercase;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-gray   { background: var(--surface-3); color: var(--ink-2); }
.b-blue   { background: var(--glc-blue-light); color: var(--glc-blue); }
.b-green  { background: var(--glc-green-light); color: var(--glc-green); }
.b-amber  { background: var(--glc-amber-light); color: var(--glc-amber); }
.b-red    { background: var(--glc-red-light); color: var(--glc-red); }
.b-gold   { background: #fff5d6; color: var(--glc-amber); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.req { color: var(--glc-red); }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .92rem;
  color: var(--ink); background: #fff; transition: .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--glc-blue); box-shadow: var(--ring); }
textarea { resize: vertical; min-height: 80px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }

/* ---------- Layout helpers ---------- */
.row { display: flex; gap: 16px; }
.row.wrapfx { flex-wrap: wrap; }
.between { justify-content: space-between; align-items: center; }
.center { align-items: center; }
.gap-sm { gap: 8px; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 28px; }
.mb { margin-bottom: 16px; }
.muted { color: var(--muted); }
.txt-c { text-align: center; }
.flex-1 { flex: 1; }
.page { max-width: var(--maxw); margin: 26px auto; padding: 0 22px; }
.page-narrow { max-width: 560px; margin: 40px auto; padding: 0 22px; }

footer.site-footer {
  background: var(--glc-navy-deep); color: #aebfdb; margin-top: 48px;
  padding: 28px 0; font-size: .82rem;
}
footer.site-footer a { color: #cdd9ee; }
footer.site-footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }

/* ---------- Toast ---------- */
#toast-host { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-size: .88rem; max-width: 320px; display: flex; gap: 10px; align-items: flex-start;
  animation: toastin .25s ease;
}
.toast.ok { background: var(--glc-green); }
.toast.warn { background: var(--glc-amber); }
.toast.err { background: var(--glc-red); }
@keyframes toastin { from { transform: translateY(12px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
