/* ============================================================
   TOMI Local Business Platform — Shared Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --yellow:    #F5B800;
  --yellow-dk: #D9A200;
  --black:     #0D0D0D;
  --dark:      #1C1C1C;
  --white:     #FFFFFF;
  --gray-50:   #FAFAFA;
  --gray-100:  #F4F4F4;
  --gray-200:  #EAEAEA;
  --gray-400:  #BBBBBB;
  --gray-600:  #777777;
  --gray-800:  #333333;
  --text:      #0D0D0D;
  --max-w:     1160px;
  --r:         10px;
  --r-sm:      10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Prevent any single overflowing element from pushing the entire page sideways
   on small screens. Sections that intentionally scroll horizontally
   (e.g. .local-section-inner) opt back in with overflow-x: auto. */
html, body { max-width: 100%; overflow-x: hidden; }
body.menu-open { overflow: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { text-decoration: none; color: inherit; }

/* Long words / URLs never push card layouts wider than their container. */
h1, h2, h3, h4, h5, p, a, span, li { overflow-wrap: anywhere; word-break: normal; }

/* ── NAV ── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  font-size: 18px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo em { color: var(--yellow); font-style: normal; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex: 1;
  justify-content: flex-start;
  margin-left: 32px;
}
.nav-links a {
  color: var(--gray-600);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  transition: color .15s;
  white-space: nowrap;
}
.nav-links a:hover  { color: var(--black); }
.nav-links a.active {
  color: var(--black);
  font-weight: 700;
  border-bottom: 2px solid var(--black);
  padding-bottom: 1px;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -24px;
  right: -24px;
  height: 18px;
}
.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-drop-trigger::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.nav-dropdown.is-open .nav-drop-trigger::after {
  transform: rotate(-135deg) translateY(-2px);
}
.nav-dropdown-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(6px);
  width: 100vw;
  padding: 18px max(40px, calc((100vw - var(--max-w)) / 2 + 40px)) 22px;
  border-radius: 0;
  background: var(--black);
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s, transform .15s, visibility .15s;
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}
.nav-submenu-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.nav-submenu-title {
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 600;
}
.nav-dropdown-menu .nav-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 12px;
}
/* ── ICON SYSTEM ──
   Unified icon styling across the entire platform.
   All icons are line-based, rounded, with consistent stroke width. */

/* Base icon class for consistent sizing and styling */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Default icon size */
.icon svg,
svg.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Icon box container */
.icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

/* Standardized icon styling within icon-box elements */
.icon-box svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* KPI icon specific styling */
.kpi-icon svg {
  width: 25px;
  height: 25px;
  stroke: #FFD700;
  stroke-width: 2.1;
}

/* Nav dropdown menu icons */
.nav-dropdown-menu svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  margin-top: 1px;
}
.nav-dropdown-menu strong {
  display: block;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.nav-dropdown-menu span {
  display: block;
  grid-column: 2;
  margin-top: 3px;
  color: rgba(255,255,255,0.42);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 20px 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s;
}
.btn-nav svg {
  width: 18px;
  height: 18px;
  stroke: var(--black);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.btn-nav:hover { background: var(--yellow-dk); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 48px;
  height: 34px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  min-width: 48px;
  padding: 0 24px 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  outline: none;
}
.lang-select:focus-visible {
  outline: 2px solid var(--gray-600);
  outline-offset: 2px;
}
.lang-select option {
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
}

/* ── PREMIUM LANGUAGE SWITCHER DROPDOWN ── */
.lang-switcher {
  position: relative;
  display: inline-block;
}
.lang-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  min-width: 52px;
}
.lang-switcher__button:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}
.lang-switcher__button:focus-visible {
  outline: 2px solid var(--gray-600);
  outline-offset: 2px;
}
.lang-switcher__button[aria-expanded="true"] {
  background: var(--gray-100);
  border-color: var(--gray-400);
}
.lang-switcher__chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .2s;
}
.lang-switcher__current {
  display: inline-block;
  white-space: nowrap;
}
.lang-switcher__button[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 300;
}
.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.lang-switcher__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  transition: background .12s;
}
.lang-switcher__menu a:hover {
  background: var(--gray-100);
}
.lang-switcher__menu a.is-selected {
  font-weight: 700;
}
.lang-switcher__check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0;
}
.lang-switcher__menu a.is-selected .lang-switcher__check {
  opacity: 1;
}

/* ── HAMBURGER TOGGLE BUTTON ── */
.hamburger-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger-toggle:focus-visible {
  outline: 2px solid var(--gray-600);
  outline-offset: 3px;
}

/* Hamburger icon using three spans */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  flex-shrink: 0;
}
.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
}
/* Animate hamburger to X when open */
.hamburger-toggle.is-open .hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger-toggle.is-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
}
.hamburger-toggle.is-open .hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Old mobile-local-menu (deprecated but kept for backwards compat) */
.mobile-local-menu { display: none; }
.mobile-local-menu summary {
  list-style: none;
  cursor: pointer;
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r);
  transition: background 0.2s;
}
.mobile-local-menu summary::-webkit-details-marker { display: none; }
.mobile-local-menu summary:hover { background: var(--gray-100); }
.mobile-local-menu[open] .hamburger-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-local-menu[open] .hamburger-icon span:nth-child(2) { opacity: 0; }
.mobile-local-menu[open] .hamburger-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-local-panel {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  padding: 16px 20px 20px;
  background: var(--black);
  display: grid;
  gap: 8px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.mobile-local-panel a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.76);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
}
.mobile-local-panel svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; flex-shrink: 0; }
.mobile-local-panel a.back-link { color: var(--white); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.24); }
.mobile-submenu-title { color: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 4px 4px; margin-top: 4px; }
.mobile-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 4px 0; }
.mobile-local-panel a.contact-link { background: var(--yellow); color: var(--black); border-color: var(--yellow); margin-top: 8px; }
.mobile-local-panel a.active { border-color: transparent; background: rgba(255,255,255,0.08); color: var(--white); position: relative; }
.mobile-local-panel a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -6px; height: 2px; background: var(--yellow); border-radius: 2px; }
.mobile-local-panel a.active svg { stroke: var(--yellow); }

/* ── FULL MOBILE MENU (controlled by hamburger button) ── */
.mobile-full-menu {
  position: fixed;
  top: 68px;
  left: 0;
  width: min(420px, 100vw);
  bottom: 0;
  background: var(--white);
  z-index: 210;
  transform: translateX(-100%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 18px 0 44px rgba(0,0,0,0.24);
}
.mobile-full-menu.is-open {
  transform: translateX(0);
}
.mobile-menu-backdrop {
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(0,0,0,0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 205;
}
body.menu-open .mobile-menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-full-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.mobile-menu-title {
  display: none;
}
.mobile-full-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 max(24px, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
.mobile-section-group {
  display: grid;
  gap: 0;
  margin-bottom: 0;
  padding: 0 16px;
}
.mobile-section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0;
}
.mobile-section-main {
  background: var(--white);
  color: var(--black);
  padding-top: 14px;
  padding-bottom: 14px;
}
.mobile-section-main .mobile-section-title {
  display: none;
}
.mobile-section-local {
  background: var(--white);
  margin: 0;
  padding: 6px 0 8px;
  border-bottom: 1px solid var(--gray-200);
}
.mobile-section-local .mobile-section-title {
  display: none;
}
.mobile-section-local.is-collapsed {
  display: none;
}
.mobile-local-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid var(--gray-200);
  border-radius: 0;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 2px;
  text-align: left;
}
.mobile-local-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}
.mobile-local-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-1px);
}
.mobile-local-toggle:focus-visible {
  outline: 2px solid var(--gray-600);
  outline-offset: 2px;
}
.mobile-full-menu .mobile-section-main a {
  color: var(--black);
  border-color: transparent;
  border-bottom-color: var(--gray-200);
  background: transparent;
  border-radius: 0;
  padding-left: 2px;
  padding-right: 2px;
}
.mobile-full-menu .mobile-section-main a:hover {
  color: var(--black);
  border-bottom-color: var(--black);
  background: transparent;
}
.mobile-full-menu .mobile-section-main a.contact-link {
  border-bottom-color: var(--yellow);
  color: var(--black);
}
.mobile-full-menu .mobile-section-main svg {
  display: none;
}
.mobile-full-menu .mobile-section-local a {
  min-height: 44px;
  padding: 9px 2px 9px 18px;
  color: var(--gray-800);
  border-color: transparent;
  border-bottom-color: var(--gray-200);
  border-radius: 0;
  background: transparent;
  font-size: 13px;
}
.mobile-full-menu .mobile-section-local a:hover {
  background: transparent;
  border-bottom-color: var(--black);
  color: var(--black);
}
.mobile-full-menu .mobile-section-local a.active {
  border-bottom-color: transparent;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  padding-left: 14px;
  padding-right: 14px;
  position: relative;
}
.mobile-full-menu .mobile-section-local a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -6px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}
.mobile-full-menu .mobile-section-local svg {
  display: block;
  width: 17px;
  height: 17px;
  stroke: var(--yellow);
}
.mobile-full-menu .mobile-section-local a.active svg {
  stroke: var(--yellow);
}
.mobile-full-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 46px;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.mobile-full-menu svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.mobile-full-menu .mobile-divider {
  display: none;
}
.mobile-full-menu .lang-switcher {
  margin-left: auto;
}
.local-section-nav {
  position: sticky;
  top: 68px;
  z-index: 180;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.local-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.local-section-inner::-webkit-scrollbar {
  display: none;
}
.local-section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.local-section-link svg {
  width: 18px;
  height: 18px;
  stroke: var(--yellow);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.local-section-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.local-section-link.active {
  background: transparent;
  color: var(--white);
  position: relative;
}

.local-section-link.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -8px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}

.local-section-link.active svg {
  stroke: var(--yellow);
}

.mobile-context-bar {
  display: none;
}

.mobile-context-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 16px;
}

.mobile-context-track::-webkit-scrollbar {
  display: none;
}

.mobile-context-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255,255,255,0.78);
  flex-shrink: 0;
}

.mobile-context-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.mobile-context-link.active {
  border-color: transparent;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  position: relative;
}

.mobile-context-link.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -6px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}

.mobile-context-link.active svg {
  stroke: var(--yellow);
}

.mobile-context-link:hover {
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
}

/* Keep the icon + word section nav through tablet widths.
   Only switch to the compact icon context bar on narrow phones. */
@media (max-width: 600px) {
  .local-section-nav {
    display: none;
  }

  .mobile-context-bar {
    display: block;
    position: sticky;
    top: 68px;
    z-index: 176;
    background: var(--black);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  }
}

/* ── CONTAINER ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── SECTION SPACING ── */
.sec    { padding: 88px 0; }
.sec-sm { padding: 56px 0; }
.sec-lg { padding: 120px 0; }

/* ── BACKGROUNDS ── */
.bg-white  { background: var(--white); }
.bg-light  { background: #E8E8E8; }
.bg-dark   { background: var(--dark);  color: var(--white); }
.bg-black  { background: var(--black); color: var(--white); }
.bg-yellow { background: var(--yellow); }

/* section borders for contrast between light sections */
.bg-white + .bg-white,
.bg-white + .bg-light,
.bg-light + .bg-white,
.bg-light + .bg-light { border-top: 1.5px solid var(--gray-200); }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.eyebrow-muted { color: var(--gray-600); }
.eyebrow-dark  { color: var(--black); }

/* ── HEADINGS ── */
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.3px; }
.display { font-size: clamp(40px, 6vw, 68px); font-weight: 900; letter-spacing: -2px; }
.h1      { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -1.5px; }
.h2      { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; }
.h3      { font-size: clamp(18px, 2vw, 22px); font-weight: 700; }
.h4      { font-size: 16px; font-weight: 700; }
.lead    { font-size: 17px; line-height: 1.75; color: var(--gray-600); }
.lead-sm { font-size: 15px; line-height: 1.7; color: var(--gray-600); }

.hero-actions {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  flex-wrap: wrap;
}
.hero-actions .btn {
  flex: 0 0 240px;
  min-width: 240px;
  min-height: 52px;
  padding-left: 24px;
  padding-right: 24px;
  font-size: 15px;
}
.hero-actions .btn svg {
  display: block;
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex: 0 0 auto;
}
.hero-actions .btn-outline svg {
  width: 16px;
  height: 16px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-actions .btn::after {
  content: '→';
  display: inline-block;
  margin-left: 2px;
  font-size: 1.05em;
  line-height: 1;
  transition: transform .15s ease;
}
.cta-actions .btn:hover::after {
  transform: translateX(3px);
}

/* ── BUTTONS ──
   One unified system. All buttons share the same height (44px medium /
   52px lg / 36px sm), rounded pill corners, and an accessible focus ring.
   Borders are present on every variant so size never shifts when adding one. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 0 22px;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gray-600); outline-offset: 3px; }
.btn-primary       { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-dk); border-color: var(--yellow-dk); }
.btn-dark          { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover    { background: #2a2a2a; border-color: #2a2a2a; }
.btn-outline       { background: transparent; color: var(--black); border-color: var(--gray-200); }
.btn-outline:hover { border-color: var(--black); }
.btn-outline-white       { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline-white:hover { border-color: var(--white); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 15px; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; stroke-width: 2; fill: none; }

/* ── STAT STRIP ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.stat {
  padding: 32px 40px;
  border-right: 1px solid var(--gray-200);
}
.stat:last-child { border-right: none; }
.stat-n { font-size: 38px; font-weight: 900; color: var(--yellow); letter-spacing: -2px; line-height: 1; margin-bottom: 4px; }
.stat-l { font-size: 13px; color: var(--gray-600); font-weight: 500; }

/* ── CARD ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  overflow: hidden;
}
.card-body { padding: 28px 24px; }
.card-img  { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ── ICON BOX ── (deprecated - use .icon instead) */
.icon-box-yellow { background: var(--yellow); }

/* ── TAG ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.tag-green  { background: #e6f4ec; color: #1e7d3a; }
.tag-yellow { background: rgba(245,184,0,.14); color: #b88700; }
.tag-dark   { background: var(--black); color: var(--white); }
.tag-gray   { background: var(--gray-100); color: var(--gray-600); }

/* ── PILL LABEL ── */
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid currentColor;
}

/* ── STEP ── */
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── GRID ──
   Auto-fit + minmax means cards never get narrower than their minimum
   readable width and naturally collapse to fewer columns on small viewports.
   Page-level grids that need a fixed column count still override these. */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.col-60-40 { display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); gap: 80px; align-items: center; }
.col-50-50 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.col-40-60 { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 80px; align-items: center; }

/* Mobile-first responsive for col layouts */
@media (max-width: 900px) {
  .col-60-40,
  .col-50-50,
  .col-40-60 {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ── UTILS ── */
.text-center { text-align: center; }
.text-yellow { color: var(--yellow); }
.text-gray   { color: var(--gray-600); }
.text-white  { color: var(--white); }
.text-black  { color: var(--black); }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-56 { margin-bottom: 56px; }
.mb-64 { margin-bottom: 64px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* ── DIVIDER ── */
.divider      { height: 1px; background: var(--gray-200); }
.divider-dark { height: 1px; background: rgba(255,255,255,0.1); }

/* ── FOOTER ── */
.footer { background: var(--yellow); border-top: 4px solid rgba(0,0,0,0.14); }
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 40px 48px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3,1fr);
  gap: 48px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.footer-logo {
  font-size: 18px;
  font-weight: 900;
  color: var(--black);
  display: block;
  margin-bottom: 12px;
}
.footer-desc { font-size: 13px; color: rgba(0,0,0,0.55); line-height: 1.7; max-width: 240px; }
.footer-col h5 { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(0,0,0,0.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a  { color: rgba(0,0,0,0.65); font-size: 13px; transition: color .15s; }
.footer-col a:hover { color: var(--black); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(0,0,0,0.55);
}

/* ── MOBILE NAVIGATION ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger-toggle { display: inline-flex; }
  .mobile-local-menu { display: none; }
  .nav-inner { justify-content: flex-start; }
  .logo { margin-right: auto; }
}

/* ── HERO BADGE / KICKER (reusable across pages) ── */
.hero-badge,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 18px;
}

/* ── SKELETON LOADER SYSTEM ── */
@keyframes skel-pulse { 0%,100%{opacity:.9} 50%{opacity:.4} }
.sk { background: var(--gray-200); border-radius: 4px; display: block; animation: skel-pulse 1.8s ease-in-out infinite; }
.sk-10 { height: 10px; } .sk-12 { height: 12px; } .sk-14 { height: 14px; }
.sk-18 { height: 18px; } .sk-24 { height: 24px; } .sk-32 { height: 32px; }
.sk-40 { height: 40px; border-radius: 6px; }
.sk-44 { height: 44px; border-radius: 8px; }
.sk-80 { height: 80px; }
.sk-circle { border-radius: 50%; }
.sk-img { border-radius: 8px; }
.w-full { width: 100%; } .w-75 { width: 75%; } .w-60 { width: 60%; }
.w-50 { width: 50%; } .w-40 { width: 40%; } .w-30 { width: 30%; }
.sk-space { height: 8px; } .sk-space-lg { height: 16px; } .sk-space-xl { height: 24px; }

.skel-panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r); overflow: hidden; }
.skel-panel-header { background: var(--gray-100); padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gray-200); }
.skel-panel-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.sk-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sk-2up { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sk-toggle { height: 20px; width: 36px; border-radius: 20px; }
.sk-toggle.on { background: var(--black); }
.sk-btn-blk { height: 38px; border-radius: 6px; background: var(--black); display: block; }
.sk-btn { height: 44px; border-radius: 6px; background: var(--gray-300); }
.sk-chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sk-chip { height: 26px; border-radius: 20px; display: inline-block; background: var(--gray-200); animation: skel-pulse 1.8s ease-in-out infinite; flex-shrink: 0; }
.sk-chip.active { background: var(--black); animation: none; }
.sk-chip-sm { height: 30px; border-radius: 20px; background: var(--gray-200); animation: skel-pulse 1.8s ease-in-out infinite; flex-shrink: 0; }
.sk-chip-sm.active { background: var(--black); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 24px; gap: 14px; }
  .nav-links { gap: 10px; margin-left: 14px; }
  .nav-links a { font-size: 11px; }
  .btn-nav { display: none; }
  .nav-dropdown-menu {
    padding: 14px 24px;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
  .nav-submenu-head {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
  .grid-4      { grid-template-columns: repeat(2,1fr); }
  .footer-top  { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-row   { grid-template-columns: repeat(2,1fr); }
  .stat        { border-bottom: 1px solid var(--gray-200); }
  
  /* Hero sections - center align content */
  .hero-inner,
  .hero-dark-inner {
    text-align: center;
    align-items: center;
  }
  .hero .lead,
  .hero-sub,
  .hero-dark .lead,
  .hero-dark .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-channel-visual,
  .hero-inner > *:last-child,
  .hero-dark-inner > *:last-child {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Hero title centering at 1024px breakpoint */
  .hero h1,
  .hero .h1,
  .hero-dark h1,
  .hero-dark .h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero h1 span,
  .hero .h1 span,
  .hero-dark h1 span,
  .hero-dark .h1 span {
    display: block;
    text-align: center;
  }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger-toggle { display: inline-flex; }
  .mobile-local-menu { display: none; }
  .hero-inner,
  .hero-dark-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .lead,
  .hero-sub,
  .hero-dark .lead,
  .hero-dark .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-dark .hero-sub {
    justify-content: center;
  }
  .hero-channel-visual,
  .hero-inner > *:last-child,
  .hero-dark-inner > *:last-child {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 768px) {
  .local-section-inner { padding: 0 20px; }
  .local-section-label { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4           { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .wrap             { padding: 0 20px; }
  .sec              { padding: 56px 0; }
  .sec-lg           { padding: 80px 0; }
  .footer-top       { grid-template-columns: 1fr; padding: 48px 20px 32px; }
  .footer-bottom    { padding: 16px 20px; }
  .stat             { padding: 24px 20px; }
  .hero-inner       { gap: 48px; }
  .hero h1          { margin-left: auto; margin-right: auto; }
  .hero-actions     { justify-content: center; }
  .hero-channel-visual { margin: 0 auto; }
}

/* Small phones — the most error-prone width.
   Goals: no horizontal scroll, all CTAs reachable, comfortable tap targets. */
@media (max-width: 600px) {
  .nav-inner       { padding: 0 16px; gap: 12px; height: 60px; }
  .mobile-full-menu { top: 60px; height: calc(100dvh - 60px); width: min(360px, 92vw); }
  .mobile-menu-backdrop { inset: 60px 0 0 0; }
  .mobile-context-bar { top: 60px; }
  .local-section-nav { top: 60px; }
  .btn-nav         { padding: 8px 14px; font-size: 12px; }
  .wrap            { padding: 0 16px; }
  .sec             { padding: 48px 0; }
  .stats-row       { grid-template-columns: 1fr 1fr; }
  .stat            { padding: 22px 16px; }
  .stat-n          { font-size: 30px; }
  .card-body       { padding: 22px 18px; }
  .btn             { width: 100%; justify-content: center; }
  .btn + .btn      { margin-top: 0; }
  .hero-actions { width: 100%; align-items: stretch; justify-content: center; flex-wrap: nowrap; gap: 10px !important; }
  .hero-actions .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 56px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
    line-height: 1.15;
    white-space: normal;
  }
  .hero-actions .btn svg { width: 15px; height: 15px; }
  .footer-top      { gap: 28px; }
  .footer-bottom   { flex-direction: column; align-items: flex-start; }
}
