/* Georgia Game Machines / Continental Games — static site styles. No external fonts or frameworks. */
:root {
  --red: #b5121b;
  --red-dark: #8e0d14;
  --ink: #1b1d21;
  --text: #33363b;
  --muted: #646a73;
  --line: #e3e5e8;
  --bg: #ffffff;
  --soft: #f5f6f8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { width: 128px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.site-nav a, .sub-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 .95rem/1.2 var(--font); background: none; border: 0; cursor: pointer; }
.site-nav a:hover, .sub-toggle:hover { background: var(--soft); color: var(--red); }
.site-nav a[aria-current="page"], .has-sub.is-active > .sub-toggle { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); border-radius: 8px 8px 0 0; }
.has-sub { position: relative; }
.sub { position: absolute; right: 0; top: 100%; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: none; }
.sub a { display: block; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.menu-toggle { display: none; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 12px; font: 600 .95rem var(--font); color: var(--ink); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
.bars::before { position: absolute; top: -6px; } .bars::after { position: absolute; top: 6px; }

@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 76px); overflow-y: auto; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; padding: 8px 16px 16px; gap: 0; }
  .site-nav a, .sub-toggle { width: 100%; padding: 12px 8px; border-radius: 6px; justify-content: space-between; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); border-radius: 0; }
  .sub { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
}

/* Page sections */
.page-head { background: linear-gradient(180deg, var(--soft), #fff); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.page-head .lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; margin: 0; }
.section { padding: 36px 0 48px; }
.section.tight { padding-top: 0; }
.section-title { margin-top: 0; text-align: center; }
.prose { max-width: 780px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.narrow { max-width: 640px; margin: 0 auto; }
blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 4px solid var(--red); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
blockquote p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-img { margin: 8px 0 24px; max-width: 640px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin: .9em 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.checklist { list-style: none; padding-left: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 20px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

/* Buttons & badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; border: 2px solid var(--red); padding: 11px 20px; border-radius: 8px; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--red); }
.btn-ghost:hover { background: var(--red); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--soft); color: var(--ink); border-color: var(--soft); }
.btn[disabled] { opacity: .65; cursor: progress; }
.badge { display: inline-block; background: #4a4f57; color: #fff; padding: 10px 18px; border-radius: 6px; text-decoration: none; font-weight: 600; margin: 8px 0 18px; }
.badge:hover { background: var(--ink); color: #fff; }
.cta { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--ink); color: #e9eaec; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.cta p { margin: 0; max-width: 620px; }
.cta a:not(.btn) { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn-ghost { color: #fff; border-color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--ink); }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: #111; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,.85), rgba(10,10,12,.35)); }
.hero-inner { position: relative; z-index: 1; padding: 88px 16px 96px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: #ffb3b6; margin-bottom: 10px; }
.slides { position: relative; min-height: 2.6em; font-size: clamp(1.8rem, 5vw, 3.2rem); }
.slide { color: #fff; font-size: 1em; position: absolute; left: 0; top: 0; margin: 0; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s; max-width: 760px; }
.slide.is-on { opacity: 1; transform: none; position: relative; }
.hero-sub { font-size: 1.1rem; max-width: 620px; color: #e5e6e8; margin: 16px 0 24px; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } html { scroll-behavior: auto; } }

/* Cards & galleries */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(16,24,40,.12); color: var(--text); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--soft); }
.card-body { padding: 16px 18px 20px; }
.card-body p { margin-bottom: .6em; }
.more { color: var(--red); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }
.gallery figure { margin: 0; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.game-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.game-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.game-grid figcaption { font-weight: 600; color: var(--ink); text-align: center; font-size: .95rem; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.video h2 { font-size: 1.15rem; margin: 0 0 10px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.yt iframe, .yt-fallback, .yt-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: var(--red); border-radius: 12px; }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }

/* Forms */
.site-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.req { color: var(--red); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: inherit; color: var(--ink); padding: 11px 12px; border: 1px solid #c9cdd3; border-radius: 8px; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--red); outline: 3px solid rgba(181, 18, 27, .15); outline-offset: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c62828; }
.field-error { color: #c62828; font-size: .88rem; margin-top: 4px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; background: var(--soft); border-radius: 8px; padding: 12px; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--red); }
.consent label { font-weight: 400; font-size: .92rem; color: var(--text); margin: 0; }
.form-actions { margin-top: 8px; }
.form-actions .btn { width: 100%; }
.form-status { margin: 12px 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1b7f3b; } .form-status.err { color: #c62828; }
.site-form.done .grid, .site-form.done .field, .site-form.done .form-actions, .site-form.done .fine { display: none; }
.site-form.done .form-status { font-size: 1.1rem; margin: 0; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.contact-card { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.icon-circle { width: 64px; height: 64px; border-radius: 50%; background: #5d636c; color: #fff; display: grid; place-items: center; margin-bottom: 12px; }
.big-link { font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.big-link:hover { color: var(--red); }

/* Footer */
.site-footer { background: #121316; color: #c9ccd1; margin-top: 24px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 44px 16px 28px; }
.footer-logo { width: 150px; margin-bottom: 12px; background: #fff; border-radius: 8px; padding: 6px; }
.footer-h { color: #fff; font-size: 1rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer .muted { color: #9ea3ab; }
.site-footer .big-link { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 6px 0; }
.footer-links a { color: #c9ccd1; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #2a2c31; padding: 16px; font-size: .85rem; color: #8b9098; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }
