/* Slovak Florida — site styles
   Layout: one centred column (max 1120px); sticky header; sections separated by space, not boxes.
   Colour: Slovak blue as the working accent, red only as a small spot, linden green for "we speak Slovak". */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eaf0f8;
  --ink: #0f1b2d;
  --muted: #4f5d73;
  --line: #d8e0ec;
  --blue: #0b4ea2;
  --blue-ink: #ffffff;
  --red: #d22630;
  --leaf: #23734f;
  --leaf-bg: #e3f2ea;
  --sun: #f2b544;
  --map-land: #dfe7f2;
  --map-edge: #9fb2cc;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.3rem, 5vw, 3.4rem);

  --radius: 10px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1320; --surface: #121c2c; --surface-2: #17263d; --ink: #e7edf6; --muted: #9daac0;
    --line: #253450; --blue: #79a8f0; --blue-ink: #0b1320; --red: #ff6f74; --leaf: #6fd0a2;
    --leaf-bg: #143327; --sun: #f5c76b; --map-land: #1b2a42; --map-edge: #3d5578;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1320; --surface: #121c2c; --surface-2: #17263d; --ink: #e7edf6; --muted: #9daac0;
  --line: #253450; --blue: #79a8f0; --blue-ink: #0b1320; --red: #ff6f74; --leaf: #6fd0a2;
  --leaf-bg: #143327; --sun: #f5c76b; --map-land: #1b2a42; --map-edge: #3d5578;
  color-scheme: dark;
}

/* Language switch: both languages are in the HTML, the inactive one is hidden. */
html[data-lang="sk"] [lang="en"]:not(html),
html[data-lang="en"] [lang="sk"]:not(html) { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; }
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.prose { max-width: 66ch; display: grid; gap: 0.9em; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 0.35em; }
.eyebrow {
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; }

/* ---------- header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.tricolor { height: 4px; background: linear-gradient(90deg, #ffffff 0 33.3%, #0b4ea2 33.3% 66.6%, #ee1c25 66.6%); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 0.97rem;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--surface-2); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.lang-switch button {
  font: inherit; font-weight: 700; font-size: 0.85rem; border: 0; background: transparent; color: var(--muted);
  padding: 6px 11px; cursor: pointer; letter-spacing: 0.04em;
}
.lang-switch button[aria-pressed="true"] { background: var(--blue); color: var(--blue-ink); }
.menu-btn { display: none; font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 8px; }
}

/* ---------- preview banner ---------- */
.preview-banner { background: var(--sun); color: #2b1d00; font-weight: 600; font-size: var(--step--1); }
.preview-banner .wrap { padding-block: 8px; }

/* ---------- sections ---------- */
main { display: block; }
.section { padding-block: clamp(40px, 6vw, 72px); }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 8px; margin-bottom: 24px; max-width: 70ch; }
.page-head { padding-block: clamp(36px, 5vw, 56px) 8px; display: grid; gap: 12px; }
.page-head p { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.hero-copy .lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.hero-map { min-width: 0; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-map { max-width: 420px; } }

/* three doors */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 820px) { .doors { grid-template-columns: minmax(0, 1fr); } }
.door {
  display: grid; gap: 6px; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; transition: border-color .15s, transform .15s;
}
.door:hover { border-color: var(--blue); transform: translateY(-2px); }
.door .door-kicker { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.door .door-title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 650; }
.door .door-go { color: var(--blue); font-weight: 700; font-size: var(--step--1); }

/* ---------- buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--blue); color: var(--blue-ink); border: 1px solid var(--blue); border-radius: 8px; padding: 10px 16px;
}
.btn.ghost { background: transparent; color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 0.92rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count { font-variant-numeric: tabular-nums; color: inherit; opacity: 0.7; margin-left: 4px; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.sk { background: var(--leaf-bg); color: var(--leaf); }
.badge.warn { background: color-mix(in srgb, var(--sun) 30%, var(--surface)); color: var(--ink); }

/* ---------- events ---------- */
.event-list { display: grid; gap: 10px; }
.event {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.event-date { text-align: center; border-right: 1px solid var(--line); padding-right: 14px; font-variant-numeric: tabular-nums; }
.event-date .m { font-size: 0.8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.event-date .d { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.event-date .y { font-size: 0.8rem; color: var(--muted); }
.event-body { display: grid; gap: 4px; min-width: 0; }
.event-body h3 { font-size: 1.12rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: var(--step--1); }
.event-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--step--1); font-weight: 600; }
.event.observance { background: var(--surface-2); }
.month-label { font-family: var(--font-display); font-weight: 650; font-size: var(--step-1); margin: 18px 0 2px; }
.empty { padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- directory ---------- */
.dir-layout { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .dir-layout { grid-template-columns: minmax(0, 1fr); } }
.dir-side { display: grid; gap: 18px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
@media (max-width: 900px) { .dir-side { position: static; } }
.filter-group { display: grid; gap: 8px; }
.filter-group > label, .filter-group > .label { font-weight: 700; font-size: var(--step--1); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start;
}
.card.hl { border-color: var(--blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 35%, transparent); }
.card h3 { font-size: 1.08rem; }
.card .where { color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.card .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.card .link { font-weight: 600; font-size: var(--step--1); overflow-wrap: anywhere; }
.result-count { color: var(--muted); font-size: var(--step--1); margin-bottom: 10px; font-variant-numeric: tabular-nums; }

/* Florida map */
.fl-map { width: 100%; height: auto; display: block; }
.fl-map .land { fill: var(--map-land); stroke: var(--map-edge); stroke-width: 2; stroke-linejoin: round; }
.fl-map .dot { fill: var(--blue); stroke: var(--surface); stroke-width: 2.5; cursor: pointer; }
.fl-map .dot.sk { fill: var(--leaf); }
.fl-map .dot.dim { opacity: 0.2; }
.fl-map .city { fill: var(--muted); font-family: var(--font-body); font-size: 17px; font-weight: 600; }
.fl-map .dot:focus-visible { outline: none; stroke: var(--sun); stroke-width: 5; }

/* ---------- info blocks ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.panel.alert { border-left: 5px solid var(--red); }
.contact-line { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 4px 12px; font-size: 0.98rem; }
.contact-line dt { color: var(--muted); font-weight: 600; }
.contact-line dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 480px) { .contact-line { grid-template-columns: minmax(0, 1fr); } .contact-line dd { margin-bottom: 6px; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.steps li::before {
  content: counter(s); font-family: var(--font-display); font-weight: 700; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); color: var(--blue);
}
.callout { background: var(--surface-2); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- forms ---------- */
form.form { display: grid; gap: 18px; max-width: 760px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0; display: grid; gap: 14px; background: var(--surface); min-width: 0; }
legend { font-family: var(--font-display); font-weight: 650; font-size: var(--step-1); padding: 0 6px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; }
.field .hint { color: var(--muted); font-size: var(--step--1); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }
input[type="text"], input[type="email"], input[type="url"], input[type="date"], input[type="time"], input[type="search"], select, textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
textarea { min-height: 90px; resize: vertical; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; background: var(--bg); font-weight: 600; }
.radio-row input { accent-color: var(--blue); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-result { border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; }
.form-result.ok { background: var(--leaf-bg); }
.form-result.info { background: var(--surface-2); }
.form-result.err { background: color-mix(in srgb, var(--red) 14%, var(--surface)); }
.form-result pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; background: var(--surface); padding: 10px 12px; border-radius: 8px; max-height: 260px; overflow: auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; background: var(--surface); }
.site-footer .wrap { padding-block: 28px 36px; display: grid; gap: 14px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-cols a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer-cols a:hover { color: var(--blue); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
