@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,700;1,700&family=Lato:wght@400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

/* =========================
   ZMIENNE
========================= */
:root{
  --nav-bg: rgba(255,255,255,.78);
  --nav-border: rgba(0,0,0,.12);

  --text: #222;
  --muted: #7a7a7a;
  --separator: #b99f44;

  --max: 1420px;

  --nav-h: 110px;

  --section-y: clamp(48px, 6vw, 90px);
  --gap-1: clamp(14px, 2vw, 24px);
  --gap-2: clamp(18px, 3vw, 36px);
}

/* =========================
   GLOBAL
========================= */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

h1,h2,h3,h4,p,ul,ol{ margin: 0; padding: 0; }
ul,ol{ list-style: none; }
a{ color: inherit; }
img{ max-width: 100%; display: block; }

.zawartosc{
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
}

section{
  padding: var(--section-y) 0;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.separator{
  width: 100%;
  height: 3px;
  background-color: var(--separator);
}

/* =========================
   NAWIGACJA
========================= */
nav{
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  padding: 30px;
  display: flex;
  justify-content: center;
}

.navWrap{
  width: min(var(--max), 100% - 2rem);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.menu{
  display: flex;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  flex-wrap: nowrap;
}

.menu li{ flex: 0 0 auto; }

.brand,
.menu a{
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  padding: 10px 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: 200ms;
  color: #222;
}

.brand{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.brand .flag{
  width: 22px;
  height: auto;
  display: block;
}

.menu a:hover,
.brand:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

/* =========================
   SEKCJA 1 — HERO
========================= */
.hero.galleryHero{
  position: relative;
  width: 100%;
  min-height: 81vh;
  overflow: hidden;
  background: #000;
  padding: 0;
  padding-top: var(--nav-h);
}

.hero.galleryHero .bg.heroBg{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url(img/hero.jpg);
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.hero.galleryHero::before{
  content:"";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 10;
}

.hero.galleryHero .galleryOverlay{
  position: relative;
  z-index: 11;

  min-height: calc(81vh - var(--nav-h));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;

  padding: 0 clamp(16px, 8vw, 140px) clamp(60px, 12vh, 140px);
}

.heroText{
  max-width: min(720px, 100% - 2rem);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #fff;
  text-align: left;
  align-items: flex-start;
}

.heroKicker{
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: 0.03em;
}

.hero h1{
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.heroLead{
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

/* =========================
   SEKCJA 2 — POZNAJ
========================= */
.sekcja2{ background:#fff; }

.sekcja2 .s2Title{
  margin: 0 0 var(--gap-2);
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 70px);
  letter-spacing: 0.03em;
  color: #6a6a6a;
  text-align: center;
}

.sekcja2 .s2Grid{
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  column-gap: clamp(16px, 2vw, 28px);
  row-gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.sekcja2 .s2Img{
  border-radius: 18px;
  overflow: hidden;
  background: #eee;
}

.sekcja2 .s2Img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sekcja2 .s2Left,
.sekcja2 .s2Right{
  aspect-ratio: 3 / 4.2;
  opacity: .35;
}

.sekcja2 .s2Center{
  aspect-ratio: 659 / 572;
  opacity: .95;
  position: relative;
  overflow: visible;
}

.sekcja2 .s2Left{ align-self: end; }

.sekcja2 .s2Opis{
  grid-column: 2 / 3;
  margin: 0;
  max-width: 60ch;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-align: left;
}

.sekcja2 .s2Center img.stamp{
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translate(50%, 50%);
  width: 600px;
  height: auto;
  opacity: .95;
  pointer-events: none;
  z-index: 5;
}

/* =========================
   SEKCJA 3 — CYTAT
========================= */
.quoteSection{ background:#fff; }

.quote{
  position: relative;
  padding-block: clamp(80px, 10vw, 160px);
  text-align: center;
}

.quote::before{
  content: "Mauritius";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(90px, 18vw, 280px);
  line-height: 1;
  color: #EBEBD9;
  pointer-events: none;
  z-index: 1;
  transform: translateY(8px);
}

.quoteText{
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(26px, 4.2vw, 60px);
  line-height: 1.25;
  color: #5A5A55;
}

/* =========================
   SEKCJA 4 — CIEKAWOSTKI
========================= */
.factsSection{
  background:#fff;
  padding: clamp(36px, 4vw, 60px) 0;
}

.facts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.factsMedia{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.factsImgTop,
.factsImgBig{
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  height: 360px;
}

.factsImgBig{ height: 420px; }

.factsContent{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.factsKicker{
  margin: 0 0 6px;
  font-family:'Playfair Display', serif;
  font-size: 18px;
  color: #5A5A55;
}

.factsHeadline{
  margin: 0 0 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: 0.05em;
  color: #5A5A55;
}

.factsLead{
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #5A5A55;
  max-width: 46ch;
}

.factsTitle{
  margin: 0 0 18px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.05em;
  color: #5A5A55;
}

.factsList{
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fact{
  border-top: 1px solid rgba(0,0,0,.35);
  padding-top: 14px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.factIcon{
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: .9;
}

.factTitle{
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #5A5A55;
}

.factText{
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #5A5A55;
  max-width: 48ch;
}

/* =========================
   SEKCJA 5 — GALERIA (FADE)
========================= */
.galleryHero:not(.hero){
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
  padding: 0;
}

.galleryHero:not(.hero) .bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 70%;
  opacity: 0;
  will-change: opacity;
  z-index: 1;
}

.bg1{ background-image: url("img/galeria-1.jpg"); animation: bg1 15s infinite; }
.bg2{ background-image: url("img/galeria-2.jpg"); animation: bg2 15s infinite; }
.bg3{ background-image: url("img/galeria-3.jpg"); animation: bg3 15s infinite; }

@keyframes bg1{
  0%{opacity:1;} 30%{opacity:1;} 36%{opacity:0;}
  96%{opacity:0;} 100%{opacity:1;}
}
@keyframes bg2{
  0%{opacity:0;} 30%{opacity:0;}
  36%{opacity:1;} 63%{opacity:1;} 69%{opacity:0;}
  100%{opacity:0;}
}
@keyframes bg3{
  0%{opacity:0;} 63%{opacity:0;}
  69%{opacity:1;} 96%{opacity:1;} 100%{opacity:0;}
}

.galleryHero::before{
  content:"";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 10;
}

.galleryOverlay{
  position: relative;
  z-index: 11;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.galleryTitle{
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(48px, 9vw, 120px);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  mix-blend-mode: overlay;
  text-align: center;
}

/* =========================
   SEKCJA 6 — NEWSLETTER
========================= */
.newsletterBar{
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #B8BA7B;
  padding: clamp(56px, 7vw, 90px) 0;
}

.newsletterBar::before,
.newsletterBar::after{
  content: "";
  position: absolute;
  bottom: -15px;
  width: clamp(180px, 22vw, 320px);
  height: clamp(180px, 22vw, 320px);
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.newsletterBar::before{
  left: 0;
  background-image: url("img/palma-left.png");
}

.newsletterBar::after{
  right: 0;
  background-image: url("img/palma-right.png");
}

.newsletterInner{
  position: relative;
  z-index: 2;
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
  text-align: center;
}

.nlTitle{
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
}

.nlSub{
  margin: 10px 0 28px;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: rgba(35,35,35,0.55);
}

.nlForm{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nlInput{
  width: 220px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(235,235,235,0.75);
  outline: none;
  padding: 0 16px;
  font-size: 14px;
}

.nlInput:focus{
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}

.nlBtn{
  height: 34px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.25);
  background: transparent;
  color: rgba(0,0,0,0.55);
  font-size: 14px;
  cursor: pointer;
  transition: 200ms;
}

.nlBtn:hover{ background: rgba(255,255,255,0.15); }

.nlSuccess{
  margin-top: 18px;
  font-size: 16px;
  color: rgba(0,0,0,0.65);
}

/* =========================
   STOPKA
========================= */
.footer{
  background: #fff;
  padding: 80px 0 40px;
  border-top: 1px solid #eee;
}

.footerInner{
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 60px);
}

.footerCols{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}

.footerCol{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footerCol h4{
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.footerCol ul{ margin: 0; padding: 0; }
.footerCol li{ margin-bottom: 10px; }

.footerCol a{
  text-decoration: none;
  font-size: 15px;
  color: #444;
  transition: color .2s ease;
}

.footerCol a:hover{ color: #000; }

.footerSocial{ align-items: center; }
.footerSocial h4{ text-align: center; }

.footerSocial .socialIcons{
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.footerSocial img{
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform .2s ease, opacity .2s ease;
}

.footerSocial a:hover img{
  transform: scale(1.08);
  opacity: 0.85;
}

.footerCopy{
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

/* =========================
   RESPONSYWNOŚĆ
========================= */

/* NAV: jak w projekcie z zajęć – zawijanie + ewentualne ukrycie brand */
@media (max-width: 980px){
  :root{ --nav-h: 90px; }

  nav{ padding: 18px; }

  .menu{
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .brand{
    margin-left: 0;
  }
}

@media (max-width: 720px){
  :root{ --nav-h: 70px; }

  .brand{ display: none; }

  .menu{
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .brand,
  .menu a{
    font-size: 14px;
    padding: 10px 14px;
  }
}

/* HERO */
@media (max-width: 1024px){
  .hero.galleryHero .galleryOverlay{
    padding: 0 clamp(16px, 6vw, 64px) clamp(56px, 14vh, 120px);
  }
  .hero.galleryHero .bg.heroBg{
    background-position: center 55%;
  }
}

@media (max-width: 600px){
  .hero.galleryHero .galleryOverlay{
    align-items: center;
    justify-content: center;
    padding: 0 16px 32px;
  }
  .heroText{
    text-align: center;
    align-items: center;
  }
  .heroLead br{ display:none; }
  .hero.galleryHero .bg.heroBg{
    background-position: center 65%;
  }
}

/* SEKCJA 2 */
@media (max-width: 900px){
  .sekcja2 .s2Grid{ grid-template-columns: 180px minmax(0, 1fr) 180px; }
  .sekcja2 .s2Left, .sekcja2 .s2Right{ opacity: .55; }
}

@media (max-width: 520px){
  .sekcja2 .s2Grid{ grid-template-columns: 1fr; }
  .sekcja2 .s2Left, .sekcja2 .s2Right{ display: none; }
  .sekcja2 .s2Opis{ grid-column: 1 / -1; }
}

/* SEKCJA 4 */
@media (max-width: 980px){
  .facts{ grid-template-columns: 1fr; }
  .factsImgTop{ height: 300px; }
  .factsImgBig{ height: 360px; }
}

/* NEWSLETTER */
@media (max-width: 600px){
  .newsletterBar::before,
  .newsletterBar::after{
    width: 120px;
    height: 120px;
    opacity: 0.35;
  }
  .nlForm{ gap: 16px; }
}

/* STOPKA */
@media (max-width: 900px){
  .footerCols{ grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 520px){
  .footerCols{ grid-template-columns: 1fr; gap: 32px; }
}
