/*
 * Design fixes on top of the WordPress export. scripts/apply-overrides.sh copies this file into static/ and links
 * it in every page; run it after every export.
 * Selectors start with `body` so that they win over Elementor's own `.elementor-N .elementor-element...` rules.
 * Layout and type only: no copy, no forms (HubSpot), nothing of /quero-contratar/ or /blog (WordPress).
 * Ids: .elementor-8 home, .elementor-1139 testimonials and FAQ block of the home, .elementor-1271 /a-mandae/,
 * .elementor-6445 /obrigado/, .elementor-79 footer, .elementor-1625 /seja-um-parceiro-transportador/.
 */

/* 1. Elementor Pro carousels (blog loop carousel of the home and /obrigado/, testimonials nested carousel).
 * Elementor Pro 3.23 still renders `.swiper-container`, but Elementor 4 ships Swiper 8, whose CSS only styles
 * `.swiper`. Without `overflow: hidden` every slide, Swiper's loop copies included, is painted outside the
 * carousel: over the section title, off the left of the screen, and past the right edge (horizontal scroll on
 * phones). These are Swiper 8's own rules for `.swiper` (some pages do not even load swiper.min.css). */
body .elementor-widget-loop-carousel .swiper-container,
body .elementor-widget-n-carousel .swiper-container {
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
}
body .elementor-widget-loop-carousel .swiper-container > .swiper-wrapper,
body .elementor-widget-n-carousel .swiper-container > .swiper-wrapper {
  position: relative;
  display: flex;
  box-sizing: content-box;
  transition-property: transform;
  z-index: 1;
}
body .elementor-widget-loop-carousel .swiper-container > .swiper-wrapper > .swiper-slide,
body .elementor-widget-n-carousel .swiper-container > .swiper-wrapper > .swiper-slide {
  flex-shrink: 0;
  position: relative;
}
/* Elementor Pro's "not initialized yet" rule looks for Swiper 5's `.swiper-container-initialized`; Swiper 8 sets
 * `.swiper-initialized`, so the rule stays on after init: the wrapper keeps `overflow: hidden`, which crops the
 * slides as soon as Swiper moves it, and a `gap` on top of Swiper's own spacing. */
body .elementor-widget-loop-carousel .swiper-container.swiper-initialized.swiper-horizontal > .swiper-wrapper,
body .elementor-widget-n-carousel .swiper-container.swiper-initialized.swiper-horizontal > .swiper-wrapper {
  overflow: visible;
  gap: 0;
}
/* Room for the cards' shadow, which `overflow: hidden` would cut. */
body .elementor-widget-loop-carousel .swiper-container {
  padding: 8px 0 24px;
}
/* Arrows: Elementor 4 positions them only next to `.swiper` (and /obrigado/ does not load that CSS either), so
 * they rendered as a static full-width blue bar. Elementor Pro already sets their top/left from its variables. */
body .elementor-widget-loop-carousel .swiper-container ~ .elementor-swiper-button {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 20px;
  cursor: pointer;
}
body .elementor-widget-loop-carousel .swiper-container ~ .elementor-swiper-button svg {
  width: 1em;
  height: 1em;
}
body .elementor-widget-n-carousel .elementor-swiper-button {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  cursor: pointer;
}
body .elementor-widget-loop-carousel .swiper-container ~ .elementor-swiper-button.swiper-button-disabled {
  opacity: .3;
  cursor: default;
}

/* 2. Title on the left, carousel on the right: home "Depoimentos" (c8e8f61) and "Blog" (1c4da6c), /obrigado/
 * "Blog" (ded7447). Elementor gives the carousel column 80% next to a 40-52% title column and no right padding,
 * so the carousel ran off the right edge. Same grid as the rest of the site instead: 11% on both sides. */
@media (min-width: 1161px) {
  body .elementor-8 .elementor-element.elementor-element-1c4da6c,
  body .elementor-1139 .elementor-element.elementor-element-c8e8f61,
  body .elementor-6445 .elementor-element.elementor-element-ded7447 {
    --padding-right: 11%;
    --gap: 48px;
    --column-gap: 48px;
    --min-height: 0px;
    align-items: flex-start;
  }
  body .elementor-8 .elementor-element.elementor-element-d74ee6c,
  body .elementor-1139 .elementor-element.elementor-element-cb6c944,
  body .elementor-6445 .elementor-element.elementor-element-ac95adb {
    --width: 30%;
  }
  body .elementor-8 .elementor-element.elementor-element-01d9db6,
  body .elementor-1139 .elementor-element.elementor-element-b6f6775,
  body .elementor-6445 .elementor-element.elementor-element-9f22c9e {
    --width: auto;
    flex: 1 1 0;
    min-width: 0;
  }
  body .elementor-1139 .elementor-element.elementor-element-f6bda63 {
    --container-widget-width: 100%;
    max-width: 100%;
  }
}

/* 3. Home: the testimonial block kept a 500px minimum height for one card, an empty band before the FAQ. */
body .elementor-1139 .elementor-element.elementor-element-c8e8f61 {
  --min-height: 0px;
}

/* 4. Type. Text that Elementor does not style (blog cards, policy pages) fell back to the system font of the
 * Hello theme; the rest of the site is Plus Jakarta Sans. The 500-700 weights are loaded by apply-overrides.sh
 * (the export loads only 400, so every heading was a synthetic bold). */
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body .elementor-1220 .elementor-heading-title {
  line-height: 1.3;
}
body .elementor-1220 .elementor-button {
  font-weight: 600;
}

/* 5. Policy pages and the salary report (text written in the WordPress editor): brand blue links instead of the
 * Hello theme's pink, and a table that fits a phone (the cookie table pushed the page to 595px). */
body.page-id-3874 .page-content a:not(.elementor-button),
body.page-id-4246 .page-content a:not(.elementor-button),
body.page-id-6213 .page-content a:not(.elementor-button) {
  color: #0050c3;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  hyphens: none;
}
/* long bare URLs (the browsers' help pages) did not wrap */
body.page-id-3874 .page-content .elementor-widget-text-editor,
body.page-id-4246 .page-content .elementor-widget-text-editor,
body.page-id-6213 .page-content .elementor-widget-text-editor {
  overflow-wrap: break-word;
}
body.page-id-3874 .page-content table,
body.page-id-4246 .page-content table {
  width: 100%;
  max-width: 100%;
}
/* the tables carry width="800" / width="226" attributes from the editor */
body.page-id-3874 .page-content td,
body.page-id-3874 .page-content th,
body.page-id-4246 .page-content td,
body.page-id-4246 .page-content th {
  width: auto;
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (max-width: 767px) {
  body.page-id-3874 .page-content td,
  body.page-id-3874 .page-content th,
  body.page-id-4246 .page-content td,
  body.page-id-4246 .page-content th {
    padding: 10px 8px;
    font-size: 14px;
  }
}

/* 6. /a-mandae/ timeline: 500px per year made the ten milestones 5000px long. The connecting line is each row's
 * ::before at full height, so it stays continuous. Desktop only (the year icons are hidden on phones). */
@media (min-width: 768px) {
  body .elementor-1271 .elementor-element.elementor-element-da2a402 > .e-con {
    --min-height: 300px;
  }
}

/* 7. Footer: the links block had a 68px top margin (40px on phones) that showed as an empty band of another blue
 * above the footer of every page. */
body .elementor-79 .elementor-element.elementor-element-c0a568a {
  --margin-top: 0px;
}

/* 8. Header menu: the current page gets a background (WordPress keeps .elementor-item-active and
 * aria-current="page" in the export on /, /a-mandae/ and /servicos/; the other pages are not in the menu).
 * Desktop: brand blue pill, white text (7.0:1). Hover: light blue tint (6.4:1). Keyboard focus: 2px outline.
 * Phone dropdown: light blue rounded row, blue text. */
body .elementor-location-header .elementor-widget-nav-menu .elementor-nav-menu--main a.elementor-item {
  padding: 6px 12px;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
body .elementor-location-header .elementor-widget-nav-menu .elementor-nav-menu--main a.elementor-item:hover {
  background-color: #e6eefa;
  color: #0050c3;
}
body .elementor-location-header .elementor-widget-nav-menu .elementor-nav-menu--main a.elementor-item.elementor-item-active,
body .elementor-location-header .elementor-widget-nav-menu .elementor-nav-menu--main a.elementor-item.elementor-item-active:hover {
  background-color: #0050c3;
  color: #fff;
}
body .elementor-location-header .elementor-widget-nav-menu nav a.elementor-item:focus-visible {
  outline: 2px solid #0050c3;
  outline-offset: 1px;
}
body .elementor-location-header .elementor-widget-nav-menu .elementor-nav-menu--dropdown a.elementor-item {
  margin: 2px 10px;
  border-radius: 10px;
}
body .elementor-location-header .elementor-widget-nav-menu .elementor-nav-menu--dropdown a.elementor-item:hover {
  background-color: #f1f5fc;
  color: #0050c3;
}
body .elementor-location-header .elementor-widget-nav-menu .elementor-nav-menu--dropdown a.elementor-item.elementor-item-active,
body .elementor-location-header .elementor-widget-nav-menu .elementor-nav-menu--dropdown a.elementor-item.elementor-item-active:hover {
  background-color: #e6eefa;
  color: #0050c3;
}
body .elementor-location-header .elementor-widget-nav-menu .elementor-nav-menu--dropdown a.elementor-item:focus-visible {
  outline-offset: -2px;
}
