/* ============================================================
   Przyczepa Kaprys — Jastarnia
   Paleta i motyw trójkątów zaczerpnięte z wnętrza przyczepy:
   biel szafek, morski granat poduszek, bursztyn zasłon.
   ============================================================ */

:root {
  --ink: #0e2a32;        /* granatowa czerń — tekst */
  --sea: #14586e;        /* morski granat poduszek — kolor główny */
  --sea-deep: #0b3947;   /* ciemniejszy morski — hover, tła */
  --sand: #d9a24b;       /* bursztyn z zasłon — akcent */
  --sand-soft: #f3e3c3;  /* piasek rozjaśniony — tła chipów */
  --paper: #f5f9fa;      /* chłodna biel morska — tło strony */
  --white: #ffffff;
  --night: #0c1c22;      /* wieczorna sekcja */
  --muted: #4d6b75;      /* tekst drugorzędny */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 42, 50, 0.12);
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: var(--sea); }

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- typografia ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 6.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
}

.eyebrow::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--sand);
}

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 { margin: 0.5rem 0 0.8rem; }

/* ---------- trójkątny divider (motyw zasłon) ---------- */

.tri-divider {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-block: 0.25rem;
}

.tri-divider span {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 15px solid var(--sea);
}

.tri-divider span:nth-child(2) { border-bottom-color: var(--sand); transform: rotate(180deg); }
.tri-divider span:nth-child(3) { border-bottom-color: var(--ink); }
.tri-divider span:nth-child(4) { border-bottom-color: var(--sand-soft); transform: rotate(180deg); }
.tri-divider span:nth-child(5) { border-bottom-color: var(--sea); }

/* ---------- przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 0;
}

.btn svg { width: 20px; height: 20px; flex: none; }

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }

.btn-primary {
  background: var(--sea);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(20, 88, 110, 0.35);
}
.btn-primary:hover { background: var(--sea-deep); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { background: var(--white); }

.btn-sand {
  background: var(--sand);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(217, 162, 75, 0.4);
}
.btn-sand:hover { background: #c8912f; }

/* ---------- nagłówek ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(14, 42, 50, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.site-header.is-scrolled .brand {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.brand img {
  height: 46px;
  width: auto;
  background: var(--white);
  padding: 4px 9px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(14, 42, 50, 0.22);
}
.brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  transition: color 0.25s ease;
}
.site-header.is-scrolled .brand span { color: var(--ink); }

.site-nav { display: none; gap: 1.6rem; }
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--sand); }
.site-header.is-scrolled .site-nav a { color: var(--ink); }
.site-header.is-scrolled .site-nav a:hover { color: var(--sea); }

.header-cta { display: none; }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .header-cta { display: inline-flex; padding: 0.65rem 1.25rem; font-size: 0.95rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(94svh, 860px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 28, 36, 0.82) 0%, rgba(8, 28, 36, 0.25) 45%, rgba(8, 28, 36, 0.35) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-layout {
  display: grid;
  gap: 1.6rem;
  align-items: end;
}

.hero-sticker {
  position: absolute;
  z-index: 2;
  top: clamp(4.8rem, 11vh, 6.5rem);
  right: clamp(1.1rem, 4.5vw, 4rem);
  width: clamp(104px, 15vw, 160px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(8, 28, 36, 0.4);
  opacity: 0;
  transform: rotate(-6deg) scale(0.7);
  animation: stickerIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s forwards;
}
.hero-sticker::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(14, 42, 50, 0.2);
  border-radius: 50%;
}
.hero-sticker img { width: 72%; height: auto; }

@keyframes stickerIn {
  to { opacity: 1; transform: rotate(7deg) scale(1); }
}

.hero .eyebrow { color: var(--sand); }

.hero h1 { max-width: 14ch; margin: 0.7rem 0 1rem; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }

.hero p { max-width: 52ch; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255, 255, 255, 0.92); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.chip {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  font-size: 0.88rem;
  font-weight: 600;
}

/* animacja wejścia hero */
.hero .reveal-hero {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.7s ease forwards;
}
.hero .reveal-hero:nth-child(2) { animation-delay: 0.12s; }
.hero .reveal-hero:nth-child(3) { animation-delay: 0.24s; }
.hero .reveal-hero:nth-child(4) { animation-delay: 0.36s; }
.hero .reveal-hero:nth-child(5) { animation-delay: 0.48s; }

@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* ---------- o kaprysie ---------- */

.about-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1.05fr 1fr; }
}

.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-photo.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  background: var(--white);
}

.about-photo.collage .c-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; width: 100%; }
.about-photo.collage .c-half { aspect-ratio: 4 / 3; width: 100%; }

.about-photo::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 0;
  height: 0;
  border-right: 74px solid var(--sand);
  border-top: 74px solid transparent;
  opacity: 0.95;
}

.about-copy h2 { margin: 0.5rem 0 1rem; }
.about-copy p + p { margin-top: 0.9rem; }

.fact-list { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.7rem; }

.fact-list li { display: flex; gap: 0.7rem; align-items: baseline; font-weight: 500; }

.fact-list li::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--sand);
  transform: translateY(-1px);
}

/* ---------- aktywności w Jastarni ---------- */

.activities { background: var(--white); }

.about-photo.portrait img { aspect-ratio: 4 / 5; object-fit: cover; }

.act-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 1.1rem;
}

.act-list li { display: flex; gap: 0.95rem; align-items: flex-start; }

.act-list .act-emoji {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sand-soft);
  font-size: 1.35rem;
}

.act-list li:nth-child(2n) .act-emoji { background: #d9e8ed; }

.act-list h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.act-list p { color: var(--muted); font-size: 0.96rem; line-height: 1.5; }

/* ---------- wyposażenie ---------- */

.gear-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gear-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: 0 3px 14px rgba(14, 42, 50, 0.07);
  font-weight: 600;
}

.gear-item .gear-emoji {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sand-soft);
  font-size: 1.3rem;
}

.gear-item:nth-child(3n) .gear-emoji { background: #d9e8ed; }

/* ---------- galeria ---------- */

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

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-grid a {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d9e4e8;
}

.gallery-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.gallery-grid a::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 13px solid var(--sand);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-grid a:hover::after { opacity: 1; }

.gallery-grid a:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 22, 28, 0.94);
  padding: 1.5rem;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.lightbox button:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- wieczór na tarasie ---------- */

.evening {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: var(--night);
}

.evening-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.evening::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 28, 34, 0.92) 20%, rgba(12, 28, 34, 0.35) 70%);
}

.evening .wrap { position: relative; z-index: 2; }

.evening .eyebrow { color: var(--sand); }
.evening h2 { color: var(--white); margin: 0.5rem 0 1rem; }
.evening p { max-width: 54ch; color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; }

/* ---------- wydarzenia ---------- */

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

.event-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.event-date {
  align-self: flex-start;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--sand-soft);
  font-weight: 700;
  font-size: 0.85rem;
}

.event-card h3 { margin: 0.9rem 0 0.4rem; }
.event-card p { color: var(--muted); font-size: 0.97rem; }

.event-link {
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 700;
  color: var(--sea);
  text-decoration: none;
}
.event-link:hover { color: var(--sea-deep); text-decoration: underline; }

/* ---------- facebook ---------- */

.fb-section { background: var(--white); }

.reels-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(230px, 64vw);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.6rem;
  -webkit-overflow-scrolling: touch;
}
.reels-row > * { scroll-snap-align: start; }

@media (min-width: 900px) {
  .reels-row {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    max-width: 1080px;
    padding-bottom: 0;
  }
}

.reel {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.reel:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(14, 42, 50, 0.22);
}

.reel video,
.reel .reel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel .reel-media { animation: reelZoom 16s ease-in-out infinite alternate; }
.reel .reel-media.reel-static { animation: none; }

@keyframes reelZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 28, 36, 0.75) 0%, transparent 38%);
}

.reel-tag {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(8, 28, 36, 0.55);
  backdrop-filter: blur(5px);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
}
.reel-tag svg { width: 13px; height: 13px; }

.reel-bar {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.25;
}
.reel-bar img {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
  object-fit: contain;
}

.fb-cta {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
}

/* ---------- rezerwacja ---------- */

.booking { background: var(--sea-deep); color: var(--white); }

.booking .eyebrow { color: var(--sand); }
.booking h2 { color: var(--white); }
.booking .section-head p { color: rgba(255, 255, 255, 0.85); }

.booking-steps {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.step {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}

.step .step-no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--sand);
  letter-spacing: 0.1em;
}

.step h3 { margin: 0.5rem 0 0.3rem; color: var(--white); }
.step p { color: rgba(255, 255, 255, 0.82); font-size: 0.97rem; }

.booking-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.booking-note { margin-top: 1.2rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- lokalizacja ---------- */

.location-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media (min-width: 860px) {
  .location-grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}

.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.address-card { display: grid; gap: 0.9rem; }

.address-card .addr-line { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 500; }

.addr-line svg { width: 22px; height: 22px; flex: none; color: var(--sea); margin-top: 3px; }

/* ---------- stopka ---------- */

.site-footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 2.2rem;
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- mobilny pasek kontaktu ---------- */

.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(11, 57, 71, 0.4);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.mobile-bar.is-visible { transform: none; }

.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem calc(0.95rem + env(safe-area-inset-bottom));
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--white);
}

.mobile-bar a svg { width: 20px; height: 20px; }

.mobile-bar .bar-call { background: var(--sea); }
.mobile-bar .bar-msg { background: var(--sand); color: var(--ink); }

@media (min-width: 900px) {
  .mobile-bar { display: none; }
}

/* ---------- scroll reveal (aktywny tylko przy działającym JS) ---------- */

.has-js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.has-js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- dostępność / reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .reveal-hero { animation: none; opacity: 1; transform: none; }
  .hero-sticker { animation: none; opacity: 1; transform: rotate(7deg); }
  .reel .reel-media { animation: none; }
  .reel { transition: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .gallery-grid a img { transition: none; }
  .btn { transition: none; }
}
