/* -----------------------------------------------------
   GLOBALNE RESETY — ważne dla Safari!
------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #F8F3EB;
  color: #262626;
  line-height: 1.7;
  font-weight: 300;
  padding-top: 80px; /* miejsce na header fixed */
}

/* -----------------------------------------------------
   KONTEJNERY
------------------------------------------------------ */

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* -----------------------------------------------------
   HEADER – ZAWSZE WIDOCZNY
------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(250, 247, 243, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

/* LOGO + TELEFON */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* na mobile numer może zejść pod logo */
  min-width: 0;
}

.logo-name {
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.logo a {
  text-decoration: none;
  color: #111;
}

/* telefon obok logo – wygląda jak część napisu, ale jest klikalny */
.logo-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.05rem;
  text-decoration: none;
  color: #111;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-phone-icon {
  font-size: 1.1rem;
}

/* MENU */

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav a {
  position: relative;
  margin-left: 26px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #444;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 4px;
}

/* -----------------------------------------------------
   HERO — POPRAWIONA SEKCJA DLA SAFARI
------------------------------------------------------ */

.hero-section {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%) blur(2px);
}

/* overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

/* tekst */
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 20vh;
  color: #fff;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 700;
  max-width: 650px;
}

.hero-content p {
  margin-top: 20px;
  margin-bottom: 35px;
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 500px;
}

/* strzałka */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-down span {
  display: block;
  width: 26px;
  height: 26px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
  animation: scrollBlink 1.4s infinite;
}

@keyframes scrollBlink {
  0%,100% { opacity: .2 }
  50% { opacity: 1 }
}

/* -----------------------------------------------------
   PRZYCISK
------------------------------------------------------ */

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  padding: 14px 28px;
  min-height: 52px;

  background: #ffd84e;
  color: #000;
  text-decoration: none;

  border-radius: 14px;
  border: 2px solid #000;

  font-weight: 700;
  letter-spacing: .02em;

  box-shadow: 0 18px 28px rgba(0,0,0,.18);
  cursor: pointer;

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .2s ease,
    opacity .2s ease;
}

.btn-primary:hover {
  background: #ffe36f;
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(0,0,0,.22);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 14px 22px rgba(0,0,0,.18);
}

.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 14px 22px rgba(0,0,0,.12);
}


/* -----------------------------------------------------
   SEKCJE
------------------------------------------------------ */

.section {
  padding: 48px 0;
}

.section--blog,
.section--blog-list {
  padding-top: 78px;
}

.section--alt {
  background: #fff;
}

/* -----------------------------------------------------
   KARTY
------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  padding: 20px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(226,214,197,0.7);
  text-decoration: none;
  color: inherit;
  transition: .2s;
}

.card .meta {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #777;
}

/* blog pojedynczy wpis */
.blog-post {
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0 auto;
}

.blog-post img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog-post h2,
.blog-post h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.section--blog {
  background: #f9f3e9;
}

.blog-article {
  max-width: 920px;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6a5b46;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.blog-back:hover {
  text-decoration: underline;
}

.blog-header h1 {
  margin: 6px 0 18px;
  line-height: 1.2;
}

.blog-date {
  margin: 0;
  color: #7a6b58;
  font-size: 0.95rem;
}

.blog-cover {
  margin: 0 0 22px;
}

.blog-cover img {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

/* oferta – tekstowa */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.offer-box {
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.offer-box--accent {
  background: #fdf6e4;
  border-color: rgba(0,0,0,0.08);
}

.offer-eyebrow {
  margin: 0 0 6px;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9a815a;
}

.offer-box h3 {
  margin: 0 0 10px;
}

.offer-list {
  margin: 0 0 12px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-list li {
  margin: 0;
}

.offer-note {
  font-size: .92rem;
  color: #514a3f;
}

.offer-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.offer-cta-text {
  font-size: .95rem;
  color: #555;
}

/* -----------------------------------------------------
   INSPIRACJE – STARE OBRAZKI (jeśli jeszcze używasz)
------------------------------------------------------ */

.inspo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.inspo-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 22px;
}

/* -----------------------------------------------------
   INSPIRACJE – EMBEDY INSTAGRAMA
------------------------------------------------------ */

.inspo-instagram {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 40px;
  justify-content: center;
}

.inspo-embed {
  box-sizing: border-box;
  flex: 0 0 25%;   /* 4 kolumny na desktopie */
  max-width: 25%;
  display: flex;
  justify-content: center;
}

.inspo-embed .instagram-media {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.inspo-subtitle {
  margin: 4px 0 12px;
  color: #6a5b46;
  font-size: 0.95rem;
}

/* -----------------------------------------------------
   CO MOGĘ DLA CIEBIE ZROBIĆ
------------------------------------------------------ */

.section-services-map {
  background: #F8F3EB;
  padding: 60px 0;
}

.services-map-grid {
  display: grid;
  grid-template-columns: 1.1fr 2.4fr;
  gap: 40px;
  align-items: center;
}

/* tekst */
.services-map-copy {
  max-width: 360px;
}

/* obraz + hotspoty */
.services-map-image-wrapper {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,0.2);
}

.services-map-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* hotspoty */
.hotspot-tag {
  position: absolute;
  display: inline-flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  color: #222;
  font-size: .82rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hotspot-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

.hotspot-tooltip {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translate(-50%, 100%) translateY(6px);
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: .75rem;
  line-height: 1.2;
  white-space: pre; /* respektuje łamania linii bez wymuszania zawijania */
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.hotspot-tag:hover .hotspot-tooltip {
  opacity: 1;
  transform: translate(-50%, 100%) translateY(0);
}

/* pozycje hotspotów */
.services-hotspot-kitchen   { top: 28%; left: 15%; }
.services-hotspot-pantry    { top: 52%; left: 40%; }
.services-hotspot-bathroom  { top: 64%; left: 70%; }

/* -----------------------------------------------------
   FORMULARZ
------------------------------------------------------ */

.section--alt {
  background: linear-gradient(180deg, #f9f3e9 0%, #fff 38%, #fff 100%);
}

.contact-lead {
  color: #6a5b46;
  margin: 6px 0 16px;
}

.contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.04);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  color: #514a3f;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fdf9f3;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #c7a75a;
  box-shadow: 0 0 0 3px rgba(199,167,90,0.18);
  background: #fff;
}

.contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.contact-note {
  color: #6a5b46;
  font-size: 0.95rem;
}

.contact-note a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------
   RWD — TABLET / MOBILE
------------------------------------------------------ */

@media (max-width: 1024px) {
  /* Instagram – 2 kolumny */
  .inspo-embed {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 900px) {
  .services-map-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {

  /* header w kolumnie */
  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 8px;
  }

  .logo {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
  }

  .inspo-instagram {
    padding: 0 14px;
    gap: 16px;
  }

  .logo-name {
    font-size: 1.2rem;
    letter-spacing: 0.20em;
  }

  /* NUMER – wyeksponowany na mobile */
  .logo-phone {
    margin-top: 4px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #ffd84e;
    color: #111;
    font-size: 1rem;
    letter-spacing: 0.14em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 320px;
    text-decoration: none;
  }

  .logo-phone-icon {
    font-size: 1.1rem;
  }

  /* menu pod spodem, równe przyciski */
  .main-nav {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 6px;
    flex-wrap: nowrap;
  }

  .main-nav a {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 0.8rem;
    padding: 8px 0 4px;
  }

  /* Instagram – 1 kolumna na bardzo wąskich */
  .inspo-embed {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 600px) {
  .inspo-embed {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .inspo-grid {
    grid-template-columns: 1fr;
  }
}
/* -----------------------------------------------------
   MOBILE – wygląd headera po scrollu
------------------------------------------------------ */

@media (max-width: 768px) {

  /* duży, startowy układ (jak masz teraz) */
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
  }

  .logo {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .main-nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.07);
    padding-top: 6px;
  }

  /* --- PO SCROLLU: header zwinięty --- */
  .site-header.scrolled .navbar {
    flex-direction: row;          /* logo + telefon w jednej linii */
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
  }

  .site-header.scrolled .logo {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .site-header.scrolled .logo-phone {
    margin-top: 0;
    width: auto;
    max-width: none;
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  .site-header.scrolled .main-nav {
    display: none;                /* menu znika w trybie zwiniętym */
  }

  .site-header.scrolled {
    background: rgba(250,247,243,0.98);
    border-bottom: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  }
}
/* -----------------------------------------------------
   MOBILE – korekta wyrównania po scrollu
------------------------------------------------------ */

@media (max-width: 768px) {

  /* nagłówek po scrollu: logo po lewej, numer po prawej */
  .site-header.scrolled .navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;   /* <-- klucz */
    align-items: center;
    width: 100%;
    padding: 6px 14px;
  }

  .site-header.scrolled .logo {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;      /* logo po lewej */
    gap: 6px;
  }

  /* numer telefonu po prawej */
  .site-header.scrolled .logo-phone {
    margin-left: auto;                /* <-- przesuwa numer maksymalnie w prawo */
    padding: 6px 14px;
    font-size: 0.9rem;
  }

  /* menu ukryte w trybie zwiniętym */
  .site-header.scrolled .main-nav {
    display: none;
  }
}
/* -----------------------------------------------------
   INSTAGRAM – poprawne RWD (nadpisuje wszystkie poprzednie)
------------------------------------------------------ */

/* Desktop — 4 w rzędzie */
.inspo-instagram {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

.inspo-embed {
  flex: 0 0 25%;
  max-width: 25%;
  display: flex;
  justify-content: center;
}

/* Tablet — 2 w rzędzie */
@media (max-width: 1024px) {
  .inspo-embed {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* TELEFON — 1 w rzędzie, wyśrodkowany */
@media (max-width: 600px) {
  .inspo-instagram {
    justify-content: center !important;
  }

  .inspo-embed {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    display: flex;
    justify-content: center;
  }

  .inspo-embed .instagram-media {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
