/* ==========================================================
   Atlantic Living: Avvio header + footer
   Fonts are loaded by the <link>s in the header template
   ========================================================== */

:root,
:host {
  /* Avvio brand tokens: Teal #006B78, with darker shades for hover / pressed */
  --branding-default: #006b78;
  --branding-hovered: #005964;
  --branding-pressed: #004850;
  --branding-base: #006b7814;
  --brand-color-rgb: 0, 107, 120; /* keeps --brand-bg50/60/70 in the teal */

  /* Secondary Sand for Avvio's depth surfaces */
  --base-depth: #f6f3ea;

  /* Atlantic Living brand palette */
  --al-teal: #006b78;
  --al-midnight: #102b35;
  --al-sand: #f6f3ea;
  --al-white: #ffffff;
  --al-chartreuse: #e5fb52; /* accent only */

  --al-heading-font: 'Crimson Pro', Georgia, serif;
  --al-body-font: 'proxima-nova', 'Proxima Nova', Arial, sans-serif;

  --mda-box-background: #102b35;
  --mda-box-text: var(--al-midnight);
  --mda-box-text-hover: var(--al-white);

  --font-stack-sans-serif: var(--al-body-font);
}

@media screen {
  /* ---------- Typography ---------- */
  body {
    font-family: var(--al-body-font);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--al-heading-font) !important;
  }

  .al-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .al-header a:focus-visible,
  .al-footer a:focus-visible {
    outline: 2px solid var(--al-chartreuse);
    outline-offset: 4px;
  }

  /* ---------- Header: logo centred ---------- */
  .al-header {
    background-color: var(--al-white);
  }

  .al-header__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
  }

  .al-header__logo {
    display: inline-flex;
  }

  .al-header__logo img {
    display: block;
    width: auto;
    height: 48px;
  }

  @media (min-width: 768px) {
    .al-header__inner {
      padding-block: 18px;
    }

    .al-header__logo img {
      height: 64px;
    }
  }

  /* ---------- Footer ---------- */
  .al-footer {
    position: relative;
    overflow: hidden;
    background-color: var(--al-teal);
    color: var(--al-white);
    font-family: var(--al-body-font);
    text-align: center;
  }

  /* Wave corners */
  .al-footer__wave {
    position: absolute;
    top: 0;
    width: 32%; /* each side spans about a third of the footer */
    max-width: 420px;
    height: 100%;
    pointer-events: none;
  }

  .al-footer__wave--left {
    left: 0;
  }

  @media (max-width: 767px) {
    .al-footer__wave {
      width: 22%; /* narrower on phones so the swooshes don't cover the lines */
    }
  }

  .al-footer__wave--right {
    right: 0;
    transform: scaleX(-1);
  }

  .al-footer__inner {
    position: relative; /* sits above the waves */
    max-width: 900px;
    margin-inline: auto;
    padding: 28px 56px;
  }

  /* Logo with a line either side */
  .al-footer__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .al-footer__line {
    flex: 1 1 0;
    max-width: 200px;
    height: 1px;
    background-color: var(--al-sand);
  }

  .al-footer__logo {
    display: inline-flex;
    flex-shrink: 0;
  }

  .al-footer__logo img {
    display: block;
    width: auto;
    height: 120px;
  }

  .al-footer__tagline {
    margin: 12px 0 0;
    color: var(--al-sand);
    font-family: var(--al-body-font);
    font-size: 12px;
    letter-spacing: 0.15em;
    line-height: 1.4;
  }

  @media (min-width: 768px) {
    .al-footer__inner {
      padding: 36px 140px;
    }

    .al-footer__brand {
      gap: 24px;
    }

    .al-footer__tagline {
      font-size: 13px;
    }

    .al-footer__logo img {
      height: 140px;
    }
  }
}

@media screen and (max-width: 480px) {
  #avvio .ACClayer {
    .kkACCButtonsRight {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      gap: var(--spacing-1x);
    }
    .kkACCButton {
      width: 100%;
      margin: 0;
    }
  }
  #navigation-box-small-details {
    padding-top: var(--spacing-2x);
    margin-top: 0;
    padding-left: 0;
    top: 0;
  }

  #navigation-box-small-details > div {
    flex-direction: column;
    border-bottom: 1px solid #d3d3d3;
  }
}

@media screen and (max-width: 374px) {
  .layout-search .box.page-control-panel,
  .layout-results .box.page-control-panel,
  :not(.avvio-modal__main)
    > .layout-results
    .box.page-control-panel.is-pinned
    > div {
    padding-left: 0;
    padding-right: 0;
  }

  .button--plain {
    text-wrap: auto;
  }
}

.button--plain.button--primary:hover {
  color: inherit;
  text-decoration: underline;
  background: none;
}
.privacy-policy-container {
  a:hover {
    text-decoration: underline;
  }
}
/* Hide the decorative swooshes on small phones */
@media (max-width: 480px) {
  .al-footer__wave {
    display: none;
  }
}

@media screen and (max-width: 500px) {
  .info-bar-container .item {
    min-width: auto;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .grid-cols-4 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}