/* =========================
   ROOT / ZMIENNE
========================= */
:root {
  --font-base: clamp(14px, 1.2vw, 18px);
  --font-h1: clamp(28px, 5vw, 56px);
  --font-h2: clamp(22px, 3.5vw, 36px);

  --bg-card: #ece1e1; 
  --card-bg: #fdf9f7;

  --text-main: #2c2c2c;
  --text-light: #777;

  --primary: #e89aa6;
  --primary-hover: #e89aa6;

  --accent: #c9a66b;
  --border: #eee;
}

/* =========================
   RESET / BASE
========================= */
html, body {
  height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Poppins, sans-serif;
  font-size: var(--font-base);
  background: var(--card-bg);
  color: var(--text-main);

  padding-top: 60px;

  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
}

h1 { font-size: var(--font-h1); }
h2 {
  text-align: center;
  font-size: var(--font-h2);
}

/* =========================
   NAV
========================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;

  background: var(--bg-card);
  border-bottom: 1px solid var(--border);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 20px;
  box-sizing: border-box;

  z-index: 1000;
}

.logo {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 1px;

  background: linear-gradient(90deg, #e89aa6, #c9a66b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  font-weight: 300;
  color: var(--text-light);
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 25px;
  font-size: clamp(15px, 2vw, 20px);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;

  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* =========================
   BURGER
========================= */
.burger {
  width: 35px;
  height: 22px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

/* BURGER → X */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* MOBILE MENU */
@media(max-width:768px){
  .burger { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    gap: 5px;
    width: 100%;
    flex-direction: column;
    align-items: stretch;

    background: var(--bg-card);

    max-height: 0;
    overflow: hidden;

    transition: 0.4s;
  }

  .nav-links.active {
    max-height: 300px;
  }

  .nav-links a {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  section {
    padding: 20px 4vw;   /* było 30px → teraz ciaśniej */
  }

  h2 {
    margin-bottom: 10px; /* mniej miejsca pod nagłówkiem */
  }

  section p {
    margin-bottom: 10px; /* teksty bliżej siebie */
  }
}

/* =========================
   HEADER
========================= */
header {
  height: 50svh;
  background: url('../img/salon-kosmetyczny.jpg') center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

header div {
  position: relative;
  z-index: 2;
}

/* =========================
   BUTTON
========================= */
.btn {
  background: var(--primary);
  padding: 12px 4px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  margin-top: 1rem;
  transition: 0.3s;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.cta-buttons {
  margin-top: 15px;
}

/* =========================
   SEKCJE
========================= */
section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 5vw;  /*odstępy między sekcjami*/
}

/* =========================
   IMAGE + TEXT
========================= */
.image-text {
  display: flex;
  gap: 40px;
  align-items: center;
}

.image-text img,
.image-text div {
  width: 50%;
}



@media(max-width:768px){
  .image-text {
    flex-direction: column;
  }

  .image-text img,
  .image-text div {
    width: 100%;
  }
}

/* =========================
   USŁUGI
========================= */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
  font-size: clamp(12px, 2vw, 18px)
}

.service {
  background: var(--bg-card);
  padding: 15px;
  border-radius: 14px;
  text-align: center;
  transition: 0.3s;
}

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

.service i {
  font-size: clamp(20px, 2vw, 30px);
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
      padding: 5px;
  }


}

/* =========================
   OPINIE
========================= */
.reviews {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
}

.review {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
}

/* =========================
   GODZINY
========================= */
.hours {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap:1rem;
  
}

.hour-item {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  color: var(--text-light);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 10px;
   background-color: var(--border);
}

/* =========================
   CENNIK
========================= */
.pricing {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background-color: var(--bg-card);
  color: var(--text-light);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* =========================
   GALERIA
========================= */

.gallery img {
  width: 100%;
  border-radius: 10px;
    cursor: pointer;
  transition: 0.3s;
  display: block;
}

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

/* =========================
   KONTAKT
========================= */
.contact-info {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;

}

.contact-item {
  display: flex;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-main);
  font-weight: 600;
  background-color: var(--border);
  font-size: clamp(16px, 1.2vw, 26px);
}

.contact input,
.contact textarea {
  padding: clamp(10px, 2vw, 18px);
  
}

.contact input {
  height: clamp(20px, 3vw, 40px);
}

.contact textarea {
  min-height: clamp(50px, 2vw, 60px);
}

.contact-item a {
  position: relative;
}

.contact-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
  color: var(--accent);   /* 🔥 zamiast niebieskiego */
  text-decoration: none;
}

.contact-item a {
  color: var(--text-main);   /* 🔥 usuwa niebieski */
  text-decoration: none;     /* 🔥 usuwa podkreślenie */
}

.contact-item a:visited {
  color: var(--text-main);   /* 🔥 usuwa fiolet */
}

.contact-item a:hover {
  color: var(--accent);      /* efekt hover */
}

/* =========================
   FORMULARZ
========================= */
.form-box {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 10px;
  background: white;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#form-status {
  margin: 0;
  min-height: 20px;
}

.form-box button {
  margin-top: 0;
}

@media (max-width: 768px) {
  .form-box {
    width: 95%;      /* 🔥 zajmuje prawie cały ekran */
    max-width: none; /* 🔥 usuwa ograniczenie */
    padding: 20px;   /* trochę mniejszy padding */
    background-color: var(--border);
  }
}

/* =========================
   FOOTER
========================= */
footer {
  background:#2c2c2c;
  color:#ddd;
  text-align:center;
  padding:20px;
}


.gallery {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));

  max-height: 400px;     /* 🔥 przycina */
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.gallery::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 80px;
  width: 100%;
  background: linear-gradient(to bottom, transparent, white);
}

/* ukryte zdjęcia */
.gallery img.hidden {
  display: none !important;
}

/* po kliknięciu */
.gallery.open {
  max-height: none;
}


/* ===== LIGHTBOX ===== */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

#lightbox img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  border-radius: 10px;
}

/* zamykanie */
#close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* strzałki */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 10px;
}

.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

.arrow:hover {
  color: #ff5e7d;
}

.contact-grid {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

/* mapa */
.map {
  flex: 1;
  display: flex;
}
.map iframe {
  width: 100%;
  height: 100%;   /* 🔥 dopasowanie do wysokości formularza */
  border: 0;
}


@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }

    .map iframe {
    height: 350px; /* 🔥 zwiększ wysokość */
  }

 .form-box {
    width: 92%;
    margin: 20px auto;
    padding: 20px;
  }

   .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

}



.google-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 15px;
  padding: 10px 18px;

  background: #fff;
  border: 2px solid #eee;
  border-radius: 30px;

  font-weight: 600;
  text-decoration: none;
  color: #333;

  transition: all 0.3s ease;
}

/* ikona */
.google-link i {
  color: #db4437;
  font-size: 16px;
}

/* hover */
.google-link:hover {
  background: #db4437;
  color: #fff;
  border-color: #db4437;
  transform: translateY(-2px);
}

/* hover ikony */
.google-link:hover i {
  color: #fff;
}


.stars {
  color: #f5b301;
  font-size: 18px;
  letter-spacing: 2px;
  margin-top: 5px;
}


.booksy-btn {
  background: linear-gradient(135deg, #e89aa6, #c9a66b);
  color: white;
  border-radius: 30px;
  padding: 12px 22px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: 0.3s;
}

.booksy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


.booksy-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;

  background: linear-gradient(135deg, #e89aa6, #c9a66b);
  color: white;

  padding: 14px 20px;
  border-radius: 30px;

  font-weight: 600;
  text-decoration: none;

  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);

  transition: 0.3s;
}

.booksy-fixed:hover {
  transform: translateY(-3px);
}


.socials {
  margin-top: 15px;
}

.socials p {
  margin-bottom: 10px;
  color: #bbb;
  font-size: 14px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255,255,255,0.05);
  color: white;

  text-decoration: none;
  font-size: 18px;

  transition: 0.3s;
}

.social-icons a:hover {
  background: linear-gradient(135deg, #e89aa6, #c9a66b);
  transform: translateY(-3px);
}


.social-icons a:hover .fa-facebook-f {
  color: #1877f2;
}

.social-icons a:hover .fa-instagram {
  color: #e4405f;
}

.social-icons a:hover .fa-tiktok {
  color: #fff;
}

@media (max-width: 768px) {

  .social-icons {
    gap: 10px;
  }

  .social-icons a {
    width: 36px;
    height: 36px;

    font-size: 15px;
  }

}


/* ===== BOOKSY POPUP ===== */
.booksy-popup {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.6);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 99999;
}

.booksy-popup.active {
  display: flex;
}

.booksy-popup-content {
  background: white;

  width: 90%;
  max-width: 420px;

  padding: 35px 25px;
  border-radius: 24px;

  text-align: center;

  position: relative;

  animation: popupFade 0.3s ease;
}

.booksy-popup-content h3 {
  margin-top: 0;
  font-size: 28px;
}

.booksy-popup-content p {
  color: #666;
  margin-bottom: 25px;
}

.close-booksy {
  position: absolute;
  top: 15px;
  right: 20px;

  font-size: 30px;
  cursor: pointer;
}

.popup-btn {
  display: inline-block;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.call-fixed {
  position: fixed;

  bottom: 90px;
  right: 20px;

  width: 55px;
  height: 55px;

  border-radius: 50%;

  display: none;
  justify-content: center;
  align-items: center;

  background: linear-gradient(135deg, #e89aa6, #c9a66b);

  color: white;
  font-size: 22px;

  text-decoration: none;

  z-index: 9999;

  box-shadow: 0 5px 20px rgba(0,0,0,0.2);

  transition: 0.3s;
}

.call-fixed:hover {
  transform: scale(1.08);
}

/* TYLKO MOBILE */
@media (max-width: 768px) {
  .call-fixed {
    display: flex;
  }
}