/* =============================================================================
 * Adande Chrome — coded header and footer
 * -----------------------------------------------------------------------------
 * A faithful rebuild of Elementor templates #3773 and #3775. Every value here
 * was read out of the CSS Elementor generates for those two templates, so the
 * coded chrome should be indistinguishable from the original at a glance.
 *
 * The Elementor global palette, for reference:
 *   --e-global-color-primary    #00AEEF   cyan
 *   --e-global-color-secondary  #54595F   warm grey
 *   --e-global-color-35f78f7    #005CA4   "adande blue 3"
 *   button green                #A7C617
 *   mega-panel wash             #C0E9F8
 *
 * ACCESSIBILITY NOTE — read before "fixing" the colours.
 * The original uses #00AEEF for nav link text on white (2.53:1) and as the
 * footer link hover on #54595F (2.79:1). Both fail WCAG AA for text. This file
 * reproduces the original exactly by default, because matching it is what was
 * asked for. Defining ADANDE_CHROME_AA in wp-config.php swaps only those two
 * values for #005CA4 / #FFFFFF, which passes and stays inside the brand
 * palette. Nothing else changes.
 * ========================================================================== */

.adc {
  --adc-cyan:        #00AEEF;
  --adc-grey:        #54595F;
  --adc-blue:        #005CA4;
  --adc-green:       #A7C617;
  --adc-wash:        #C0E9F8;
  --adc-white:       #FFFFFF;

  /* Swapped by the AA variant below. */
  --adc-nav-ink:       var(--adc-cyan);
  --adc-nav-ink-hover: #000000;
  --adc-foot-hover:    var(--adc-cyan);

  --adc-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --adc-shell: 1140px;   /* Elementor content width — bar inner measures 1140 */
  --adc-gutter: clamp(1rem, .5rem + 2vw, 2.5rem);
  --adc-nav-breakpoint: 1025px;
}

.adc.adc--aa {
  --adc-nav-ink:       var(--adc-blue);
  --adc-nav-ink-hover: #003F72;
  --adc-foot-hover:    #FFFFFF;
}

.adc-header *,
.adc-footer * { box-sizing: border-box; }

.adc-header,
.adc-footer { font-family: var(--adc-font); }

/* --- skip link ----------------------------------------------------------- */

.adc-skip {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10001;
  padding: .75rem 1.25rem;
  font-family: var(--adc-font);
  font-weight: 600;
  color: #FFF;
  background: var(--adc-blue);
  border-radius: 0 0 5px 5px;
  text-decoration: none;
}

.adc-skip:focus { top: 0; outline: 3px solid #FFF; outline-offset: -6px; }

/* --- focus --------------------------------------------------------------- */

.adc-header :focus-visible,
.adc-footer :focus-visible {
  outline: 3px solid var(--adc-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* On the cyan bar and the grey footer, a blue ring disappears. */
.adc-utility :focus-visible,
.adc-locale__panel :focus-visible,
.adc-footer :focus-visible { outline-color: #FFF; }

.adc-header :focus:not(:focus-visible),
.adc-footer :focus:not(:focus-visible) { outline: none; }

.adc-header .screen-reader-text,
.adc-footer .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.adc-caret {
  display: inline-block;
  width: .38rem; height: .38rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-.08em, -.08em);
  transition: transform .3s;
}

[aria-expanded="true"] > .adc-caret { transform: rotate(-135deg) translate(-.14em, -.14em); }

/* =============================================================================
 * Utility bar — #3773 container b8da99c
 * ========================================================================== */

.adc-utility {
  background: var(--adc-cyan);
  padding: 5px;
}

.adc-utility__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 1rem;
  width: 100%;
  max-width: var(--adc-shell);
  margin-inline: auto;
  padding-inline: var(--adc-gutter);
}

/* Left half, right half — the original splits 50/50. */
.adc-utility__contact { flex: 1 1 auto; }
.adc-utility__actions { flex: 0 1 auto; margin-inline-start: auto; }

.adc-utility__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adc-utility__contact a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-block: 4px;
  font-size: 16px;
  font-weight: 400;
  color: var(--adc-white);
  text-decoration: none;
}

.adc-utility__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

.adc-icon { flex: none; width: 14px; height: 14px; }

.adc-utility__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 12px;
}

/* "Retail Cabinets" — the green pill, #A7C617 with a soft drop shadow. */
.adc-utility__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--adc-white);
  background: var(--adc-green);
  border-radius: 5px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
  text-decoration: none;
}

.adc-utility__btn:hover { background: #93AF14; color: #FFF; }

.adc-utility__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--adc-white);
  text-decoration: none;
}

.adc-utility__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- locale switcher ----------------------------------------------------- */

.adc-locale { position: relative; }

.adc-locale__toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 6px 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--adc-white);
  background: none;
  border: 0;
  cursor: pointer;
}

/* The dropdown panel is grey (#54595F) in the original, not white. */
.adc-locale__panel {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 200;
  width: max-content;
  max-width: min(92vw, 640px);
  padding: 18px 20px;
  background: var(--adc-grey);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
}

.adc-locale__panel[hidden] { display: none; }

.adc-locale__list {
  display: flex;
  justify-content: space-evenly;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adc-locale__item { flex: 1 1 0; min-width: 84px; }

.adc-locale__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  color: var(--adc-white);
  text-decoration: none;
  text-align: center;
}

.adc-locale__flag {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.adc-locale__label { font-size: 12px; font-weight: 400; line-height: 1.35; }

.adc-locale__link:hover .adc-locale__label { text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================================
 * Main bar — #3773 container 56a81e8
 * ========================================================================== */

/* 2px #A7C617 bottom rule — the green line under the header. */
.adc-bar {
  background: #FFF;
  border-bottom: 2px solid var(--adc-green);
}

.adc-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--adc-shell);
  margin-inline: auto;
  /* Height comes from the nav (20px padding + 18px titles), exactly as the
     original does — not from a min-height that would fight the logo. */
  padding: 0 var(--adc-gutter);
}

.adc-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }

/* The Adande mark is square. The original sets `max-width` (150px desktop,
   75px mobile) and lets the natural size win, so a fixed width would stretch
   the bar to 150px tall. Capped in height too, so it can never out-grow the
   bar the nav defines. */
.adc-logo { padding: 5px; flex: 0 0 auto; }
.adc-logo img { display: block; width: auto; height: auto; max-width: 150px; max-height: 65px; }

@media (max-width: 1024px) {
  /* The original's mobile cap is max-width:75px; the mark is square, so it
     renders 75x75. Capping the height below that shrank it needlessly. */
  .adc-logo img { max-width: 75px; max-height: 75px; }
}
.adc-logo__text { font-size: 1.25rem; font-weight: 700; color: var(--adc-grey); }

/* --- burger -------------------------------------------------------------- */

.adc-burger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-inline-start: auto;
  min-height: 44px;
  padding: .5rem .75rem;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--adc-blue);
  background: none;
  border: 1px solid #D4DBE0;
  border-radius: 5px;
  cursor: pointer;
}

.adc-burger__box { position: relative; display: block; width: 18px; height: 12px; }

.adc-burger__bar,
.adc-burger__bar::before,
.adc-burger__bar::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.adc-burger__bar { top: 5px; }
.adc-burger__bar::before { content: ''; top: -5px; }
.adc-burger__bar::after  { content: ''; top: 5px; }

.adc-burger[aria-expanded="true"] .adc-burger__bar { background: transparent; }
.adc-burger[aria-expanded="true"] .adc-burger__bar::before { transform: translateY(5px) rotate(45deg); }
.adc-burger[aria-expanded="true"] .adc-burger__bar::after  { transform: translateY(-5px) rotate(-45deg); }

/* =============================================================================
 * Navigation — mobile drawer by default
 * ========================================================================== */

.adc-nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1000;
  width: min(22rem, 90vw);
  padding: 1rem 0 3rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #FFF;
  box-shadow: -8px 0 32px -12px rgba(0, 0, 0, .4);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .24s ease, visibility .24s;
}

.adc-nav.is-open { transform: translateX(0); visibility: visible; }

.adc-nav__list { margin: 0; padding: 0; list-style: none; }

.adc-nav__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid #E4EAEE;
}

.adc-nav__link {
  grid-column: 1;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 500;
  color: var(--adc-nav-ink);
  text-decoration: none;
}

.adc-nav__link:hover { color: var(--adc-nav-ink-hover); }

.adc-nav__toggle {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-inline-end: 8px;
  font-size: 20px;
  color: var(--adc-blue);
  background: none;
  border: 0;
  cursor: pointer;
}

.adc-panel { grid-column: 1 / -1; background: var(--adc-wash); padding: 12px 0; }
.adc-panel[hidden] { display: none; }

.adc-panel__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adc-panel__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 400;
  color: var(--adc-grey);
  text-decoration: none;
}

.adc-panel__link:hover { color: var(--adc-blue); }
.adc-panel__image { flex: none; width: 44px; height: 44px; object-fit: contain; }
.adc-panel__arrow { flex: none; display: inline-flex; color: var(--adc-cyan); }
.adc-panel__arrow svg { width: 28px; height: 28px; }
.adc-panel__item--cta .adc-panel__label { font-weight: 600; color: var(--adc-blue); }

.adc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(16, 24, 32, .5);
  opacity: 0;
  transition: opacity .24s ease;
}

.adc-backdrop.is-visible { opacity: 1; }

/* No JS: show the nav inline rather than a drawer that can never open. */
html:not(.adc-js) .adc-nav {
  position: static; width: 100%; transform: none;
  visibility: visible; box-shadow: none;
}

html:not(.adc-js) .adc-burger { display: none; }
html:not(.adc-js) .adc-panel[hidden] { display: block; }

/* =============================================================================
 * Navigation — desktop
 * ========================================================================== */

@media (min-width: 1025px) {

  /* At desktop the inner box is exactly the 1140 content width with no gutter
     and no gap, so 20% resolves to 228px and the nav takes the remaining 912 —
     the original's exact split. Gutters return below this breakpoint. */
  .adc-utility__inner,
  .adc-bar__inner { padding-inline: 0; }
  .adc-bar__inner { gap: 0; }

  .adc-burger { display: none; }

  .adc-logo { flex: 0 0 20%; }   /* widget width 20% -> 228px of 1140 */

  .adc-nav {
    position: static;
    flex: 1 1 auto;                /* the rest -> 912px, matching the original */
    width: auto;
    max-width: none;
    margin-inline-start: auto;
    /* widget container padding:20px */
    padding: 20px 0;
    overflow: visible;
    background: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
  }

  .adc-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;   /* --n-menu-heading-justify-content:flex-end */
    gap: 0;
  }

  .adc-nav__item {
    position: static;            /* mega panel spans the full width */
    display: flex;
    align-items: center;
    border-bottom: 0;
  }

  .adc-nav__link {
    padding: 8px 18px;
    line-height: 1.5;     /* 27px + 16px padding = the original's 43px row */
    font-size: 18px;             /* --n-menu-title-font-size:18px */
    font-weight: 500;
    white-space: nowrap;
  }

  .adc-nav__item.has-children .adc-nav__link { padding-inline-end: 4px; }

  .adc-nav__toggle { width: 28px; height: 43px; margin: 0; }

  /* --n-menu-title-distance-from-content:20px */
  .adc-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 300;
    margin-top: 20px;
    padding: 20px;
    background: var(--adc-wash);
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .3);
  }

  .adc-panel__list {
    flex-direction: row;
    justify-content: space-around;   /* container ad94e40 */
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: var(--adc-shell);
    margin-inline: auto;
  }

  .adc-panel__item { flex: 1 1 0; }

  .adc-panel__link {
    flex-direction: column;
    gap: 10px;
    padding: 10px 8px;
    text-align: center;
    justify-content: flex-start;
  }

  .adc-panel__image { width: 110px; height: 110px; }
  .adc-panel__arrow svg { width: 75px; height: 75px; }   /* icon-box font-size:75px */
  .adc-panel__label { font-size: 16px; }
}

/* =============================================================================
 * Footer — #3775 section 73ac9db
 * ========================================================================== */

.adc-footer {
  background: var(--adc-grey);
  border-left: 5px solid var(--adc-cyan);
  padding: 45px;
  color: var(--adc-white);
}

@media (max-width: 640px) {
  .adc-footer { padding: 32px 20px; }
}

/* --- reviews carousel ---------------------------------------------------- */

.adc-reviews {
  max-width: var(--adc-shell);
  margin: 0 auto 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.adc-reviews__heading {
  margin: 0 0 24px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
  /* Measured #00AEEF, not white. */
  color: var(--adc-cyan);
  text-align: center;
  text-wrap: balance;
}

/* 3 up desktop / 2 tablet / 1 mobile, 25px gap — the swiper settings. */
.adc-reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 50px) / 3);
  gap: 25px;
  /* margin:10px + padding:20px on the widget in the original, which is what
     makes the slides 343px rather than 363px. */
  margin: 10px;
  padding: 20px 20px 30px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.4) transparent;
}

.adc-reviews__track:focus-visible { outline: 3px solid #FFF; outline-offset: 4px; }

@media (max-width: 1024px) { .adc-reviews__track { grid-auto-columns: calc((100% - 25px) / 2); } }
@media (max-width: 700px)  { .adc-reviews__track { grid-auto-columns: 88%; } }

.adc-review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, .06);
  border-radius: 4px;
}

.adc-review__name {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--adc-white);
  text-wrap: pretty;
}

.adc-review__rating { margin: 0; display: flex; gap: 2px; color: var(--adc-cyan); }
.adc-review__rating svg { width: 16px; height: 16px; }

.adc-review__body { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.adc-review__body p { margin: 0 0 .6em; }
.adc-review__body p:last-child { margin-bottom: 0; }

/* --- columns ------------------------------------------------------------- */

.adc-footer__grid {
  display: grid;
  gap: 28px 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  max-width: var(--adc-shell);
  margin-inline: auto;
}

/* The 5px cyan left rule on every column heading — a distinctive part of the
   original that a link inventory alone would never reveal. */
.adc-footer__heading {
  margin: 0 0 14px;
  padding-left: 5px;
  border-left: 5px solid var(--adc-cyan);
  font-size: 20px;
  /* !important because the active theme sets a global h2 weight that would
     otherwise win on specificity and flatten these to 400. */
  font-weight: 600 !important;
  line-height: 1.3;
  color: var(--adc-white);
}

.adc-footer__links,
.adc-footer__news,
.adc-footer__social { margin: 0; padding: 0; list-style: none; }

.adc-footer__links li + li { margin-top: 5px; }

.adc-footer__links a {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: capitalize;
  color: var(--adc-white);
  text-decoration: none;
}

.adc-footer__links a:hover {
  color: var(--adc-foot-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.adc-footer__copyright {
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  text-transform: capitalize;
  color: var(--adc-white);
}

/* --- latest news --------------------------------------------------------- */

.adc-footer__newsitem + .adc-footer__newsitem { margin-top: 14px; }

.adc-footer__newstitle { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.4; }
.adc-footer__newstitle a { color: var(--adc-white); text-decoration: none; }
.adc-footer__newstitle a:hover { text-decoration: underline; text-underline-offset: 3px; }

.adc-footer__newsmeta { margin: 3px 0 0; font-size: 11px; color: rgba(255, 255, 255, .72); }

.adc-footer__readmore { margin: 3px 0 0; font-size: 12px; }
.adc-footer__readmore a { color: var(--adc-cyan); text-decoration: none; font-weight: 500; }
.adc-footer__readmore a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- connect ------------------------------------------------------------- */

.adc-footer__social { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

/* background #00AEEF00 in the original — fully transparent. */
.adc-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--adc-white);
  background: transparent;
  border-radius: 50%;
}

.adc-social:hover { color: var(--adc-cyan); background: rgba(255, 255, 255, .08); }

.adc-footer__contact a { text-transform: none; }

/* =============================================================================
 * Motion / forced colours / print
 * ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .adc-nav, .adc-backdrop, .adc-caret,
  .adc-burger__bar, .adc-burger__bar::before, .adc-burger__bar::after {
    transition-duration: .01ms !important;
  }
  .adc-reviews__track { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .adc-utility, .adc-footer, .adc-panel, .adc-locale__panel { border: 1px solid CanvasText; }
  .adc-utility__btn, .adc-social, .adc-review { border: 1px solid CanvasText; }
  .adc-header :focus-visible, .adc-footer :focus-visible { outline: 3px solid CanvasText; }
}

@media print {
  .adc-header, .adc-footer, .adc-skip, .adc-backdrop { display: none !important; }
}
