:root {
  --color-bg: #F6F5F2;
  /* From BAZA_Nail_Studio_tresci_i_wytyczne.md */
  --color-text: #1A1A1A;
  --color-accent: #E5B5AA;
  --color-accent-text: #7A4C42;
  /* Przyciemniony wariant dla perfekcyjnego kontrastu WCAG 4.5:1 na jasnym tle */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--color-accent);
  color: #111;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 76, 66, 0.3); /* Subtelny ring w kolorze var(--color-accent-text) */
}

/* Decorative images should not be selectable */
img[alt=""],
.center-logo,
.header-logo,
.footer-ornament,
.service-ornament {
  user-select: none;
  -webkit-user-drag: none;
}


.hero-image-left,
.hero-image-right {
  height: 100dvh;
  width: 35vw;
  /* Adjust width to match the layout visually */
  position: relative;
}

.hero-image-left {
  -webkit-mask-image: linear-gradient(to right, black 50%, transparent 100%);
  mask-image: linear-gradient(to right, black 50%, transparent 100%);
}

.hero-image-right {
  -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
  mask-image: linear-gradient(to left, black 50%, transparent 100%);
}

.hero-image-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  /* Obrócenie (odbicie lustrzane) lewego zdjęcia */
}

.hero-image-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

.hero-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.center-logo {
  max-width: 550px;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  margin-bottom: 3.5rem;
}

.btn-book {
  background-color: var(--color-accent);
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 1.25rem 3.5rem;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  margin-bottom: 4rem;
  display: inline-block;
  white-space: nowrap;
}

.btn-book:hover {
  opacity: 0.95;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.btn-book:active {
  transform: translateY(-1px) scale(0.98);
}

.link-services {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.link-services:hover {
  opacity: 0.7;
}

.chevron-down {
  animation: smoothFloat 2.5s ease-in-out infinite;
}

@keyframes smoothFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* =========================================================================
   PARALLAX INTRO & MAIN SITE STYLES
   ========================================================================= */

/* Intro Parallax Wrapper */
.intro-section {
  position: relative;
  width: 100%;
  height: 100dvh;
  z-index: 1;
  overflow: hidden;
  /* Aby poruszające się elementy nie wystawały */
  background-color: var(--color-bg);
}

.hero-split {
  display: flex;
  height: 100dvh;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 2;
  background-color: #FFFFFF;
}

.bg-cream {
  position: relative;
  background-color: rgba(244, 233, 229, 0.3);
  box-shadow: 0 0 0 100vmax rgba(244, 233, 229, 0.3);
  clip-path: inset(0 -100vmax);
}

/* HEADER / MENU */
.site-header {
  padding: 0.25rem 4rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.header-logo {
  max-height: 65px;
  width: auto;
  mix-blend-mode: multiply;
  margin-left: 3rem;
  transform: scale(1.8);
  transform-origin: left center;
  justify-self: start;
}

.main-nav {
  display: flex;
  gap: 3rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 400;
  font-size: 0.95rem;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.main-nav a:hover {
  opacity: 0.6;
}

.btn-menu {
  background-color: transparent;
  border: 1px solid var(--color-text);
  padding: 0.75rem 2rem;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  transition: all 0.3s;
}

.btn-menu:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

/* GŁÓWNA SEKCJA HERO */
.main-hero {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  gap: 4rem;
  align-items: center;
}

.main-hero-text {
  flex: 1;
}

.tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #666;
  margin-bottom: 1.5rem;
}

.main-hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 2rem;
  font-weight: 500;
}

.main-hero-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 3.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.btn-outline {
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 0.2rem;
  font-weight: 500;
  transition: opacity 0.3s;
}

.btn-outline:hover {
  opacity: 0.6;
}

.main-hero-btn {
  margin-bottom: 0;
  /* Resetujemy margines z guzika intro */
}

.main-hero-image {
  flex: 1;
  position: relative;
  margin-left: -3rem;
  /* Przesunięcie zdjęcia w lewo, bliżej tekstu */
}

.main-hero-image img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  object-position: right center;
  /* Przesuwa zawartość zdjęcia w lewo, wyśrodkowując dłonie */
  display: block;
  border-radius: 0 8px 8px 0;
  /* Zaokrąglamy z prawej, lewa się wtapia */
  /* Efekt płynnego wtopienia po lewej stronie, ukrywający twardą krawędź */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
  mask-image: linear-gradient(to right, transparent 0%, black 20%);
}

@media (max-width: 1024px) {
  .main-hero-image img {
    /* Przesunięcie zawartości zdjęcia w prawo na tablecie, aby odkryć lewą dłoń i paznokcie */
    object-position: 20% center;
  }
}

/* Responsiveness for smaller screens if needed, though focus is 1:1 desktop now */
/* Removed old media query */


/* =========================================================================
   ABOUT SECTION (O SALONIE)
   ========================================================================= */

.about-section {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 3rem;
  gap: 8rem;
  align-items: center;
}

.about-image {
  flex: 1;
  position: relative;
  padding-left: 30px;
  padding-bottom: 30px;
}

.about-image img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: -30px 30px 0 var(--color-accent);
  /* Pudrowy róż z tyłu jako luksusowy akcent graficzny */
}

.about-text {
  flex: 1;
}

.about-text .about-subtitle {
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 2.5rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

.about-text .highlight-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--color-accent-text);
  font-style: italic;
  margin-top: 3.5rem;
  text-align: center;
}

/* =========================================================================
   SERVICES SECTION (OFERTA)
   ========================================================================= */

.services-section {
  padding: 5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.services-header {
  margin-bottom: 6rem;
}



.services-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.services-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #666666;
  text-transform: uppercase;
}

.tagline-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.tagline-link:hover {
  color: var(--color-accent-text);
}

.services-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.services-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
  /* Na wierzchu */
}

.services-left {
  align-items: flex-end;
  margin-right: -40px;
  /* Lekkie nachodzenie na zdjęcie */
}

.services-right {
  align-items: flex-start;
  margin-left: -40px;
  /* Lekkie nachodzenie na zdjęcie */
}

.service-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.service-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.service-line {
  width: 100%;
  height: 1px;
  background-color: #c9b19e;
  margin-bottom: 0.6rem;
  transform: scaleX(0.7);
  opacity: 0.5;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background-color 0.4s ease;
}

.service-item:hover .service-line {
  transform: scaleX(1);
  opacity: 1;
  background-color: var(--color-accent-text);
}

.service-item p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #666;
  white-space: nowrap;
  /* Wymusza dokładne łamanie linii takie jak <br> w HTML */
}

.service-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent-text);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.services-center-img {
  flex: 0 0 650px;
  /* Odpowiednia wielkość samych dłoni */
  position: relative;
  z-index: 1;
  /* Pod tekstem */
}

.services-center-img img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  /* Płynne, owalne rozmycie krawędzi, tak aby obraz miękko przenikał się z tłem strony */
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

/* =========================================================================
   GALLERY SECTION (GALERIA)
   ========================================================================= */

.gallery-section {
  padding: 5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.gallery-header {
  margin-bottom: 5rem;
}

.gallery-grid {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.gallery-large {
  flex: 1.2;
}

.gallery-small {
  flex: 1;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  text-align: left;
  height: 100%;
  /* Aby mógł zająć pełną wysokość kolumny */
}

.gallery-item img {
  width: 100%;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: zoom-in;
}

.gallery-item:hover img {
  filter: brightness(1.05) contrast(1.05);
}

.gallery-large .gallery-item img {
  flex-grow: 1;
  /* Pozwala zdjęciu rosnąć i wypełniać pionową lukę */
  min-height: 0;
  object-fit: cover;
}

.gallery-small .gallery-item img {
  height: auto;
  aspect-ratio: 3 / 2.2;
  /* Poziome proporcje dla mniejszych zdjęć */
}

.gallery-caption h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-caption p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666;
}

/* =========================================================================
   INSTAGRAM GALLERY (SECTION 6)
   ========================================================================= */

.bottom-gallery-section {
  padding: 5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.bottom-gallery-header {
  margin-bottom: 4rem;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.insta-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  display: block;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.insta-item:hover img {
  transform: scale(1.08);
}

.insta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: #fff;
}

.insta-item:hover .insta-overlay {
  opacity: 1;
}

.bottom-gallery-action {
  margin-top: 4rem;
}

.btn-insta-follow {
  padding: 1rem 3rem;
  letter-spacing: 2px;
}

/* Removed old media query */


/* Removed old media query */


/* =========================================================================
   CONTACT SECTION (SECTION 7)
   ========================================================================= */

.contact-section {
  padding: 5rem 3rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-grid {
  display: flex;
  gap: 4rem;
  margin-top: 4rem;
  margin-bottom: 6rem;
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding-right: 4rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent-text);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.contact-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.contact-text strong {
  font-weight: 600;
  color: var(--color-text);
}

.contact-map {
  flex: 1.5;
  border-radius: 12px;
  overflow: hidden;
  background-color: #e5e5e5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-height: 350px;
  position: relative;
}

.map-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: auto;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.contact-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(100%) contrast(1.15) opacity(0.85) sepia(10%);
  transition: filter 0.5s ease;
}

.contact-map iframe:hover {
  filter: grayscale(0%) contrast(1) opacity(1) sepia(0%);
}

.contact-panorama {
  width: 100%;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
}

.contact-panorama img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.site-footer {
  background-color: var(--color-bg);
  padding: 1.2rem 4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto 0.5rem;
}

.footer-logo img {
  max-width: 180px;
  mix-blend-mode: multiply;
}

.footer-nav {
  display: flex;
  gap: 3rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 400;
  font-size: 0.9rem;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.footer-nav a:hover {
  opacity: 0.6;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--color-text);
  transition: opacity 0.3s;
}

.footer-social a:hover {
  opacity: 0.6;
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 0.5rem;
}

.footer-copy {
  font-size: 0.95rem;
  color: #666;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.copy-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: translateY(3px);
  /* Optyczne obniżenie tekstu, aby jego środek pokrywał się ze środkiem grafiki */
}

.footer-ornament {
  width: 65px;
  height: 65px;
  object-fit: cover;
  opacity: 0.8;
}

.footer-ornament.left {
  object-position: left center;
}

.footer-ornament.right {
  object-position: right center;
}

.footer-credit {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  text-align: center;
}

.footer-credit a {
  color: inherit;
}

.credit-divider {
  opacity: 0.6;
}

@media (max-width: 600px) {
  .footer-credit {
    flex-direction: column;
    gap: 0.3rem;
  }

  .credit-divider {
    display: none;
  }
}

/* Removed old media query */


/* =========================================================================
   POPUP
   ========================================================================= */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background: #fff;
  padding: 3rem 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #a4a4a4;
  transition: color 0.3s;
}

.popup-close:hover {
  color: var(--color-text);
}

.popup-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.popup-content p.popup-subtitle {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
  white-space: nowrap;
}

@media (max-width: 450px) {
  .popup-content p.popup-subtitle {
    font-size: 0.85rem;
  }
}

.popup-contact-info {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  text-align: left;
}

.popup-contact-info p {
  margin: 0.5rem 0;
  color: var(--color-text);
}

.popup-contact-info a {
  color: var(--color-accent-text);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.popup-contact-info a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* =========================================================================
   LIGHTBOX
   ========================================================================= */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  font-size: 3.5rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 10px;
}

.lightbox-close:hover {
  opacity: 1;
  transform: rotate(90deg) scale(1.1);
}

/* =========================================================================
   DELIGHT: 3D POPUP DEPTH EFFECT & MICRO-INTERACTIONS
   ========================================================================= */

body {
  transition: background-color 0.4s ease;
}

.main-content {
  background-color: var(--color-bg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.5s ease;
  transform-origin: center top;
}

body.popup-open {
  background-color: #111;
  /* Przyciemnienie tła poza kartą */
}

body.popup-open .main-content {
  transform: scale(0.97) translateY(10px);
  filter: brightness(0.65);
  border-radius: 16px;
  pointer-events: none;
  /* Blokuje interakcje w tle podczas otwartego popupu */
}



/* =========================================================================
   ADAPT: COMPREHENSIVE MOBILE OPTIMIZATION
   ========================================================================= */

@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

@media (hover: none) {
  .service-line {
    transform: scaleX(1) !important;
    opacity: 0.8 !important;
  }

  .btn-book:active {
    transform: translateY(-2px);
    opacity: 0.95;
  }

  .contact-item {
    padding: 0.5rem 0;
  }
}

@media (max-width: 900px) {

  /* Prevent any horizontal scrolling */
  body {
    overflow-x: hidden;
  }

  .main-content {
    width: 100%;
  }

  /* 1. Intro Parallax Fix */
  .hero-image-left,
  .hero-image-right {
    height: 25dvh !important;
    width: 100% !important;
    flex: none;
  }

  .hero-center {
    height: 50dvh !important;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .center-logo {
    max-width: 220px !important;
    margin-bottom: 1rem !important;
  }

  .hero-center-content {
    padding: 0 1.25rem;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 2. Header and Navigation */
  .site-header {
    padding: 0 !important;
  }

  .header-container {
    display: flex !important;
    padding: 0.75rem 1.25rem !important;
    justify-content: space-between !important;
  }

  .header-logo {
    transform: scale(1.4) !important;
    margin-left: 1rem !important;
    max-height: 65px !important;
    max-width: none !important;
    width: auto !important;
    transform-origin: left center;
  }

  .main-nav {
    display: none !important;
  }

  .btn-menu {
    display: block !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
    margin: 0;
  }

  /* 3. Main Hero Layout */
  .main-hero {
    flex-direction: column !important;
    padding: 2rem 1.25rem 2.5rem !important;
    gap: 1.5rem !important;
    text-align: center;
  }

  .main-hero-text h1 {
    font-size: 2.2rem !important;
    line-height: 1.15 !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.02em !important;
  }

  .main-hero-text p {
    font-size: 1rem !important;
    margin-bottom: 1.25rem !important;
  }

  .main-hero-image {
    width: 100% !important;
    margin: 0 auto !important;
    max-width: 400px;
  }

  .main-hero-image img {
    height: 350px !important;
    width: 100% !important;
    object-fit: cover;
    object-position: 110% center !important;
    /* Pociągamy zawartość zdjęcia w lewo, aby dłonie (będące po prawej) weszły idealnie w środek maski */
    border-radius: 0 !important;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 65%) !important;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 65%) !important;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }

  .hero-buttons>a {
    width: 100% !important;
    max-width: 320px;
  }

  /* 4. Services Grid Fix */
  .services-section {
    padding: 2.5rem 1.25rem !important;
  }

  .services-layout {
    flex-direction: column !important;
    gap: 2rem !important;
    align-items: center;
  }

  .services-col {
    gap: 1.5rem !important;
    width: 100%;
  }

  .services-left {
    margin-right: 0 !important;
    align-items: center !important;
  }

  .services-right {
    margin-left: 0 !important;
    align-items: center !important;
  }

  .services-center-img {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .services-center-img img {
    height: 350px !important;
    width: 100% !important;
    object-fit: cover;
    border-radius: 4px;
  }

  /* 5. About Section */
  .about-section {
    flex-direction: column-reverse !important;
    padding: 2.5rem 1.25rem !important;
    gap: 1.5rem !important;
    text-align: center;
  }

  .about-image {
    padding: 0 !important;
    width: 100% !important;
  }

  .about-image img {
    height: 350px !important;
    width: 100% !important;
    object-fit: cover;
  }

  .about-image::before {
    display: none !important;
  }

  .about-text h2 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
  }

  .about-text p {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }

  /* 6. Footer and Contact */
  .contact-section {
    padding: 2.5rem 1.25rem 1.5rem !important;
  }

  .contact-grid {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .contact-info {
    padding: 0 !important;
    border: none !important;
    text-align: center;
    align-items: center;
  }

  .contact-item {
    justify-content: center;
  }

  .contact-map {
    width: 100% !important;
    min-height: 300px !important;
  }

  .footer-container {
    padding: 2rem 1.25rem 1rem !important;
    text-align: center;
  }

  .footer-top {
    flex-direction: column !important;
    gap: 2rem !important;
  }
}

@media (max-width: 480px) {
  .insta-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Don't do 1 column, nails look better in 2 */
}

@media (max-width: 900px) {

  /* Fix restored from earlier removal */
  .hero-split {
    flex-direction: column !important;
  }

  /* Fix gallery columns squeezing horizontally */
  .gallery-grid {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .gallery-large,
  .gallery-small {
    flex: none !important;
    width: 100% !important;
  }

  /* Fix Instagram grid for tablets */
  .insta-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .insta-item:nth-child(n+7) {
    display: none !important;
    /* show only 6 on tablet */
  }

  /* Footer copy text wrap */
  .footer-copy {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {

  /* Instagram grid for phones */
  .insta-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  .insta-item:nth-child(n+5) {
    display: none !important;
    /* show only 4 on small phones */
  }
}

@media (max-width: 900px) {

  /* Fix vertical blending for parallax images on mobile */
  .hero-image-left img {
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 60%, transparent 100%) !important;
    mask-image: linear-gradient(180deg, black 0%, black 60%, transparent 100%) !important;
    /* Przesuwamy zdjęcie w górę/w dół: 100% dociska dół zdjęcia do dołu pojemnika */
    object-position: center 60%;
  }

  .hero-image-right img {
    -webkit-mask-image: linear-gradient(0deg, black 0%, black 60%, transparent 100%) !important;
    mask-image: linear-gradient(0deg, black 0%, black 60%, transparent 100%) !important;
    object-position: center 60%;
  }
}



/* =========================================================================
   ADAPT: MOBILE HAMBURGER MENU
   ========================================================================= */

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
  /* Powyzej nawigacji */
}

.hamburger-box {
  width: 24px;
  height: 20px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: '';
  top: -8px;
  left: 0;
}

.hamburger-inner::after {
  content: '';
  bottom: -8px;
  left: 0;
}

.hamburger.is-active .hamburger-inner {
  background-color: transparent;
}

.hamburger.is-active .hamburger-inner::before {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .hamburger-inner::after {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .main-nav {
    display: none;
    /* Hide default on mobile, handled by earlier block */
    position: absolute;
    top: 100%;
    /* Below header */
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 999;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .main-nav.is-active {
    display: flex !important;
  }
}

/* =========================================================================
   TYPESET: RESPONSIVE TYPOGRAPHY (Mobile & Tablet)
   ========================================================================= */

/* Lepsze �amanie wierszy w nag��wkach (zapobiega wdowom na w�skich ekranach) */
h1,
h2,
h3,
.services-title,
.about-text h2 {
  text-wrap: balance;
}

@media (max-width: 1024px) {

  /* Tablet Typography */
  .main-hero-text h1 {
    font-size: 3rem !important;
    line-height: 1.15 !important;
  }

  .services-title {
    font-size: 2.8rem !important;
    line-height: 1.15 !important;
  }

  .about-text h2 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 900px) {

  /* Mobile Typography */
  .main-hero-text h1 {
    font-size: 2.2rem !important;
    letter-spacing: -0.02em !important;
  }

  .services-title {
    font-size: 2rem !important;
    line-height: 1.15 !important;
    margin-bottom: 1rem !important;
  }

  .services-tagline {
    font-size: 0.75rem !important;
    letter-spacing: 1px !important;
    /* Mniejszy tracking na ma�ych ekranach */
  }

  .about-text h2 {
    font-size: 2rem !important;
  }

  .service-item h3 {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }

  .service-item p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .contact-info p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  .footer-copy {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }
}










/* =========================================================================
   SCROLL DISSOLVE EFFECT (Gradient above main-content)
   ========================================================================= */
.main-content::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
  pointer-events: none;
  z-index: 100;
}


/* =========================================================================
   ADAPT: TABLET WHITESPACE OPTIMIZATION (901px - 1024px)
   ========================================================================= */
@media (max-width: 1024px) {

  /* Zmniejszamy paddingi sekcji na poziomie tabletu */
  .services-section {
    padding: 4rem 2rem !important;
  }

  .about-section {
    padding: 4rem 2rem !important;
    gap: 3rem !important;
  }

  .contact-section {
    padding: 4rem 2rem 2rem !important;
  }

  .footer-container {
    padding: 4rem 2rem 1rem !important;
  }

  /* Ciasniejsze gapy, bo iPad w poziomie ma malo szerokosci dla 2 kolumn */
  .services-layout {
    gap: 2.5rem !important;
  }

  .services-col {
    gap: 2rem !important;
  }

  .contact-grid {
    gap: 3rem !important;
  }

  /* Hero */
  .hero-center {
    padding: 2rem !important;
  }

  .main-hero {
    padding: 3rem 2rem 4rem !important;
  }
}


.contact-item {
  align-items: flex-start;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

.contact-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

.contact-text strong {
  font-size: 1.15rem;
  color: #111;
  letter-spacing: -0.01em;
}

.contact-icon {
  margin-top: 0.3rem;
  opacity: 0.8;
  color: #111;
}

@media (max-width: 900px) {
  .contact-info {
    align-items: flex-start !important;
    /* Na mobile wyrównaj do lewej dla lepszej czytelności, zamiast center */
    text-align: left !important;
  }

  .contact-item {
    justify-content: flex-start !important;
  }
}


/* =========================================================================
   ADAPT: CONTACT SECTION HIERARCHY
   ========================================================================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
}

.contact-text {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #555;
}

/* Pogrubienie w tekście */
.contact-text::first-line {
  font-weight: 600;
  color: #111;
}

.contact-text strong {
  font-weight: 600;
  color: #111;
  font-size: 1.1rem;
}

.contact-icon {
  margin-top: 0.15rem;
  opacity: 0.8;
  color: #111;
}

@media (max-width: 900px) {
  .contact-info {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .contact-item {
    justify-content: flex-start !important;
  }
}

@media (max-width: 600px) {

  .services-section,
  .gallery-section,
  .about-section,
  .contact-section,
  .bottom-gallery-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.contact-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.contact-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* =========================================================================
   AESTHETICS: ORNAMENTS (Edge-aligned, no overlap)
   ========================================================================= */
.services-section,
.about-section,
.main-hero {
  position: relative;
  overflow: hidden;
}

/* Base style for section pseudo-elements */
.main-hero::before,
.main-hero::after,
.services-section::before,
.services-section::after,
.about-section::before,
.about-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 400px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  mix-blend-mode: multiply;
  background-repeat: no-repeat;
  background-size: contain;
  animation: ornamentBreathe 8s ease-in-out infinite alternate;
}

@keyframes ornamentBreathe {
  0% {
    opacity: 0.12;
    transform: translateY(0);
  }

  100% {
    opacity: 0.18;
    transform: translateY(-10px);
  }
}

.main-hero::before,
.services-section::before,
.about-section::before {
  left: 0;
  background-position: left center;
}

.main-hero::after,
.services-section::after,
.about-section::after {
  right: 0;
  background-position: right center;
}

/* Specific Ornaments per Section */
.main-hero::after {
  background-image: url('../assets/images/ornaments/botanical-branch-vertical.webp');
  background-size: 80% auto;
  background-position: right 10%;
  transform: scaleX(-1);
}

.services-section::before {
  background-image: url('../assets/images/ornaments/botanical-branch-vertical.webp');
  background-size: 80% auto;
  background-position: left 20%;
}

.about-section::after {
  background-image: url('../assets/images/ornaments/botanical-branch-tall.webp');
  background-size: auto 90%;
  background-position: right bottom;
}



/* Ensure content sits above the ornaments */
.main-hero-text,
.main-hero-image,
.services-layout,
.services-header,
.gallery-grid,
.gallery-header,
.about-text,
.about-image,
.contact-grid,
.contact-panorama {
  position: relative;
  z-index: 2;
}

/* Mobile adjustments */
@media (max-width: 900px) {

  .main-hero::before,
  .main-hero::after,
  .services-section::before,
  .services-section::after,
  .about-section::before,
  .about-section::after {
    width: 150px;
    opacity: 0.08;
  }
}

/* =========================================================================
   AESTHETICS: BOTTOM GALLERY ORNAMENTS
   ========================================================================= */
.bottom-gallery-section {
  position: relative;
  overflow: hidden;
}

.bottom-gallery-header,
.insta-grid,
.bottom-gallery-action {
  position: relative;
  z-index: 2;
}
}

/* =========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================================
   FOOTER STYLES (CENTERING)
   ========================================================================= */
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  width: 100%;
  white-space: nowrap;
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.05rem;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 0.6;
}

@media (min-width: 600px) {
  .footer-nav {
    gap: 3rem;
  }
}

/* =========================================================================
   COOKIE BANNER
   ========================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
  padding: 1rem 1.25rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.cookie-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-content a {
  color: var(--color-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-btn {
  background-color: var(--color-accent-text);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.cookie-btn:hover {
  background-color: #5c3931;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}