/* Agadir Explore Tours — shared public footer */
.ae-footer {
  --ae-footer-bg: #031b2e;
  --ae-footer-bg-deep: #021421;
  --ae-footer-text: #f7fbff;
  --ae-footer-muted: #a9bfd0;
  --ae-footer-line: rgba(190, 216, 235, 0.16);
  --ae-footer-accent: #22b7c9;
  --ae-footer-accent-strong: #5dd7e4;
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  overflow: hidden;
  color: var(--ae-footer-text);
  background: var(--ae-footer-bg);
}

.ae-footer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #f4a340 0 34%, #22b7c9 34% 67%, #0b4a80 67%);
}

.ae-footer,
.ae-footer * {
  box-sizing: border-box;
}

.ae-footer a {
  color: inherit;
  text-decoration: none;
}

.ae-footer a:focus-visible,
.ae-footer button:focus-visible {
  outline: 3px solid var(--ae-footer-accent-strong);
  outline-offset: 4px;
}

.ae-footer__container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.ae-footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: clamp(42px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--ae-footer-line);
}

.ae-footer__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--ae-footer-accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ae-footer__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.ae-footer__cta h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.ae-footer__cta-copy {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--ae-footer-muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

.ae-footer__cta-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid var(--ae-footer-accent);
  border-radius: 8px;
  color: #021b2c !important;
  background: var(--ae-footer-accent-strong);
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ae-footer__cta-button:hover {
  border-color: #fff;
  background: #fff;
  transform: translateY(-2px);
}

.ae-footer__main {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) repeat(3, minmax(128px, 0.78fr)) minmax(220px, 1.16fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(48px, 7vw, 80px) 0;
}

.ae-footer__brand-logo {
  display: block;
  width: min(210px, 100%);
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 20px;
}

.ae-footer__brand-copy {
  max-width: 31ch;
  margin: 0;
  color: var(--ae-footer-muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.ae-footer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.ae-footer__socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ae-footer-line);
  border-radius: 50%;
  color: #dceaf4;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.ae-footer__socials a:hover {
  color: #031b2e;
  border-color: var(--ae-footer-accent-strong);
  background: var(--ae-footer-accent-strong);
}

.ae-footer__heading,
.ae-footer__accordion-trigger {
  margin: 0 0 20px;
  color: #fff;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ae-footer__accordion-trigger {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.ae-footer__accordion-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.ae-footer__accordion-icon::before,
.ae-footer__accordion-icon::after {
  content: "";
  position: absolute;
  inset: 8px 1px auto;
  height: 2px;
  background: var(--ae-footer-accent-strong);
  transition: transform 180ms ease;
}

.ae-footer__accordion-icon::after {
  transform: rotate(90deg);
}

.ae-footer__accordion-trigger[aria-expanded="true"] .ae-footer__accordion-icon::after {
  transform: rotate(0deg);
}

.ae-footer__links,
.ae-footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ae-footer__links {
  display: grid;
  gap: 13px;
}

.ae-footer__links a {
  display: inline-block;
  color: var(--ae-footer-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  transition: color 160ms ease, transform 160ms ease;
}

.ae-footer__links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.ae-footer__contact-list {
  display: grid;
  gap: 17px;
}

.ae-footer__contact-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: var(--ae-footer-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.ae-footer__contact-list .site-icon {
  margin-top: 4px;
  color: var(--ae-footer-accent-strong) !important;
}

.ae-footer__contact-list a {
  overflow-wrap: anywhere;
}

.ae-footer__contact-list a:hover {
  color: #fff;
}

.ae-footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 15px;
  border: 1px solid rgba(93, 215, 228, 0.34);
  border-radius: 7px;
  color: #eafaff !important;
  font-size: 0.85rem;
  font-weight: 750;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.ae-footer__whatsapp:hover {
  color: #031b2e !important;
  border-color: var(--ae-footer-accent-strong);
  background: var(--ae-footer-accent-strong);
}

.ae-footer__bottom {
  background: var(--ae-footer-bg-deep);
}

.ae-footer__bottom-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #809aaf;
  font-size: 0.8rem;
}

.ae-footer__bottom p {
  margin: 0;
}

.ae-footer__bottom-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ae-footer__bottom-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ae-footer-accent);
  box-shadow: 0 0 0 4px rgba(34, 183, 201, 0.12);
}

@media (max-width: 1050px) {
  .ae-footer__main {
    grid-template-columns: 1.3fr repeat(3, 0.8fr);
  }

  .ae-footer__contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 24px;
    align-items: start;
    padding-top: 30px;
    border-top: 1px solid var(--ae-footer-line);
  }

  .ae-footer__contact .ae-footer__heading {
    margin: 4px 0 0;
  }

  .ae-footer__contact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ae-footer__whatsapp {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .ae-footer {
    margin-top: 56px;
  }

  .ae-footer::before {
    width: 3px;
  }

  .ae-footer__container {
    width: min(100% - 34px, 620px);
  }

  .ae-footer__cta {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 44px 0;
  }

  .ae-footer__cta h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .ae-footer__cta-button {
    width: 100%;
  }

  .ae-footer__main {
    display: block;
    padding: 46px 0 40px;
  }

  .ae-footer__brand {
    padding-bottom: 34px;
  }

  .ae-footer__brand-logo {
    width: 180px;
    height: auto;
    margin-top: 0;
  }

  .ae-footer__brand-copy {
    max-width: 36ch;
  }

  .ae-footer__accordion {
    border-top: 1px solid var(--ae-footer-line);
  }

  .ae-footer__accordion:last-of-type {
    border-bottom: 1px solid var(--ae-footer-line);
  }

  .ae-footer__accordion .ae-footer__heading {
    display: none;
  }

  .ae-footer__accordion-trigger {
    display: flex;
    margin: 0;
  }

  .ae-footer__accordion-panel {
    padding: 0 0 22px;
  }

  .ae-footer__accordion-panel[hidden] {
    display: none;
  }

  .ae-footer__links {
    gap: 5px;
  }

  .ae-footer__links a {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
  }

  .ae-footer__contact {
    display: block;
    padding-top: 38px;
    border-top: 0;
  }

  .ae-footer__contact .ae-footer__heading {
    margin-bottom: 22px;
  }

  .ae-footer__contact-list {
    grid-template-columns: 1fr;
  }

  .ae-footer__whatsapp {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
  }

  .ae-footer__bottom-inner {
    min-height: 106px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    padding: 22px 0;
  }

  .product-page .ae-footer__bottom-inner {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 340px) {
  .ae-footer__container {
    width: calc(100% - 28px);
  }

  .ae-footer__brand-logo {
    width: 160px;
    height: auto;
  }

  .ae-footer__cta h2 {
    font-size: 1.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ae-footer *,
  .ae-footer *::before,
  .ae-footer *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
