/* ═══════════════════════════════════════════════════
   ESCO TOOL — 3-ROW HEADER
   Row 1: Top Bar | Row 2: Logo+Search+CTA | Row 3: Nav
   GeneratePress Premium
   ═══════════════════════════════════════════════════ */

.site-header .inside-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}


/* ═══ ROW 1 — TOP BAR ═══ */
.top-bar {
  background: var(--text-primary);
  padding: 8px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.esco-top-bar__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.esco-top-bar__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.esco-top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.esco-top-bar a:hover {
  color: var(--esco-red-bright) !important;
}

.esco-top-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.esco-social-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  transition: all 0.25s;
}

.esco-social-icon:hover {
  border-color: var(--esco-red);
  background: var(--esco-red);
  color: #fff;
}

.esco-social-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}


/* ═══ ROW 2 — MIDDLE BAR (Logo + Search + CTA) ═══ */
.site-header {
  background: rgba(28, 28, 28, 0.97);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.inside-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Middle bar — search + CTA container */
.esco-middle-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex: 1;
  justify-content: flex-end;
}


/* ═══ SEARCH FORM ═══ */
.esco-header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 420px;
  margin: 0 24px;
}

.esco-header-search__input,
input[type="search"].esco-header-search__input {
  width: 100%;
  height: 42px;
  padding: 0 46px 0 16px;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 4px;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  opacity: 1;
}

.esco-header-search__input::placeholder {
  color: rgba(255,255,255,0.4);
  -webkit-text-fill-color: rgba(255,255,255,0.4);
  opacity: 1;
}

.esco-header-search__input:focus {
  background: rgba(255,255,255,0.12) !important;
  border-color: var(--esco-red) !important;
  box-shadow: 0 0 0 3px rgba(219,0,0,0.15);
}

.esco-header-search__btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--esco-red);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0;
  line-height: 0;
  padding: 0;
}

.esco-header-search__btn:hover {
  background: var(--esco-red-bright);
}


/* ═══ CTA BUTTONS ═══ */
.esco-header-cta,
.esco-header-cta-secondary {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Solid red — primary (GET A QUOTE / RFQ) */
.esco-header-cta {
  background: var(--esco-red);
  padding: 12px 28px;
}
.esco-header-cta:hover {
  background: var(--esco-red-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(219, 0, 0, 0.35);
  color: #fff;
}

/* Ghost outline — secondary (EXPLORE PRODUCTS / PRODUCTS) */
.esco-header-cta-secondary {
  background: transparent;
  border: 1px solid var(--esco-red);
  padding: 11px 27px; /* compensate for 1px border so heights match primary */
}
.esco-header-cta-secondary:hover {
  background: var(--esco-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(219, 0, 0, 0.35);
  color: #fff;
}

/* CTA label variants — full text shown on desktop, short on tablet/mobile */
.esco-cta-full  { display: inline; }
.esco-cta-short { display: none; }


/* ═══ ROW 3 — NAVIGATION BAR ═══ */
.nav-below-header .main-navigation {
  background: #1c1c1c;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-below-header .main-navigation .main-nav > ul > li > a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 0 20px;
  line-height: 50px;
  position: relative;
  transition: color 0.25s;
}

/* Red underline animation */
.nav-below-header .main-navigation .main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--esco-red);
  transition: width 0.3s ease;
}

.nav-below-header .main-navigation .main-nav > ul > li > a:hover {
  color: #fff;
}

.nav-below-header .main-navigation .main-nav > ul > li > a:hover::after,
.nav-below-header .main-navigation .main-nav > ul > li.current-menu-item > a::after {
  width: 100%;
}

.nav-below-header .main-navigation .main-nav > ul > li.current-menu-item > a {
  color: #fff;
}

.menu-item-has-children .dropdown-menu-toggle {
  display: inline-block;
  height: 100%;
  clear: both;
  padding-right: 0;
  padding-left: 10px;
}


/* ═══ STICKY NAV ═══ */
.navigation-stick {
  background: rgba(28, 28, 28, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}


/* ═══ DESKTOP — hide mobile-only elements ═══ */
@media (min-width: 961px) {
  .esco-mobile-search-wrap { display: none; }
}


/* ═══ TABLET (≤960px) — shrink CTAs, swap to short labels ═══ */
@media (max-width: 960px) {

  /* Hide top bar */
  .top-bar,
  .esco-top-bar { display: none; }

  /* Tighten the search field */
  .esco-header-search { max-width: 240px; margin: 0 12px; }
  .esco-header-search__input,
  input[type="search"].esco-header-search__input {
    font-size: 14px;
    height: 38px;
    padding: 0 40px 0 14px;
  }

  /* Shrink CTA padding/font */
  .esco-header-cta { padding: 8px 14px; font-size: 14px; letter-spacing: 1.2px; }
  .esco-header-cta-secondary { padding: 6px 12px; font-size: 14px; letter-spacing: 1.2px; }

  /* Swap CTA labels to short variants (RFQ / PRODUCTS) */
  .esco-cta-full  { display: none; }
  .esco-cta-short { display: inline; }

  /* Compact header padding */
  .inside-header { padding: 8px 20px; }

  /* Logo: match GP specificity, preserve aspect ratio */
  .site-header .header-image,
  .site-logo img {
    width: auto;
    height: 44px;
    max-width: none;
    max-height: none;
  }

  /* Mobile menu toggle */
  .mobile-menu-control-wrapper {
    display: flex !important;
  }

  button.menu-toggle {
    color: #fff;
    padding: 8px 12px;
    line-height: 1;
  }

  button.menu-toggle svg,
  button.menu-toggle .gp-icon svg {
    fill: #fff;
    width: 24px;
    height: 24px;
  }

  /* Expanded mobile nav */
  .main-navigation.toggled .main-nav {
    background: #1c1c1c;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .main-navigation.toggled .main-nav > ul > li > a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    padding: 16px 24px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  /* Remove underline in mobile */
  .main-navigation.toggled .main-nav > ul > li > a::after {
    display: none;
  }

  /* Active = red left border */
  .main-navigation.toggled .main-nav > ul > li > a:hover,
  .main-navigation.toggled .main-nav > ul > li.current-menu-item > a {
    color: #fff;
    background: rgba(219, 0, 0, 0.08);
    border-left: 3px solid var(--esco-red);
  }

  .main-navigation.toggled .main-nav ul ul a {
    padding-left: 40px;
    font-size: 16px;
    color: rgba(255,255,255,0.65);
  }

  .main-navigation.toggled .dropdown-menu-toggle {
    color: rgba(255,255,255,0.5);
  }

  /* Mobile search (inside expanded menu) */
  .esco-mobile-search-wrap {
    padding: 16px 24px;
    background: #1c1c1c;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .esco-mobile-search__input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
  }

  .esco-mobile-search__input::placeholder {
    color: rgba(255,255,255,0.4);
  }

  .esco-mobile-search__input:focus {
    border-color: var(--esco-red);
    box-shadow: 0 0 0 3px rgba(219,0,0,0.15);
  }
}


/* ═══ MOBILE (≤768px) — middle-bar drops below logo, tight stack ═══ */
@media (max-width: 768px) {
  .esco-middle-bar {
    flex: 0 0 100%;
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
    gap: 8px;
    justify-content: stretch;
  }
  .esco-header-search {
    flex: 1 1 auto;
    margin: 0;
    max-width: none;
  }
  .esco-header-cta,
  .esco-header-cta-secondary {
    padding: 8px 12px;
    font-size: 14px;
  }
  .esco-header-cta-secondary { padding: 6px 10px; }
}


/* ─── Small phones ─── */
@media (max-width: 480px) {
  .inside-header { padding: 8px 16px; }
  .site-header .header-image,
  .site-logo img {
    height: 32px;
    width: auto;
    max-width: none;
    max-height: none;
  }
}


/* ════════════════════════════════════════════════════
   PRIMARY NAV (custom — replaces GP's .main-navigation)
   ════════════════════════════════════════════════════ */

:root {
  /* Height of the sticky nav-bar — used by other stylesheets to offset
     sticky elements (e.g. .esco-filter-sidebar in products.css). */
  --esco-nav-h: 80px;
}

.esco-nav-bar {
  background: var(--text-primary);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--esco-nav-h);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}

/* Hide GP's default nav since we render our own */
nav.main-navigation { display: none; }

/* Hide GP's .site-header AND the old "Esco Header Search + CTA" middle bar
   (GP Hook element 2299) — we render our own logo + CTA inside .esco-nav-bar
   now. The top utility bar (.top-bar) stays since it's a separate GP Hook. */
header.site-header,
.site-header,
.inside-header,
.site-logo,
.esco-middle-bar,
.esco-header-search,
.esco-header-cta,
.esco-header-cta-secondary {
  display: none !important;
}

/* Brand logo inside nav bar */
.esco-nav-brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 8px;
  max-height: 100%;
  overflow: hidden;
}
.esco-nav-brand__img,
.esco-nav-brand img {
  max-height: 44px;
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.esco-nav-brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

/* Force the inner flex row to fill the bar height so vertical centering works */
.esco-nav-bar .esco-nav-inner { height: 100%; }

.esco-nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* ── Toggle button (mobile only) ───────────────────── */
.esco-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: #fff;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

.esco-nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}
.esco-nav-toggle__icon > span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.esco-nav-bar.is-open .esco-nav-toggle__icon > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.esco-nav-bar.is-open .esco-nav-toggle__icon > span:nth-child(2) {
  opacity: 0;
}
.esco-nav-bar.is-open .esco-nav-toggle__icon > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Desktop nav (horizontal) ──────────────────────── */
.esco-nav {
  flex: 1;
  min-width: 0;
}
.esco-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.esco-nav__menu > li {
  position: relative;
}
.esco-nav__menu > li > a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0 14px;
  line-height: var(--esco-nav-h);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.25s;
}
.esco-nav__menu > li > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--esco-red);
  transition: width 0.3s ease;
}
.esco-nav__menu > li:hover > a,
.esco-nav__menu > li.current-menu-item > a,
.esco-nav__menu > li.current-menu-parent > a,
.esco-nav__menu > li.current-menu-ancestor > a {
  color: var(--esco-red);
}
.esco-nav__menu > li:hover > a::after,
.esco-nav__menu > li.current-menu-item > a::after,
.esco-nav__menu > li.current-menu-parent > a::after,
.esco-nav__menu > li.current-menu-ancestor > a::after {
  width: 100%;
}

/* Submenu (desktop hover) */
.esco-nav__menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #1c1c1c;
  border-top: 2px solid var(--esco-red);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 950;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.esco-nav__menu li:hover > .sub-menu,
.esco-nav__menu li:focus-within > .sub-menu {
  display: block;
}
.esco-nav__menu .sub-menu a {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  padding: 10px 20px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.esco-nav__menu .sub-menu a:hover {
  background: rgba(219,0,0,0.12);
  color: #fff;
}

/* Tight-fit fallback: when the menu is wide and viewport is at the lower edge
   of desktop, scale typography down before forcing the hamburger. */
@media (min-width: 961px) and (max-width: 1200px) {
  .esco-nav__menu > li > a {
    font-size: 14px;
    letter-spacing: 0.8px;
    padding: 0 10px;
  }
}

/* ── Mobile (≤960px): hamburger reveals stacked menu ── */
@media (max-width: 960px) {
  .esco-nav-toggle { display: inline-flex; }

  .esco-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--text-primary);
    border-top: 1px solid rgba(255,255,255,0.08);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .esco-nav-bar.is-open .esco-nav { display: block; }

  .esco-nav__menu {
    flex-direction: column;
    gap: 0;
  }
  .esco-nav__menu > li > a {
    line-height: 1.4;
    padding: 16px 24px;
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .esco-nav__menu > li > a::after { display: none; }
  .esco-nav__menu > li:hover > a,
  .esco-nav__menu > li.is-open > a,
  .esco-nav__menu > li.current-menu-item > a {
    background: rgba(219,0,0,0.12);
    border-left: 3px solid var(--esco-red);
    color: #fff;
  }

  /* Mobile submenu — collapsed by default, expands when parent has .is-open */
  .esco-nav__menu .sub-menu {
    display: none;
    position: static;
    border-top: none;
    background: rgba(0,0,0,0.3);
    padding: 0;
  }
  .esco-nav__menu > li.is-open > .sub-menu { display: block; }
  .esco-nav__menu .sub-menu a {
    padding: 12px 40px;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .esco-nav__menu .sub-menu a:hover {
    background: rgba(219,0,0,0.12);
    color: #fff;
  }
}

/* CTA label swap: "Get a Quote" on desktop, compact "RFQ" on mobile */
.esco-nav-cta .esco-cta-full { display: inline; }
.esco-nav-cta .esco-cta-short { display: none; }

/* ── Mobile (≤768px): dark header, smaller logo, swap CTA to RFQ ── */
@media (max-width: 768px) {
  :root { --esco-nav-h: 64px; }

  .esco-nav-bar {
    background: var(--text-primary);
    border-bottom-color: rgba(255,255,255,0.08);
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  }

  /* Flip menu / toggle / brand text to light */
  .esco-nav-toggle { color: #fff; }
  .esco-nav-toggle__icon > span { background: #fff; }
  .esco-nav-brand__text { color: #fff; }

  .esco-nav-brand__img,
  .esco-nav-brand img {
    max-height: 36px;
    height: 36px;
  }

  .esco-nav-cta {
    font-size: 13px;
    letter-spacing: 1.2px;
    padding: 8px 12px;
  }
  .esco-nav-cta .esco-cta-full { display: none; }
  .esco-nav-cta .esco-cta-short { display: inline; }

  .esco-nav-actions { gap: 8px; }
  .esco-nav-inner { padding: 0 16px; gap: 8px; }
}

@media (max-width: 480px) {
  .esco-nav-brand__img,
  .esco-nav-brand img {
    max-height: 30px;
    height: 30px;
  }
  .esco-nav-cta {
    font-size: 12px;
    padding: 7px 10px;
    letter-spacing: 1px;
  }
}


/* ════════════════════════════════════════════════════
   NAV-BAR ACTIONS (search icon + compact CTAs)
   ════════════════════════════════════════════════════ */

.esco-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Search (icon collapses; expands inline on click) ── */
.esco-nav-search {
  display: flex;
  align-items: center;
  position: relative;
}
.esco-nav-search__input {
  width: 0;
  padding: 0;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid transparent;
  border-radius: 3px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  opacity: 0;
  pointer-events: none;
  transition: width 0.3s ease, padding 0.3s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.esco-nav-search.is-open .esco-nav-search__input {
  width: 220px;
  padding: 0 36px 0 12px;
  border-color: rgba(255,255,255,0.18);
  opacity: 1;
  pointer-events: auto;
}
.esco-nav-search.is-open .esco-nav-search__input:focus {
  border-color: var(--esco-red);
  box-shadow: 0 0 0 3px rgba(219,0,0,0.15);
}
.esco-nav-search__input::placeholder {
  color: rgba(255,255,255,0.5);
}
.esco-nav-search__btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 0;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  margin-left: -32px; /* overlay icon at the right end of input when open */
  position: relative;
  z-index: 1;
}
.esco-nav-search__btn:hover {
  color: #fff;
}
.esco-nav-search.is-open .esco-nav-search__btn {
  background: var(--esco-red);
  color: #fff;
}

/* ── Compact CTAs ─────────────────────────────────── */
.esco-nav-cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  transition: all 0.25s ease;
}
.esco-nav-cta--solid {
  background: var(--esco-red);
  color: #fff;
}
.esco-nav-cta--solid:hover {
  background: var(--esco-red-bright);
  color: #fff;
}
.esco-nav-cta--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--esco-red);
  padding: 6px 13px; /* compensate for 1px border */
}
.esco-nav-cta--ghost:hover {
  background: var(--esco-red);
  color: #fff;
}

/* On mobile, full header above already has search + CTAs even when stuck.
   Keep nav-bar actions hidden so the bar stays tight around the hamburger. */
@media (max-width: 960px) {
  .esco-nav-bar.is-stuck .esco-nav-actions { display: none; }
}


/* ════════════════════════════════════════════════════════════════
   TOP BAR (GP Element 2190) — phone/email/social on left, search on right
═══════════════════════════════════════════════════════════════════ */

.top-bar .container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 14px;
}
.top-bar a:hover { color: var(--esco-red-bright); }

.top-bar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.18);
  display: inline-block;
}

/* Social icons */
.top-bar .social-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  transition: all 0.25s;
  padding: 0;
  gap: 0;
}
.top-bar .social-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.top-bar .social-icon:hover {
  border-color: var(--esco-red);
  background: var(--esco-red);
  color: #fff;
}

/* Search form on the right */
.top-bar-search {
  display: flex;
  align-items: stretch;
  height: 36px;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
}
.top-bar-search__input {
  border: none;
  outline: none;
  width: 240px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
}
.top-bar-search__input::placeholder {
  color: var(--text-muted);
}
.top-bar-search__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--esco-red);
  color: #fff;
  border: none;
  padding: 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.top-bar-search__btn:hover {
  background: var(--esco-red-dark);
}
.top-bar-search__btn svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    align-items: stretch;
  }
  .top-bar-left,
  .top-bar-right {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .top-bar-search { width: 100%; }
  .top-bar-search__input { width: 100%; flex: 1; }
  .top-bar-divider { display: none; }
}
