/*
Theme Name: MT TACHO
Theme URI: https://mytracko.pl/
Author: Codex
Description: Landing page theme for MT TACHO based on the Canva project.
Version: 1.0.11
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: mt-tacho
*/

:root {
  --page-gutter: clamp(12px, 1.25vw, 20px);
  --section-gap: clamp(24px, 3.4vw, 44px);
  --panel-radius: clamp(22px, 2.2vw, 30px);
  --card-radius: clamp(18px, 1.9vw, 24px);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
}

.home.elementor-page .elementor[data-elementor-type="wp-page"] > .elementor-section > .elementor-container,
.home.elementor-page .elementor-section.elementor-section-boxed > .elementor-container {
  width: min(1760px, calc(100vw - (var(--page-gutter) * 2)));
  max-width: min(1760px, calc(100vw - (var(--page-gutter) * 2))) !important;
}

.home.elementor-page .elementor[data-elementor-type="wp-page"] .elementor-column-gap-default > .elementor-column > .elementor-element-populated,
.home.elementor-page .elementor[data-elementor-type="wp-page"] .elementor-element-populated > .elementor-widget-wrap,
.home.elementor-page .elementor .elementor-column-gap-default > .elementor-column > .elementor-element-populated,
.home.elementor-page .elementor .elementor-element-populated > .elementor-widget-wrap {
  padding-inline: 0 !important;
}

.footer-card-link,
.footer-contact-action,
.footer-contact-copy,
.lang-toggle,
a[href="#download"],
#download a img,
nav a {
  transition:
    transform 220ms ease,
    color 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.lang-toggle {
  border: 0;
  background: transparent;
  color: #3b3b3b;
}

.lang-toggle[aria-pressed="true"] {
  background: #4ab470;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(27, 102, 58, 0.16);
}

.lang-toggle[aria-pressed="false"] {
  background: transparent;
  color: #3b3b3b;
}

.lang-toggle:focus-visible {
  outline: 2px solid rgba(74, 180, 112, 0.42);
  outline-offset: 2px;
}

.footer-contact-action {
  text-decoration: none;
}

.footer-contact-action:focus-visible,
.footer-contact-copy:focus-visible {
  outline: 2px solid rgba(74, 180, 112, 0.42);
  outline-offset: 2px;
}

.footer-contact-copy {
  position: relative;
  background: transparent;
}

.footer-contact-copy-light {
  border-color: rgba(228, 228, 231, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: #8b8b93;
}

.footer-contact-copy-dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.74);
}

.footer-copy-icon,
.footer-copy-check {
  width: clamp(11px, 1vw, 14px);
  height: clamp(11px, 1vw, 14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.footer-copy-check {
  position: absolute;
  opacity: 0;
  transform: scale(0.72);
}

.footer-contact-copy.is-copied .footer-copy-icon {
  opacity: 0;
  transform: scale(0.72);
}

.footer-contact-copy.is-copied .footer-copy-check {
  opacity: 1;
  transform: scale(1);
}

.footer-contact-copy-light.is-copied {
  border-color: rgba(74, 180, 112, 0.36);
  background: rgba(74, 180, 112, 0.1);
  color: #1f8d52;
}

.footer-contact-copy-dark.is-copied {
  border-color: rgba(74, 180, 112, 0.38);
  background: rgba(74, 180, 112, 0.16);
  color: #8ee3ac;
}

.app-truck-mobile {
  transform-origin: 50% 100%;
  transform-box: fill-box;
  will-change: left, top, transform;
}

.app-wave-overlay {
  overflow: visible;
}

@media (prefers-reduced-motion: no-preference) {
  .js-motion [data-motion="reveal"] {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
    transition:
      opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--motion-delay, 0ms);
    will-change: opacity, transform;
  }

  .js-motion [data-motion="reveal"].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .motion-float-soft,
  .motion-float-slower,
  .motion-glow-soft,
  .hero-chip-left,
  .hero-chip-right {
    will-change: transform;
  }

  .is-visible.motion-float-soft {
    animation: mt-tacho-float-soft 8.5s ease-in-out infinite;
  }

  .is-visible.motion-float-slower {
    animation: mt-tacho-float-slower 11s ease-in-out infinite;
  }

  .is-visible.motion-glow-soft {
    animation: mt-tacho-glow-soft 5.2s ease-in-out infinite;
  }

  .is-visible.hero-chip-left,
  .is-visible.hero-chip-right {
    animation: mt-tacho-chip-drift 9s ease-in-out infinite;
  }

  .hero-chip-right {
    animation-delay: -2.6s;
  }

  .motion-card,
  footer article {
    transition:
      transform 260ms ease,
      box-shadow 260ms ease,
      filter 260ms ease;
    will-change: transform;
  }

  @media (hover: hover) and (pointer: fine) {
    .motion-card:hover,
    footer article:hover {
      transform: translateY(-4px);
      filter: saturate(1.02);
    }

    .footer-card-link:hover,
    .footer-contact-action:hover {
      transform: translateX(2px);
    }

    .footer-contact-copy-light:hover {
      transform: translateY(-1px);
      border-color: rgba(74, 180, 112, 0.35);
      background: rgba(74, 180, 112, 0.08);
      color: #1c572d;
    }

    .footer-contact-copy-dark:hover {
      transform: translateY(-1px);
      border-color: rgba(74, 180, 112, 0.32);
      background: rgba(74, 180, 112, 0.14);
      color: #b6f1c9;
    }

    #download a img:hover,
    a[href="#download"]:hover,
    nav a:hover {
      transform: translateY(-2px);
    }

    .lang-toggle[aria-pressed="false"]:hover {
      transform: translateY(-1px);
      color: #1c572d;
      background: rgba(74, 180, 112, 0.12);
    }

    .lang-toggle[aria-pressed="true"]:hover {
      transform: translateY(-1px);
      color: #ffffff;
      filter: brightness(1.02) saturate(1.04);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-motion="reveal"] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .motion-float-soft,
  .motion-float-slower,
  .motion-glow-soft,
  .hero-chip-left,
  .hero-chip-right {
    animation: none !important;
  }
}

@keyframes mt-tacho-float-soft {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -10px, 0) rotate(-0.55deg);
  }
}

@keyframes mt-tacho-float-slower {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes mt-tacho-chip-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes mt-tacho-glow-soft {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(191, 104, 8, 0);
    filter: saturate(1) brightness(1);
  }

  50% {
    box-shadow: 0 12px 28px rgba(191, 104, 8, 0.18);
    filter: saturate(1.04) brightness(1.03);
  }
}
