/*
Theme Name: Zapex Classic Theme
Theme URI: https://qubity.pl
Author: Jakub Klonowski-Rosploch
Author URI: https://qubity.pl
Description: Klasyczny motyw WordPress dla firmy transportowej Zapex. Nowoczesny, lekki i responsywny, w kolorystyce przemysłowej. Zawiera układ hero, ofertę, sekcję kontaktową, nagłówek i stopkę.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zapex
Tags: business, moving company, company, responsive, custom-logo, custom-menu, featured-images
*/

/* === RESET === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}
html {
  scroll-behavior: smooth;
}

/* === ZMIENNE GLOBALNE === */
:root {
  /* --- Paleta kolorów --- */
  --color-dark-blue: #156693;
  --color-light-blue: #5993b1;
  --color-blue-grey-900: #151d20;
  --color-blue-grey-600: #576974;
  --blue-grey-50: #fbfbfb;
  --smooth-dark: #363636;
  --color-white: #ffffff;

  --font-heading-main: "Archivo Black", sans-serif;
  --font-heading-alt: "Bebas Neue", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --radius: 6px;
  --transition: all 0.25s ease;
}

/* === OGÓLNE === */
body {
  font-family: var(--font-body);
  color: var(--color-blue-grey-900);
  background-color: var(--blue-grey-50);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  min-width: 375px;
}

.wrapper {
  max-width: 1920px;
  margin: 0 auto;
  min-width: 380px;
}

/* === TYPOGRAFIA === */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-dark);
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
}

h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  font-family: var(--font-heading-alt);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  font-family: var(--font-heading-alt);
}

h3 {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.4rem);
}

p {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  margin-bottom: 1rem;
  color: var(--color-blue-grey-900);
}

.button {
  min-height: 40px;
  min-width: 60px;
  background-color: var(--color-blue-grey-900);
  padding: 0.7rem 1.4rem;
  color: var(--blue-grey-50);
  border-radius: 4px;
  transition: 0.6s all;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.button:hover {
  transform: scale(1.1);
}
.button-alt {
  min-height: 40px;
  min-width: 60px;
  border: solid 2px var(--blue-grey-50);
  padding: 0.7rem 1.4rem;
  color: var(--blue-grey-50);
  border-radius: 4px;
  transition: 0.6s all;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.button-alt:hover {
  background-color: rgba(255, 255, 255, 0.336);
  color: var(--color-blue-grey-600);
  font-weight: 800;
  color: var(--blue-grey-50);
}
/* === ANIMACJA: POJAWIENIE SIĘ Z GŁĘBI === */
@keyframes appear-depth {
  0% {
    opacity: 0;
    transform: scale(1.2) translateZ(-50px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateZ(0);
    filter: blur(0);
  }
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.2rem;
  }
}
/* Move reCAPTCHA v3 badge to the left */

.grecaptcha-badge {
  width: 70px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  left: 4px !important;
}

.grecaptcha-badge:hover {
  width: 256px !important;
}

/* ANIMATIONS */
.blink-2 {
  animation: blink-2 3.5s linear infinite; /* cykl trwa 5s */
}

@keyframes blink-2 {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 0.2;
    scale: 1.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.98);
  transition: opacity 1.2s ease-out, transform 0.9s ease-out;
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hover-lift {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

@media (hover: hover) {
  .hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
  }
}

.backgorund-dark {
  background-color: var(--color-blue-grey-900);
}
.bg-icon-right {
  position: relative;
}

.bg-icon-right::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 50%;
  width: 100%;
  height: 80%;
  background-image: url("../zapex-theme/assets/images/Vector.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
}
.bg-icon-left {
  position: relative;
}
.bg-icon-left::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);

  right: 50%;
  width: 100%;
  height: 100%;
  background-color: var(--blue-grey-50);
  mask-image: url("../zapex-theme/assets/images/Vector.svg");
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: left center;
}
