/* ExarLabs flagship (exarlabs.com) — site styles
 *
 * Uses the shared Exar Design System (themes/exar, copied into src/theme/).
 * Committed navy + warm clay, Bricolage Grotesque + Hanken Grotesk, OKLCH.
 * This file layers ONLY the flagship's 12-block section CSS on top of the
 * shared tokens + base components.
 */

@import url("theme/tokens.css");
@import url("theme/components.css");

/* =============================================================================
 *  Header navigation (flagship adds a nav between logo and CTA)
 * ========================================================================== */
.site-nav { display: none; gap: 1.6rem; }
.site-nav a {
  position: relative;
  font-size: 0.95rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.site-nav a:hover { color: var(--navy-700); }
.site-nav a.is-active { color: var(--navy-700); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.45rem; height: 2px; background: var(--clay-500); border-radius: 2px; }
.header-contact {
  font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--navy-700);
  padding: 0.5rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  transition: background var(--t), border-color var(--t);
}
.header-contact:hover { background: var(--navy-100); border-color: var(--navy-700); }

/* Header right cluster: language switcher + CTA */
.header-end { display: flex; align-items: center; gap: 0.9rem; }
.lang-switch { display: flex; gap: 0.1rem; font-size: 0.82rem; font-weight: 600; }
.lang-switch a { color: var(--ink-muted); text-decoration: none; padding: 0.2rem 0.42rem; border-radius: 6px; line-height: 1.1; }
.lang-switch a:hover { color: var(--navy-700); }
.lang-switch a[aria-current] { color: var(--navy-700); background: var(--navy-100); }

@media (min-width: 900px) {
  .site-nav { display: flex; }
}

/* =============================================================================
 *  Shared section helpers
 * ========================================================================== */
.section-sub { color: var(--ink-muted); max-width: 60ch; font-size: 1.1rem; margin-bottom: 2rem; }
.quiet-link {
  display: inline-block; margin-top: 1.4rem; font-weight: 600; color: var(--navy-700);
  text-decoration: none; border-bottom: 1.5px solid var(--clay-500); padding-bottom: 1px;
}
.card-link {
  display: inline-block; margin-top: auto; font-weight: 600; color: var(--navy-700);
  text-decoration: none; font-size: 0.95rem;
}
.card-link:hover { color: var(--navy-800); }

/* Section colour-band rhythm */
.problem, .speed, .ventures, .work, .langs { background: var(--bg); }
.services, .local, .router, .team { background: var(--surface); }
.values { background: var(--navy-100); }

/* =============================================================================
 *  1 — Hero (committed navy band)
 * ========================================================================== */
.hero { background: var(--navy-700); color: var(--on-navy); padding: clamp(3.5rem, 9vw, 7rem) 0; }
.hero h1 { color: var(--on-navy); max-width: 20ch; }
.hero-content { max-width: 54rem; }
.hero-content > * { animation: fade-up 0.7s var(--ease) both; }
.hero-content > *:nth-child(2) { animation-delay: 0.06s; }
.hero-content > *:nth-child(3) { animation-delay: 0.12s; }
.hero-content > *:nth-child(4) { animation-delay: 0.18s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--on-navy-muted); max-width: 60ch; margin-bottom: 1.4rem; }
.hero-sub strong { color: var(--on-navy); }
.hero-trust {
  font-size: 0.98rem; color: var(--on-navy-muted); font-weight: 500;
  display: flex; align-items: baseline; gap: 0.6rem; max-width: 56ch;
}
.hero-trust::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--clay-500); transform: translateY(-0.1em); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.8rem; }
.hero-secondary-link { color: var(--on-navy); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--clay-500); padding-bottom: 1px; }

/* =============================================================================
 *  2 — Probléma-megértés
 * ========================================================================== */
.problem-lead { font-size: 1.15rem; line-height: 1.6; max-width: 65ch; }
.situation-chips { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 0.8rem; }
.situation-chips li {
  position: relative; padding: 0.9rem 1.1rem 0.9rem 2.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 500;
}
.situation-chips li::before {
  content: counter(chip); counter-increment: chip;
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  width: 1.4rem; height: 1.4rem; border-radius: 999px; background: var(--navy-700); color: var(--on-navy);
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  display: grid; place-items: center;
}
.situation-chips { counter-reset: chip; }

/* =============================================================================
 *  3 — Szolgáltatási irányok (bordered cards, arrow links)
 * ========================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.service-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem 1.8rem;
  background: var(--bg); box-shadow: var(--shadow-sm);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.service-card:hover { transform: translateY(-3px); border-color: var(--navy-300); box-shadow: var(--shadow); }
.service-card h3 { color: var(--navy-800); }
.service-card p { color: var(--ink-muted); margin-bottom: 1.2rem; }

/* =============================================================================
 *  4 — Új eszközökkel gyorsabban (3 columns, no card chrome)
 * ========================================================================== */
.speed-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1rem; }
.speed-col { padding-top: 1.1rem; border-top: 2px solid var(--navy-700); }
.speed-col h3 { color: var(--navy-800); margin-bottom: 0.4rem; }
.speed-col p { color: var(--ink-muted); margin: 0; }

/* =============================================================================
 *  5 — Hogyan dolgozunk (4 typographic cards on tint band)
 * ========================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.value-card { background: var(--bg); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.value-card h3 { font-size: 1.5rem; color: var(--navy-700); margin-bottom: 0.5rem; }
.value-card p { color: var(--ink-muted); margin: 0; }

/* =============================================================================
 *  6 — Helyi piacra (reading block)
 * ========================================================================== */
.local p { font-size: 1.1rem; line-height: 1.65; }
.local-mark {
  font-family: var(--font-display); font-weight: 600; color: var(--navy-700);
  font-size: 1.15rem; margin-top: 0.5rem;
}

/* =============================================================================
 *  7 — Saját megoldások (status-led cards)
 * ========================================================================== */
.venture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.venture-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem;
  background: var(--bg); box-shadow: var(--shadow-sm);
}
.venture-card h3 { color: var(--navy-800); margin: 0.7rem 0 0.4rem; }
.venture-card p { color: var(--ink-muted); margin: 0; }
.status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.28rem 0.7rem; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-muted);
}
.status-dot { width: 0.55rem; height: 0.55rem; border-radius: 999px; background: var(--ink-muted); }
.status-live    .status-dot { background: var(--zone-green); }
.status-pilot   .status-dot { background: var(--zone-yellow); }
.status-building .status-dot { background: var(--navy-600); }
.status-exp     .status-dot { background: var(--zone-red); }

/* =============================================================================
 *  8 — Helyzet-router (quote-led cards, distinct from §3)
 * ========================================================================== */
.router-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.router-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem 1.8rem;
  background: var(--bg); box-shadow: var(--shadow-sm);
  transition: transform var(--t), border-color var(--t);
}
.router-card:hover { transform: translateY(-3px); border-color: var(--navy-300); }
.router-quote { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy-800); line-height: 1.25; margin-bottom: 0.7rem; }
.router-card p:not(.router-quote) { color: var(--ink-muted); margin-bottom: 1.2rem; }

/* =============================================================================
 *  9 — Amiken dolgozunk (compact list, no CTA)
 * ========================================================================== */
.work-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.work-list li { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.work-list li:nth-child(odd) { padding-right: 2rem; }
.work-list li:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); }
.work-list h3 { color: var(--navy-800); margin-bottom: 0.3rem; }
.work-list p { color: var(--ink-muted); margin: 0; }

/* =============================================================================
 *  10 — Csapat (reading block)
 * ========================================================================== */
.team p { font-size: 1.1rem; line-height: 1.65; }

/* =============================================================================
 *  11 — Nyelvek (small trust block)
 * ========================================================================== */
.langs { padding: clamp(2rem, 4vw, 3rem) 0; }
.langs h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.langs p { color: var(--ink-muted); }

/* =============================================================================
 *  12 — Záró CTA (navy band)
 * ========================================================================== */
.final-cta { background: var(--navy-800); color: var(--on-navy); }
.final-cta h2 { color: var(--on-navy); }
.final-cta p { color: var(--on-navy-muted); max-width: 60ch; }
.cta-paths { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.6rem 0; }
.final-cta .btn-secondary { color: var(--on-navy); border-color: oklch(0.97 0.01 250 / 0.4); }
.final-cta .btn-secondary:hover { background: oklch(0.97 0.01 250 / 0.1); border-color: var(--on-navy); }
.cta-closing { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--on-navy); margin-top: 0.5rem; }

/* =============================================================================
 *  Footer (navy band — distilled: two zones, one divider)
 * ========================================================================== */
.site-footer { padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.8rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.8rem 3rem; padding-bottom: 1.8rem; }
.footer-brand { max-width: 36ch; }
.footer-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.15; color: var(--on-navy); letter-spacing: -0.01em; }
.footer-tagline { margin: 0.55rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--on-navy-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-content: flex-start; }
.footer-links a { font-size: 0.92rem; font-weight: 600; color: var(--on-navy); text-decoration: none; }
.footer-links a:hover { color: var(--clay-400); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem 1.5rem; padding-top: 1.5rem; border-top: 1px solid oklch(0.97 0.01 250 / 0.12); }
.footer-company { margin: 0; font-size: 0.82rem; color: var(--on-navy-muted); }
.footer-bottom-end { display: flex; align-items: center; gap: 1.4rem; }
.footer-lang { display: flex; gap: 0.1rem; font-size: 0.82rem; font-weight: 600; }
.footer-lang a { color: var(--on-navy-muted); text-decoration: none; padding: 0.2rem 0.42rem; border-radius: 6px; line-height: 1.1; }
.footer-lang a:hover { color: var(--on-navy); }
.footer-lang a[aria-current] { color: var(--on-navy); background: oklch(0.97 0.01 250 / 0.14); }
.footer-legal { display: flex; gap: 1rem; font-size: 0.82rem; }
.footer-legal a { color: var(--on-navy-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--on-navy); }

/* =============================================================================
 *  Legal pages (impresszum / adatvédelem)
 * ========================================================================== */
.legal-block { max-width: var(--maxw-narrow); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.legal-block h1 { margin-bottom: 1.5rem; }
.legal-block h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.legal-block dt { font-weight: 700; color: var(--navy-700); margin-top: 1rem; font-family: var(--font-display); }
.legal-block dd { margin: 0 0 0.5rem; }
body > header:not(.site-header) nav { max-width: var(--maxw-narrow); margin: 0 auto; padding: 1.2rem 1.5rem; }
body > footer:not(.site-footer) { padding: 2rem 0; }
body > footer:not(.site-footer) nav, body > footer:not(.site-footer) p { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 1.5rem; }
body > footer:not(.site-footer) nav { display: flex; gap: 1.2rem; margin-bottom: 0.5rem; }

/* =============================================================================
 *  Responsive
 * ========================================================================== */
@media (max-width: 760px) {
  .service-grid, .speed-cols, .value-grid, .venture-grid, .router-grid { grid-template-columns: 1fr; }
  .work-list { grid-template-columns: 1fr; border-top: none; }
  .work-list li:nth-child(odd) { padding-right: 0; }
  .work-list li:nth-child(even) { padding-left: 0; border-left: none; }
}
