/* globalcell.events — tokens from docs/05 (Palitra handoff). Hex values live ONLY in :root. */
@font-face { font-family: "FiraGO"; src: url("/assets/FiraGO-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "FiraGO"; src: url("/assets/FiraGO-Medium.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --brand: #1466d4; --brand-600: #1157b5; --brand-50: #eaf1fc;
  --sky: #4dbbff; --navy: #0b2559; --navy-900: #071a40;
  --cta: #ef7c08; --cta-600: #d96f05; --cta-strong: #b85a00;
  --ink: #1b2433; --ink-muted: #5b6779;
  --surface: #ffffff; --surface-alt: #f5f8fc; --line: #d8e1ee;
  --success: #1a7f37; --warning: #9a5b00; --danger: #b42318;
  --on-navy: #ffffff; --on-cta: #0b2559;
  --focus-light: #1466d4; --focus-dark: #4dbbff;
  --type-tradefair: #1466d4; --type-conference: #0b2559; --type-festival: #ef7c08; --type-sports: #4dbbff;
  --font-sans: "FiraGO", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Georgian", sans-serif;
  --text-display: 3rem; --text-h1: 2.25rem; --text-h2: 1.75rem; --text-h3: 1.25rem; --text-small: 0.875rem;
  --radius-card: 1rem; --radius-button: 999px; --radius-date: 0.75rem;
  --shadow-card: 0 4px 16px rgb(11 37 89 / 0.08); --shadow-card-hover: 0 8px 28px rgb(11 37 89 / 0.16);
  --gutter: 1rem; --container: 80rem;
  --ease: cubic-bezier(0.2, 0, 0, 1); --dur: 200ms;
}
:lang(ka) { --text-display: 2.5rem; --text-h1: 2rem; }
@media (prefers-reduced-motion: reduce) { :root { --dur: 0ms; } html { scroll-behavior: auto; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--surface); }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: var(--text-h1); line-height: 1.15; }
h2 { font-size: var(--text-h2); }
h3, .h3 { font-size: var(--text-h3); line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:hover { color: var(--brand-600); }
:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, .site-footer :focus-visible, .band-navy :focus-visible { outline-color: var(--focus-dark); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.small { font-size: var(--text-small); line-height: 1.5; }
.muted { color: var(--ink-muted); }
.plain { list-style: none; margin: 0; padding: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cta); color: var(--on-cta); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.ic { flex: none; }

/* header */
.site-header { background: var(--navy); color: var(--on-navy); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.logo-chip { display: inline-flex; background: var(--surface); border-radius: 0.6rem; padding: 0.4rem 0.7rem; }
.logo-chip img { display: block; width: 8.5rem; height: auto; }
.brand-sub { font-weight: 500; letter-spacing: 0.02em; }
.main-nav { flex: 1 1 auto; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a, .lang-switch { color: var(--on-navy); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.25rem; }
.main-nav a:hover, .lang-switch:hover { text-decoration: underline; color: var(--on-navy); }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--sky); }
.lang-switch { border: 1px solid rgb(255 255 255 / 0.5); border-radius: var(--radius-button); padding-inline: 1rem; margin-left: auto; }
@media (max-width: 40rem) { .main-nav { order: 3; flex-basis: 100%; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.6rem 1.4rem; border-radius: var(--radius-button); font: inherit; font-weight: 500; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn-cta { background: var(--cta); color: var(--on-cta); }
.btn-cta:hover { background: var(--cta-600); color: var(--on-cta); }
.btn-secondary { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.btn-secondary:hover { background: var(--brand-50); color: var(--brand); }
.band-navy .btn-secondary { background: transparent; color: var(--on-navy); border-color: var(--on-navy); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* sections */
.section { padding-block: 3rem; }
.section-tight { padding-block: 2rem; }
.section.alt { background: var(--surface-alt); }
.page-head { padding-block: 2rem 0.5rem; }
.lede { font-size: 1.15rem; color: var(--ink); max-width: 46rem; }
.more { margin-top: 1.5rem; }
.breadcrumb { padding-block: 1rem 0; font-size: var(--text-small); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; color: var(--ink-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.25rem; }

/* hero */
.hero { background: linear-gradient(180deg, var(--brand-50), var(--surface)); padding-block: 3rem 2.5rem; }
.hero h1 { font-size: var(--text-display); line-height: 1.1; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-art { width: 100%; max-width: 22rem; justify-self: center; }
@media (min-width: 52rem) { .hero-grid { grid-template-columns: 1.3fr 1fr; } }
.search { position: relative; max-width: 32rem; margin-top: 1.5rem; }
.search label { display: block; font-weight: 500; margin-bottom: 0.35rem; }
input, select, textarea { font: inherit; color: var(--ink); width: 100%; min-height: 44px; padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: 0.6rem; background: var(--surface); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 1px; }
input[type="checkbox"] { width: 1.25rem; min-height: 0; height: 1.25rem; flex: none; margin-top: 0.25rem; accent-color: var(--brand); }
.search-results { position: absolute; z-index: 5; left: 0; right: 0; list-style: none; margin: 0.25rem 0 0; padding: 0.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0.6rem; box-shadow: var(--shadow-card); }
.search-results a { display: block; padding: 0.6rem 0.75rem; text-decoration: none; color: var(--ink); border-radius: 0.4rem; }
.search-results a:hover, .search-results a:focus-visible { background: var(--brand-50); }

/* cards + grid */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 1.25rem; }
.event-card { display: flex; gap: 1rem; transition: box-shadow var(--dur) var(--ease); position: relative; }
.event-card:hover { box-shadow: var(--shadow-card-hover); }
.event-card h3 { margin: 0.4rem 0 0.25rem; font-size: 1.15rem; }
.event-card h3 a { color: var(--navy); text-decoration: none; }
.event-card h3 a::after { content: ""; position: absolute; inset: 0; }
.event-card .meta { margin: 0; font-size: var(--text-small); color: var(--ink-muted); }
.date-badge { flex: none; width: 3.75rem; height: 4.25rem; border-radius: var(--radius-date); background: var(--navy); color: var(--on-navy); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; text-align: center; }
.date-m { font-size: 0.75rem; text-transform: uppercase; color: var(--sky); letter-spacing: 0.04em; }
.date-d { font-size: 1.1rem; font-weight: 700; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 500; padding: 0.15rem 0.6rem; border-radius: 999px; color: var(--on-navy); background: var(--type-tradefair); }
.badge-conference { background: var(--type-conference); }
.badge-festival { background: var(--type-festival); color: var(--on-cta); }
.badge-sports { background: var(--type-sports); color: var(--on-cta); }

/* how it works */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.step { display: flex; flex-direction: column; gap: 0.25rem; }
.step h3 { margin: 0; }
.step p { margin: 0; }
.step-n { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand); color: var(--on-navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 0.5rem; }

/* bands */
.band { padding-block: 2.5rem; }
.band-navy { background: var(--navy); color: var(--on-navy); }
.band-navy h2 { color: var(--on-navy); }
.band-navy a:not(.btn) { color: var(--sky); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.band-inner h2 { margin-bottom: 0.25rem; }
.band-inner p { margin: 0; }
.band-light { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.75rem; }
.band-inline { border-radius: var(--radius-card); padding: 1.75rem; margin-block: 2rem; }

/* event page */
.event { padding-bottom: 3rem; }
.event-head { padding-block: 1.25rem 0.5rem; }
.facts { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 1rem 0; }
.facts dt { font-size: var(--text-small); color: var(--ink-muted); }
.facts dd { margin: 0; font-weight: 500; }
.notice { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.9rem 1rem; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 0.75rem; color: var(--ink-muted); font-size: var(--text-small); margin-block: 1rem; }
.notice p { margin: 0; }
.recommender { background: var(--surface-alt); box-shadow: none; margin-block: 1.5rem; }
.rec-inputs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: 0.75rem; }
.rec-result { margin-top: 1rem; padding: 1rem; background: var(--surface); border: 2px solid var(--brand); border-radius: 0.75rem; }
.rec-zone { font-size: 1.2rem; margin-bottom: 0.5rem; }
.rec-facts { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.eu-note { margin-top: 0.75rem; }
.two-col { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-block: 1.5rem; }
.tips { padding-left: 1.25rem; margin: 0 0 1rem; }
.tips li { margin-bottom: 0.5rem; }
.faq details { border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.75rem 1rem; margin-bottom: 0.75rem; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin: 0.25rem 0 0.5rem; }

/* filters + forms */
.filters { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: 1rem; }
.field { margin-bottom: 1rem; }
.field label, .check label { font-weight: 500; }
.field label { display: block; margin-bottom: 0.3rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1rem; }
.check label { font-weight: 400; }
.form h2 { margin-bottom: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error, .form-error { color: var(--danger); font-size: var(--text-small); margin: 0.3rem 0 0; }
.field-error::before, .form-error::before { content: "⚠ "; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.form-status { min-height: 1.5em; }
.form-status.ok { background: var(--brand-50); color: var(--navy); padding: 0.75rem 1rem; border-radius: 0.6rem; }
.form-status.err { color: var(--danger); }
.prose h2 { font-size: 1.4rem; margin-top: 1.75rem; }
.numbered { padding-left: 1.25rem; }
.numbered li { margin-bottom: 1rem; }
.models .card h3 { margin-top: 0; }

/* footer */
.site-footer { background: var(--navy); color: var(--on-navy); padding-block: 2.5rem 1.5rem; margin-top: 2rem; }
.site-footer a { color: var(--on-navy); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 40rem) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-h { color: var(--sky); font-size: 1rem; }
.site-footer li { margin-bottom: 0.25rem; }
.copyright { border-top: 1px solid rgb(255 255 255 / 0.2); padding-top: 1rem; margin-top: 1.5rem; color: rgb(255 255 255 / 0.8); }
[hidden] { display: none !important; }
