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

/* OGÓLNE */
body {
  font-family: 'Quicksand', sans-serif;
  line-height: 1.5;
  color: #222;
  background: url("assets/image/meble-na-wymiar-tlo.jpg") center/cover no-repeat fixed;
}

.logo img {
  height: 60px;
  margin-left: 20%;
}

@media (max-width: 1000px) {
  .logo img {
    margin-left: 1%;
  }
}

@media (max-width: 680px) {
  .logo img {
    margin-left: 1%;
    height: 60px;
  }
}

/* HEADER */
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}

/* HAMBURGER MENU */
.hamburger {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 30px;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 35px;
  height: 4px;
  background: orange;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger:hover span {
  background-color: white;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* NAVBAR */
nav {
  display: flex;
  align-items: center;
  padding: 20px;
  color: #ffa500;
}

.nav-links ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 25px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links ul a {
  text-decoration: none;
  color: orange;
  font-size: clamp(14px, 2vw, 25px);
  transition: color 0.3s;
}

.nav-links ul a:hover {
  color: white;
}

/* MOBILE NAV */
@media (max-width: 1000px) {
  .hamburger {
    display: flex;
    margin-left: 20%;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 40%;
    min-width: 250px;
    height: 100%;
    background-color: #222;
    padding-top: 120px;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .nav-links ul a {
    font-size: 32px;
  }
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  clip-path: polygon(0% 0%, 190% 0%, 17% 40%, 0% 100%);
  z-index: -2;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 100px;
  color: white;
}

/* TREŚĆ STRONY */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

/* SEKCJA HERO */
.hero-section {
  display: flex;
  align-items: center;     
  justify-content: center; 
  flex-direction: column;    
  padding: 80px 20px;
  background-color: orange;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  gap: 20px;
}


.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;  
  justify-content: center; 
  gap: 20px;
  text-align: center;
  height: 100%; 
}
.hero-section h1 {
  margin: 0 auto;
}
.hero-section {
  text-align: center;
}


.hero-section .btn {
  display: inline-block;
  background: #222;
  color: white;
  padding: 10px 25px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background 1s;
}

.hero-section .btn:hover {
  background: #ff6600;
}

/* USŁUGI */
#services {
  background: #f4f4f4;
  padding: 50px 20px;
  text-align: center;
  border-radius: 20px;
}

#services h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.service-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 300px;
  transition: transform 1s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 40px;
  color: orange;
  margin-bottom: 10px;
}

/* O MNIE */
.about-section {
  background: #ffa500;
  border-radius: 20px;
  padding: 50px 20px;
  text-align: center;
  margin-top: 40px;
}

.about-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

/* GALERIA */
.gallery-section {
  background: #f4f4f4;
  border-radius: 20px;
  padding: 50px 20px;
  margin-top: 40px;
  text-align: center;
  position: center;
  align-items: center;
}

.gallery-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 15px;
  position: center;
  align-items: center;
  grid: center;
}
@media (max-width: 485px) {
  .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
    position: center;
  align-items: center;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* STOPKA */
.site-footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 40px 20px 20px;
  font-size: 0.9rem;
}

.container-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.site-footer a {
  color: #ffa500;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 15px;
  font-size: 0.8rem;
  color: #aaa;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/*modal kontaktowy */

/* Tło modala */
.kontakt-modal {
  display: none; /* ukryty domyślnie */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Zawartość okna */
.kontakt-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 520px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* Animacja wejścia */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Przyciski */
.kontakt-btn, h2.kontakt-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: #222;
  color: #fff;
  font-size: 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: 1s ease;
}

.kontakt-btn:hover {
  background: #ff6600;
}

/* X zamykający */
.kontakt-modal .close-btn {
  position: absolute;
  top: 1px;
  right: 40px;
  font-size: 48px;
  cursor: pointer;
  color: #222;
}

.kontakt-modal .close-btn:hover {
  color: #ff0000;
  transition: color 1s ease;
}
