/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line-100);
  transition: box-shadow var(--motion-fast) var(--ease-standard);
}
.site-header.is-scrolled { box-shadow: var(--elev-sticky-top); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-size: 17px; font-weight: 900; letter-spacing: .06em; color: var(--color-ink-800);
}
.brand-text em {
  font-style: normal; font-size: 10px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--color-steel-500);
}
@media (min-width: 1024px) {
  .brand img { width: 42px; height: 42px; }
  .brand-text strong { font-size: 20px; }
  .brand-text em { font-size: 11px; }
}

.desktop-nav { display: none; align-items: center; gap: var(--space-1); margin-inline-start: auto; }
@media (min-width: 1080px) { .desktop-nav { display: flex; } }

.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: var(--space-2) var(--space-3);
  background: none; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--color-ink-700);
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast) var(--ease-standard),
              background-color var(--motion-fast) var(--ease-standard);
}
@media (hover: hover) {
  .nav-link:hover { color: var(--color-ink-900); background: var(--color-surface-2); }
}
.nav-link.is-open,
.nav-link.active { color: var(--color-accent); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); margin-inline-start: auto; }
@media (min-width: 1080px) { .header-actions { margin-inline-start: var(--space-4); } }

.header-wa {
  display: none; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--color-ink-700);
  white-space: nowrap;
}
.header-wa svg { color: var(--color-success); }
@media (min-width: 1240px) { .header-wa { display: inline-flex; } }
@media (hover: hover) { .header-wa:hover { color: var(--color-ink-900); } }

.header-cta { display: none; height: 42px; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--color-line-200);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--color-ink-800);
}
@media (min-width: 1080px) { .menu-toggle { display: none; } }

/* ---------------- Mega menu ---------------- */
.mega {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-surface);
  border-block: 1px solid var(--color-line-100);
  box-shadow: var(--elev-card);
  animation: megaIn var(--motion-base) var(--ease-standard);
}
@media (min-width: 1080px) { .mega { display: block; } }
/*
 * In the React build each panel was conditionally rendered, so a closed menu
 * simply did not exist in the DOM. The server-rendered markup always contains
 * both panels and toggles the `hidden` attribute instead — and the rule above
 * outranks the browser default for [hidden], which left every mega menu
 * permanently expanded and pushed the hero clean off the first screen.
 * This restores `hidden` as the authority at every width.
 */
.mega[hidden] { display: none; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .85fr);
  gap: var(--space-10);
  padding-block: var(--space-8) var(--space-10);
}
.mega-inner-industries { grid-template-columns: minmax(0, 3fr) minmax(0, .9fr); }

.mega-label {
  font-size: var(--text-2xs); font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow); color: var(--color-steel-500);
  margin-bottom: var(--space-4);
}
.mega-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mega-list a {
  display: block; padding: 9px var(--space-3); border-radius: var(--radius-sm);
  font-size: var(--text-sm); color: var(--color-ink-700);
  transition: background-color var(--motion-fast) var(--ease-standard);
}
@media (hover: hover) { .mega-list a:hover { background: var(--color-surface-2); color: var(--color-ink-900); } }

.mega-list-featured a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); }
.mega-list-featured img {
  width: 46px; height: 58px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--color-line-100); border-radius: var(--radius-sm); background: #fff;
}
.mega-list-featured span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-list-featured strong { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-800); }
.mega-list-featured em {
  font-style: normal; font-size: var(--text-2xs); color: var(--color-steel-500);
  font-variant-numeric: tabular-nums;
}

.mega-grid {
  list-style: none; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1) var(--space-6);
}
@media (min-width: 1280px) { .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mega-grid a {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--space-3); border-radius: var(--radius-sm);
  transition: background-color var(--motion-fast) var(--ease-standard);
}
@media (hover: hover) { .mega-grid a:hover { background: var(--color-surface-2); } }
.mega-grid strong { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-800); }
.mega-grid em { font-style: normal; font-size: var(--text-2xs); color: var(--color-steel-500); line-height: 1.4; }

.mega-col-cta {
  padding: var(--space-6); border-radius: var(--radius-md);
  background: var(--color-surface-2); align-self: start;
}
.mega-note {
  font-size: var(--text-sm); line-height: 1.55; color: var(--color-steel-500);
  margin-bottom: var(--space-5);
}
.mega-link { margin-top: var(--space-4); }

/* ---------------- Mobile drawer ---------------- */
.mobile-drawer {
  position: fixed; inset: var(--header-h) 0 0 0;
  z-index: 99; overflow-y: auto;
  background: var(--color-surface);
  padding: var(--space-4) var(--gutter) var(--space-16);
  animation: drawerIn var(--motion-base) var(--ease-standard);
}
@keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1080px) { .mobile-drawer { display: none; } }
/* Same reason as .mega[hidden]: the drawer is always in the DOM now, and a
   position:fixed panel that ignores [hidden] would blanket the whole page. */
.mobile-drawer[hidden],
.acc-panel[hidden] { display: none; }

.acc { border-bottom: 1px solid var(--color-line-100); }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 54px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-size: var(--text-lg); font-weight: 500; color: var(--color-ink-800);
  text-align: left;
}
.acc-trigger .rot { transform: rotate(180deg); }
.acc-trigger svg { transition: transform var(--motion-fast) var(--ease-standard); flex-shrink: 0; }
.acc-panel { list-style: none; padding-bottom: var(--space-3); }
.acc-panel a {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: 46px; padding-inline-start: var(--space-3);
  font-size: var(--text-sm); color: var(--color-ink-700);
}
.pill-core {
  font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  padding: 2px 7px; border-radius: var(--radius-pill);
  background: var(--color-accent-soft); color: var(--color-accent);
}

.drawer-link {
  display: flex; align-items: center; min-height: 54px;
  font-size: var(--text-lg); font-weight: 500; color: var(--color-ink-800);
  border-bottom: 1px solid var(--color-line-100);
}
.drawer-foot { display: grid; gap: var(--space-3); margin-top: var(--space-8); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--color-ink-900); color: #C7D2DC;
  padding-block: var(--space-16) var(--space-8); margin-top: var(--space-4);
}
.footer-grid {
  display: grid; gap: var(--space-10);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: var(--space-12);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: var(--space-12); } }

.footer-brand img { width: 40px; height: 40px; object-fit: contain; margin-bottom: var(--space-4); }
.footer-name { font-size: var(--text-sm); font-weight: 500; color: #fff; margin-bottom: var(--space-3); }
.footer-blurb { font-size: var(--text-sm); line-height: 1.65; margin-bottom: var(--space-5); max-width: 42ch; }
.footer-contact { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-contact a, .footer-contact span {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: var(--text-sm); color: #C7D2DC; line-height: 1.45;
}
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--color-accent-light); }
@media (hover: hover) { .footer-contact a:hover { color: #fff; } }

.footer-col h3 {
  font-size: var(--text-2xs); font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow); color: #fff; margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--text-sm); color: #C7D2DC; line-height: 1.4; }
@media (hover: hover) { .footer-col a:hover { color: #fff; } }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8);
  justify-content: space-between; align-items: center;
  padding-top: var(--space-8); border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--text-xs); color: #8B9CAB;
}
.footer-legal { max-width: 62ch; }

/* ---------------- Floating actions ---------------- */
.float-stack {
  position: fixed; right: var(--space-4); z-index: 90;
  bottom: calc(var(--mobilebar-h) + var(--space-4) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--space-3);
}
@media (min-width: 640px) { .float-stack { right: var(--space-6); bottom: var(--space-6); } }

.float-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  width: 52px; height: 52px; border: 0; border-radius: var(--radius-pill);
  cursor: pointer; box-shadow: var(--elev-card-hover);
  transition: transform var(--motion-fast) var(--ease-standard),
              width var(--motion-base) var(--ease-standard);
}
.float-wa { background: #25D366; color: #fff; }
/* Below 640px the sticky bottom bar already carries WhatsApp — a second
   floating button would only duplicate it and cover page content. */
@media (max-width: 639px) { .float-wa { display: none; } }
.float-top { background: var(--color-surface); color: var(--color-ink-800); border: 1px solid var(--color-line-200); }
.float-label { display: none; font-size: var(--text-sm); font-weight: 500; }
@media (hover: hover) {
  .float-btn:hover { transform: translateY(-2px); }
  .float-wa:hover { width: 148px; }
  .float-wa:hover .float-label { display: inline; }
}

/* Mobile sticky bottom bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: 1fr 1.25fr;
  background: var(--color-surface);
  box-shadow: var(--elev-sticky-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 640px) { .mobile-bar { display: none; } }

.mobile-bar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--mobilebar-h); font-size: 15px; font-weight: 500;
}
.mb-wa { color: var(--color-ink-800); border-right: 1px solid var(--color-line-100); }
.mb-wa svg { color: #25D366; }
.mb-quote { background: var(--color-accent); color: #fff; }
