/* ===== GLOBAL RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Encode Sans Expanded', sans-serif;
}

body {
  
  background: #000;
  color: #eee;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ===== VARIABLES ===== */
:root {
  --gold: #c9a24d;
  --beige-text: rgb(203, 194, 177);
  --dark-bg: #000;
  --light-bg: #f5f5f5;
  --footer-beige: #dcd0c0; /* Kolor tła stopki z obrazka */
}

/* ===== UTILS ===== */
.container {
  max-width: 1200px;
  width: 90%;
  margin: auto;
}

.text-left { text-align: left; }
.dark-title { color: rgba(0, 0, 0, 0.85); }
.italic-text { font-style: italic; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  border-bottom: 1px solid #222;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.navbar-brand img {
  width: 180px;
  height: auto;
  display: block;
}

.navbar-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.navbar-menu a:hover {
  color: var(--gold);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  min-width: 150px;
  display: none;
  list-style: none;
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  text-transform: capitalize;
}

/* Przycisk Sklep */
.nav-shop-btn {
  border-left: 1px solid var(--gold);
  padding-left: 20px;
  margin-left: 10px;
  font-size: 0.8rem;
}

/* ===== HERO ===== */
.hero {
  padding-top: 75px; /* Wysokość navbara */
  position: relative;
  background: #000;
}
.hero-inner {
  position: relative;
  width: 100%;
}
.hero-img {
  width: 100%;
  display: block;
  height: auto;
}

/* ===== SECTIONS GLOBAL ===== */
.section {
  padding: 80px 0;
}
.section-title {
  font-family: 'Encode Sans Expanded', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: #fff;
  text-transform: lowercase;
  letter-spacing: 2px;
  position: relative;
}
.section-title span {
  color: var(--gold);
  font-weight: 700;
}
/* Podkreślenie tytułu O NAS */
#onas .section-title {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}

/* ===== O NAS ===== */
.bg-onas { 
  background: #111 url("tlo_prostokat.png") center/cover no-repeat; 
}
.onas-container {
  display: flex;
  justify-content: flex-start; /* Tekst po lewej */
}
.onas-content {
  max-width: 60%; /* Zajmuje 60% szerokości, reszta na grafikę tła */
  text-align: left;
}
.onas-text p {
  color: #ddd;
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 15px;
}
.onas-text .text-highlight {
  color: var(--beige-text);
}

/* ===== DLACZEGO WARTO (WHY) ===== */
.bg-why { 
  background: #fff url("tlo_do_ikon.png") center/cover no-repeat;
  position: relative;
}
.why-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.why-card {
  flex: 1;
  background: rgba(0,0,0,0.85); /* Ciemne tło kafelka */
  padding: 30px 20px;
  text-align: center;
  position: relative;
  min-height: 280px; /* Wysokość kafelka */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Złota linia na dole kafelka */
  border-bottom: 3px solid var(--gold); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
/* Linia pionowa pod kafelkiem (łącząca z belką) */
.why-card::after {
  content: '';
  position: absolute;
  bottom: -40px; /* Długość linii */
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: var(--gold);
  z-index: 1;
}

.why-icon img {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
}
.why-card h3 {
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 15px;
  line-height: 1.3;
}
.why-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* DETAILS */
.why-card details {
  margin-top: 20px;
}

/* STRZAŁKA */
.why-card summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  position: relative;
  padding: 10px 0;
}

/* Ikona strzałki */
.why-card summary::after {
  content: "⮞";
  display: inline-block;
  color: var(--gold);
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

/* Obrót strzałki */
.why-card details[open] summary::after {
  transform: rotate(90deg);
}

/* TREŚĆ – start */
.why-card details p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease;
  margin-top: 10px;
}

/* TREŚĆ – po otwarciu */
.why-card details[open] p {
  max-height: 120px; /* wystarczy na 2–3 linijki */
  opacity: 1;
}

.why-card p {
  font-size: 0.8rem;
  margin-top: 10px;
  color: #ccc;
}

/* Belka drewniana na dole */
.wood-bar {
  width: 100%;
  height: 40px;
  background: #5d4037; /* Kolor drewna */
  background: url("belka_drewno.jpg") center/cover; /* Jeśli masz grafikę */
  margin-top: 40px;
  position: relative;
  z-index: 2;
  border-radius: 2px;
}

/* ===== PRODUKTY ===== */
.bg-products {
  background: url("tlo_szare_gradient.png") center/cover no-repeat;
}
.products-desc {
  max-width: 800px;
  text-align: left;
  margin-bottom: 40px;
  font-size: 0.9rem;
  font-style: italic;
  color: #ccc; /* Ciemny tekst bo jasne tło */
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.product-card {
  height: 400px;
  background-color: #eee;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Elementy na dole */
  align-items: center;
  padding-bottom: 0;
  transition: transform 0.3s;
}
/* Przykładowe tła (jeśli masz inne pliki, podmień nazwy) */
.card-wood { background-image: url('nasze_produkty2.png'); } 
.card-mdf { background-image: url('mdf_bg.jpg'); } 
/* Fallback color jeśli brak zdjęć */
.product-card { background-color: #dcd0c0; border: 1px solid #ccc; }

.product-card:hover { transform: translateY(-5px); }

.product-card strong {
  display: block;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #000;
  text-transform: uppercase;
  z-index: 2;
}

.product-card button {
  background: #000;
  color: #fff;
  border: none;
  width: 100%;
  padding: 15px 0;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.3s;
}
.product-card button:hover {
  background: var(--gold);
  color: #000;
}

.shop-link-container {
  margin-top: 40px;
  text-align: center;
}

/* ===== NOWOŚCI ===== */
.section-light {
  background: #f9f9f9;
  color: #111;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.news-card {
  background: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 350px;
}
.prod-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
  display: block;
}
.prod-img-box {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-img-box img {
  max-width: 100%;
  max-height: 150px;
}
.prod-price {
  display: block;
  font-weight: bold;
  margin: 15px 0;
  font-size: 0.9rem;
}
.news-card button {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 25px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* ===== FAQ ===== */
.bg-faq {
  background: url("robotnik.png") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}
.faq-box {
  background: rgba(0,0,0,0.85);
  padding: 50px;
  max-width: 800px;
  width: 100%;
  margin: auto;
  text-align: center;
  border: 1px solid #333;
}
.faq-box h2 { color: #fff; margin-bottom: 20px; }
.faq-intro { margin-bottom: 30px; font-size: 0.9rem; color: #ccc; }

.faq-box details {
  border-bottom: 1px solid #444;
  margin-bottom: 10px;
  text-align: left;
}
.faq-box summary {
  padding: 15px 0;
  cursor: pointer;
  color: var(--beige-text);
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
/* Strzałka FAQ */
.faq-box summary::after {
  content: '+';
  position: absolute;
  right: 0;
  color: var(--gold);
  font-size: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}
.faq-box details[open] summary::after { content: '-'; }
.faq-box p {
  padding-bottom: 15px;
  color: #aaa;
  font-size: 0.85rem;
  font-style: italic;
}

/* ===== KONTAKT ===== */
/* ===== CONTACT ===== */
.contact-section {
  position: relative;
  background: url("tlo_form.png") center/cover no-repeat;
}

/* overlay TYLKO NA OBRAZ */
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* reguluj przyciemnienie */
  z-index: 0;
}

/* kontener i formularz NAD overlay */
.contact-section .container,
.contact-card {
  position: relative;
  z-index: 1;
}


.contact-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 70px;
  border-bottom: 4px solid #c9a24d;
  box-shadow: 0 25px 60px rgba(0,0,0,.65);
    background: url("tlo_form.png") center/cover no-repeat;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid #444;
  padding: 18px 20px;
  font-size: 15px;
  color: #333;
}

.contact-form button {
  align-self: flex-end;
  background: #111;
  border: 2px solid #c9a24d;
  color: #c9a24d;
  padding: 16px 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
  width: 100%;
  padding: 0;
  margin: 0;
}
.footer-wrapper {
  display: flex;
  height: 400px; /* Stała wysokość stopki */
}
/* Lewa strona - mapa */
.footer-left {
  flex: 1;
  position: relative;
  background: #222;
}
.footer-map {
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0.6; /* Przyciemnienie mapy */
}

/* Prawa strona - beżowa */
.footer-right {
  flex: 1;
  background: var(--footer-beige);
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.footer-logo img {
  width: 180px;
  margin-bottom: 25px;
}
.footer-social {
  margin-bottom: 30px;
}
.footer-social img {
  width: 24px;
  margin: 0 10px;
  transition: transform 0.3s;
}
.footer-social img:hover { transform: scale(1.1); }
.footer-info p {
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 5px;
  font-weight: 500;
}

/* ===== ANIMACJA ===== */
.animate-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSYWNOŚĆ (MEDIA QUERIES) ===== */
@media (max-width: 900px) {
  .onas-content { max-width: 100%; }
  .why-grid { flex-wrap: wrap; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-wrapper { flex-direction: column; height: auto; }
  .footer-left { height: 300px; }
}
@media (max-width: 600px) {
  .navbar-menu { display: none; } /* Tutaj przydałby się hamburger menu w JS */
  .section-title { font-size: 1.8rem; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 20px; width: 100%; }
}
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.product-card button,
.contact-form button {
  position: relative;
  overflow: hidden;
}

.product-card button::after,
.contact-form button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 215, 0, 0.2);
  transform: skewX(-20deg);
  transition: all 0.5s;
}

.product-card button:hover::after,
.contact-form button:hover::after {
  left: 200%;
}
.why-icon img,
.faq-box summary::after {
  transition: transform 0.3s ease;
}

.why-icon img:hover {
  transform: scale(1.2) rotate(-10deg);
}

.faq-box summary:hover::after {
  transform: rotate(180deg);
}
.hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
.animate-onas {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.animate-onas.is-visible {
  opacity: 1;
}
.hero {
  position: relative;
  overflow: hidden; /* KLUCZOWE */
}
/* ===== NEWS CARDS ANIMATION ===== */
.news-card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.news-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover – delikatny premium efekt */
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
/* GŁÓWNY UKŁAD */
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO PO LEWEJ */
.navbar-brand img {
  width: 180px;
  height: auto;
  display: block;
}

/* PRAWA STRONA */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* MENU */
.navbar-menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

.navbar-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.navbar-menu a:hover {
  color: var(--gold);
}

/* SKLEP */
.nav-shop-btn {
  color: #fff;
  text-decoration: none;
  padding-left: 12px;
  border-left: 1px solid var(--gold);
  font-weight: 600;
}

/* SOCIALE */
.navbar-socials {
  display: flex;
  gap: 12px;
  padding-top: 10px;
}

.navbar-socials img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1); /* białe */
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-socials img:hover {
  transform: scale(1.15);
  opacity: 1;
}
