/* ============================================================
   WEAB DOMY Z DREWNA - UNIFIED LUXURY DESIGN SYSTEM
   Kolorystyka: #c49a6c (Wood Gold), #1a1a1a (Dark), #f8f9fa (Gray Light)
   Czcionki: Montserrat (Nagłówki), Poppins (Treść)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --wood-gold:   #c49a6c;
  --wood-dark:   #a37d52;
  --dark:        #1a1a1a;
  --dark-pure:   #0f0f0f;
  --gray-light:  #f8f9fa;
  --gray-border: #e8e8e8;
  --white:       #ffffff;
  --success:     #27ae60;
  --danger:      #e74c3c;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Poppins', sans-serif;

  --shadow-sm: 0 4px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 25px rgba(0,0,0,0.1);
  --shadow-lg: 0 15px 35px rgba(0,0,0,0.15);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition: all 0.3s ease;
}

/* ── Reset & Baseline ───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: #333333;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Scroll Progress Bar ────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: var(--wood-gold);
  z-index: 10001;
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 1px 8px rgba(196, 154, 108, 0.4);
}

/* ── Top Bar ────────────────────────────────────────────── */
.top-bar {
  background: var(--dark);
  color: #ffffff;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  z-index: 1001;
}

.top-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.top-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-info i {
  color: var(--wood-gold);
}

.top-social {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.top-social:hover {
  color: var(--wood-gold);
}

/* ── Header & Navigation ────────────────────────────────── */
header {
  background: var(--white);
  padding: 12px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  width: 100%;
  transition: var(--transition);
}

header.scrolled {
  padding: 8px 5%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.logo {
  display: inline-block;
}

.logo img {
  height: 55px;
  width: auto;
  transition: var(--transition);
}
.logo:hover img {
  transform: scale(1.03);
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.desktop-nav a {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wood-gold);
  transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--wood-gold);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-call {
  background: var(--wood-gold);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(196, 154, 108, 0.3);
}

.btn-call:hover {
  background: var(--dark);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hamburger Toggle Button */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  justify-content: space-around;
  width: 34px;
  height: 34px;
  z-index: 1002;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ── Mobile Nav Overlay & Drawer ────────────────────────── */
#mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

#mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 9999;
  padding: 80px 25px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: -5px 0 25px rgba(0,0,0,0.25);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

#mobile-nav.open {
  right: 0;
}

.m-nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-border);
  transition: var(--transition);
}

.m-nav-link:hover,
.m-nav-link.active {
  color: var(--wood-gold);
  padding-left: 10px;
}

/* ── Hero Sections ──────────────────────────────────────── */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slide.active {
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 20px;
  width: 100%;
  max-width: 850px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

.hero p {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  letter-spacing: 1.5px;
  color: var(--wood-gold);
  font-weight: 600;
}

.page-hero {
  background-size: cover;
  background-position: center;
  min-height: 280px;
  padding: 60px 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.page-hero h1,
.page-hero p {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin-bottom: 10px;
  color: var(--white);
}

.page-hero p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 1px;
  color: var(--wood-gold);
}

/* ── Content Sections ───────────────────────────────────── */
.realizacje,
.gallery-section,
.reviews-section,
.reviews-main,
.categories-section,
.content-section {
  padding: 60px 5%;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 35px;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--wood-gold);
}

/* Spec Grid (Main Page) */
.spec-container {
  max-width: 1200px;
  margin: 0 auto;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.card {
  background: var(--white);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  display: block;
  border-radius: var(--radius-sm);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card:hover img {
  transform: scale(1.08);
}

.card-c1 { grid-column: span 2; }
.card-c2 { grid-column: span 2; }
.card-c3 { grid-column: span 2; }
.card-c4 { grid-column: 2 / span 2; }
.card-c5 { grid-column: 4 / span 2; }

.card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--white);
  padding: 20px 15px 12px;
  font-size: 0.85rem;
  z-index: 2;
}

.card-title h3 {
  color: var(--white);
  margin: 0;
  font-size: 1rem;
}

.badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 5px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.btn-gallery-main {
  display: inline-block;
  background: var(--wood-gold);
  color: var(--white);
  padding: 14px 40px;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
}

.btn-gallery-main:hover {
  background: var(--dark);
  transform: scale(1.04);
  color: var(--white);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1250px;
  margin: 30px auto 0;
}

.gallery-item {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Categories Grid (Galeria Main) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1300px;
  margin: 0 auto;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.category-img {
  width: 100%;
  height: 230px;
  overflow: hidden;
  border-bottom: 5px solid var(--wood-gold);
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-img img {
  transform: scale(1.08);
}

.category-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.category-info h3 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--dark);
  font-weight: 700;
}

.btn-more {
  display: inline-block;
  background: var(--wood-gold);
  color: var(--white);
  padding: 10px 25px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.btn-more:hover {
  background: var(--dark);
  color: var(--white);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border: 4px solid var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.lightbox-close:hover {
  color: var(--wood-gold);
}

/* Reviews Slider / Grid */
.reviews-section {
  background: var(--white);
  text-align: center;
}

.reviews-slider-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.reviews-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
  padding: 10px 0;
}

.review-card {
  min-width: calc(33.333% - 14px);
  background: var(--gray-light);
  padding: 25px;
  border-left: 5px solid var(--wood-gold);
  border-radius: var(--radius-sm);
  text-align: left;
  position: relative;
}

.review-text {
  font-style: italic;
  font-size: 0.92rem;
  margin-bottom: 15px;
  min-height: 70px;
  color: #555555;
}

.review-author {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9rem;
  display: block;
}

.slider-controls {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.control-btn {
  background: var(--wood-gold);
  color: var(--white);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.control-btn:hover {
  background: var(--dark);
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.stars {
  color: #f1c40f;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.cta-feedback {
  margin-top: 50px;
  padding: 35px 25px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border-top: 4px solid var(--wood-gold);
}

.btn-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1877f2;
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-top: 20px;
  gap: 10px;
}
.btn-fb:hover {
  background: #145dbf;
  color: var(--white);
}

/* Feature List (Usługi Ziemne) */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: left;
  margin-top: 40px;
}

.feature-item {
  background: var(--gray-light);
  padding: 22px;
  border-left: 4px solid var(--wood-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.feature-item p {
  font-size: 0.9rem;
  color: #666666;
  margin: 0;
}

/* ── Scroll Reveal Animations ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--dark-pure);
  color: #888888;
  padding: 60px 5% 20px;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  border-left: 3px solid var(--wood-gold);
  padding-left: 12px;
  font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.footer-col a:hover {
  color: var(--wood-gold);
}

.footer-col i {
  color: var(--wood-gold);
  margin-right: 8px;
  width: 18px;
  text-align: center;
}

.footer-col .partner-logo,
.footer-col img[src*="koszalka"] {
  display: inline-block;
  max-width: 150px;
  height: auto;
  background: white;
  padding: 5px;
  border-radius: 4px;
}

.oferteo-badges {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.oferteo-badges img {
  height: 75px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.map-container {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 15px;
  border: 1px solid #333333;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.copyright {
  text-align: center;
  margin-top: 45px;
  border-top: 1px solid #222222;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #777777;
  line-height: 1.6;
}

.copyright span {
  color: #cccccc;
  font-weight: 600;
}

/* Back to Top Button */
#back-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: var(--wood-gold);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

#back-top.show {
  opacity: 1;
  visibility: visible;
}

#back-top:hover {
  background: var(--dark);
  transform: translateY(-3px);
}

/* ── Media Queries ──────────────────────────────────────── */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .card-c1, .card-c2, .card-c3, .card-c4, .card-c5 {
    grid-column: span 1;
  }

  .review-card {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .top-bar {
    justify-content: center;
    text-align: center;
  }

  .top-info {
    justify-content: center;
  }

  header {
    padding: 10px 4%;
  }

  .logo img {
    height: 48px;
  }

  .btn-call {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4 {
    border-left: none;
    border-bottom: 2px solid var(--wood-gold);
    padding-left: 0;
    display: inline-block;
    padding-bottom: 6px;
  }

  .footer-col > img,
  .footer-col .partner-logo,
  .footer-col img[src*="koszalka"] {
    display: inline-block;
    margin: 10px auto 0 auto;
  }

  .oferteo-badges {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    min-height: 320px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
