/* =====================================================================
   Pokoje u Ireny — irenaustka.pl
   Styl: nadmorski, ciepły, profesjonalny
   ===================================================================== */

/* ----------------------------- Zmienne ----------------------------- */
:root {
  --c-ink:        #1c2b33;
  --c-ink-soft:   #4f626b;
  --c-sea-900:    #0b3a53;
  --c-sea-700:    #115468;
  --c-sea-500:    #1f7d93;
  --c-sea-300:    #6fb6c2;
  --c-sand:       #faf6ef;
  --c-sand-2:     #f1e7d7;
  --c-cream:      #fffdf9;
  --c-coral:      #e07a52;
  --c-coral-dk:   #c8623c;
  --c-gold:       #e1a541;
  --c-line:       #e8ddcb;

  --shadow-sm: 0 2px 8px rgba(14, 46, 61, .06);
  --shadow:    0 12px 30px rgba(14, 46, 61, .10);
  --shadow-lg: 0 24px 60px rgba(14, 46, 61, .18);

  --radius:    18px;
  --radius-sm: 10px;
  --container: 1160px;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--c-ink);
  background: var(--c-sand);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--c-sea-700); text-decoration: none; }
a:hover { color: var(--c-coral-dk); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--c-sea-900);
  margin: 0 0 .5em;
}

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-sea-900);
  color: #fff;
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ----------------------------- Ikony ------------------------------- */
.ico {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ----------------------------- Przyciski --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.2em; height: 1.2em; }

.btn-primary {
  background: var(--c-coral);
  color: #fff;
  box-shadow: 0 10px 24px rgba(224, 122, 82, .35);
}
.btn-primary:hover { background: var(--c-coral-dk); color: #fff; box-shadow: 0 14px 30px rgba(200, 98, 60, .42); }

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .65);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: #fff; color: var(--c-sea-900); border-color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--c-sea-700);
  border-color: var(--c-sea-500);
}
.btn-outline:hover { background: var(--c-sea-700); color: #fff; border-color: var(--c-sea-700); }

.btn-lg { padding: 18px 34px; font-size: 1.1rem; }

/* ----------------------------- Header ------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .2px; }
.brand-sub  { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }

/* Header po przewinięciu */
.site-header.scrolled {
  background: rgba(255, 253, 249, .96);
  box-shadow: var(--shadow-sm);
  height: 66px;
  backdrop-filter: blur(8px);
}
.site-header.scrolled .brand { color: var(--c-sea-900); }
.site-header.scrolled .brand-mark { background: var(--c-sea-900); color: #fff; border-color: transparent; }
.site-header.scrolled .main-nav > ul > li > a { color: var(--c-ink); }

/* Nawigacja */
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > ul {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav > ul > li > a {
  color: #fff;
  font-weight: 700;
  font-size: .98rem;
  position: relative;
  padding: 6px 0;
}
.main-nav > ul > li > a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--c-coral);
  transition: width .25s ease;
}
.main-nav > ul > li > a:hover { color: var(--c-coral); }
.main-nav > ul > li > a:hover::after { width: 100%; }

.nav-cta { padding: 11px 18px; font-size: .95rem; }
.btn-phone { background: var(--c-sea-500); color: #fff; }
.btn-phone:hover { background: var(--c-sea-700); color: #fff; }

.nav-close { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; background: transparent;
  cursor: pointer; padding: 10px;
  z-index: 1100;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%;
  background: #fff; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.nav-toggle span + span { margin-top: 6px; }
.site-header.scrolled .nav-toggle span { background: var(--c-sea-900); }
/* hamburger -> X gdy menu otwarte */
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ----------------------------- Hero -------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
/* Animowana scena morska (hero) */
.hero-scene { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.sea-scene { width: 100%; height: 100%; display: block; }

/* fale — przewijanie poziome (parallax) */
.wave-layer { will-change: transform; }
.wave-back  { animation: waveScroll 27s linear infinite; }
.wave-mid   { animation: waveScroll 19s linear infinite; }
.wave-front { animation: waveScroll 13s linear infinite; }
.wave-fore  { animation: waveScroll 9s  linear infinite; }
@keyframes waveScroll { from { transform: translateX(0); } to { transform: translateX(-1440px); } }

/* łódka — kołysanie w rytm fal */
.boat { transform-box: fill-box; transform-origin: 50% 92%; animation: boatBob 4.6s ease-in-out infinite; will-change: transform; }
@keyframes boatBob {
  0%   { transform: translateY(2px) rotate(-3deg); }
  50%  { transform: translateY(-14px) rotate(3.2deg); }
  100% { transform: translateY(2px) rotate(-3deg); }
}

/* chmury — powolny dryf */
.cloud { will-change: transform; }
.cloud-1 { animation: drift1 64s ease-in-out infinite alternate; }
.cloud-2 { animation: drift2 82s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translateX(-30px); } to { transform: translateX(90px); } }
@keyframes drift2 { from { transform: translateX(50px); } to { transform: translateX(-70px); } }

/* słońce — delikatne pulsowanie poświaty */
.sun-glow { transform-box: fill-box; transform-origin: center; animation: sunPulse 7s ease-in-out infinite; }
@keyframes sunPulse { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }

/* mewy — lot w poprzek + machanie skrzydłami */
.gull-shape { fill: #38505a; opacity: .82; }
.gull-fly { will-change: transform; }
.gull-flap { transform-box: fill-box; transform-origin: center; }
/* pozycje spoczynkowe mew (widoczne, gdy ruch jest ograniczony / animacja wyłączona) */
.gull-1 .gull-fly { transform: translate(770px, 150px); }
.gull-2 .gull-fly { transform: translate(430px, 235px); }
.gull-3 .gull-fly { transform: translate(1050px, 178px); }
.gull-1 .gull-fly  { animation: gullFly1 20s linear infinite; }
.gull-1 .gull-flap { animation: flap .5s ease-in-out infinite; }
.gull-2 .gull-fly  { animation: gullFly2 26s linear infinite 4s; }
.gull-2 .gull-flap { animation: flap .62s ease-in-out infinite; }
.gull-3 .gull-fly  { animation: gullFly3 16s linear infinite 9s; }
.gull-3 .gull-flap { animation: flap .44s ease-in-out infinite; }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.5); } }
@keyframes gullFly1 { from { transform: translate(-90px, 175px); } to { transform: translate(1545px, 120px); } }
@keyframes gullFly2 { from { transform: translate(-130px, 240px); } to { transform: translate(1560px, 180px); } }
@keyframes gullFly3 { from { transform: translate(1545px, 150px); } to { transform: translate(-110px, 215px); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(8, 48, 70, .86) 0%, rgba(8, 48, 70, .55) 45%, rgba(8, 48, 70, .12) 75%, rgba(8, 48, 70, 0) 100%);
}
.hero-content {
  padding-top: var(--header-h);
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: .8rem;
  color: #fff;
  background: rgba(224, 122, 82, .9);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  margin-bottom: .35em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 92px;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 9px;
  width: 4px; height: 9px;
  margin-left: -2px;
  background: #fff; border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100% { opacity: 0; transform: translateY(0); } 50% { opacity: 1; transform: translateY(8px); } }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: 90px; display: block; }
.hero-wave path { fill: var(--c-sand); }

/* ----------------------------- Pasek atutów ------------------------ */
.quickbar { background: var(--c-sand); padding: 0 0 10px; }
.quickbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -40px;
  position: relative;
  z-index: 5;
}
.quick-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.quick-item .ico { width: 30px; height: 30px; color: var(--c-coral); }
.quick-item strong { display: block; color: var(--c-sea-900); font-size: 1.02rem; }
.quick-item span { display: block; font-size: .9rem; color: var(--c-ink-soft); }

/* ----------------------------- Sekcje ------------------------------ */
.section { padding: 92px 0; }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--c-coral);
  margin-bottom: 14px;
}
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-sub { font-size: 1.1rem; color: var(--c-ink-soft); }

/* ----------------------------- O nas ------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.about-media { position: relative; }
.about-img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main {
  width: 100%; height: 460px; object-fit: cover; display: block;
  transform-origin: 58% 42%;
}
/* epicki, kinowy najazd (Ken Burns) — do ok. +18% */
@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.18) translate(-1.4%, -1%); }
}

/* === Ken Burns na WSZYSTKICH zdjęciach === */
.about-img-main,
.about-img-sub,
.room-media img,
.g-item img {
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}
/* desynchronizacja faz i kierunków, by zdjęcia nie ruszały się jednakowo */
.g-item:nth-child(3n) img    { animation-delay: -7s;  transform-origin: 35% 62%; }
.g-item:nth-child(3n+1) img  { animation-delay: -14s; transform-origin: 68% 40%; }
.g-item:nth-child(4n) img    { animation-delay: -20s; transform-origin: 50% 66%; }
.g-item:nth-child(5n) img    { animation-delay: -4s;  transform-origin: 60% 35%; }
.room-card:nth-child(2) .room-media img { animation-delay: -9s;  transform-origin: 62% 50%; }
.room-card:nth-child(3) .room-media img { animation-delay: -16s; transform-origin: 45% 55%; }
.about-img-sub { animation-delay: -11s; }
.about-img-sub-frame {
  position: absolute;
  right: -28px; bottom: -38px;
  width: 52%; height: 210px;
  border-radius: var(--radius);
  border: 6px solid var(--c-sand);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-img-sub {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform-origin: 50% 50%;
}
.about-badge {
  position: absolute;
  top: -26px; left: -26px;
  background: var(--c-coral);
  color: #fff;
  border-radius: 50%;
  width: 116px; height: 116px;
  display: grid; place-content: center; text-align: center;
  font-family: var(--font-head);
  line-height: 1.1;
  box-shadow: var(--shadow);
  transform: rotate(-8deg);
}
.about-badge strong { font-size: 1.5rem; }
.about-badge span { font-size: 1rem; }

.about-text h2 { margin-bottom: .6em; }
.about-text p { color: var(--c-ink-soft); }
.about-text strong { color: var(--c-ink); }
.signature {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--c-coral-dk);
  margin-top: .2rem;
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}
.about-facts strong { display: block; color: var(--c-sea-900); font-family: var(--font-head); font-size: 1.2rem; }
.about-facts span { font-size: .9rem; color: var(--c-ink-soft); }

/* ----------------------------- Atuty (ciemna sekcja) --------------- */
.features {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(31, 125, 147, .55), transparent 60%),
    linear-gradient(160deg, var(--c-sea-900), #082c3f);
  color: #eaf3f5;
  position: relative;
}
.features .eyebrow { color: var(--c-gold); }
.features h2 { color: #fff; }
.features .section-sub { color: rgba(234, 243, 245, .75); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(224, 122, 82, .5);
}
.feature-ico {
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--c-coral), var(--c-gold));
  color: #fff;
  margin-bottom: 18px;
}
.feature-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: .4em; }
.feature-card p { color: rgba(234, 243, 245, .78); margin: 0; font-size: .98rem; }

/* ----------------------------- Pokoje ------------------------------ */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.room-card {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; }
.room-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--c-coral); color: #fff;
  font-size: .76rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.room-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { font-size: 1.4rem; }
.room-body p { color: var(--c-ink-soft); font-size: .98rem; }
.room-feat {
  list-style: none; margin: 4px 0 22px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.room-feat li {
  font-size: .82rem; font-weight: 700;
  color: var(--c-sea-700);
  background: #eaf3f4;
  border-radius: 999px;
  padding: 6px 13px;
}
.room-btn { align-self: flex-start; margin-top: auto; }
.rooms-note {
  text-align: center;
  max-width: 720px;
  margin: 44px auto 0;
  color: var(--c-ink-soft);
}
.rooms-note strong { color: var(--c-ink); }

/* ----------------------------- Galeria ----------------------------- */
.gallery { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.g-item {
  border: 0; padding: 0; margin: 0; cursor: pointer;
  border-radius: 14px; overflow: hidden;
  background: var(--c-sand-2);
  position: relative;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s ease; }
.g-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 58, 83, .35), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.g-item:hover::after { opacity: 1; }
.g-item:focus-visible { outline: 3px solid var(--c-coral); outline-offset: 2px; }
.g-wide { grid-column: span 2; grid-row: span 1; }

/* ----------------------------- CTA --------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--c-coral), var(--c-coral-dk));
  color: #fff;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; padding: 56px 24px;
}
.cta-inner h2 { color: #fff; margin-bottom: .2em; }
.cta-inner p { margin: 0; opacity: .95; }
.cta-band .btn-primary { background: #fff; color: var(--c-coral-dk); box-shadow: var(--shadow); }
.cta-band .btn-primary:hover { background: var(--c-sea-900); color: #fff; }

/* ----------------------------- Kontakt ----------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.contact-info .eyebrow { margin-bottom: 10px; }
.contact-lead { color: var(--c-ink-soft); }
.contact-list { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-ico {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #eaf3f4;
  color: var(--c-sea-700);
}
.ci-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-list strong { display: block; color: var(--c-sea-900); font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-list a { font-size: 1.18rem; font-weight: 700; color: var(--c-ink); }
.contact-list a:hover { color: var(--c-coral-dk); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-line);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; }

/* prawa kolumna: dane + mapa */
.contact-side { display: flex; flex-direction: column; gap: 24px; }
.contact-side .contact-list { margin: 0; }
.contact-side .contact-map { flex: 1; min-height: 300px; }
.contact-side .contact-map iframe { min-height: 300px; }

/* formularz zapytania */
.contact-form {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.contact-form .field { margin-bottom: 16px; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-weight: 700; font-size: .88rem; color: var(--c-sea-900); margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: inherit; font-size: 1rem; color: var(--c-ink);
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-sea-500);
  box-shadow: 0 0 0 3px rgba(31, 125, 147, .15);
}
.contact-form textarea { resize: vertical; min-height: 116px; }
.form-btn { width: 100%; justify-content: center; margin-top: 4px; }
/* honeypot – ukryty dla ludzi */
.contact-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
#form-status { margin: 14px 0 0; font-size: .95rem; text-align: center; display: none; }
#form-status.show { display: block; }
#form-status.sending { color: var(--c-ink-soft); }
#form-status.ok { color: #2f8f5b; font-weight: 700; }
#form-status.err { color: #c0392b; font-weight: 700; }
.form-note { margin: 14px 0 0; text-align: center; font-size: .92rem; color: var(--c-ink-soft); }

/* ----------------------------- Footer ------------------------------ */
.site-footer { background: var(--c-sea-900); color: #cfe0e6; position: relative; padding-top: 70px; }
.footer-wave { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; transform: translateY(-99%); }
.footer-wave svg { width: 100%; height: 80px; display: block; }
.footer-wave path { fill: var(--c-sea-900); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand .brand-name { font-family: var(--font-head); font-size: 1.5rem; color: #fff; display: block; margin-bottom: 8px; }
.footer-brand p { color: #9fbcc6; margin: 0; max-width: 320px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { color: #cfe0e6; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--c-coral); }
.footer-contact p { margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #88a6b0; }
.footer-bottom a { color: #cfe0e6; font-weight: 700; }
.footer-bottom a:hover { color: var(--c-coral); }

/* ----------------------------- Powrót na górę ---------------------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 0;
  background: var(--c-sea-900);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .2s;
  z-index: 900;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-coral); }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------- Szum morza -------------------------- */
.sound-toggle {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 900;
  display: inline-flex; align-items: center;
  height: 50px; padding: 0;
  border: 0; border-radius: 999px;
  background: var(--c-sea-900);
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: background .25s ease, box-shadow .2s ease;
}
.sound-toggle:hover { background: var(--c-coral); }
.sound-toggle.playing { background: var(--c-sea-500); }
.sound-toggle.playing:hover { background: var(--c-coral); }
.sound-ico-wrap { width: 50px; height: 50px; display: grid; place-items: center; flex: none; }
.sound-wave svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sound-eq { display: none; align-items: flex-end; gap: 2.5px; height: 19px; }
.sound-eq i { width: 3px; height: 5px; background: #fff; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.sound-eq i:nth-child(2) { animation-delay: .2s; }
.sound-eq i:nth-child(3) { animation-delay: .4s; }
.sound-eq i:nth-child(4) { animation-delay: .15s; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 19px; } }
.sound-toggle.playing .sound-wave { display: none; }
.sound-toggle.playing .sound-eq { display: flex; }

.sound-label {
  white-space: nowrap;
  font-weight: 700; font-size: .92rem;
  max-width: 0; opacity: 0; padding-right: 0;
  transition: max-width .3s ease, opacity .25s ease, padding-right .3s ease;
}
.sound-toggle:hover .sound-label,
.sound-toggle:focus-visible .sound-label { max-width: 160px; opacity: 1; padding-right: 20px; }

@media (prefers-reduced-motion: reduce) {
  .sound-eq i { animation: none; height: 14px; }
}

/* ----------------------------- Lightbox ---------------------------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 28, 40, .94);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lb-figure img {
  max-width: 86vw; max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  object-fit: contain;
  transform-origin: center;
  will-change: transform;
}
/* Lightbox: efekt wejścia (wyłania się z lekkim powiększeniem) + powolny najazd Ken Burns */
.lightbox.open #lbImg {
  animation: lbEnter .5s cubic-bezier(.2, .8, .25, 1) both,
             lbKenburns 14s ease-in-out infinite alternate .5s;
}
@keyframes lbEnter {
  from { transform: scale(.9);  opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes lbKenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.lb-figure figcaption { color: #dfeaee; margin-top: 20px; font-size: .95rem; text-align: center; }
.lb-close, .lb-nav {
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background .2s ease, transform .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .25); transform: scale(1.06); }
.lb-close { top: 22px; right: 22px; width: 50px; height: 50px; font-size: 2rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 2.4rem; line-height: 1; }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

/* ----------------------------- Animacje reveal --------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.features-grid .feature-card:nth-child(2),
.rooms-grid .room-card:nth-child(2),
.quickbar-grid .quick-item:nth-child(2) { transition-delay: .1s; }
.features-grid .feature-card:nth-child(3),
.rooms-grid .room-card:nth-child(3),
.quickbar-grid .quick-item:nth-child(3) { transition-delay: .2s; }
.features-grid .feature-card:nth-child(4),
.quickbar-grid .quick-item:nth-child(4) { transition-delay: .3s; }
.features-grid .feature-card:nth-child(5) { transition-delay: .15s; }
.features-grid .feature-card:nth-child(6) { transition-delay: .25s; }

/* =====================================================================
   RESPONSYWNOŚĆ
   ===================================================================== */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 70px; }
  .about-img-main { height: 380px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  /* Menu mobilne */
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    background: var(--c-cream);
    padding: 90px 30px 40px;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .25);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 1050;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  body.nav-open::after {
    content: "";
    position: fixed; inset: 0;
    background: rgba(8, 28, 40, .5);
    z-index: 1040;
  }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .main-nav > ul > li > a { display: block; color: var(--c-ink); font-size: 1.1rem; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .main-nav > ul > li > a::after { display: none; }
  .nav-cta { margin-top: 18px; justify-content: center; }
  /* zamykanie menu: animowany przycisk hamburgera (X) oraz klik poza panelem */
  .nav-close { display: none; }
  /* Header zawsze czytelny gdy menu otwarte */
  body.nav-open .site-header { background: rgba(255, 253, 249, .96); box-shadow: var(--shadow-sm); }
  body.nav-open .site-header .brand { color: var(--c-sea-900); }
  body.nav-open .site-header .brand-mark { background: var(--c-sea-900); color: #fff; border-color: transparent; }
  body.nav-open .nav-toggle span { background: var(--c-sea-900); }

  .quickbar-grid { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .section { padding: 70px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .quickbar-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .about-img-sub { right: 0; width: 58%; height: 150px; }
  .about-badge { width: 92px; height: 92px; }
  .about-badge strong { font-size: 1.2rem; }
  .about-facts { grid-template-columns: 1fr; gap: 14px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-wide { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .contact-form .field-row { display: block; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.8rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
}

/* ----------------------------- Dostępność -------------------------- */
:focus-visible { outline: 3px solid var(--c-coral); outline-offset: 2px; border-radius: 4px; }

/* Ograniczony ruch: wyłączamy przewijane/„skaczące” efekty, ale dekoracyjna
   scena morska (fale, łódka, mewy) animuje się dalej — zgodnie z życzeniem. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-scroll span { animation: none; }
}
