/* ============================================================
   GLOBAL FOOTER — unified across all public marketing pages.
   Fully namespaced under .yk-footer so it wins over the legacy
   per-page `footer { ... }` element rules and never leaks into
   page styles. Self-contained variables: --accent falls back to
   the site cyan on standalone pages (container-trucks, legal).
============================================================ */

.yk-footer {
  --ykf-accent: var(--accent, #06b6d4);
  --ykf-accent-soft: rgba(6, 182, 212, 0.14);
  --ykf-bg: #050a18;
  --ykf-border: rgba(148, 163, 184, 0.14);
  --ykf-text: #94a3b8;
  --ykf-text-strong: #f1f5f9;

  position: relative;
  margin: 72px 0 0;
  padding: 0;
  max-width: 100%;
  background:
    radial-gradient(1100px 380px at 88% -12%, rgba(6, 182, 212, 0.09), transparent 62%),
    radial-gradient(900px 320px at 4% 108%, rgba(14, 165, 233, 0.06), transparent 58%),
    linear-gradient(180deg, #0a1122 0%, var(--ykf-bg) 58%);
  border-top: 1px solid rgba(6, 182, 212, 0.24);
  color: var(--ykf-text);
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
}

.yk-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 28px;
}

/* ---------- columns ---------- */
.yk-footer-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1.2fr 1.2fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

/* ---------- brand block ---------- */
.yk-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.yk-footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0891b2, #06b6d4 55%, #38bdf8);
  color: #04121f;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 26px rgba(6, 182, 212, 0.35);
}

.yk-footer-logotext {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.yk-footer-logotext strong {
  color: var(--ykf-text-strong);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.yk-footer-logotext small {
  color: var(--ykf-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.yk-footer-snippet {
  margin: 0 0 22px;
  max-width: 420px;
  color: var(--ykf-text);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ---------- language switcher (EN | UZ | RU) ---------- */
.yk-footer-langs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.22);
}

.yk-footer-langs .lang-option {
  border: none;
  background: transparent;
  color: var(--ykf-text);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.22s ease;
}

.yk-footer-langs .lang-option:hover {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.14);
}

.yk-footer-langs .lang-option.active {
  color: #04121f;
  background: linear-gradient(135deg, #0891b2, #38bdf8);
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.35);
}

.yk-footer-langs .lang-option:focus-visible {
  outline: 2px solid var(--ykf-accent);
  outline-offset: 2px;
}

/* ---------- link columns ---------- */
.yk-footer-col h4 {
  margin: 6px 0 18px;
  color: var(--ykf-text-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.yk-footer-col h4::after {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ykf-accent), transparent);
}

.yk-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.yk-footer-col ul li {
  margin: 0;
  padding: 0;
}

.yk-footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ykf-text);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.yk-footer-col a:hover {
  color: var(--ykf-accent);
  transform: translateX(3px);
}

.yk-footer-col a:focus-visible {
  outline: 2px solid var(--ykf-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- contact column ---------- */
.yk-footer-contact i,
.yk-footer-contact .yk-footer-ico {
  width: 16px;
  flex: 0 0 16px;
  color: var(--ykf-accent);
  font-size: 13px;
  text-align: center;
}

.yk-footer-address {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ykf-text);
  font-size: 13.5px;
}

.yk-footer-address i { margin-top: 5px; }

/* ---------- bottom bar ---------- */
.yk-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--ykf-border);
  font-size: 12.5px;
  color: #64748b;
}

.yk-footer-bottom p { margin: 0; }

.yk-footer-bottom .yk-accent { color: var(--ykf-accent); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .yk-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .yk-footer-brand { grid-column: 1 / -1; }

  .yk-footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .yk-footer-inner { padding: 48px 20px 24px; }

  .yk-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }

  .yk-footer-snippet { max-width: 100%; }

  .yk-footer-langs {
    display: flex;
    width: 100%;
    max-width: 320px;
  }

  .yk-footer-langs .lang-option { flex: 1; }

  .yk-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ============================================================
   FAQ ACCORDION (global) — smooth max-height slide + rotating
   chevron. Markup: .faq-acc-item > (heading > button.faq-acc-q
   with .faq-arrow) + .faq-acc-a. Obsidian/cyan palette.
============================================================ */
.faq-acc-item { padding: 0 !important; overflow: hidden; }

/* two classes so this outranks page rules like `.geo-faq-item h3` */
.faq-acc-item .faq-acc-heading { margin: 0; }

.faq-acc-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  border: none;
  background: transparent;
  color: #f1f5f9;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-acc-q:hover { color: var(--accent, #06b6d4); }

.faq-acc-q:focus-visible {
  outline: 2px solid var(--accent, #06b6d4);
  outline-offset: -2px;
  border-radius: 10px;
}

.faq-arrow {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent, #06b6d4);
  font-size: 12px;
  transition: transform 0.3s ease-out, background 0.3s ease-out, color 0.3s ease-out;
}

.faq-acc-item.active .faq-arrow {
  transform: rotate(180deg);
  background: var(--accent, #06b6d4);
  color: #04121f;
}

.faq-acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-acc-a > p {
  padding: 0 24px 20px;
  margin: 0;
}

/* ============================================================
   SCROLL REVEAL (global) — .reveal-on-scroll fades and lifts a
   section into view when it enters the viewport. Elements are
   only hidden once reveal.js has loaded (html.reveal-ready), so
   content is never lost if JS is unavailable.
============================================================ */
.reveal-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.reveal-ready .reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .faq-acc-a { transition: none; }

  .faq-arrow { transition: none; }
}
