/* ------------------------------------------------------------------
 * Brazol Lubricants Ã¢â‚¬â€ base layout (Elementor does the page design)
 * ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: #161616;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: "Montserrat", Arial, Helvetica, sans-serif; }
/* Keep Elementor canvas on-brand even with the default kit */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-button .elementor-button,
.elementor-widget-icon-list .elementor-icon-list-text {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}
a { color: #C20000; }
img { max-width: 100%; height: auto; }

.brazol-container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Floating glass pill header (reference-style) */
.brazol-header {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px); /* sit below the WP admin bar when logged in */
  left: 0;
  right: 0;
  z-index: 200;
  padding: 18px 28px 0;
  pointer-events: none;
}
.brazol-pill {
  pointer-events: auto;
  max-width: 1400px;
  min-height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(14,17,24,0.108);
  border-radius: 20px;
  padding: 8px 10px 8px 26px;
  box-shadow: 0 12px 40px rgba(15,20,35,0.105);
}
.brazol-logo { flex-shrink: 0; display: flex; align-items: center; }
.brazol-logo a {
  color: #0e1118;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 19px;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.brazol-logo a span { color: #0e1118; font-weight: 400; }
.brazol-logo img { max-height: 46px; width: auto; display: block; }
.brazol-nav { flex: 1; display: flex; justify-content: center; }
.brazol-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.brazol-nav > ul { position: relative; }
.brazol-nav a {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: rgba(14,17,24,0.756);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 2px 10px;
  background: linear-gradient(#C20000, #C20000) center bottom / 0% 2px no-repeat;
  transition: background-size 0.3s ease, color 0.25s ease;
}
.brazol-nav a:hover { color: #0e1118; background-size: 100% 2px; }
.brazol-nav .current-menu-item > a,
.brazol-nav .current-menu-ancestor > a,
.brazol-nav .current_page_item > a {
  color: #0e1118;
  font-weight: 700;
  background-size: 100% 2px;
}
.brazol-nav .menu-item-has-children { position: relative; }
.brazol-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: solid rgba(14,17,24,0.63);
  border-width: 0 1.5px 1.5px 0;
  padding: 3px;
  transform: rotate(45deg) translateY(-2px);
}
.brazol-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0; /* left-aligned with the parent menu item */
  min-width: 210px;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(14,17,24,0.108);
  border-radius: 12px;
  padding: 10px;
  flex-direction: column;
  align-items: stretch; /* the shared rule centres items â€” keep submenu text left */
  text-align: start;
  gap: 2px;
  box-shadow: 0 18px 50px rgba(15,20,35,0.15);
}
.brazol-nav ul li:hover > ul { display: flex; }
.brazol-nav ul ul a { display: block; padding: 9px 14px; border-radius: 8px; }
.brazol-nav ul ul a:hover { background: rgba(14,17,24,0.072); }
.brazol-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* Language switcher â€” in the navbar on desktop/laptop (â‰¥1025px), floating bottom-left dock on tablet/mobile.
   assets/js/translate.js moves the .brazol-lang element between the two spots. */
.brazol-lang-dock {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 250;
  transition: opacity 0.3s ease, visibility 0.3s;
}
@media (min-width: 1025px) {
  .brazol-lang-dock:not(:has(.brazol-lang)) { display: none; }
}
/* Step aside while the cookie notice (same corner) is open */
body:has(.brazol-cookies.show) .brazol-lang-dock { opacity: 0; visibility: hidden; }
.brazol-lang { position: relative; }
.brazol-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 14px;
  border: 1px solid rgba(14,17,24,0.162);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(15,20,35,0.135);
  color: #0e1118;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.brazol-lang-btn svg { width: 19px; height: 19px; }
/* Desktop / laptop: the same picker sits inside the navbar pill */
.brazol-header-actions .brazol-lang-btn {
  height: 42px;
  padding: 0 15px;
  background: transparent;
  border-color: rgba(14,17,24,0.27);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 12px;
}
.brazol-header-actions .brazol-lang-btn svg { width: 17px; height: 17px; }
.brazol-header-actions .brazol-lang-menu { top: calc(100% + 14px); bottom: auto; left: auto; right: 0; }
.brazol-lang-btn:hover,
.brazol-lang.open .brazol-lang-btn { border-color: #C20000; background: #C20000; color: #fff; }
.brazol-lang-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 300px;
  max-width: calc(100vw - 32px);
  padding: 10px;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(14,17,24,0.126);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15,20,35,0.16);
  z-index: 5;
}
.brazol-lang.open .brazol-lang-menu { display: block; }
.brazol-lang-menu ul { list-style: none; margin: 0; padding: 0; }
.brazol-lang-group {
  margin: 4px 6px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(14,17,24,0.473);
}
.brazol-lang-menu a,
.brazol-lang-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: rgba(14,17,24,0.892);
  text-decoration: none;
  font: 600 13.5px/1.3 inherit;
  font-family: inherit;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: start;
  cursor: pointer;
  white-space: nowrap;
}
.brazol-lang-menu a:hover,
.brazol-lang-list button:hover, /* white theme */
.brazol-lang-list button:focus-visible { background: rgba(14,17,24,0.081); color: #0e1118; outline: none; }
.brazol-lang-menu img { width: 20px; height: auto; border-radius: 3px; }
.brazol-lang-menu .current a,
.brazol-lang-list .current button { color: #0e1118; background: rgba(194,0,0,0.14); }
.brazol-lang-list button .e { margin-inline-start: auto; font-size: 11.5px; font-weight: 500; color: rgba(14,17,24,0.473); }
.brazol-lang-list { max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(14,17,24,0.225) transparent; }
.brazol-lang-searchbox { position: relative; margin: 0 0 8px; }
.brazol-lang-searchbox svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: rgba(14,17,24,0.473); pointer-events: none; }
.brazol-lang-search {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid rgba(14,17,24,0.144);
  border-radius: 10px;
  background: rgba(14,17,24,0.054);
  color: #0e1118;
  font: 500 13.5px/1.2 inherit;
  font-family: inherit;
}
.brazol-lang-search::placeholder { color: rgba(14,17,24,0.42); }
.brazol-lang-search:focus { outline: none; border-color: #C20000; }
.brazol-lang-empty { margin: 6px 12px 10px; font-size: 13px; color: rgba(14,17,24,0.525); }

/* Hide Google Translate's own toolbar, tooltip and highlight â€” our language bar replaces it */
#google_translate_element,
.skiptranslate iframe,
iframe.goog-te-banner-frame,
body > .skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.brazol-btn {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.brazol-btn:hover { transform: translateY(-1px); }
.brazol-btn-ghost {
  color: #0e1118;
  border: 1px solid rgba(14,17,24,0.27);
  background: transparent;
}
.brazol-btn-ghost:hover { border-color: rgba(14,17,24,0.9); }
.brazol-btn-solid {
  background: #C20000;
  color: #fff;
  border: 1px solid #C20000;
}
.brazol-btn-solid:hover { background: #990000; }
.brazol-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(14,17,24,0.27);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.brazol-menu-toggle span {
  display: block; /* white pill: dark bars */
  flex-shrink: 0; /* keep the 2px bars visible inside the fixed-height flex button */
  width: 20px;
  height: 2px;
  background: #0e1118;
  margin: 4px 0;
}
/* Push page content below the fixed pill (front page hero goes full-bleed instead) */
body:not(.home) .brazol-content { padding-top: 96px; }
/* Inner pages with a video hero go full-bleed under the header, like the front page */
body:not(.home) .brazol-content:has(.bx-page-hero--video) { padding-top: 0; }

/* Content */
.brazol-content { min-height: 50vh; }
.brazol-content-narrow {
  width: min(860px, 92%);
  margin: 40px auto;
}

/* Footer */
.brazol-footer {
  background: #f6f7f9;
  color: rgba(14,17,24,0.68);
  margin-top: 0;
  border-top: 3px solid #C20000;
}
.brazol-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}
.brazol-footer a { color: #0e1118; text-decoration: none; }
.brazol-footer-brand img {
  max-height: 54px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}
.brazol-footer-menu ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

/* Elementor full-width compatibility */
.elementor-page .brazol-content-narrow,
.page-template-full-width .brazol-content-narrow { max-width: none; width: 100%; margin: 0; }

/* Back to top */
#brazolToTop {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 150;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(14,17,24,0.144);
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #0e1118;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s, background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 12px 32px rgba(15,20,35,0.135);
  padding: 0;
}
#brazolToTop svg { width: 22px; height: 22px; }
#brazolToTop.show { opacity: 1; visibility: visible; transform: none; }
#brazolToTop:hover { background: #C20000; border-color: #C20000; color: #fff; }
#brazolToTop:focus-visible { outline: 2px solid rgba(14,17,24,0.9); outline-offset: 3px; }

/* Laptop / tablet landscape: tighter nav, no secondary button */
@media (max-width: 1199px) {
  .brazol-btn-ghost { display: none; }
  .brazol-pill { gap: 16px; padding-left: 20px; }
  .brazol-nav ul { gap: 22px; }
}
/* Tablet & mobile: burger menu, single-row pill */
@media (max-width: 960px) {
  .brazol-pill { gap: 12px; padding: 8px 8px 8px 18px; min-height: 60px; flex-wrap: wrap; }
  .brazol-header-actions { margin-inline-start: auto; }
  .brazol-menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; height: 44px; width: 46px; padding: 0; }
  .brazol-nav {
    display: none;
    width: 100%;
    justify-content: flex-start;
    order: 3;
  }
  .brazol-nav.open { display: block; border-top: 1px solid rgba(14,17,24,0.09); padding: 6px 4px 10px; }
  .brazol-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0; }
  .brazol-nav a { display: block; padding: 12px 10px; font-size: 15px; border-radius: 10px; background-image: none; } /* white mobile menu */
  .brazol-nav a:hover,
  .brazol-nav .current-menu-item > a,
  .brazol-nav .current_page_item > a { background: rgba(14,17,24,0.063); }
  .brazol-nav .current-menu-item > a,
  .brazol-nav .current_page_item > a { box-shadow: inset 3px 0 0 #C20000; }
  /* Touch devices have no hover: show the sub-menu as an indented list */
  .brazol-nav ul ul,
  .brazol-nav ul li:hover > ul {
    display: flex;
    position: static;
    transform: none;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 2px 0 6px 14px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .brazol-nav ul ul a { font-size: 14px; color: rgba(14,17,24,0.65); padding: 10px 10px; }
  .brazol-nav .menu-item-has-children > a::after { display: none; } /* no dropdown arrow when expanded */
  .brazol-btn-solid { padding: 11px 18px; }
}
@media (max-width: 560px) {
  .brazol-header { padding: 10px 10px 0; }
  .brazol-pill { padding-left: 14px; gap: 8px; border-radius: 16px; }
  .brazol-logo a { font-size: 15px; }
  .brazol-logo img { max-height: 36px; }
  .brazol-btn { padding: 9px 14px; font-size: 13px; }
  .brazol-menu-toggle { height: 40px; width: 42px; }
  .brazol-lang-dock { left: 14px; bottom: 14px; }
  .brazol-lang-btn { height: 44px; padding: 0 14px 0 12px; }
  #brazolToTop { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
@media (max-width: 360px) {
  .brazol-btn-solid { padding: 8px 11px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .brazol-nav a { transition: none; }
}

/* Footer cookie-settings link */
.bx-cookie-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: rgba(14,17,24,0.578);
  font: inherit;
}
.bx-cookie-link:hover { color: #0e1118; }

/* Cookie consent popup */
.brazol-cookies {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 300;
  width: min(380px, calc(100vw - 44px));
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(14,17,24,0.126);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15,20,35,0.16);
  padding: 22px 22px 20px;
  color: #0e1118;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
}
.brazol-cookies.show { opacity: 1; visibility: visible; transform: none; }
.brazol-cookies-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: rgba(14,17,24,0.63);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
}
.brazol-cookies-x:hover { background: rgba(14,17,24,0.09); color: #0e1118; }
.brazol-cookies-x svg { width: 15px; height: 15px; }
.brazol-cookies-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding-right: 28px; }
.brazol-cookies-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(194,0,0, 0.14);
  border: 1px solid rgba(194,0,0, 0.4);
}
.brazol-cookies-icon svg { width: 21px; height: 21px; stroke: #C20000; fill: none; stroke-width: 1.8; }
.brazol-cookies-title { margin: 0; font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.brazol-cookies-text { margin: 0 0 18px; font-size: 13px; line-height: 1.65; color: rgba(14,17,24,0.714); }
.brazol-cookies-text a { color: #0e1118; font-weight: 600; }
.brazol-cookies-text a:hover { color: #C20000; }
.brazol-cookies-btns { display: flex; gap: 10px; }
.brazol-cookies-btns .brazol-btn { flex: 1; text-align: center; padding: 11px 10px; font-size: 13.5px; border-radius: 12px; cursor: pointer; font-family: inherit; }
@media (max-width: 560px) {
  .brazol-cookies { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .brazol-cookies { transition: none; }
}

/* On small screens the WP admin bar scrolls away, so pin the header to the very top. */
@media (max-width: 600px) {
  .brazol-header { top: 0; }
}

/* ---- Touch targets (phones + tablets) ---- */
@media (max-width: 1024px) {
  /* Footer links: bigger tap area without changing the look */
  .bx-foot-col ul { gap: 4px; }
  .bx-foot-col a,
  .bx-foot-bar a,
  .bx-cookie-link { display: inline-block; padding: 7px 0; }
  .bx-foot-bar nav { gap: 4px 18px; }
}
