﻿/* Local overrides for the offline build of the MyTIM landing page. */

:root {
  --local-header-h: 6.4rem;
}

html { scroll-behavior: smooth; }
body.-no-scroll { overflow: hidden; }

/* keep photos from exploding when the AEM aspect-ratio helpers are missing */
img { max-width: 100%; }
picture { display: block; }

/* the original grid reserves 90px for a fixed header; ours is sticky */
.tl-wrapper-rows { padding-top: 0 !important; }

/* ---------------------------------------------------------- hero */
/* the original stylesheet positions the picture absolutely; we only
   guarantee a sane height and that the photo actually fills it */
.to-herobanner.to-herobanner--full-image {
  position: relative !important;
  min-height: 65rem;
  background: #122ac2;
  justify-content: flex-start;
  align-items: stretch;
}

@media (max-width: 767px) {
  .to-herobanner--full-image__image_app { display: none; }
}

.to-herobanner--full-image__image_app {
  max-width: 68rem;
}
.to-herobanner--full-image__image_app img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

@media (min-width: 1280px) {
  .to-herobanner--full-image__headings .ta-heading--h1-hp { font-size: 5rem; }
}
.to-herobanner--full-image__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

/* store badges inside the QR card keep their real size */
.qr-text .to-herobanner--full-image__icons img {
  width: 13rem;
  max-width: none;
  height: auto;
}
.to-herobanner--full-image__content,
.to-herobanner--full-image__breadcrumbs { position: relative; z-index: 1; }
.to-herobanner--full-image__headings h1:empty { display: none; }
.to-herobanner--full-image__icons ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin: 1.6rem 0 0;
  padding: 0;
}
.to-herobanner--full-image__icons img {
  width: 13rem !important;
  height: auto !important;
}

/* ---------------------------------------------------------- accordion content */
.to-accordionContent { position: relative; }
.to-accordionContent__body {
  height: 0;
  overflow: hidden;
  transition: height .3s cubic-bezier(.25,.46,.45,.94),
              padding .3s cubic-bezier(.25,.46,.45,.94);
}
.to-accordionContent.-is-open .to-accordionContent__body {
  height: auto;
  padding: .8rem 0 1.6rem;
}
.to-accordionContent__trigger {
  display: flex;
  justify-content: center;
  cursor: pointer;
}
.to-accordionContent__trigger__icon svg {
  width: 2.4rem;
  height: 2.4rem;
  transition: transform .3s ease;
}
.to-accordionContent.-is-open .to-accordionContent__trigger__icon svg {
  transform: rotate(90deg);
}

/* ---------------------------------------------------------- tabs */
.to-tabs__tab { display: none; }
.to-tabs__tab--active { display: block; }
.to-tabs__tab .to-faq-list { margin: 0; padding: 0; list-style: none; }

.tm-tab-navigation__link { cursor: pointer; }
.tm-tab-navigation__item--active .tm-tab-navigation__link,
.tm-tab-navigation__item--active { color: #000; }
.tm-tab-navigation__item--active::after { background-color: #00f076; }

/* swiper markup without the swiper runtime becomes a plain scroller */
.tm-tab-navigation .swiper-wrapper {
  display: flex;
  gap: .8rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transition: none;
  transform: none !important;
}
.tm-tab-navigation .swiper-wrapper::-webkit-scrollbar { display: none; }
.tm-tab-navigation .swiper-slide { flex: 0 0 auto; width: auto; }
.tm-tab-navigation .tm-tab-navigation__arrows,
.tm-tab-navigation .ta-carousel-arrows { display: none; }

/* ---------------------------------------------------------- faq accordion */
.to-faq-list__item { border-bottom: 1px solid #d8d8d8; }
.to-faq-list__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
  padding: 1.6rem 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.to-faq-list__question::after {
  content: "+";
  font-size: 2.4rem;
  line-height: 1;
  color: #122ac2;
  transition: transform .2s ease;
}
.to-faq-list__item.-is-open .to-faq-list__question::after { transform: rotate(45deg); }
.to-faq-list__answer { display: none; padding: 0 0 1.6rem; }
.to-faq-list__item.-is-open .to-faq-list__answer { display: block; }

/* ---------------------------------------------------------- mobile menu */
.to-menu-mobile {
  transform: translateX(105%);
  transition: transform .28s ease;
  z-index: 60;
  overflow-y: auto;
}
.to-menu-mobile.-is-active { transform: translateX(0); }
.close-menu { z-index: 55; }

/* ---------------------------------------------------------- header */
.to-header { position: sticky; top: 0; z-index: 50; background: #fff; }
.to-header.-scroll .to-main-header { box-shadow: 0 2px 12px rgba(0,0,0,.12); }

/* ---------------------------------------------------------- download modal */
.tm-local-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, .55);
}
.tm-local-modal.-is-open { display: flex; }
.tm-local-modal__box {
  position: relative;
  width: 100%;
  max-width: 36rem;
  background: #fff;
  border-radius: 1.6rem;
  padding: 3.2rem 2.4rem 2.4rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.tm-local-modal__box h2 { font-size: 2rem; margin: 0 0 .8rem; }
.tm-local-modal__box p { font-size: 1.4rem; color: #555; margin: 0 0 2rem; }
.tm-local-modal__qr { width: 17rem; height: 17rem; margin: 0 auto 2rem; }
.tm-local-modal__stores { display: flex; gap: 1.2rem; justify-content: center; }
.tm-local-modal__stores img { width: 12rem; }
.tm-local-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 3.2rem;
  height: 3.2rem;
  border: 0;
  background: none;
  font-size: 2.6rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .to-herobanner--full-image { min-height: 52rem; }
}

/* ------------------------------------------------- promo banner in hero CTA */
.hero-promo-banner {
  display: block;
  width: 100%;
  max-width: 40rem;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 20, 90, .38);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-promo-banner picture { display: block; }
.hero-promo-banner img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  border-radius: inherit;
}
.hero-promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(0, 20, 90, .46);
}
.hero-promo-banner:focus-visible {
  outline: 3px solid #ff3b30;
  outline-offset: 4px;
}

/* the AEM hero ships an intentionally empty buttons slot; ours holds the promo art */
.to-herobanner--full-image__buttons {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 2.4rem;
}

@media (max-width: 767px) {
  .hero-promo-banner { max-width: 100%; border-radius: 1.2rem; }
}
/* android/mobile/tablet: the promo art is the hero visual, drop the half-hidden backdrop */
@media (max-width: 1023.98px) {
  .to-herobanner--full-image {
    min-height: 0;
    background: linear-gradient(158deg, #0a2aa4 0%, #123fd6 58%, #2f6bff 100%) !important;
    padding-bottom: 4rem;
  }
  .to-herobanner--full-image__bg,
  .to-herobanner--full-image__image_app { display: none; }
  .to-herobanner--full-image__content { padding-bottom: 0; }
  .to-herobanner--full-image__buttons { margin-top: 2rem; margin-bottom: 0; }
  .to-herobanner--full-image__icons { display: none; }
  .hero-promo-banner { max-width: 100%; border-radius: 1.4rem; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero-promo-banner { max-width: 52rem; }
}
