/*
Theme Name: Jarbet Classic Theme
Theme URI: https://qubity.pl
Author: Jakub Klonowski-Rosploch
Author URI: https://qubity.pl
Description: Klasyczny motyw WordPress dla firmy betoniarskiej Jarbet. 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: jarbet
Tags: business, construction, 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-primary: #2e3a45; /* Steel Graphite */
  --color-secondary: #c7c9c7; /* Concrete Silver */
  --color-dark: #1a1a1a; /* Matte Black */
  --color-border: #8d979a; /* Brushed Nickel */
  --color-accent: #d49d4c; /* Green Accent */
  --color-light: #f8f8f8; /* White Smoke */
  --color-text: #2a2a2a; /* Clean readable text */
  --color-white: #ffffff;

  --font-heading: "Inter", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --font-accent: "Raleway", sans-serif;

  --radius: 6px;
  --transition: all 0.25s ease;
}

/* === OGÓLNE === */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

.wrapper {
  max-width: 1920px;
  margin: 0 auto;
  min-width: 400px;
}

/* === TYPOGRAFIA === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 4.5rem;
  color: var(--color-light);
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}
.button {
  min-height: 40px;
  min-width: 60px;
  background-color: var(--color-primary);
  padding: 0.7rem 1.4rem;
  color: var(--color-light);
  border-radius: 4px;
  transition: 0.6s all;
}
.button:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: scale(1.1);
  font-weight: 800;
}
.button-alt {
  min-height: 40px;
  min-width: 60px;
  border: solid 2px var(--color-primary);
  padding: 0.7rem 1.4rem;
  color: var(--color-light);
  border-radius: 4px;
  transition: 0.6s all;
}
.button-alt:hover {
  background-color: rgba(255, 255, 255, 0.336);
  color: var(--color-accent);
  font-weight: 800;
  color: var(--color-primary);
}
.line-sides {
  position: relative;
  display: inline-block; /* lub block, zależnie od kontekstu */
}
/* === ANIMATION === */
.diagonal-lines {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(212, 157, 76, 0.1) 0,
    rgba(212, 157, 76, 0.1) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 42px 42px;
  background-color: rgba(250, 250, 250, 0);
}
.line-sides::before,
.line-sides::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  border-left: 2px solid var(--color-accent);
  height: 10px;
}

.line-sides::before {
  left: -15px;
}

.line-sides::after {
  right: -15px;
}

.slide-in-left.delay-1 {
  animation-delay: 0.3s;
}
.slide-in-left.delay-2 {
  animation-delay: 0.6s;
}
.slide-in-left.delay-3 {
  animation-delay: 0.9s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease-out forwards;
}
/* === 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);
  }
}

/* Klasa reużywalna */
.appear-depth {
  opacity: 0;
  transform: scale(1.2);
  animation: appear-depth 1s ease-out forwards;
  perspective: 800px; /* opcjonalnie dla efektu 3D */
}

/* Modyfikatory opóźnienia */
.appear-delay-1 {
  animation-delay: 0.2s;
}
.appear-delay-2 {
  animation-delay: 0.4s;
}
.appear-delay-3 {
  animation-delay: 0.6s;
}

/* === LINKI === */
a:hover {
  color: var(--color-accent);
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  .hero {
    padding: 6rem 1rem;
  }
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.2rem;
  }
}
