:root {
  --emex-primary: #f15c22;
  --emex-secondary: #182b3c;
  --emex-ink: #182b3c;
  --emex-surface: #ffffff;
  --emex-border: rgba(24, 43, 60, 0.1);
  --emex-max: 1160px;
  --emex-radius: 12px;
  --emex-shadow: 0 12px 34px rgba(10, 24, 40, 0.08);
  --emex-gutter: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--emex-ink);
  background: var(--emex-surface);
  font-family: var(--wp--preset--font-family--system-ui-sans), sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.emex-car-rental-main {
  width: min(100% - 2rem, var(--emex-max));
  margin-inline: auto;
  padding-block: 2rem 3rem;
}

.emex-car-rental-content {
  width: min(100%, 760px);
  margin-inline: auto;
}

.emex-car-rental-article {
  display: grid;
  gap: 1rem;
}

.emex-car-rental-article__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.emex-car-rental-article__content {
  display: grid;
  gap: 1rem;
  line-height: 1.7;
}

.emex-car-rental-article__content > .alignwide,
.emex-car-rental-article__content > .alignfull {
  width: min(100%, var(--emex-max));
  max-width: 100%;
  margin-inline: auto;
}

.page-template-page-full-width .emex-car-rental-main,
.page-template-page-full-width-php .emex-car-rental-main {
  width: 100%;
  max-width: none;
  padding-block: 0 3rem;
}

.emex-car-rental-full-width-page {
  width: 100%;
}

.emex-car-rental-full-width-page__content {
  display: grid;
  gap: 2rem;
  width: 100%;
}

.emex-car-rental-full-width-page__content > * {
  width: 100%;
  margin-inline: auto;
}

.emex-car-rental-full-width-page__content > .alignwide,
.emex-car-rental-full-width-page__content > .alignfull {
  width: 100%;
  max-width: 100%;
}

.emex-car-rental-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.emex-car-rental-header {
  position: relative;
  z-index: 20;
  background: var(--emex-surface);
  box-shadow: 0 1px 0 var(--emex-border);
}

.emex-car-rental-header__top-wrap,
.emex-car-rental-header__main,
.emex-car-rental-footer__top {
  width: min(calc(100% - var(--emex-gutter) - var(--emex-gutter)), var(--emex-max));
  margin-inline: auto;
}

.emex-car-rental-header__top {
  background: var(--emex-primary);
}

.emex-car-rental-header__top-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
}

.emex-car-rental-header__top-col {
  display: flex;
  align-items: center;
}

.emex-car-rental-header__top-col--left {
  color: #fff;
}

.emex-car-rental-header__top-col--right {
  color: #fff;
  background: var(--emex-secondary);
}

.emex-car-rental-header__top-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  flex-wrap: wrap;
}

.emex-car-rental-header__item,
.emex-car-rental-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
}

.emex-car-rental-header__item--socials {
  display: inline-flex;
  gap: 0.75rem;
}

.emex-car-rental-social {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.emex-car-rental-social__circle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.emex-car-rental-header__item--email {
  margin-left: auto;
  text-decoration: none;
}

.emex-car-rental-header__item--location span,
.emex-car-rental-header__item--email span,
.emex-car-rental-header__phone span {
  font-size: 1rem;
  font-weight: 600;
}

.emex-car-rental-header__phone {
  padding: 0.65rem 0.85rem;
  text-decoration: none;
}

.emex-car-rental-header__main {
  display: grid;
  grid-template-columns: 20% 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-block: 0.85rem;
}

.emex-car-rental-header__logo-img {
  display: block;
  width: auto;
  height: 56px;
}

.emex-car-rental-header__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.emex-car-rental-header__logo .custom-logo {
  display: block;
  width: auto;
  max-height: 56px;
}

.emex-car-rental-header__logo-text {
  display: inline-flex;
  align-items: center;
  color: var(--emex-ink);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.emex-car-rental-header__nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.emex-car-rental-header__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.emex-car-rental-header__menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.emex-car-rental-header__menu > li {
  position: relative;
}

.emex-car-rental-header__menu > li > a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--emex-ink);
  font-weight: 700;
}

.emex-car-rental-header__menu .sub-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  display: none;
  min-width: 220px;
  padding: 0.75rem;
  background: var(--emex-secondary);
  border-radius: var(--emex-radius);
  box-shadow: var(--emex-shadow);
}

.emex-car-rental-header__menu li.menu-item-has-children[aria-expanded="true"] > .sub-menu {
  display: block;
}

.emex-car-rental-header__menu .sub-menu a {
  display: block;
  padding: 0.35rem 0.25rem;
  color: #fff;
  text-align: left;
  text-decoration: none;
}

.emex-car-rental-header__menu .sub-menu li + li {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
}

.emex-car-rental-header__submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.2rem;
  border: 0;
  background: transparent;
  color: var(--emex-ink);
  cursor: pointer;
}

@media (min-width: 1025px) {
  .emex-car-rental-header__menu > li.menu-item-has-children {
    display: inline-flex;
    align-items: center;
  }

  .emex-car-rental-header__menu > li > .emex-car-rental-header__submenu-toggle {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.45rem;
    padding: 0;
    line-height: 1;
    transform: translateY(1px);
  }

  .emex-car-rental-header__menu > li > .emex-car-rental-header__submenu-toggle .emex-car-rental-toggle-icon {
    width: 14px;
    height: 14px;
  }
}

.emex-car-rental-toggle-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.emex-car-rental-toggle-icon--minus {
  display: none;
}

.emex-car-rental-header__submenu-toggle[aria-expanded="true"] .emex-car-rental-toggle-icon--plus {
  display: none;
}

.emex-car-rental-header__submenu-toggle[aria-expanded="true"] .emex-car-rental-toggle-icon--minus {
  display: inline-block;
}

.emex-car-rental-header__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.emex-car-rental-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.emex-car-rental-btn--primary {
  color: #fff;
  background: var(--emex-primary);
}

.emex-car-rental-header__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--emex-ink);
  cursor: pointer;
}

.emex-car-rental-header__label {
  font-weight: 700;
}

.emex-car-rental-header__bar {
  display: block;
  position: relative;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
}

.emex-car-rental-header__bar::before,
.emex-car-rental-header__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  height: 2px;
  background: currentColor;
}

.emex-car-rental-header__bar::before {
  transform: translateY(-6px);
}

.emex-car-rental-header__bar::after {
  transform: translateY(6px);
}

.emex-car-rental-nav__header,
.emex-car-rental-nav__email,
.emex-car-rental-nav__socials,
.emex-car-rental-nav__address,
.emex-car-rental-header__cta--mobile {
  display: none;
}

.emex-car-rental-footer {
  margin-top: 2rem;
  color: var(--emex-ink);
  background: var(--emex-surface);
  border-top: 1px solid var(--emex-border);
}

.emex-car-rental-footer__top {
  display: grid;
  grid-template-columns: 40% 20% 20% 20%;
  gap: 0;
  padding-block: 3rem;
}

.emex-footer-col--brand {
  padding-right: 2rem;
}

.emex-footer-logo img {
  display: block;
  padding-bottom: 1.25rem;
}

.emex-footer-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
}

.emex-footer-desc {
  margin: 0.5rem 0 1rem;
  max-width: 52ch;
  opacity: 0.9;
}

.emex-footer-col--vehicles,
.emex-footer-col--links,
.emex-footer-col--hours {
  padding-top: 100px;
}

.emex-footer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: default;
}

.emex-footer-caret {
  display: none;
  width: 16px;
  height: 16px;
}

.emex-footer-list,
.emex-footer-menu {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.emex-footer-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.emex-footer-icon {
  display: inline-flex;
  width: 20px;
  min-width: 20px;
  height: 20px;
}

.emex-footer-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--emex-ink);
  opacity: 0.9;
}

.emex-footer-menu a,
.emex-footer-link {
  text-decoration: none;
}

.emex-footer-logo img {
  width: auto;
  max-width: 220px;
  max-height: 56px;
}

.emex-car-rental-footer__bottom {
  padding: 0.9rem 1rem;
  color: #fff;
  text-align: center;
  background: var(--emex-secondary);
}

.emex-car-rental-footer__copyright {
  margin: 0;
  font-size: 0.9375rem;
}

@media (min-width: 1025px) {
  .emex-footer-summary {
    pointer-events: none;
  }
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.alignwide {
  display: block;
  width: min(100%, var(--emex-max));
  margin-inline: auto;
}

.emex-car-rental-header__menu a:focus-visible,
.emex-car-rental-btn:focus-visible,
.emex-footer-menu a:focus-visible,
.emex-footer-link:focus-visible,
.emex-car-rental-header__toggle:focus-visible,
.emex-car-rental-header__submenu-toggle:focus-visible {
  outline: 2px solid var(--emex-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .emex-car-rental-header__main {
    grid-template-columns: 1fr auto;
  }

  .emex-car-rental-header__toggle {
    display: inline-flex;
  }

  .emex-car-rental-header__nav {
    position: fixed;
    inset: 0;
    display: block;
    padding: 0;
    overflow: auto;
    visibility: hidden;
    pointer-events: none;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.28s ease, visibility 0.28s ease;
    z-index: 9999;
  }

  .emex-car-rental-header__nav[data-open="true"] {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .emex-car-rental-nav__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    color: #fff;
    background: var(--emex-primary);
  }

  .emex-car-rental-nav__title {
    font-size: 1.125rem;
    font-weight: 700;
  }

  .emex-car-rental-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .emex-car-rental-nav__close-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  .emex-car-rental-header__menu {
    display: block;
    white-space: normal;
  }

  .emex-car-rental-header__menu > li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--emex-border);
  }

  .emex-car-rental-header__menu > li > a {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 1.15rem 1.25rem;
    font-size: 1.125rem;
  }

  .emex-car-rental-header__menu > li > .emex-car-rental-header__submenu-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-right: 0.9rem;
  }

  .emex-car-rental-header__menu > li > .sub-menu {
    position: static;
    display: none;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.2rem 0 0.75rem;
    border-radius: 0;
    box-shadow: none;
  }

  .emex-car-rental-header__menu li.menu-item-has-children[aria-expanded="true"] > .sub-menu {
    display: block;
  }

  .emex-car-rental-header__menu .sub-menu li + li {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
  }

  .emex-car-rental-header__menu .sub-menu a {
    padding: 0.85rem 1.25rem;
  }

  .emex-car-rental-nav__address,
  .emex-car-rental-nav__email {
    display: block;
    padding-inline: 1.25rem;
  }

  .emex-car-rental-nav__address {
    padding-top: 1rem;
  }

  .emex-car-rental-nav__email {
    padding-top: 0.75rem;
  }

  .emex-car-rental-nav__address .emex-car-rental-header__item--location,
  .emex-car-rental-nav__email .emex-car-rental-header__item--email {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: start;
    gap: 0.5rem;
  }

  .emex-car-rental-header__top-col--left .emex-car-rental-header__item--location {
    display: none;
  }

  .emex-car-rental-footer__top {
    grid-template-columns: 1fr;
    padding: 2.5rem 0;
    row-gap: 1rem;
  }

  .emex-footer-col--brand,
  .emex-footer-col--vehicles,
  .emex-footer-col--links,
  .emex-footer-col--hours {
    padding-top: 0;
    padding-right: 0;
  }

  .emex-footer-summary {
    padding: 0.75rem 0.9rem;
    color: #fff;
    background: var(--emex-primary);
    border-radius: 8px;
    cursor: pointer;
  }

  .emex-footer-caret {
    display: block;
    fill: currentColor;
    transition: transform 0.2s ease;
  }

  .emex-footer-accordion[open] > .emex-footer-summary .emex-footer-caret {
    transform: rotate(180deg);
  }

  .emex-footer-accordion nav,
  .emex-footer-accordion ul {
    padding: 0.75rem 0 0.25rem;
  }
}

@media (max-width: 768px) {
  :root {
    --emex-gutter: 1rem;
  }

  .emex-car-rental-header__top-wrap {
    grid-template-columns: 1fr auto;
  }

  .emex-car-rental-header__top-inner {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .emex-car-rental-header__top-col--left .emex-car-rental-header__item--email {
    display: none;
  }

  .emex-car-rental-header__item--socials {
    gap: 0.5rem;
  }

  .emex-car-rental-social__circle {
    width: 30px;
    height: 30px;
  }

  .emex-car-rental-header__phone {
    white-space: nowrap;
  }

  .emex-car-rental-header__phone span {
    font-size: 0.95rem;
  }

  .emex-footer-col--brand {
    padding-right: 0;
  }

  .emex-footer-desc {
    margin-bottom: 1.25rem;
  }

  .emex-footer-list,
  .emex-footer-menu {
    gap: 0.65rem;
  }
}

@media (max-width: 375px) {
  :root {
    --emex-gutter: 0.875rem;
  }

  .emex-car-rental-header__top-col--left .emex-car-rental-header__item--socials {
    display: none;
  }

  .emex-car-rental-nav__socials {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .emex-car-rental-header__cta--mobile {
    display: inline-flex;
  }

  .emex-car-rental-header__cta .emex-car-rental-btn {
    display: none;
  }
}

@media (max-width: 400px) {
  .emex-car-rental-header__logo-img {
    height: 46px;
  }

  .emex-car-rental-header__logo .custom-logo {
    max-height: 46px;
  }
}
