/* ==========================================================
   Audit. — EY-inspired Corporate Design System
   ========================================================== */

:root {
  /* Colors — EY signature palette */
  --color-yellow: #FFE600;
  --color-yellow-dark: #E6CF00;
  --color-yellow-soft: #FFF7B2;

  --color-black: #2E2E38;
  --color-black-pure: #000000;
  --color-charcoal: #1A1A24;

  --color-gray-900: #2E2E38;
  --color-gray-700: #4B4B55;
  --color-gray-500: #747480;
  --color-gray-400: #9898A3;
  --color-gray-300: #C4C4CD;
  --color-gray-200: #E7E7EA;
  --color-gray-100: #F6F6FA;
  --color-gray-50:  #FAFAFC;

  --color-bg: #FFFFFF;
  --color-ink: #2E2E38;
  --color-text: #2E2E38;
  --color-muted: #747480;
  --color-line: #C4C4CD;
  --color-line-soft: #E7E7EA;

  --color-accent: #FFE600;
  --color-accent-dark: #2E2E38;

  /* Typography */
  --font-display: "Archivo", "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Inter", "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-w: 1280px;
  --gutter: 28px;

  /* Radius (EY uses sharp corners) */
  --r-sm: 0;
  --r-md: 2px;
  --r-lg: 4px;
  --r-none: 0;

  /* Shadows (minimal) */
  --shadow-sm: 0 1px 2px rgba(46,46,56,0.05);
  --shadow-md: 0 4px 12px rgba(46,46,56,0.08);
  --shadow-lg: 0 12px 28px rgba(46,46,56,0.10);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.25s var(--ease);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
p { margin: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

::selection { background: var(--color-yellow); color: var(--color-ink); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 96px 0; position: relative; }
@media (max-width: 768px) { .section { padding: 56px 0; } }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-700);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-yellow);
}

h1.display, .display-lg {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.0;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}
h2.display, .display {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-ink);
}

/* Yellow highlight behind text */
.highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 0 4px;
}
.highlight::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.1em;
  height: 0.5em;
  background: var(--color-yellow);
  z-index: -1;
}

.lead {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--color-gray-700);
  max-width: 62ch;
  font-weight: 400;
}

/* ---------- Section header ---------- */
.section-header {
  max-width: 820px;
  margin-bottom: 56px;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-header.center .eyebrow { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 0;
  transition: all var(--t);
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-yellow {
  background: var(--color-yellow);
  color: var(--color-ink);
}
.btn-yellow:hover {
  background: var(--color-ink);
  color: var(--color-yellow);
}
.btn-dark {
  background: var(--color-ink);
  color: white;
}
.btn-dark:hover {
  background: var(--color-yellow);
  color: var(--color-ink);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn-outline:hover {
  background: var(--color-ink);
  color: white;
}
.btn-outline-light {
  background: transparent;
  border-color: white;
  color: white;
}
.btn-outline-light:hover { background: white; color: var(--color-ink); }

.btn-link {
  padding: 8px 0;
  color: var(--color-ink);
  font-weight: 600;
  gap: 8px;
  position: relative;
  border-bottom: 2px solid var(--color-yellow);
  font-size: 15px;
  border-radius: 0;
}
.btn-link:hover { color: var(--color-gray-700); gap: 14px; }

.btn-arrow { transition: transform var(--t); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* ==========================================================
   HEADER — EY Exact Replica (Dark)
   ========================================================== */

/* ---------- Main Header (dark EY-style) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-ink);
  color: white;
  transition: box-shadow var(--t);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav {
  display: flex;
  align-items: stretch;
  min-height: 64px;
  gap: 0;
}

/* Compact logo (slim header) */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 18px;
  gap: 10px;
  text-decoration: none;
}
.logo-wrap {
  position: relative;
  padding-top: 7px;
}
.logo-ey {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
  white-space: nowrap;
}
.logo-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 7px;
  background: var(--color-yellow);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.logo-tagline {
  display: none;
}
/* Custom image logo (shows instead of text when site.logoUrl is set).
   height: 100% stretches to fill the header height (capped at max-height so
   the header itself never grows past its original size). */
.logo-img {
  display: block;
  height: 100%;
  max-height: 60px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
/* Optional blend-mode wrappers for JPG logos with coloured backgrounds.
   User adds class via content.site.logoBlend = 'multiply' | 'screen' | 'lighten' | 'darken' */
.logo-img.blend-multiply { mix-blend-mode: multiply; }
.logo-img.blend-screen   { mix-blend-mode: screen; }
.logo-img.blend-lighten  { mix-blend-mode: lighten; }
.logo-img.blend-darken   { mix-blend-mode: darken; }
@media (max-width: 768px) {
  .logo-img { height: 100%; max-height: 44px; max-width: 140px; }
}

/* ---------- Main nav menu ---------- */
.nav-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0 0 0 32px;
  padding: 0;
}
.nav-menu > li {
  display: flex;
  align-items: stretch;
  position: static;
}
.nav-menu > li > a,
.nav-menu > li > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0 18px;
  min-height: 64px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  transition: border-color var(--t);
  cursor: pointer;
  position: relative;
}
.nav-menu > li > a:hover,
.nav-menu > li > .nav-link:hover {
  border-bottom-color: var(--color-yellow);
  color: white;
}
.nav-menu > li.has-mega.open > .nav-link {
  border-bottom-color: var(--color-yellow);
  background: var(--color-charcoal);
}
.nav-menu > li.has-mega > .nav-link svg { display: none; }

/* Right-side actions */
.nav-actions {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
  margin-left: auto;
  padding-right: 0;
}
.nav-action-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  min-height: 64px;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: background var(--t);
  text-decoration: none;
}
.nav-action-item:hover {
  background: rgba(255,255,255,0.06);
}
.nav-action-item svg {
  opacity: 0.9;
  flex-shrink: 0;
}

/* Compact language switcher — just show short code */
.nav-locale {
  padding: 0 10px;
  gap: 4px;
}
.nav-locale .nav-locale-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-locale svg:first-of-type { display: none; }
.nav-locale svg:last-child { opacity: 0.7; transition: transform 0.2s; width: 12px; height: 12px; }
.nav-locale-wrap.open .nav-locale svg:last-child { transform: rotate(180deg); }

/* Language dropdown — compact modern style */
.nav-locale-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #14141C;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  min-width: 150px;
  padding: 4px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  overflow: hidden;
}
.nav-locale-wrap.open .nav-locale-dropdown { display: flex; }
.nav-locale-dropdown .loc-flag { margin-right: 8px; font-size: 15px; }
.nav-locale-dropdown button {
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: 4px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.nav-locale-dropdown button:hover {
  background: rgba(255,230,0,0.08);
  color: #FFE600;
}
.nav-locale-dropdown button.active {
  background: rgba(255,230,0,0.12);
  color: #FFE600;
  font-weight: 700;
}

/* Hebrew RTL support */
html.lang-rtl { direction: rtl; }
html.lang-rtl .nav-menu { margin: 0 32px 0 0; }
html.lang-rtl .nav-locale-dropdown { right: auto; left: 0; }
html.lang-rtl .footer-top { direction: rtl; }
html.lang-rtl .footer-bottom { direction: rtl; }
html.lang-rtl .highlight { display: inline-block; }
html.lang-rtl .btn-arrow { transform: scaleX(-1); display: inline-block; }

/* ---------- MEGA MENU (EY Dark 3-part layout) ---------- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100vw;
  background: var(--color-ink);
  color: white;
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
  padding: 64px 0 88px;
  display: none;
  z-index: 99;
  animation: megaSlide 0.25s var(--ease);
}
@keyframes megaSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.has-mega.open .mega-menu {
  display: block;
}

.mega-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 340px 1fr 280px;
  gap: 72px;
  align-items: start;
}

/* ----- Left: Intro (title + description + explore button) ----- */
.mega-intro h3 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.mega-intro p {
  color: white;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 36px;
  opacity: 0.95;
}
.mega-explore-btn {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid white;
  color: white;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  transition: all var(--t);
  text-decoration: none;
  text-transform: none;
}
.mega-explore-btn:hover {
  background: white;
  color: var(--color-ink);
}

/* ----- Middle: Links list ----- */
.mega-links {
  display: flex;
  flex-direction: column;
}
.mega-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 18px;
  font-weight: 600;
  transition: all var(--t);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}
.mega-link-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.15);
}
.mega-link-item:hover {
  padding-left: 8px;
  padding-right: 8px;
  color: white;
}
.mega-link-item .mega-arrow {
  color: white;
  font-weight: 400;
  transition: transform var(--t);
  opacity: 0.8;
}
.mega-link-item:hover .mega-arrow {
  transform: translateX(6px);
  opacity: 1;
}

/* ----- Right: Spotlight ----- */
.mega-spotlight h4 {
  font-family: var(--font-display);
  color: var(--color-yellow);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.mega-spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mega-spotlight-list a {
  display: block;
  padding: 14px 0;
  color: white;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  transition: color var(--t);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}
.mega-spotlight-list a:last-child { border-bottom: none; }
.mega-spotlight-list a:hover {
  color: var(--color-yellow);
}

/* Close arrow at bottom */
.mega-close {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  opacity: 0.6;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity var(--t);
}
.mega-close:hover {
  opacity: 1;
}

/* Backdrop */
.mega-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15,23,42,0.35);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.mega-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Nav toggle (hamburger) ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-height: 64px;
  color: white;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.1);
  transition: all var(--t);
  flex-shrink: 0;
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); }
.nav-toggle-icon-close { display: none; }
.nav-toggle.active { background: var(--color-yellow); color: var(--color-ink); }
.nav-toggle.active .nav-toggle-icon-open { display: none; }
.nav-toggle.active .nav-toggle-icon-close { display: grid; place-items: center; }

/* Backdrop */
.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.mega-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Tablet/Mobile breakpoint ---------- */
@media (max-width: 1100px) {
  .logo-tagline { display: none; }
  .nav-menu { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .nav-action-item { display: none; }
  .mega-backdrop { display: none !important; }
  /* On mobile, mega menu displays inline (not absolute) — see mobile drawer rules below */
}

/* ---------- HERO (EY-style full-width) ---------- */
.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 80px 0 100px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.08);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,46,56,0.2) 0%, rgba(46,46,56,0.7) 100%);
}

/* Yellow beam signature */
.hero-beam {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 8px;
  background: var(--color-yellow);
  z-index: 2;
}
.hero-beam::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 0;
  width: 40px;
  height: 8px;
  background: var(--color-yellow);
  transform: skewX(-45deg);
  transform-origin: bottom right;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 24px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(46,46,56,0.4);
  backdrop-filter: blur(8px);
}
.hero-tag::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-yellow);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.0;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: white;
  margin-bottom: 28px;
  max-width: 18ch;
}
.hero h1 .highlight::before { opacity: 0.9; }
.hero-sub {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  max-width: 52ch;
  margin-bottom: 36px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero { min-height: 560px; padding: 60px 0 80px; }
  .hero h1 { margin-bottom: 20px; }
  .hero-sub { font-size: 17px; margin-bottom: 28px; }
}

/* ---------- Yellow call-out bar ---------- */
.callout-bar {
  background: var(--color-yellow);
  padding: 24px 0;
}
.callout-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.callout-bar h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0;
  flex: 1;
}
.callout-bar .btn { background: var(--color-ink); color: white; }
.callout-bar .btn:hover { background: white; color: var(--color-ink); }

/* ---------- Services (EY-style spotlight) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line);
}
.services-grid > * {
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.services-grid > *:nth-child(3n) { border-right: none; }

.service-card {
  padding: 40px 32px;
  background: white;
  display: flex;
  flex-direction: column;
  transition: all var(--t);
  position: relative;
  min-height: 280px;
}
.service-card:hover {
  background: var(--color-gray-50);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gray-500);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--color-ink);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 12px;
  line-height: 1.2;
}
.service-card p {
  font-size: 14.5px;
  color: var(--color-gray-700);
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 14px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--color-yellow);
  align-self: flex-start;
}
.service-card:hover .service-link { gap: 14px; }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid > *:nth-child(3n) { border-right: 1px solid var(--color-line); }
  .services-grid > *:nth-child(2n) { border-right: none; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid > * { border-right: none !important; }
}

/* ---------- Industries grid ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line);
}
.industry-card {
  padding: 36px 24px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  transition: all var(--t);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.industry-card:hover {
  background: var(--color-ink);
  color: white;
}
.industry-card:hover h4, .industry-card:hover p { color: white; }
.industry-card:hover .industry-arrow { color: var(--color-yellow); transform: translateX(4px); }
.industries-grid > *:nth-child(4n) { border-right: none; }
.industry-icon {
  width: 44px; height: 44px;
  color: var(--color-ink);
  transition: color var(--t);
}
.industry-card:hover .industry-icon { color: var(--color-yellow); }
.industry-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
  transition: color var(--t);
}
.industry-card p {
  font-size: 13px;
  color: var(--color-gray-500);
  line-height: 1.5;
  margin: 0;
  transition: color var(--t);
  flex: 1;
}
.industry-arrow {
  color: var(--color-ink);
  transition: all var(--t);
  align-self: flex-end;
}
@media (max-width: 900px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid > *:nth-child(4n) { border-right: 1px solid var(--color-line); }
  .industries-grid > *:nth-child(2n) { border-right: none; }
}
@media (max-width: 480px) {
  .industries-grid { grid-template-columns: 1fr; }
  .industry-card { border-right: none !important; }
}

/* ---------- Insights / Featured cards ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.insight-card {
  display: flex;
  flex-direction: column;
  transition: all var(--t);
  position: relative;
  padding-top: 8px;
  border-top: 4px solid var(--color-ink);
}
.insight-card:hover { border-top-color: var(--color-yellow); }
.insight-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 20px;
}
.insight-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  filter: contrast(1.02);
}
.insight-card:hover .insight-img img { transform: scale(1.04); }
.insight-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  font-weight: 600;
  margin-bottom: 12px;
}
.insight-meta .tag { color: var(--color-ink); }
.insight-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
  margin-bottom: 12px;
  transition: color var(--t);
}
.insight-card:hover h3 { color: var(--color-gray-700); }
.insight-card p {
  font-size: 14.5px;
  color: var(--color-gray-700);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.insight-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid var(--color-yellow);
  padding-bottom: 2px;
  align-self: flex-start;
}
@media (max-width: 1024px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .insights-grid { grid-template-columns: 1fr; } }

/* ---------- C-Suite Agenda (EY signature) ---------- */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.agenda-item {
  padding: 48px 36px;
  background: var(--color-ink);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--t);
  border-right: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  position: relative;
}
.agenda-item:last-child { border-right: none; }
.agenda-item:hover { background: var(--color-charcoal); }
.agenda-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-yellow);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t);
}
.agenda-item:hover::before { transform: scaleY(1); height: 100%; width: 4px; }
.agenda-role {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--color-yellow);
  line-height: 1;
  letter-spacing: -0.02em;
}
.agenda-item h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: white;
  line-height: 1.25;
}
.agenda-item p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  flex: 1;
}
.agenda-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-yellow);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid var(--color-yellow);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: gap var(--t);
}
.agenda-item:hover .agenda-link { gap: 14px; }
@media (max-width: 900px) { .agenda-grid { grid-template-columns: 1fr; } .agenda-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); } }

/* ---------- Big stats ---------- */
.stats-big {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.stat-big-item {
  padding: 48px 28px;
  border-right: 1px solid var(--color-line);
  text-align: left;
  position: relative;
}
.stat-big-item:last-child { border-right: none; }
.stat-big-value {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}
.stat-big-value::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  height: 8px;
  background: var(--color-yellow);
  z-index: -1;
  opacity: 0.8;
}
.stat-big-label {
  font-size: 14px;
  color: var(--color-gray-700);
  font-weight: 500;
  line-height: 1.4;
  max-width: 200px;
}
@media (max-width: 900px) {
  .stats-big { grid-template-columns: 1fr 1fr; }
  .stat-big-item:nth-child(2) { border-right: none; }
  .stat-big-item:nth-child(1), .stat-big-item:nth-child(2) { border-bottom: 1px solid var(--color-line); }
}
@media (max-width: 480px) {
  .stats-big { grid-template-columns: 1fr; }
  .stat-big-item { border-right: none !important; border-bottom: 1px solid var(--color-line); }
}

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-img {
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.03);
}
.split-img::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--color-yellow);
  z-index: 2;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-img { aspect-ratio: 4/3; }
}

.check-list { display: flex; flex-direction: column; gap: 0; margin-top: 28px; }
.check-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line-soft);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-gray-700);
}
.check-list li:first-child { border-top: 2px solid var(--color-ink); padding-top: 20px; }
.check-list .check-num {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--color-ink);
  min-width: 32px;
  padding-top: 1px;
  font-weight: 800;
  letter-spacing: 0;
}
.check-list li strong { color: var(--color-ink); font-weight: 700; }

/* ---------- Pricing (flex + horizontal scroll for 4+) ---------- */
.pricing-wrap {
  position: relative;
}
.pricing-grid {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-line);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-ink) var(--color-gray-100);
}
.pricing-grid::-webkit-scrollbar {
  height: 8px;
}
.pricing-grid::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}
.pricing-grid::-webkit-scrollbar-thumb {
  background: var(--color-ink);
}
.pricing-grid::-webkit-scrollbar-thumb:hover {
  background: var(--color-yellow-dark, #D4B800);
}

/* 1-3 plans: fill container, no scroll */
.pricing-grid[data-count="1"],
.pricing-grid[data-count="2"],
.pricing-grid[data-count="3"] {
  overflow: visible;
}
.pricing-grid[data-count="1"] { max-width: 420px; margin: 0 auto; }
.pricing-grid[data-count="2"] { max-width: 780px; margin: 0 auto; }
.pricing-grid[data-count="1"] .price-card,
.pricing-grid[data-count="2"] .price-card,
.pricing-grid[data-count="3"] .price-card {
  flex: 1 1 0;
  min-width: 0;
}

/* 4+ plans: fixed card width, horizontal scroll */
.pricing-grid[data-count="4"] .price-card,
.pricing-grid[data-count="5"] .price-card,
.pricing-grid[data-count="6"] .price-card,
.pricing-grid[data-count="7"] .price-card,
.pricing-grid[data-count="8"] .price-card,
.pricing-grid[data-count="9"] .price-card {
  flex: 0 0 300px;
  min-width: 300px;
  scroll-snap-align: start;
}

.price-card {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-line);
  transition: all var(--t);
  position: relative;
}
.price-card:last-child { border-right: none; }

/* Navigation arrows for scrollable grid */
.pricing-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--color-ink);
  color: var(--color-ink);
  z-index: 3;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: all var(--t);
  font-family: var(--font-sans);
  line-height: 1;
}
.pricing-nav:hover:not(:disabled) {
  background: var(--color-yellow);
  transform: translateY(-50%) scale(1.05);
}
.pricing-nav:disabled {
  opacity: 0;
  pointer-events: none;
}
.pricing-nav.prev { left: -24px; }
.pricing-nav.next { right: -24px; }

/* Hide arrows when not needed */
.pricing-wrap.no-scroll .pricing-nav { display: none; }

/* Scroll hint fade edges */
.pricing-wrap[data-can-scroll="true"]::before,
.pricing-wrap[data-can-scroll="true"]::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
}
.pricing-wrap[data-can-scroll="true"]::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.95), transparent);
}
.pricing-wrap[data-can-scroll="true"]::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.95), transparent);
}
.pricing-wrap[data-scroll-start="false"]::before { opacity: 1; }
.pricing-wrap[data-scroll-end="false"]::after { opacity: 1; }

/* Mobile: always stacked */
@media (max-width: 640px) {
  .pricing-grid,
  .pricing-grid[data-count="4"],
  .pricing-grid[data-count="5"],
  .pricing-grid[data-count="6"] {
    flex-direction: column;
    overflow: visible;
    max-width: 100% !important;
  }
  .pricing-grid .price-card,
  .pricing-grid[data-count="4"] .price-card,
  .pricing-grid[data-count="5"] .price-card,
  .pricing-grid[data-count="6"] .price-card {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border-right: none !important;
    border-bottom: 1px solid var(--color-line);
  }
  .pricing-grid .price-card:last-child { border-bottom: none; }
  .pricing-nav { display: none !important; }
}
.price-card:hover { background: var(--color-gray-50); }
.price-card.featured {
  background: var(--color-ink);
  color: white;
}
.price-card.featured:hover { background: var(--color-charcoal); }
.price-card.featured * { color: white !important; }
.price-card.featured .price-desc,
.price-card.featured .price-feature-item { color: rgba(255,255,255,0.7) !important; }
.price-card.featured::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-yellow);
}

.price-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 14px;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--color-yellow);
}
.price-card.featured .price-badge {
  background: var(--color-yellow) !important;
  color: var(--color-ink) !important;
}
.price-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.1;
  color: var(--color-ink);
}
.price-desc {
  font-size: 14px;
  color: var(--color-gray-500);
  margin-bottom: 28px;
  line-height: 1.5;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-line);
}
.price-card.featured .price-amount { border-bottom-color: rgba(255,255,255,0.15); }
.price-amount strong {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}
.price-amount .currency { font-size: 20px; color: var(--color-gray-500); font-weight: 600; }
.price-amount .period { font-size: 14px; color: var(--color-gray-500); margin-left: 4px; }

.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex: 1; }
.price-feature-item {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-gray-700);
  align-items: flex-start;
}
.price-feature-item .check {
  color: var(--color-ink);
  flex-shrink: 0;
  margin-top: 4px;
  width: 14px;
  height: 2px;
  background: var(--color-yellow);
}
.price-feature-item .check svg { display: none; }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { border-right: none; border-bottom: 1px solid var(--color-line); }
  .price-card:last-child { border-bottom: none; }
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line);
}
.testimonial {
  padding: 36px 32px;
  background: white;
  display: flex;
  flex-direction: column;
  transition: all var(--t);
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  position: relative;
}
.testimonial:last-child { border-right: none; }
.testimonial:hover { background: var(--color-gray-50); }
.testimonial::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px;
  height: 4px;
  background: var(--color-yellow);
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-ink);
  margin-bottom: 28px;
  margin-top: 20px;
  flex: 1;
  letter-spacing: -0.01em;
}
.testimonial-author {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}
.testimonial-author img {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(0.2);
}
.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-ink);
}
.testimonial-role { font-size: 13px; color: var(--color-gray-500); margin-top: 2px; }

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial { border-right: none; }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 880px;
  margin: 0 auto;
  border-top: 2px solid var(--color-ink);
}
.faq-item {
  border-bottom: 1px solid var(--color-line);
  padding: 24px 0;
  transition: background var(--t);
}
.faq-item[open] { background: var(--color-gray-50); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
  padding: 0 24px;
}
.faq-item[open] summary { padding-bottom: 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 300;
  background: var(--color-yellow);
  color: var(--color-ink);
  transition: all var(--t);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "−";
  background: var(--color-ink);
  color: var(--color-yellow);
}
.faq-item p {
  margin-top: 16px;
  padding: 0 24px;
  color: var(--color-gray-700);
  font-size: 15px;
  line-height: 1.65;
  max-width: 60ch;
}

/* ---------- CTA section ---------- */
.cta-big {
  background: var(--color-ink);
  color: white;
  padding: 80px 56px;
  position: relative;
  overflow: hidden;
}
.cta-big::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70%;
  height: 6px;
  background: var(--color-yellow);
}
.cta-big::after {
  content: "";
  position: absolute;
  top: 40px;
  right: 40px;
  width: 240px;
  height: 240px;
  background: var(--color-yellow);
  opacity: 0.06;
  border-radius: 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.cta-big > * { position: relative; z-index: 1; }
.cta-big h2 {
  color: white;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.cta-big p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 58ch;
  margin-bottom: 36px;
  line-height: 1.55;
}
@media (max-width: 640px) { .cta-big { padding: 56px 28px; } }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-ink);
  background: white;
  border: 1px solid var(--color-line);
  border-radius: 0;
  transition: all var(--t);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--color-ink);
  border-width: 2px;
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-ink);
  color: white;
  padding: 0 0 28px;
  margin-top: 0;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--color-yellow);
}
.footer-top {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: var(--color-yellow); }
.footer .logo-mark { color: white; font-size: 32px; }
.footer .logo-mark::after { -webkit-text-stroke: 1px white; color: var(--color-yellow); }
.footer-about p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  margin: 20px 0;
  max-width: 32ch;
}
.footer h5 {
  font-family: var(--font-display);
  font-size: 13px;
  color: white;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-yellow);
  width: fit-content;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  align-items: center;
}
.footer-bottom .left { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom .social {
  display: flex;
  gap: 0;
}
.footer-bottom .social a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  transition: all var(--t);
}
.footer-bottom .social a:last-child { border-right: 1px solid rgba(255,255,255,0.15); }
.footer-bottom .social a:hover { background: var(--color-yellow); color: var(--color-ink); border-color: var(--color-yellow); }

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .footer-about { grid-column: span 3; }
}
@media (max-width: 640px)  {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: span 2; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 20px 0;
  background: var(--color-gray-50);
  font-size: 12px;
  color: var(--color-gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--color-line-soft);
}
.breadcrumb a:hover { color: var(--color-ink); }
.breadcrumb span { margin: 0 10px; opacity: 0.4; }

/* ---------- Page header ---------- */
.page-header {
  padding: 64px 0 72px;
  background: var(--color-ink);
  color: white;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 6px;
  background: var(--color-yellow);
}
.page-header .eyebrow {
  color: rgba(255,255,255,0.7);
  border-bottom-color: var(--color-yellow);
}
.page-header h1 {
  color: white;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.0;
  max-width: 22ch;
}
.page-header h1 .highlight::before { height: 0.45em; }
.page-header p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 62ch;
  line-height: 1.55;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.bg-soft { background: var(--color-gray-50); }
.bg-dark { background: var(--color-ink); color: white; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: white; }
.bg-dark .eyebrow { color: rgba(255,255,255,0.7); border-bottom-color: var(--color-yellow); }
.bg-dark .lead { color: rgba(255,255,255,0.85); }
.bg-yellow { background: var(--color-yellow); color: var(--color-ink); }
.hidden { display: none !important; }
.mt-8 { margin-top: 40px; }
.mb-4 { margin-bottom: 24px; }

/* ---------- Grid helpers ---------- */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }
@media (max-width: 900px) { .col-7, .col-5, .col-6, .col-4, .col-8 { grid-column: span 12; } }

/* ==========================================================
   MOBILE OPTIMIZATIONS
   ========================================================== */

/* Prevent horizontal scroll globally */
html, body { overflow-x: hidden; }

/* Body scroll lock when mobile nav is open */
body.nav-open { overflow: hidden; }

/* ---------- MOBILE NAV DRAWER (EY-style full-screen dark) ---------- */
@media (max-width: 1100px) {
  /* Drawer: full screen dark overlay */
  .nav-menu.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 80px; /* below header */
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    background: var(--color-ink);
    overflow-y: auto;
    z-index: 99;
    gap: 0;
    align-items: stretch;
    animation: drawerIn 0.25s var(--ease);
    -webkit-overflow-scrolling: touch;
  }
  @keyframes drawerIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Top-level nav items in drawer */
  .nav-menu.open > li {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu.open > li > a,
  .nav-menu.open > li > .nav-link {
    display: flex !important;
    width: 100%;
    padding: 24px 24px !important;
    min-height: auto;
    height: auto;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-family: var(--font-display) !important;
    color: white !important;
    justify-content: space-between;
    align-items: center;
    border: none !important;
    background: transparent;
    transition: all var(--t);
    cursor: pointer;
  }
  /* Show chevron on mobile */
  .nav-menu.open > li.has-mega > .nav-link {
    position: relative;
  }
  .nav-menu.open > li.has-mega > .nav-link::after {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>") center / contain no-repeat;
    transition: transform var(--t);
    flex-shrink: 0;
    margin-left: 12px;
  }
  .nav-menu.open > li.has-mega.open > .nav-link::after {
    transform: rotate(180deg);
  }
  .nav-menu.open > li.has-mega > .nav-link span {
    flex: 1;
    text-align: left;
  }
  .nav-menu.open > li.has-mega.open > .nav-link {
    background: var(--color-yellow);
    color: var(--color-ink) !important;
  }

  /* MEGA MENU inline on mobile - displayed as accordion */
  .nav-menu.open .mega-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    background: var(--color-charcoal);
    box-shadow: none;
    padding: 0 !important;
    margin: 0;
    animation: none;
    display: none;
    z-index: auto;
  }
  .nav-menu.open > li.has-mega.open .mega-menu {
    display: block !important;
  }
  .nav-menu.open .mega-inner {
    padding: 0 !important;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Intro block — compact on mobile */
  .nav-menu.open .mega-intro {
    padding: 24px 24px 20px;
    background: var(--color-charcoal);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu.open .mega-intro h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .nav-menu.open .mega-intro p {
    font-size: 13.5px;
    margin-bottom: 18px;
    opacity: 0.8;
  }
  .nav-menu.open .mega-explore-btn {
    padding: 12px 28px;
    font-size: 14px;
  }

  /* Links — full-width list */
  .nav-menu.open .mega-links {
    display: flex;
    flex-direction: column;
  }
  .nav-menu.open .mega-link-item {
    padding: 18px 24px !important;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-top: none;
  }
  .nav-menu.open .mega-link-item:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-menu.open .mega-link-item:hover {
    padding-left: 28px !important;
    background: rgba(255,255,255,0.04);
  }

  /* Spotlight section */
  .nav-menu.open .mega-spotlight {
    padding: 24px 24px 32px;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu.open .mega-spotlight h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-yellow);
  }
  .nav-menu.open .mega-spotlight-list a {
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* Hide close button on mobile */
  .nav-menu.open .mega-close { display: none !important; }

  /* Body scroll lock */
  body.nav-open { overflow: hidden; }
  body.nav-open .header { box-shadow: 0 2px 12px rgba(0,0,0,0.4); }

  /* Simple link nav items (no mega menu) */
  .nav-menu.open > li:not(.has-mega) > a::after {
    content: "→";
    color: white;
    font-weight: 400;
    opacity: 0.7;
    margin-left: 12px;
    flex-shrink: 0;
  }
}

/* ---------- MOBILE HERO ---------- */
@media (max-width: 768px) {
  .hero {
    min-height: 520px;
    padding: 48px 0 72px;
  }
  .hero h1 {
    font-size: clamp(32px, 9vw, 48px);
    line-height: 1.05;
  }
  .hero-sub {
    font-size: 16px;
    margin-bottom: 24px;
  }
  .hero-tag {
    font-size: 11px;
    padding: 6px 12px 6px 6px;
    margin-bottom: 20px;
  }
  .hero-actions { flex-direction: column; width: 100%; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-beam { height: 5px; }
  .hero-beam::before { height: 5px; }
}

/* ---------- MOBILE CALLOUT BAR ---------- */
@media (max-width: 768px) {
  .callout-bar { padding: 28px 0; }
  .callout-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .callout-bar h3 { font-size: 20px; }
  .callout-bar .btn { width: 100%; }
}

/* ---------- MOBILE HEADER (dark EY-style) ---------- */
@media (max-width: 1100px) {
  .nav { min-height: 60px; gap: 0; }
  .logo { padding: 0 16px; }
  .logo-ey { font-size: 18px; }
  .logo-wrap::before { width: 22px; height: 6px; }
  .nav-menu { margin-left: 0; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { min-height: 60px; width: 46px; }
  .header { min-height: 60px; }

  /* Adjust drawer top to match */
  .nav-menu.open { top: 60px !important; }
}

@media (max-width: 768px) {
  .logo { padding: 0 12px; }
  .logo-ey { font-size: 16px; }
  .logo-wrap::before { width: 20px; height: 5px; }
  .nav { min-height: 56px; }
  .nav-toggle { min-height: 56px; width: 46px; }
  .header { min-height: 56px; }
  .nav-menu.open { top: 56px !important; }
}

/* ---------- MOBILE STATS BIG ---------- */
@media (max-width: 640px) {
  .stat-big-item { padding: 32px 24px; }
  .stat-big-value { font-size: 48px; }
  .stat-big-value::after { height: 6px; }
}

/* ---------- MOBILE SERVICES ---------- */
@media (max-width: 768px) {
  .service-card {
    padding: 32px 24px;
    min-height: auto;
  }
  .service-card h3 { font-size: 20px; }
}

/* ---------- MOBILE INDUSTRIES ---------- */
@media (max-width: 640px) {
  .industry-card { padding: 28px 20px; }
  .industry-icon { width: 36px; height: 36px; }
}

/* ---------- MOBILE C-SUITE AGENDA ---------- */
@media (max-width: 900px) {
  .agenda-item { padding: 36px 28px; gap: 16px; }
  .agenda-role { font-size: 36px; }
  .agenda-item h4 { font-size: 18px; }
}

/* ---------- MOBILE SPLIT / INSIGHTS ---------- */
@media (max-width: 768px) {
  .split { gap: 32px; }
  .split-img { aspect-ratio: 4/3; }
  .insight-card h3 { font-size: 20px; }
  .testimonial { padding: 28px 24px; }
  .testimonial-text { font-size: 16px; }
}

/* ---------- MOBILE PAGE HEADER ---------- */
@media (max-width: 768px) {
  .page-header { padding: 48px 0 56px; }
  .page-header h1 { font-size: clamp(32px, 9vw, 48px); }
  .page-header p { font-size: 16px; }
}

/* ---------- MOBILE PRICING ---------- */
@media (max-width: 768px) {
  .price-card { padding: 36px 28px; }
  .price-amount strong { font-size: 44px; }
}

/* ---------- MOBILE FAQ ---------- */
@media (max-width: 640px) {
  .faq-item summary { padding: 0 4px; gap: 16px; }
  .faq-item summary::after { width: 28px; height: 28px; font-size: 20px; }
  .faq-item p { padding: 0 4px; margin-top: 12px; font-size: 14px; }
}

/* ---------- MOBILE CTA ---------- */
@media (max-width: 640px) {
  .cta-big { padding: 48px 24px; }
  .cta-big h2 { font-size: clamp(26px, 8vw, 36px); }
  .cta-big p { font-size: 16px; margin-bottom: 28px; }
  .cta-big .btn { width: 100%; }
  .cta-big > div[style*="flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* ---------- MOBILE FOOTER ---------- */
@media (max-width: 640px) {
  .footer { padding: 48px 0 24px; }
  .footer-top { gap: 32px; padding-bottom: 36px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-bottom .left { flex-direction: column; gap: 8px; }
}

/* ---------- MOBILE FORMS ---------- */
@media (max-width: 640px) {
  .form-field input, .form-field textarea, .form-field select {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

/* ---------- MOBILE SECTION HEADERS ---------- */
@media (max-width: 768px) {
  .section-header { margin-bottom: 40px; }
  .display { font-size: clamp(24px, 7.5vw, 36px); }
  .lead { font-size: 16px; }
  .eyebrow { font-size: 11px; margin-bottom: 14px; padding-bottom: 8px; }
}

/* ---------- MOBILE CONTAINERS ---------- */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .section { padding: 48px 0; }
}

/* ---------- TOUCH OPTIMIZATIONS ---------- */
@media (hover: none) and (pointer: coarse) {
  .btn, button, a { -webkit-tap-highlight-color: rgba(255,230,0,0.2); }
  .service-card:hover, .insight-card:hover, .industry-card:hover { transform: none; }
  .faq-item summary { min-height: 48px; }
}

/* ---------- SAFE AREA (notched devices) ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ==========================================================
   CHAT WIDGET — speed-dial style.
   The yellow FAB expands a VERTICAL STACK of circular icon buttons
   (one per channel: Call, WhatsApp, Telegram, Viber, WeChat, Message).
   Clicking "Message" opens a separate modal with the contact form.
   ========================================================== */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  font-family: var(--font-sans, system-ui, sans-serif);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Main yellow FAB */
.chat-fab {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-yellow, #FFE600);
  color: var(--color-ink, #2e2e38);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 4px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}
.chat-fab:hover { transform: scale(1.06); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22); }
.chat-fab:active { transform: scale(0.97); }
.chat-fab-icon {
  width: 26px;
  height: 26px;
  position: absolute;
  transition: opacity 0.15s ease, transform 0.2s ease;
}
.chat-fab-close { opacity: 0; transform: rotate(-90deg); }
.is-open .chat-fab-open  { opacity: 0; transform: rotate(90deg); }
.is-open .chat-fab-close { opacity: 1; transform: rotate(0); }

/* Pulse ring */
.chat-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-yellow, #FFE600);
  opacity: 0;
  animation: chat-pulse 2.5s ease-out infinite;
  pointer-events: none;
}
.is-open .chat-fab-pulse { animation: none; opacity: 0; }
@keyframes chat-pulse {
  0%   { opacity: 0.6; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.35); }
  100% { opacity: 0;   transform: scale(1.35); }
}

/* Speed-dial stack — collapsed by default */
.chat-dial {
  display: flex;
  flex-direction: column-reverse; /* visual bottom = closest to FAB */
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.chat-dial-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font: inherit;
  /* Hidden state: scale in from bottom-right */
  opacity: 0;
  transform: translateY(12px) scale(0.6);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.4, 1.4, 0.6, 1);
  transition-delay: 0ms;
  pointer-events: none;
}
.is-open .chat-dial-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: var(--delay, 0ms);
  pointer-events: auto;
}
.chat-dial-label {
  order: 1;
  background: #ffffff;
  color: var(--color-ink, #2e2e38);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14), 0 2px 4px rgba(0, 0, 0, 0.06);
}
.chat-dial-icon {
  order: 2;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg, #333);
  color: var(--fg, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chat-dial-item:hover .chat-dial-icon { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24); }
.chat-dial-item:active .chat-dial-icon { transform: scale(0.96); }
.chat-dial-item:focus-visible .chat-dial-icon {
  outline: 3px solid var(--color-yellow, #FFE600);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .chat-fab-pulse { animation: none; }
  .chat-fab, .chat-fab-icon, .chat-dial-item, .chat-dial-icon { transition: none; }
}

/* Contact-form modal — centered dialog */
.chat-form-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px;
  animation: chat-modal-fade 0.18s ease;
}
.chat-form-modal[hidden] { display: none; }
@keyframes chat-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.chat-form-modal-inner {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: chat-modal-pop 0.22s cubic-bezier(0.4, 1.4, 0.6, 1);
}
@keyframes chat-modal-pop {
  from { transform: translateY(12px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.chat-form-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, var(--color-ink, #2e2e38), #1a1a24);
  color: #ffffff;
}
.chat-form-modal-header strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.chat-form-modal-header span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}
.chat-form-modal-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.12s ease;
  flex-shrink: 0;
}
.chat-form-modal-close:hover { background: rgba(255, 255, 255, 0.2); }
.chat-form {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-form-row input,
.chat-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-gray-200, #e7e7ea);
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  color: var(--color-ink, #2e2e38);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  resize: none;
}
.chat-form-row input:focus,
.chat-form-row textarea:focus {
  outline: none;
  border-color: var(--color-yellow, #FFE600);
  box-shadow: 0 0 0 3px rgba(255, 230, 0, 0.22);
}
.chat-form-row textarea { min-height: 72px; line-height: 1.45; }
.chat-form-feedback {
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  border-left: 3px solid var(--color-yellow, #FFE600);
  background: #fef9c3;
  color: #713f12;
}
.chat-form-feedback.is-success { background: #f0fdf4; border-left-color: #10B981; color: #065f46; }
.chat-form-feedback.is-error   { background: #fef2f2; border-left-color: #EF4444; color: #991b1b; }
.chat-form-feedback.is-info    { background: #eff6ff; border-left-color: #3B82F6; color: #1e3a8a; }
.chat-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--color-ink, #2e2e38);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  margin-top: 2px;
}
.chat-form-submit:hover:not(:disabled) { background: #1a1a24; }
.chat-form-submit:active { transform: scale(0.98); }
.chat-form-submit:disabled { opacity: 0.7; cursor: wait; }
.chat-form-submit-arrow { transition: transform 0.15s ease; }
.chat-form-submit:hover:not(:disabled) .chat-form-submit-arrow { transform: translateX(3px); }

/* RTL (Hebrew) — put the speed-dial on the left */
html.lang-rtl .chat-widget { right: auto; left: 20px; align-items: flex-start; }
html.lang-rtl .chat-dial { align-items: flex-start; }
html.lang-rtl .chat-dial-item .chat-dial-label { order: 2; }
html.lang-rtl .chat-dial-item .chat-dial-icon  { order: 1; }
html.lang-rtl .chat-form-submit-arrow { transform: scaleX(-1); }

/* Mobile tweaks */
@media (max-width: 480px) {
  .chat-widget { bottom: 16px; right: 16px; gap: 8px; }
  html.lang-rtl .chat-widget { right: auto; left: 16px; }
  .chat-dial-icon { width: 44px; height: 44px; }
  .chat-dial-label { font-size: 12.5px; padding: 5px 10px; }
}

/* ==========================================================
   PERF — content-visibility for below-the-fold sections
   Tells the browser it can skip rendering + layout of off-screen
   sections until they scroll close to the viewport. Huge render-time
   win on mobile with a long homepage.
   The contain-intrinsic-size avoids scrollbar jumping by reserving space.
   ========================================================== */
.section,
.callout-bar,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
/* Don't apply to the hero or the very top section (they're ATF) */
.hero,
.hero-bg,
.hero-content {
  content-visibility: visible;
}

/* ==========================================================
   SEARCH OVERLAY — modal triggered by the header search button
   (wired up in main.js / initSearch).  Respects prefers-reduced-motion.
   ========================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px 16px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.search-overlay.is-open {
  display: flex;
  opacity: 1;
}
body.has-search-open { overflow: hidden; }

.search-modal {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform 0.2s ease;
}
.search-overlay.is-open .search-modal { transform: translateY(0); }

.search-modal-inner { display: flex; flex-direction: column; max-height: 80vh; }

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
}
.search-input-icon {
  width: 22px;
  height: 22px;
  color: var(--gray-500, #6b7280);
  flex-shrink: 0;
}
#site-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 17px;
  color: var(--ink, #0b1020);
  font-family: inherit;
  padding: 4px 0;
  min-width: 0;
}
#site-search-input::-webkit-search-cancel-button { display: none; }
.search-close {
  background: var(--gray-100, #f3f4f6);
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-700, #374151);
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.search-close:hover { background: var(--gray-200, #e5e7eb); }

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  min-height: 0;
}
.search-result {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-column-gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.12s ease;
}
.search-result:hover,
.search-result.is-selected {
  background: var(--gray-100, #f3f4f6);
}
.search-result-type {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  background: var(--color-yellow, #FFE600);
  color: #1a1a24;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  white-space: nowrap;
}
.search-result-title {
  grid-column: 2;
  grid-row: 1;
  font-weight: 600;
  color: var(--ink, #0b1020);
  font-size: 15px;
}
.search-result-excerpt {
  grid-column: 2;
  grid-row: 2;
  color: var(--gray-600, #4b5563);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.search-result mark {
  background: rgba(255, 230, 0, 0.55);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.search-no-results {
  padding: 36px 20px;
  text-align: center;
  color: var(--gray-500, #6b7280);
  font-size: 14px;
}

.search-hint {
  display: flex;
  gap: 14px;
  padding: 10px 16px;
  border-top: 1px solid var(--gray-200, #e5e7eb);
  font-size: 11px;
  color: var(--gray-500, #6b7280);
  flex-wrap: wrap;
}
.search-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  margin-right: 4px;
  background: var(--gray-100, #f3f4f6);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 10px;
  color: var(--gray-700, #374151);
}

/* Hebrew RTL */
html.lang-rtl .search-result { direction: rtl; }
html.lang-rtl #site-search-input { text-align: right; }

@media (max-width: 640px) {
  .search-overlay { padding: 0; }
  .search-modal { border-radius: 0; max-width: 100%; min-height: 100vh; }
  .search-modal-inner { max-height: 100vh; }
}

@media (prefers-reduced-motion: reduce) {
  .search-overlay,
  .search-overlay .search-modal { transition: none; }
}
