/*
 * Avanta customer theme — header / footer chrome.
 * Mirrors avantaauctions.com (Montserrat body, Bodoni Moda headings, navy + gold).
 * Uses --primary-color / --primary-hover-color from the layout <style> block.
 */
@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap");

:root {
  --avanta-navy: #0B1E38;
  --avanta-gold: #C5A059;
  --avanta-gold-light: #E5C568;
  --avanta-gold-hover: #BDA67A;
}

/* ============================================
   GLOBAL BODY
   ============================================ */
body.avanta-layout {
  font-family: "Montserrat", "Open Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #212121;
  background: #fff;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
}

body.avanta-layout.has-sticky-header {
  padding-top: var(--avanta-header-h, 0px) !important;
}

body.avanta-layout h1,
body.avanta-layout h2,
body.avanta-layout h3,
body.avanta-layout h4 {
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
}

/* ============================================
   HEADER
   ============================================ */
.avanta-header {
  background: #fff;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  position: relative;
  z-index: 100;
  width: 100%;
}

.avanta-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.avanta-home-hero__title {
  text-decoration-color: var(--avanta-gold);
}
.avanta-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 12px 24px;
  min-height: 80px;
}

.avanta-header__logo {
  flex: 0 0 auto;
}

.avanta-logo-img {
  height: 65px;
  width: auto;
}

/* Desktop nav */
.avanta-header__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.avanta-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.avanta-nav-menu > li {
  position: relative;
}

.avanta-nav-menu > li > a,
.avanta-nav-menu > li > a.menu-dropdown {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--avanta-navy);
  padding: 8px 16px;
  display: inline-block;
  text-decoration: none;
  transition: color 0.25s ease;
}

.avanta-nav-menu > li > a:hover,
.avanta-nav-menu > li > a:focus {
  color: var(--avanta-gold-hover);
  text-decoration: none;
}

/* Dropdown caret for items with children */
.avanta-nav-menu > li.dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 5px solid var(--avanta-navy);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: border-color 0.25s ease;
}

.avanta-nav-menu > li.dropdown > a:hover::after {
  border-top-color: var(--avanta-gold-hover);
}

.avanta-nav-menu .dropdown-menu-default {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
}

.avanta-nav-menu .dropdown-menu-default li a {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--avanta-navy);
  padding: 8px 18px;
  display: block;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.avanta-nav-menu .dropdown-menu-default li a:hover {
  color: var(--avanta-gold-hover);
  background-color: #f8f8f8;
}

/* Right-side actions */
.avanta-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.avanta-action-icon {
  color: var(--avanta-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.25s ease;
  font-size: 20px;
}

.avanta-action-icon:hover {
  color: var(--avanta-gold-hover);
  text-decoration: none;
}

.avanta-action-icon svg {
  display: block;
}

/* Auth links (Login | Register) */
.avanta-auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avanta-auth-link {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--avanta-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

.avanta-auth-link:hover {
  color: var(--avanta-gold-hover);
  text-decoration: none;
}

.avanta-auth-separator {
  color: #ccc;
  font-weight: 300;
  user-select: none;
}

.avanta-user-icon {
  display: block;
}

.avanta-user-name {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--avanta-navy);
  margin-left: 4px;
}

.avanta-user-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--avanta-navy);
}

.avanta-user-dropdown .dropdown-toggle:hover {
  color: var(--avanta-gold-hover);
}

/* Search modal (matches avantaauctions.com) */
.avanta-search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.avanta-search-modal.is-open {
  display: flex;
}

.avanta-search-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.avanta-search-modal__container {
  position: relative;
  background: #fff;
  border-radius: 6px;
  width: 90%;
  max-width: 540px;
  padding: 32px 36px 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  z-index: 1;
  animation: avantaSearchFadeIn 0.2s ease;
}

@keyframes avantaSearchFadeIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.avanta-search-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.avanta-search-modal__close:hover {
  color: var(--avanta-navy);
}

.avanta-search-modal__header {
  margin-bottom: 20px;
}

.avanta-search-modal__title {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--avanta-navy);
  margin: 0;
}

.avanta-search-modal__input-wrap {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 0;
  overflow: hidden;
}

.avanta-search-modal__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: #212121;
  background: #fff;
}

.avanta-search-modal__input::placeholder {
  color: #aaa;
}

.avanta-search-modal__submit {
  width: 48px;
  flex: 0 0 48px;
  border: none;
  background: var(--avanta-navy);
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s;
}

.avanta-search-modal__submit:hover {
  background: var(--avanta-gold);
}

.avanta-search-modal__submit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 45 45' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.047 39.711C31.355 39.711 39.711 31.355 39.711 21.047C39.711 10.739 31.355 2.382 21.047 2.382C10.739 2.382 2.383 10.739 2.383 21.047C2.383 31.355 10.739 39.711 21.047 39.711Z' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M42.094 42.094L34.258 34.257' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Mobile search icon in bar */
.avanta-mobile-search-icon {
  color: var(--avanta-navy);
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.avanta-mobile-search-icon:hover {
  color: var(--avanta-gold-hover);
  text-decoration: none;
}

/* ============================================
   MOBILE BAR
   ============================================ */
.avanta-mobile-bar {
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
  display: none;
  padding: 8px 16px;
  align-items: center;
  justify-content: space-between;
}

.avanta-mobile-bar .menu-burger {
  filter: brightness(0);
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.avanta-mobile-logo img {
  height: 45px;
  width: auto;
}

/* ============================================
   MOBILE DROPDOWN PANEL
   ============================================ */
.avanta-mobile-dropdown {
  display: none;
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
  padding: 16px 20px 20px;
  overflow-y: auto;
  max-height: calc(100vh - 65px);
}

.avanta-mobile-dropdown.is-open {
  display: block;
}

.avanta-mobile-dropdown__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.avanta-mobile-dropdown__actions .avanta-action-icon {
  color: var(--avanta-navy);
  display: flex;
  align-items: center;
  font-size: 20px;
  text-decoration: none;
}

.avanta-mobile-dropdown__actions .avanta-auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avanta-mobile-dropdown__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.avanta-mobile-dropdown__nav > li {
  border-bottom: 1px solid #f0f0f0;
}

.avanta-mobile-dropdown__nav > li:last-child {
  border-bottom: none;
}

.avanta-mobile-dropdown__nav > li > a {
  display: block;
  padding: 12px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--avanta-navy);
  text-decoration: none;
  transition: color 0.2s;
}

.avanta-mobile-dropdown__nav > li > a:hover {
  color: var(--avanta-gold-hover);
}

.avanta-mobile-dropdown__nav > li > a .avanta-mobile-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 5px solid var(--avanta-navy);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform 0.25s, border-color 0.25s;
}

.avanta-mobile-dropdown__nav > li.is-sub-open > a .avanta-mobile-caret {
  transform: rotate(180deg);
}

.avanta-mobile-dropdown__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 16px;
  display: none;
}

.avanta-mobile-dropdown__nav > li.is-sub-open > .avanta-mobile-dropdown__sub {
  display: block;
}

.avanta-mobile-dropdown__sub li a {
  display: block;
  padding: 8px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--avanta-navy);
  text-decoration: none;
  transition: color 0.2s;
}

.avanta-mobile-dropdown__sub li a:hover {
  color: var(--avanta-gold-hover);
}

.avanta-mobile-dropdown__separator {
  height: 1px;
  background: #eee;
  margin: 4px 0;
}

.avanta-mobile-dropdown__logout {
  display: block;
  padding: 12px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #c00;
  text-decoration: none;
}

.avanta-mobile-dropdown__nav > li > a.dropdown-ul::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 5px solid var(--avanta-navy);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform 0.25s;
}

.avanta-mobile-dropdown__nav > li.is-sub-open > a.dropdown-ul::after {
  transform: rotate(180deg);
}

.avanta-mobile-dropdown__nav > li > ul {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 16px;
  display: none;
}

.avanta-mobile-dropdown__nav > li.is-sub-open > ul {
  display: block;
}

.avanta-mobile-dropdown__nav > li > ul li a {
  display: block;
  padding: 8px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--avanta-navy);
  text-decoration: none;
  transition: color 0.2s;
}

.avanta-mobile-dropdown__nav > li > ul li a:hover {
  color: var(--avanta-gold-hover);
}

/* ============================================
   FOOTER
   ============================================ */
.avanta-footer {
  background: var(--avanta-navy);
  color: #d4d4d4;
  padding: 50px 0 0;
}

.avanta-footer__flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px 40px;
}

.avanta-footer__logo-img {
  max-width: 170px;
  height: auto;
}

.avanta-footer__heading {
  color: #fff !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.avanta-footer .footer-columns-flex {
  /* display: contents !important; */
}

.avanta-footer .footer-column {
  flex: none !important;
  min-width: 0 !important;
}

.avanta-footer .footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.avanta-footer .footer-column ul li {
  margin-bottom: 6px;
}

.avanta-footer .footer-column a {
  color: #c8c8c8;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.25s ease;
}

.avanta-footer .footer-column a:hover {
  color: var(--avanta-gold-hover);
}

/* Contact column */
.avanta-footer__contact-col {
  text-align: left;
}

.avanta-footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.avanta-footer__contact-list li {
  margin-bottom: 6px;
}

.avanta-footer__contact-list a {
  color: #c8c8c8;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.avanta-footer__contact-list a:hover {
  color: var(--avanta-gold-hover);
}

/* Social icons */
.avanta-footer__social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avanta-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #d4d4d4;
  transition: color 0.25s ease, transform 0.2s ease;
}

.avanta-footer__social a:hover {
  color: var(--avanta-gold-hover);
  transform: scale(1.1);
}

.avanta-footer__social svg {
  width: 20px;
  height: 20px;
}

/* Sub-footer */
.avanta-sub-footer {
  background: rgba(0, 0, 0, 0.2);
  margin-top: 40px;
  padding: 14px 0;
  text-align: center;
}

.avanta-sub-footer p {
  margin: 0;
  color: #9a9a9a;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
}

.avanta-sub-footer a {
  color: #b0b0b0;
  text-decoration: none;
}

.avanta-sub-footer a:hover {
  color: var(--avanta-gold-hover);
}

/* Hide the default social-tab when in avanta layout */
body.avanta-layout .social-tab {
  display: none;
}

/* ============================================
   JS: search toggle + form submit
   ============================================ */
/* handled inline in the layout script block */

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .avanta-header__inner {
    padding: 10px 16px;
    min-height: 60px;
  }

  .avanta-logo-img {
    height: 48px;
  }

  .avanta-nav-menu > li > a,
  .avanta-nav-menu > li > a.menu-dropdown {
    font-size: 13px;
    padding: 6px 10px;
  }

  .avanta-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .avanta-footer__logo-col {
    grid-column: 1 / -1;
    text-align: center;
  }

  .avanta-footer__contact-col {
    text-align: center;
  }

  .avanta-footer__social {
    justify-content: center;
  }

  .avanta-footer__flex {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .avanta-header__inner {
    display: none !important;
  }

  .avanta-mobile-bar {
    display: flex !important;
  }

  .avanta-footer__flex {
    flex-direction: column;
  }

  .avanta-footer .footer-column {
    text-align: center !important;
  }

  .avanta-footer__social {
    justify-content: center;
  }
}
