/* ==========================================================================
   TAD i-am — shared core
   Only what every page genuinely needs: the fixed nav corrections, the
   scroll-reveal, and the lightbox (which is injected by js/tadiam.js).
   Page layouts live in their own stylesheets — p-about.css, p-workshop.css,
   p-app.css, p-contact.css, p-how.css, p-legal.css — because each page is
   laid out differently on purpose.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Navigation corrections
   The Webflow template was built for a small wordmark SVG; the TAD badge is
   340x115, and the menu now carries six items instead of one.
   -------------------------------------------------------------------------- */

.navigation-fixed-menu [data-nav] a[aria-current="page"] .nav-intro-item,
.navigation-fixed-menu [data-nav] a.w--current .nav-intro-item { color: var(--primary); }

/* Squeeze the bar between the collapse breakpoint and a comfortable desktop,
   otherwise six items plus the badge plus the button overflow the container. */
@media (min-width: 992px) and (max-width: 1365px) {
  .logo-project { height: 44px; }
  .header-link-item { padding-left: 8px; padding-right: 8px; }
  .nav-intro-item { font-size: 12px; letter-spacing: .06em; }
  .header-btn-wrap .primary-button { min-width: 132px; padding-left: 16px; padding-right: 16px; }
}

/* Below the collapse point the badge rendered ~53px wide — illegible. */
@media (max-width: 767px) { .logo-project { height: 38px; } }
@media (max-width: 479px) { .logo-project { height: 34px; } }

/* --------------------------------------------------------------------------
   2. Scroll reveal
   -------------------------------------------------------------------------- */

.td-rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1),
              transform .8s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.td-rv.is-in { opacity: 1; transform: none; }
.td-rv[data-d="1"] { transition-delay: .08s; }
.td-rv[data-d="2"] { transition-delay: .16s; }
.td-rv[data-d="3"] { transition-delay: .24s; }
.td-rv[data-d="4"] { transition-delay: .32s; }
.td-rv[data-d="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .td-rv { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   3. List reset
   The template paints every <ul> with a gradient-text trick: a background
   clipped to the glyphs plus -webkit-text-fill-color: transparent. That was
   deliberate for the Webflow components it shipped with, but it makes every
   hand-written list invisible — text-fill-color overrides color and is
   inherited, so no amount of `color:` on the <li> brings the text back. It
   also forces ul to display:flex, which suppresses the disc markers on the
   legal pages and adds a stray 15px row gap.
   Nothing on this site is a Webflow list, so undo the paint here rather than
   patching it page by page. Kept at element specificity so any page rule
   with a class still wins.
   -------------------------------------------------------------------------- */

ul, ol {
  background: none;
  -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: currentcolor;
  color: inherit;
  display: block;
  grid-row-gap: 0;
}

/* --------------------------------------------------------------------------
   4. Lightbox — markup is created by js/tadiam.js, so it has no HTML source
   -------------------------------------------------------------------------- */

.td-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background-color: rgba(0, 0, 0, .95);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 60px 24px;
}
.td-lightbox.is-open { display: flex; }
.td-lightbox img {
  max-width: min(1200px, 92vw); max-height: 82vh;
  border: 1px solid rgba(255, 255, 255, .1);
  object-fit: contain;
  animation: td-pop .4s cubic-bezier(.22, .61, .36, 1);
}
@keyframes td-pop {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}
.td-lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: 26px;
  text-align: center; color: #fff;
  text-transform: uppercase; letter-spacing: .14em;
  font-family: 'Chakra Petch', sans-serif; font-size: 12px;
}
.td-lightbox__btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px;
  border: 1px solid rgba(255, 255, 255, .1);
  background-color: rgba(0, 0, 0, .6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; line-height: 1;
  transition: all .35s cubic-bezier(.22, .61, .36, 1);
}
.td-lightbox__btn:hover { background-color: var(--primary); border-color: var(--primary); }
.td-lightbox__close { top: 24px; right: 24px; }
.td-lightbox__prev { top: 50%; left: 24px; transform: translateY(-50%); }
.td-lightbox__next { top: 50%; right: 24px; transform: translateY(-50%); }

@media (max-width: 767px) {
  .td-lightbox { padding: 70px 14px; }
  .td-lightbox__prev { left: 10px; }
  .td-lightbox__next { right: 10px; }
}

/* --------------------------------------------------------------------------
   5. Footer — office details and legal bar
   -------------------------------------------------------------------------- */

.color-section-wrapper-2 {
  padding-bottom: 0;
}

.hero-footer {
  padding-bottom: 0;
}

.grid-footer-nav {
  margin-bottom: 0;
}

.bottom-footer-info {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-self: stretch;
  width: 100%;
  margin-top: 0;
  padding-right: 0;
  gap: 12px;
  border: 1px solid var(--primary);
  background-image: url("../images/2.jpeg");
  background-position: center 48%;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 3px 0 0 var(--primary);
}

.bottom-footer-info > .subscribe-text-wrap,
.bottom-footer-info > .subscribe-form-3 {
  display: none;
}

.bottom-footer-right {
  position: relative;
  overflow: hidden;
  gap: 12px;
  margin-top: 0;
  padding: 20px;
  border: 1px solid var(--white-10);
  background:
    linear-gradient(135deg, rgba(216, 35, 52, .08), transparent 42%),
    rgba(255, 255, 255, .018);
}

.bottom-footer-right::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--primary);
}

.bottom-footer-right > .subscribe-text-wrap {
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--white-10);
}

.bottom-footer-right .subscribe-title {
  margin-bottom: 0;
  font-size: clamp(26px, 1.8vw, 32px);
  line-height: 1;
}

.bottom-footer-right .office-addresses-list {
  gap: 8px;
}

.bottom-footer-right .our-address-con {
  gap: 6px;
}

.bottom-footer-right .our-address {
  display: grid;
  grid-template-columns: minmax(105px, .34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .22);
  color: var(--white);
  text-transform: none;
  font-size: 15px;
  line-height: 1.35;
  transition: border-color .3s ease, background-color .3s ease;
}

.bottom-footer-right .our-address:hover {
  border-color: rgba(216, 35, 52, .5);
  background: rgba(216, 35, 52, .055);
}

.bottom-footer-right .map-address-link {
  position: relative;
  display: block;
  min-width: 0;
  padding-right: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.bottom-footer-right .map-address-link::after {
  content: "\2197";
  position: absolute;
  top: -1px;
  right: 0;
  color: var(--primary);
  font-size: 14px;
  transition: transform .3s ease;
}

.bottom-footer-right .map-address-link:hover::after {
  transform: translate(2px, -2px);
}

.bottom-footer-right .working-hours-con {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bottom-footer-right .working-hours-con .our-address {
  grid-template-columns: 1fr;
  gap: 3px;
}

.bottom-footer-right .span-working-hours {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  border: 1px solid var(--white-10);
  background: rgba(255, 255, 255, .018);
}

.footer-bottom .rights-wrap {
  margin: 0;
}

.footer-bottom .rights-wrap:first-child {
  flex: 1;
  min-width: 0;
}

.footer-bottom .rights-wrap:last-child {
  flex: none;
  margin-left: auto;
  padding-left: 20px;
  border-left: 1px solid var(--white-10);
}

.footer-bottom .footer-par-copyright {
  display: block;
  max-width: 920px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-bottom .footer-par-copyright .footer-right-link {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--white);
  font-size: inherit;
  line-height: 1.35;
  vertical-align: baseline;
}

.footer-bottom .footer-par-copyright .footer-right-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer-bottom .footer-rights-text {
  align-items: center;
  gap: 5px;
  font-size: 14px;
  white-space: nowrap;
}

.footer-bottom .footer-rights-text > .footer-right-link:first-child {
  color: var(--paragraph-color);
  font-size: inherit;
}

.footer-bottom .footer-rights-text > a.footer-right-link {
  position: relative;
  color: var(--white);
  font-weight: 500;
}

.footer-bottom .footer-rights-text > a.footer-right-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(.35);
  transform-origin: left;
  transition: transform .3s ease;
}

.footer-bottom .footer-rights-text > a.footer-right-link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 991px) {
  .footer-bottom {
    flex-wrap: wrap;
  }

  .footer-bottom .rights-wrap:last-child {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .bottom-footer-info {
    min-height: 160px;
    background-image: url("../images/2.jpeg");
  }

  .bottom-footer-right {
    padding: 18px;
  }

  .bottom-footer-right .our-address {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .footer-bottom .rights-wrap:last-child {
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid var(--white-10);
    border-left: 0;
  }
}

@media (max-width: 479px) {
  .bottom-footer-right {
    padding: 16px;
  }

  .bottom-footer-right .working-hours-con {
    grid-template-columns: 1fr;
  }

  .footer-bottom .footer-rights-text {
    flex-wrap: wrap;
    white-space: normal;
  }
}
