/* ===== HERO ===== */
.hero {
  height: 100vh;
  background: url('../assets/images/index.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 44, 42, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.5s ease;
}

.hero h1 {
  font-size: 4.5em;
  margin-bottom: 10px;
  color: var(--primary);
}

.hero p {
  font-size: 1.4em;
  margin-bottom: 30px;
  font-weight: 300;
}

.hero button {
  background: var(--primary);
  color: var(--dark);
  border: none;
  padding: 15px 40px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
}

.hero button:hover {
  background: white;
  transform: scale(1.05);
}

/* ===== GALLERY ===== */
.gallery {
  padding: 100px 40px;
  text-align: center;
  background: var(--bg);
}

.gallery h2 {
  font-size: 3em;
  margin-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.5s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* ===== FEATURES ===== */
.features {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 100px 40px;
  background: white;
}

.feature {
  text-align: center;
  max-width: 300px;
}

.feature h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--primary);
}

/* ===== ABOUT ===== */
.about-hero {
  height: 70vh;
  background: url('../assets/images/about.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.about-hero .about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 44, 42, 0.6);
}

.about-content {
  position: relative;
  z-index: 2;
}

.about-content h1 {
  font-size: 4em;
  color: var(--primary);
}

.about-text {
  padding: 100px 40px;
  text-align: center;
  background: white;
}

.about-text .container {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1em;
}

/* =========================
   ABOUT – NAGŁÓWKI NA TLE
   ========================= */

.about-text h2 {
  background: inherit; /* to samo co header */
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(9, 6, 6, 0.25);
  padding: 10px 20px;
  border-radius: 14px;

  display: contents; /* tło tylko pod tekst */
  margin: 60px 0 20px;   /* odstęp od treści */

  font-size: 1.8em;
}

/* ===== CONTACT ===== */
.contact-info {
  padding: 100px 40px;
  background: var(--bg);
  text-align: center;
}

.info-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.info-grid div h3 {
  color: var(--primary);
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

form input,
form textarea {
  padding: 15px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-family: var(--font-main);
}

form button {
  background: var(--primary);
  color: var(--dark);
  padding: 15px;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  transition: all 0.3s;
}

form button:hover {
  background: white;
}

/* =========================
   GALERIA – STRONA
   ========================= */

.gallery-title {
  text-align: center;
  font-size: 3.5em;
  margin-bottom: 100px;
}

/* =========================
   POJEDYNCZY PROJEKT
   ========================= */

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 100px 40px;
  align-items: center;
}

/* Naprzemienne tło */
.project:nth-child(even) {
  background: #f1e8dd;
}

.project:nth-child(odd) {
  background: #ffffff;
}

/* =========================
   GALERIA ZDJĘĆ
   ========================= */

.project-gallery {
  position: relative;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.gallery-track img {
  width: 360px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Strzałki */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.gallery-arrow.left {
  left: 10px;
}

.gallery-arrow.right {
  right: 10px;
}

.gallery-wrapper {
  position: relative;
}

.gallery-wrapper .gallery-arrow {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-wrapper:hover .gallery-arrow {
  opacity: 1;
  pointer-events: auto;
}

/* =====  ZDJĘCIE JAK TELEFON ===== */
.gallery-track img:nth-child(3) {
  width: 150px;                 
  aspect-ratio: 9 / 16;
  object-fit: cover;

  border-radius: 28px;
  background: #000;
  padding: 6px;

  box-shadow:
    0 12px 35px rgba(0,0,0,0.25),
    inset 0 0 0 2px #111;

  align-self: center;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* kursor */
.gallery-track img {
  cursor: zoom-in;
}


/* =========================
   OPIS PROJEKTU
   ========================= */

.project-content h2 {
  font-size: 2.2em;
  margin-bottom: 10px;
}

.project-type {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.project-content p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.project-content ul li {
  margin-bottom: 8px;
}

/* ===== ANIMACJE ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ================================
   WYRÓŻNIENIE PAKIETU PRO
================================ */

.offer-card.most-popular {
  border: 2px solid #c9a86a; /* ZŁOTY – NA SZTYWNO */
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  position: relative;
  background: #fff;
}

.offer-card.most-popular h2 {
  color: #c9a86a;
}

.offer-card.most-popular .price {
  font-size: 1.4rem;
  font-weight: 600;
}

/* BADGE */
.offer-card.most-popular::before {
  content: "Najczęściej wybierany";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #c9a86a;
  color: #fff;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  z-index: 2;
}

/* HOVER */
.offer-card.most-popular:hover {
  transform: translateY(-12px);
}


/* =========================
   OFERTA – UX FRIENDLY
   ========================= */

.offer {
  padding: 60px 40px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f8f5f2 100%
  );
  text-align: center;
}

.offer-intro {
  margin-top: -12px;
  margin-bottom: 30px;
}

.offer h1 {
  font-size: 3.2em;
  margin-bottom: 80px;
}

/* Grid pakietów */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  max-width: 1650px;
  margin: 0 auto;
}

/* Karta pakietu */
.offer-card {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 18px;

  /* subtelna głębia */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(0, 0, 0, 0.05);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover – miękki, bez agresji */
.offer-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Nazwa pakietu */
.offer-card h2 {
  font-size: 3em;
  margin-bottom: 10px;
  color: var(--primary);
}

/* Cena */
.offer-card .price {
  font-size: 1.6em;
  font-weight: 600;
  margin: 25px 0 20px;
}

/* Lista korzyści */
.offer-card ul {
  text-align: left;
}

.offer-card li {
  margin-bottom: 14px;
  position: relative;
  padding-left: 24px;
}

/* „Check” zamiast kropki */
.offer-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* =========================
   OFERTA – USŁUGI DODATKOWE
   ========================= */

.offer-addons {
  padding: 80px 40px;
  background: linear-gradient(
    to bottom,
    #f8f5f2 0%,
    #ffffff 100%
  );
  text-align: center;
}

.offer-addons h1 {
  font-size: 3em;
  margin-bottom: 40px;
}

.offer-addons .section-intro {
  max-width: 900px;
  margin: 0 auto 80px;
  font-size: 1.1em;
  line-height: 1.7;
}

/* Grid dodatków – ten sam feeling co offer-grid */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  max-width: 1650px;
  margin: 0 auto;
}

/* Karta dodatku = karta pakietu (lżejsza) */
.addon-card {
  background: #ffffff;
  padding: 45px 40px;
  border-radius: 18px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(0, 0, 0, 0.05);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover – subtelny, identyczny jak pakiety */
.addon-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Tytuł usługi */
.addon-card h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary);
}

/* Opis */
.addon-card p {
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Informacja o pakietach */
.addon-note {
  font-size: 0.95em;
  color: #555;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.addon-note strong {
  color: var(--primary);
  font-weight: 600;
}

/* =========================
   O NAS – PROCES WSPÓŁPRACY
   ========================= */

.about-process {
  padding: 140px 40px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f8f5f2 100%
  );
  text-align: center;
}

.about-process h1 {
  font-size: 3em;
  margin-bottom: 80px;
}

/* Grid kroków */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Karta kroku – ten sam „feeling” co Oferta */
.process-card {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 18px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(0, 0, 0, 0.05);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(0, 0, 0, 0.05);
}

.process-card h2 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary);
}

.process-card p {
  line-height: 1.7;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FOOTER
   ========================= */

.footer-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  font-size: 0.9em;
  color: var(--primary);
  text-decoration: none;
}

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

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Small helper for live-check links in gallery */
.live-check {
  margin-top: 8px;
}
.live-check a {
  font-size: 0.95em;
  color: var(--primary);
  text-decoration: none;
}
.live-check a:hover {
  text-decoration: underline;
}

/* Disabled submit button styling */
form button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(10%);
}


/* =========================
   RESPONSYWNOŚĆ
   ========================= */

@media (max-width: 900px) {
  .project {
    grid-template-columns: 1fr;
    padding: 80px 20px;
  }

  .gallery-track img {
    width: 260px;
    height: 180px;
  }

  .gallery-arrow {
    display: none;
  }

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

  .offer-card {
    padding: 45px 30px;
  }
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 3em; }
  .features { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .menu-items, .info-grid { flex-direction: column; align-items: center; }

  .about-text h2 {
    font-size: 1.5em;
    padding: 14px 22px;
  }

  .gallery-wrapper .gallery-arrow {
    opacity: 1;
    pointer-events: auto;
  }

}

/* =========================
   RESPONSYWNOŚĆ – ADDONS
   ========================= */

@media (max-width: 1100px) {
  .addons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .addons-grid {
    grid-template-columns: 1fr;
  }

  .addon-card {
    padding: 40px 30px;
  }
}
