/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:   #e65c00; 
  --orange-l: #ff7b25;
  --orange-d: #b34700;
  --earth:    #5c4a2a; 
  --yellow:   #f5c400; 
  --yellow-l: #ffe066;
  --bg-dark:  #1a1005; 
  --bg-dark2: #24160a;
  --bg-light: #f7f3f0;
  --bg-white: #ffffff;
  --text-d:   #24160a;
  --text-l:   #f0e8e4;
  --muted-d:  #6b5a4a;
  --muted-l:  #aa9580;
  --card-bg:  rgba(255,255,255,0.05);
  --card-bd:  rgba(255,255,255,0.1);
  --shadow:   0 4px 24px rgba(30,15,5,0.12);
  --radius:   6px;
  --radius-sm:4px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-light);
  color: var(--text-d);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-l); }
strong { font-weight: 700; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(20,10,5,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link { display: flex; align-items: center; }
.logo {
  height: 46px;
  width: auto;
  border-radius: 4px;
  filter: brightness(1.05);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--yellow-l);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(0.85);
  transform: scale(1.03);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.07); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30,10,5,0.75) 0%,
    rgba(60,20,5,0.4) 50%,
    rgba(15,5,0,0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(245,196,0,0.15);
  border: 1px solid rgba(245,196,0,0.4);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 24px rgba(20,0,0,0.6);
  max-width: 780px;
}
.hero h1 .accent { color: var(--yellow); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.2rem;
  max-width: 520px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background: var(--orange);
  border-radius: 4px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(230,92,0,0.4);
}
.btn-primary:hover {
  background: var(--orange-l);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230,92,0,0.55);
}

.btn-outline {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
  transition: border-color 0.2s, color 0.2s;
}
.hero-scroll svg { width: 20px; height: 20px; }
.hero-scroll:hover { border-color: var(--yellow); color: var(--yellow); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ===== SECTIONS BASE ===== */
.section { padding: 5rem 0; }
.section--light { background: var(--bg-light); }
.section--dark  { background: var(--bg-dark2); }
.section--contact { background: var(--orange-d); }

/* Anchor scroll offset dla fixed header */
#uslugi, #o-nas, #galeria, #kontakt { scroll-margin-top: 80px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  background: rgba(230,92,0,0.12);
  border: 1px solid rgba(230,92,0,0.25);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-d);
  line-height: 1.15;
  margin-bottom: 0.7rem;
}
.section-title.light { color: #fff; }

.section-desc {
  font-size: 1.05rem;
  color: var(--muted-d);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}
.section-desc.light { color: rgba(255,255,255,0.65); }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(230,92,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-l));
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(30,10,0,0.16);
  border-color: rgba(230,92,0,0.2);
}
.service-card:hover::before { opacity: 1; }

.service-card--highlight {
  border-color: rgba(245,196,0,0.3);
  background: linear-gradient(135deg, #fffde8 0%, #fff 60%);
}
.service-card--highlight::before {
  background: linear-gradient(90deg, var(--yellow), var(--yellow-l));
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-d);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--muted-d);
  line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text { color: var(--text-d); }
.about-text p {
  font-size: 1rem;
  color: var(--muted-d);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-text p strong { color: var(--orange-d); }
.about-text .section-tag {
  background: rgba(245,196,0,0.12);
  border-color: rgba(245,196,0,0.25);
  color: var(--yellow);
  position: relative;
  overflow: hidden;
}

.about-text .section-tag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 120% at center, transparent 0%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
  border-radius: 4px;
}

.about-features {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.about-feat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-d);
}
.about-feat svg { width: 20px; height: 20px; flex-shrink: 0; }

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2;
}
.about-image:hover::after {
  opacity: 0.3;
}
.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  filter: brightness(0.85) saturate(0.9) contrast(1.05);
  transition: filter 0.4s, transform 0.5s ease;
}
.about-image:hover img {
  filter: brightness(1) saturate(1) contrast(1);
  transform: scale(1.03);
}

.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--orange);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.badge-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.badge-txt {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* ===== MASONRY GALLERY ===== */
.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  position: relative;
}

/* Vignette overlay using radial gradient for elegant effect */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 10%, rgba(0, 0, 0, 0.25) 65%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2;
  opacity: 1;
}

.gallery-item:hover::after {
  opacity: 0.5;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.9) saturate(0.95) contrast(1.05);
}
.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05) saturate(1.1) contrast(1);
}

/* ===== TESTIMONIALS MARQUEE ===== */
.testimonials {
  padding: 4rem 0;
  background: var(--bg-white);
  border-top: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
}
.testimonials-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-d);
}
.marquee-wrapper {
  display: flex;
  width: max-content;
  /* 14 opinii * 2 zajmuje dużo miejsca, animation powoli przesuwa content o 50% szerokości (żeby zloopować podwójny blok) */
  animation: marquee 80s linear infinite;
}
.marquee-wrapper:hover {
  animation-play-state: paused;
}
.testimonial-card {
  width: 320px;
  margin: 0 1rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  white-space: normal; /* nadpisujemy ustawienia paska w przypadku długiego tekstu */
}
.testimonial-card p {
  font-size: 0.92rem;
  color: var(--muted-d);
  font-style: italic;
  line-height: 1.6;
}
.testimonial-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  margin-top: auto;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  transition: background 0.25s, transform 0.2s;
}
.contact-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-3px);
}
.contact-card--main {
  border-color: rgba(245,196,0,0.3);
  background: rgba(245,196,0,0.07);
}

.contact-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--yellow);
}
.contact-icon svg { width: 100%; height: 100%; }

.contact-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.7rem;
}
.contact-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}
.nip { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-top: 0.5rem; }

.phone-link {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  text-align: left;
  transition: color 0.2s;
}
.phone-link:hover { color: var(--yellow); }

.email-link {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.8rem;
  transition: color 0.2s;
}
.email-link:hover { color: var(--yellow); }

.contact-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-d);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--orange);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item:hover summary { background: rgba(0,0,0,0.02); }
.faq-item[open] summary { border-bottom: 1px solid rgba(0,0,0,0.05); }
.faq-content {
  padding: 1.2rem 1.4rem;
  color: var(--muted-d);
  font-size: 0.85rem;
  line-height: 1.6;
  background: var(--bg-white);
}

/* ===== DUST PARTICLES ===== */
.dust-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  background: rgba(255, 230, 180, 0.4);
  border-radius: 50%;
  animation: float-dust 15s infinite linear;
}
@keyframes float-dust {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* REGION TAGS (Mikołów i okolice) */
.regions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.region-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}
.region-tag:hover {
  background: rgba(245,196,0,0.2);
  color: var(--yellow);
  border-color: rgba(245,196,0,0.4);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.8rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  height: 36px;
  width: auto;
  opacity: 0.8;
  border-radius: 4px;
}
.footer p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer-back {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-back:hover { color: var(--yellow); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image img { height: 300px; }
  .gallery-grid { column-count: 2; }
}

@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(20,10,5,0.97); padding: 1rem; gap: 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav.nav--open { display: flex; }
  .nav a { padding: 0.7rem 1rem; border-radius: 4px; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }

  .hero { min-height: 90vh; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 1.2rem; }
  .stat-num { font-size: 1.5rem; }

  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .gallery-grid { column-count: 2; column-gap: 0.5rem; }
  .gallery-item { margin-bottom: 0.5rem; }

  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-content { padding: 2rem 1rem 5rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 0.98rem; }
  .btn-primary, .btn-outline { padding: 0.8rem 1.6rem; font-size: 0.88rem; }
  .hero-stats { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.7rem; }
}
