/*
 Theme Name: PROARTE Theme
 Author: Jarosław Piekarski
 Author URI: https://poligon-srv.pl
 Text Domain: proarte-theme
 Description: Motyw WordPress dla firmy PROARTE
 Version: 1.0
*/
:root {
  --neon: #6D7A4F;
  --neon-dark: #4F5F3D;
  --light-bg: #EADBC0;
  --dark-text-color: #3C3A2F;
  --overlay-dark: rgba(60,58,47,.9);
  --glass: rgba(109,122,79,.07);
  --glass-active: rgba(109,122,79,.25);
  --pa-green: #909266;
  --pa-olive: #b6b587;
  --pa-beige: #e2ddb8;
  --pa-sand: #ecd5a3;
  --pa-brown: #c1ad8a;
  --pa-text: #706f4b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--light-bg);
  color: var(--dark-text-color);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  padding: 8vh 5vw; /* Reduced padding for mobile */
  position: relative;
  scroll-margin-top: 80px;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.2rem); /* Smaller, responsive font */
  font-weight: 700;
  text-align: center;
  margin: 0 auto 2.5rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; /* Slightly smaller underline */
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
}

p {
  max-width: 55ch; /* Tighter max-width for readability */
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem; /* Smaller padding */
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, var(--neon), var(--neon-dark));
  color: #fff;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 15px rgba(109,122,79,.3);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

nav {
  position: sticky;
  top: 0;
  background: var(--pa-beige);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: transform;
  padding: 0.8rem 5vw; /* Adjusted padding */
  z-index: 100;
  border-bottom: 1px solid rgba(109,122,79,.1);
  transition: background 0.3s ease, padding 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%; /* Prevent overflow */
}

.nav-logo {
  height: 45px; /* Smaller logo */
  transition: transform 0.3s ease, filter 0.3s ease;
  max-width: 60px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem; /* Smaller gap */
}

.nav-links a {
  color: var(--dark-text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pa-olive);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--pa-green);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.3rem; /* Smaller hamburger */
  color: var(--neon);
  cursor: pointer;
}

nav.scrolled {
  background: rgba(60,58,47,.95);
  box-shadow: 0 5px 20px rgba(0,0,0,.2);
  padding: 0.5rem 5vw;
}

nav.scrolled .nav-links a {
  color: var(--pa-sand);
}

nav.scrolled .nav-links a:hover {
  color: var(--pa-green);
}

nav.scrolled .hamburger {
  color: var(--pa-sand);
}

.hero {
  position: relative;
  height: 80vh; /* Shorter hero section */
  background: url(https://proarte-eg.pl/wp-content/uploads/2025/07/header.png) center/cover fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(60,58,47,.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  max-width: 90%; /* Prevent overflow */
  text-align: center;
}

.logo {
  height: 80px; /* Smaller logo */
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(109,122,79,.5));
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  from { filter: drop-shadow(0 0 10px rgba(109,122,79,.5)); }
  to { filter: drop-shadow(0 0 15px rgba(109,122,79,.8)); }
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem); /* Responsive font */
  margin-bottom: 0.4rem;
  color: #fff;
  text-shadow: none;
}

.hero h1 span {
  color: #fff !important;
}

.hero p {
  font-size: 0.9rem; /* Smaller text */
  margin-bottom: 1.5rem;
  text-shadow: none;
  color: #fff;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.3rem; /* Smaller icon */
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-15px) translateX(-50%); }
  60% { transform: translateY(-8px) translateX(-50%); }
}

.services {
  background: var(--light-bg);
  overflow: hidden;
  padding: 8vh 5vw; /* Adjusted padding */
}

.service-grid {
  display: grid;
  gap: 2rem; /* Smaller gap */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 1200px) {
  .service-grid {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
  }
  .service-grid .card {
    flex: 1 1 200px;
    max-width: 320px;
  }
}

.card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(109,122,79,.08);
  border-radius: 18px;
  padding: 1.5rem 1rem; /* Reduced padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Prevent overflow */
  flex: 1 1 180px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(109,122,79,.15);
  border-color: rgba(109,122,79,.25);
}

.card h3 {
  color: var(--neon);
  position: relative;
  font-size: 1.2rem; /* Smaller font */
}

.card h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--neon);
}

.card-icon {
  width: 50px; /* Smaller icon */
  height: 50px;
  object-fit: contain;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 0 5px rgba(109,122,79,.5));
}

.why {
  background: url(https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1350&q=80) center/cover fixed;
  position: relative;
  color: #fff;
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(60,58,47,.75);
}

.why-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem; /* Smaller gap */
  justify-content: space-between;
  max-width: 100%; /* Prevent overflow */
}

.why .content,
.expansion-card {
  flex: 1 1 350px; /* Smaller minimum width */
  background: var(--overlay-dark);
  padding: 1.5rem; /* Reduced padding */
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0,0,0,.3);
}

.why ul {
  list-style: none;
  margin-top: 1rem;
}

.why li {
  margin: 0.8rem 0;
  padding-left: 1.3rem;
  position: relative;
}

.why li::before {
  content: '✓';
  color: var(--neon);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.pa-timeline-modern {
  background: var(--pa-beige);
  padding: 40px 0 30px; /* Reduced padding */
  text-align: center;
}

.pa-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 28px; /* Smaller gap */
  align-items: center;
  position: relative;
  max-width: 90%; /* Responsive width */
  margin: 0 auto;
}

.pa-timeline-list::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--pa-green) 0%, var(--pa-sand) 100%);
  border-radius: 2px;
  z-index: 0;
}

.pa-timeline-item {
  display: flex;
  align-items: flex-start;
  width: 100%;
  position: relative;
  z-index: 2;
}

.pa-timeline-icon {
  flex: 0 0 56px; /* Smaller icon */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  background: #fffbe9;
  border-radius: 50%;
  border: 2px solid var(--pa-beige);
  margin-right: 20px;
  box-shadow: 0 4px 18px rgba(112,111,75,.07);
  position: relative;
  z-index: 2;
}

.pa-timeline-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(112,111,75,.04);
  padding: 20px 16px; /* Reduced padding */
  text-align: left;
  flex: 1 1 auto;
  border-left: 4px solid var(--pa-sand);
  color: var(--pa-text);
}

.real-accordion {
  position: relative;
  background: url(https://cdn.pixabay.com/photo/2017/10/31/21/08/lan-2909746_1280.jpg) center/cover fixed no-repeat;
  padding: 8vh 5vw; /* Adjusted padding */
  text-align: center;
  --acc-h: 340px; /* Smaller height */
  --acc-n: 5;
  z-index: 1;
}

.real-accordion::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 0;
}

.real-accordion h2 {
  color: #fff;
}

.acc-row {
  display: flex;
  height: var(--acc-h, 340px);
  gap: 6px; /* Smaller gap */
  max-width: 100%; /* Prevent overflow */
  margin: 0 auto;
}

.acc-card {
  position: relative;
  flex: 1 1 calc(100% / 5);
  height: 100%;
  border-radius: 12px;
  background: rgba(109,122,79,.3);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
  transition: flex 0.4s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.acc-card.active {
  flex: 2.5 1 450px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  border: 1px solid var(--neon, #aaffcc);
}

.acc-front,
.acc-back {
  position: absolute;
  inset: 0;
  padding: 1.2rem; /* Reduced padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.4s ease;
  backface-visibility: hidden;
}

.acc-front {
  z-index: 2;
  background: rgba(255,255,255,.05);
}

.acc-back {
  background: var(--pa-beige);
  color: #000;
  z-index: 3;
  transform: translateX(100%);
}

.acc-card.active .acc-back {
  transform: translateX(0);
}

.acc-card.active .acc-front {
  visibility: hidden;
  pointer-events: none;
}

.card-icon {
  width: 50px; /* Smaller icon */
  height: auto;
  margin-bottom: 0.6rem;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0,0,0,.25));
}

.acc-front img:not(.card-icon) {
  width: 100%;
  height: 120px; /* Smaller image height */
  object-fit: cover;
  border-radius: 8px;
}

.acc-front h3 {
  font-size: 1.1rem; /* Smaller font */
  color: #fff;
  margin-top: 0.8rem;
}

.contact {
  background: #D7CDA9;
  position: relative;
  padding: 8vh 5vw; /* Adjusted padding */
}

form {
  max-width: 780px; /* Responsive width */
  margin: 0 auto;
  background: #fff;
  padding: 2rem; /* Reduced padding */
  border-radius: 18px;
  border: 1px solid rgba(109,122,79,.15);
  display: flex;
  flex-direction: column;
  gap: 1.2rem; /* Smaller gap */
  color: var(--dark-text-color);
  box-sizing: border-box; /* Prevent overflow */
}

input,
textarea {
  padding: 0.8rem; /* Reduced padding */
  border: none;
  border-radius: 8px;
  background: #f5f3e8;
  color: var(--dark-text-color);
  transition: 0.3s;
  border: 1px solid rgba(109,122,79,.2);
  max-width: 100vw;
  min-width: 720px; /* Prevent input overflow */
  box-sizing: border-box;
}

@media (max-width: 768px) {
  input,
  textarea {
    min-width: unset; /* Usuwa minimalną szerokość */
    width: 100%; /* Pełna szerokość kontenera */
    padding: 0.6rem; /* Mniejsze paddingi na mobile */
  }
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 10px rgba(109,122,79,.2);
  background: #fefcf5;
}

input[type=submit] {
  cursor: pointer;
  background: linear-gradient(135deg, var(--neon), var(--neon-dark));
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.8rem 1.5rem; /* Adjusted padding */
  align-self: center; /* Center button */
}

input[type=submit]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(109,122,79,.3);
}

footer {
  background: var(--dark-text-color);
  text-align: center;
  padding: 2rem 0.5rem; /* Reduced padding */
  font-size: 0.8rem; /* Smaller font */
  color: var(--light-bg);
  box-sizing: border-box;
  width: 100%; /* Prevent overflow */
  overflow-x: hidden;
}

.footer-logo {
  height: 45px; /* Smaller logo */
  margin: 0 auto 0.8rem;
  filter: drop-shadow(0 0 10px rgba(109,122,79,.3));
  display: block;
}

.social-links {
  margin: 1rem 0; /* Reduced margin */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem; /* Smaller gap */
}

.social-links a {
  color: var(--light-bg);
  font-size: 1.2rem; /* Smaller icons */
  transition: 0.3s;
}

.social-links a:hover {
  color: var(--neon);
  transform: translateY(-4px) scale(1.2);
}

.footer-info {
  margin: 0.4rem auto;
  text-align: center;
  max-width: 90%; /* Prevent overflow */
}

.footer-info,
.footer-links {
  margin: 0.5rem auto;         /* auto marginesy poziome centrowane */
  max-width: 90%;
  width: 100%;
  display: flex;               /* dodane do centrowania zawartości */
  justify-content: center;    /* centrowanie poziome */
  flex-wrap: wrap;            /* zawijanie elementów, jeśli potrzeba */
  text-align: center;         /* centrowanie tekstu */
}

.footer-links {
  margin-top: 0.75rem;
  font-size: 0.75rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  margin: 0 0.3rem;
}


/* ================= MOBILE ADJUSTMENTS ================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* Adjusted for smaller nav */
    left: 0;
    right: 0;
    background: rgba(234,219,192,.97);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(109,122,79,.2);
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--dark-text-color);
  }

  .hamburger {
    display: block;
  }

  .hero {
    height: 70vh; /* Shorter hero */
    padding: 5vh 4vw;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  }

  .hero p {
    font-size: 0.85rem;
  }

  .logo {
    height: 70px;
  }

  section {
    padding: 5vh 4vw; /* Tighter padding */
  }

  h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .service-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 1.2rem;
  }

  .card {
    max-width: 100%;
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
  }

  .services {
    padding: 5vh 4vw;
  }

  .why-wrapper {
    gap: 1.5rem;
  }

  .why .content,
  .expansion-card {
    flex: 1 1 100%; /* Full width */
    padding: 1.2rem;
  }

  .pa-timeline-icon {
    height: 48px;
    width: 48px;
    margin-right: 15px;
  }

  .pa-timeline-content {
    padding: 16px 12px;
  }

  .acc-row {
    flex-direction: column;
    height: auto;
    gap: 1rem;
  }

  .acc-card {
    flex: 1 1 auto;
    height: 400px;
    margin-bottom: 1.5rem;
  }

  .acc-card.active {
    height: 450px;
  }

  .contact {
    padding: 5vh 4vw;
  }

  form {
    padding: 1.5rem;
    max-width: 95%;
    gap: 1rem;
  }

  input,
  textarea {
    padding: 0.7rem;
    font-size: 0.85rem; /* Smaller font */
  }

  input[type=submit] {
    width: 100%; /* Full-width button */
    padding: 0.7rem;
  }

  footer {
    padding: 1.5rem 0.25rem;
  }

  .footer-logo {
    height: 40px;
  }

  .social-links {
    gap: 0.6rem;
  }

  .social-links a {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .pa-timeline-icon {
    height: 38px;
    width: 38px;
    margin-right: 7px;
  }
}