/*
Theme Name:  Voronai
Theme URI:   https://voronai.com
Author:      Voronai
Description: Minimal full-width theme built for the Voronai Blocks plugin. Full-bleed sections, branded header and footer, no page titles above content.
Version:     2.11.0
Requires at least: 6.1
Requires PHP:      7.4
Text Domain: voronai-theme
*/

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans-Italic-Variable.ttf') format('truetype');
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  --vn-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #101828;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
a { color: #00C2D1; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.vt-header {
  background: #101828;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.vt-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vt-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.vt-logo img {
  height: 32px;
  width: auto;
  display: block;
}
.vt-logo .custom-logo-link img { height: 32px; width: auto; }
.vt-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.vt-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.vt-header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.vt-btn-ghost {
  font-size: 15px; font-weight: 500; color: #EEF2F6;
  padding: 10px 14px; border-radius: 8px; transition: color .15s ease;
}
.vt-btn-ghost:hover { color: #fff; }
.vt-btn-solid {
  font-size: 15px; font-weight: 600; color: #101828; background: #00C2D1;
  padding: 10px 20px; border-radius: 999px; white-space: nowrap; transition: filter .15s ease;
}
.vt-btn-solid:hover { filter: brightness(1.08); }
.vt-language-switcher { position: relative; flex-shrink: 0; z-index: 310; font-size: 14px; font-weight: 600; }
.vt-language-switcher summary {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 38px; min-width: 66px; padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
  color: #fff; cursor: pointer; list-style: none;
  font: inherit;
}
.vt-language-switcher summary::-webkit-details-marker { display: none; }
.vt-language-switcher summary::marker { content: ''; }
.vt-language-switcher summary:hover, .vt-language-switcher details[open] summary { border-color: #00C2D1; }
.vt-language-switcher summary:focus-visible, .vt-language-switcher a:focus-visible { outline: 2px solid #00C2D1; outline-offset: 2px; }
.vt-language-chevron { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.vt-language-switcher details[open] .vt-language-chevron { transform: rotate(225deg); margin-top: 3px; }
.vt-language-switcher ul {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1;
  min-width: 156px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid rgba(16,24,40,.1);
  border-radius: 10px; box-shadow: 0 14px 32px rgba(16,24,40,.18);
}
.vt-language-switcher li { margin: 0; padding: 0; }
.vt-language-switcher li a { display: block; padding: 9px 11px; border-radius: 6px; color: #101828; text-decoration: none; white-space: nowrap; }
.vt-language-switcher li a:hover, .vt-language-switcher li a[aria-current="page"] { background: #EEF2F6; color: #067A8C; }
.vt-footer-language ul { top: auto; bottom: calc(100% + 8px); }
@media (max-width: 900px) {
  .vt-header { padding: 0 20px; }
}
@media (max-width: 560px) {
  .vt-header { padding: 0 16px; }
  .vt-header-inner { height: 64px; gap: 8px; }
  .vt-logo img { height: 26px; }
  .vt-header-cta .vt-btn-solid { display: none; }
}

/* ── Fold-out mega-menu ─────────────────────────────────────────────────────
   Content is driven 100% by Appearance > Menus (primary location) via
   Voronai_Megamenu_Walker in functions.php. */
.nav__item { position: static; list-style: none; }
.nav__link {
  background: none; border: none; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px;
  font-size: 15px; font-weight: 500; color: var(--wp--preset--color--white, #fff);
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: var(--wp--preset--color--cyan, #00C2D1); background: rgba(255,255,255,.04); }
.nav__item.has-panel.is-active .nav__link { color: var(--wp--preset--color--cyan, #00C2D1); }
.nav__item.has-panel.is-active .nav__link .ti-chevron-down { transform: rotate(180deg); }
.nav__link .ti-chevron-down { transition: transform .2s ease; font-size: 15px; }

/* Full-width fold-out bar under the header, content centered like the rest of the site */
.nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(16,24,40,.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .28s ease, opacity .2s ease;
  z-index: 300;
}
.nav__panel.is-open { max-height: 480px; opacity: 1; }
.megamenu__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  padding: 0 32px;
}

/* Feature block: left sidebar column */
.megamenu__feature {
  flex: 0 0 260px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 32px 28px 0;
  border-right: 1px solid rgba(255,255,255,.08);
}
.megamenu__feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(0,194,209,.12);
  display: flex; align-items: center; justify-content: center;
}
.megamenu__feature-icon .ti { font-size: 20px; color: var(--wp--preset--color--cyan, #00C2D1); }
.megamenu__feature-text { display: flex; flex-direction: column; gap: 4px; }
.megamenu__feature-title { font-weight: 600; font-size: 17px; color: var(--wp--preset--color--white, #fff); }
.megamenu__feature-sub { font-size: 13.5px; line-height: 1.5; color: var(--wp--preset--color--mid-grey, #667085); }
.megamenu__feature-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--wp--preset--color--cyan, #00C2D1);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.megamenu__feature-cta .ti { font-size: 14px; transition: transform .15s ease; }
.megamenu__feature-cta:hover .ti { transform: translateX(3px); }

.megamenu__cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 12px;
  padding: 24px 0 24px 32px;
  align-content: start;
}
.megamenu__col { display: contents; }
.megamenu__col-label {
  grid-column: 1 / -1;
  color: var(--wp--preset--color--mid-grey, #667085); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; padding: 8px 10px 2px;
}

.megamenu__item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  transition: background .15s ease;
}
.megamenu__item:hover { background: rgba(255,255,255,.05); }
.megamenu__item > .ti { font-size: 17px; color: var(--wp--preset--color--mid-grey, #667085); margin-top: 2px; flex-shrink: 0; transition: color .15s ease; }
.megamenu__item:hover > .ti { color: var(--wp--preset--color--cyan, #00C2D1); }
.megamenu__item-title { display: block; font-weight: 500; font-size: 14px; color: var(--wp--preset--color--white, #fff); }
.megamenu__item-sub { display: block; font-size: 12px; line-height: 1.4; margin-top: 1px; color: var(--wp--preset--color--mid-grey, #667085); }

/* Top-level icons (set via CSS Classes field, rendered by the walker) */
.vt-nav .nav__link > .ti:first-child { font-size: 16px; }

/* ── Mobile navigation: full-screen drawer ─────────────────────────────────── */
.vt-nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 24px; padding: 8px;
  line-height: 1;
}
.vt-nav-mobile {
  position: fixed; inset: 0;
  background: #101828;
  z-index: 400;
  display: none;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
.vt-nav-mobile.is-open { display: flex; }
.vt-nav-mobile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.vt-nav-mobile-top img { height: 24px; width: auto; }
.vt-nav-mobile-close { background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; padding: 4px 8px; }
.vt-nav-mobile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.vt-nav-mobile ul ul { padding-left: 16px; }
.vt-nav-mobile li > a {
  display: block;
  color: #fff; font-size: 19px; font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.vt-nav-mobile .sub-menu a { font-size: 15px; font-weight: 400; color: rgba(255,255,255,.65); padding: 11px 4px; }
.vt-nav-mobile a:hover { color: #00C2D1; }
.vt-nav-mobile-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.vt-nav-mobile-actions a { text-align: center; padding: 13px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.vt-nav-mobile-actions .m-login { color: #fff; border: 1px solid rgba(255,255,255,.2); }
.vt-nav-mobile-actions .m-cta { background: #00C2D1; color: #101828; }

@media (max-width: 1050px) {
  .vt-nav { display: none; }
  .nav__panel { display: none; }
  .vt-header-cta .vt-btn-ghost { display: none; }
  .vt-nav-toggle { display: inline-flex; }
}

/* ── Main — NO max-width, NO padding ────────────────────────────────────────── */
.vt-main {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* ── Hide auto page titles — Voronai pages start with their own blocks ─────── */
.vt-main > .entry-title,
.vt-main .wp-block-post-title,
h1.entry-title,
.page .entry-header,
.single .entry-header {
  display: none !important;
}

/* ── Remove ALL WordPress theme content width constraints ─────────────────── */
.entry-content,
.wp-block-post-content,
.wp-site-blocks,
.is-root-container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* WP 6.x constrained layout override */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* alignfull blocks (all Voronai sections) always span the viewport */
.vt-main .alignfull {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
/* Block wrapper margin resets */
.wp-block { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.vt-footer {
  background: var(--wp--preset--color--charcoal, #101828);
  color: var(--wp--preset--color--white, #FFFFFF);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.vt-footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 32px 32px; }

.vt-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
.vt-col { display: flex; flex-direction: column; }

.vt-brand { display: flex; flex-direction: column; gap: 16px; }
.vt-brand img { height: 26px; width: auto; align-self: flex-start; }
.vt-brand p { font-size: 13.5px; color: var(--wp--preset--color--mid-grey, #667085); line-height: 1.6; margin: 0; max-width: 220px; }
.vt-social { display: flex; gap: 8px; }
.vt-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--wp--preset--color--white, #FFFFFF); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.vt-social a:hover { background: var(--wp--preset--color--cyan, #00C2D1); color: var(--wp--preset--color--charcoal, #101828); }
.vt-social i { font-size: 16px; }

.vt-col h3 {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--wp--preset--color--mid-grey, #667085); margin: 0 0 16px;
}
.vt-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.vt-col a { color: var(--wp--preset--color--light-grey, #EEF2F6); font-size: 14px; text-decoration: none; transition: color .15s ease; }
.vt-col a:hover { color: var(--wp--preset--color--cyan, #00C2D1); }

.vt-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.vt-bottom p { font-size: 13px; color: var(--wp--preset--color--mid-grey, #667085); margin: 0; }
.vt-bottom-links { display: flex; gap: 20px; }
.vt-bottom-links a { font-size: 13px; color: var(--wp--preset--color--mid-grey, #667085); text-decoration: none; }
.vt-bottom-links a:hover { color: var(--wp--preset--color--cyan, #00C2D1); }

@media (max-width: 900px) {
  .vt-cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .vt-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .vt-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .vt-footer-inner { padding: 40px 20px 24px; }
  .vt-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── 404 page ─────────────────────────────────────────────────────────────── */
.vt-404 {
  min-height: calc(100vh - 76px);
  padding: clamp(88px, 11vw, 150px) 32px clamp(80px, 10vw, 140px);
  background: #101828;
  color: #fff;
  box-sizing: border-box;
}
.vt-404-inner { width: 100%; max-width: 1200px; margin: 0 auto; }
.vt-404-copy { max-width: 780px; margin: 0 auto; }
.vt-404-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0,194,209,.14);
  color: #00C2D1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.vt-404-code { margin: 0 0 28px; font-size: clamp(44px, 6vw, 64px); line-height: 1; }
.vt-404-title { margin: 0 0 16px; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; }
.vt-404-text {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}
.vt-404-routes { margin-top: clamp(120px, 18vw, 220px); }
.vt-404-routes h2 {
  margin: 0 0 48px;
  text-align: center;
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}
.vt-404-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.vt-404-card {
  min-height: 208px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.vt-404-card:hover {
  transform: translateY(-4px);
  border-color: #00C2D1;
  background: rgba(0,194,209,.08);
}
.vt-404-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(0,194,209,.16);
  color: #00C2D1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vt-404-icon svg { width: 24px; height: 24px; }
.vt-404-card h3 { margin: 0 0 8px; color: #fff; font-size: 16px; }
.vt-404-card p { min-height: 48px; margin: 0; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.65; }
.vt-404-arrow { display: block; margin-top: 8px; color: #00C2D1; text-align: right; font-size: 21px; }
@media (max-width: 900px) {
  .vt-404-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .vt-404 { min-height: calc(100vh - 64px); padding: 72px 24px 80px; }
  .vt-404-routes { margin-top: 96px; }
  .vt-404-routes h2 { margin-bottom: 32px; text-align: left; }
  .vt-404-grid { grid-template-columns: 1fr; gap: 16px; }
  .vt-404-card { min-height: 0; padding: 24px; }
  .vt-404-card p { min-height: 0; }
}
