/* ==========================================================================
   Wiosło Spływy Kajakowe — style.css
   Paleta: rzeczna głębia / mech / bursztyn ogniska
   ========================================================================== */

:root {
  --color-river:      #1F3A3D; /* ciemne akcenty UI (stopka, overlay hero) */
  --color-river-dark:  #14282A;
  --color-moss:       #4C6B4F; /* mech, trzcina */
  --color-amber:      #5f7d95; /* akcent — stalowy błękit jak w oryginale */
  --color-amber-dark: #4d6a80;
  --color-foam:       #ffffff; /* tło strony — białe */
  --color-foam-dim:   #f4f0ee; /* jasne tło sekcji alt */
  --color-ink:        #191919; /* tekst */
  --color-ink-soft:   #6a6a6a; /* przygaszony tekst / nawigacja */
  --color-mist:       #AFC6C2;
  --color-heading:    #5a5a5a; /* szare nagłówki jak w oryginale */

  --font-display: "Times New Roman", Times, Georgia, serif;
  /* tekst: Georgia — serif zaprojektowany pod ekran, znacznie czytelniejszy
     od Times New Roman przy zachowaniu tego samego klasycznego charakteru */
  --font-body: Georgia, "Times New Roman", Times, serif;

  --radius: 4px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-foam);
  line-height: 1.72;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(95, 125, 149, 0.22); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance; /* równiejszy podział tytułów na wiersze */
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; text-wrap: pretty; } /* mniej „sierot" na końcu akapitów */

a {
  color: var(--color-amber-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

img { max-width: 100%; display: block; height: auto; }

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

a.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-amber);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
a.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 2px;
}

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  background: #fff;
  color: var(--color-ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #ececec;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.logo img { height: 48px; width: auto; }
.logo:hover { text-decoration: none; opacity: 0.9; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius);
  color: var(--color-ink);
  padding: 8px 12px;
  font-size: 1.4rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* tylko lista najwyższego poziomu jest pozioma — zagnieżdżony .dropdown
   pozostaje ukryty do najechania (inaczej nadpisywałby .dropdown display:none) */
.main-nav > ul {
  display: flex;
  gap: 2px;
}

.main-nav a {
  color: var(--color-ink-soft);
  padding: 10px 14px;
  display: inline-block;
  border-radius: var(--radius);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #f3f3f3;
  color: var(--color-ink);
  text-decoration: none;
}
.main-nav a.active {
  color: var(--color-amber);
}

.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  min-width: 250px;
  padding: 6px;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.dropdown li a { display: block; font-size: 0.92rem; }

/* przycisk rozwijania podmenu — widoczny na ekranach dotykowych i mobile;
   nazwa zawsze prowadzi do strony, strzałka rozwija listę */
.submenu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  line-height: 1;
  border-radius: var(--radius);
  transition: transform 0.15s ease;
}
.submenu-toggle:hover { background: #f3f3f3; color: var(--color-ink); }

/* podmenu otwarte przyciskiem (JS) — działa na każdej szerokości ekranu */
.has-dropdown.open .dropdown { display: block; }
.has-dropdown.open .submenu-toggle { transform: rotate(180deg); }

/* desktop z myszką: podmenu otwiera się po najechaniu, przycisk zbędny */
@media (min-width: 881px) and (hover: hover) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: block; }
}
/* ekrany dotykowe (tablet / telefon w poziomie) i mobile: pokaż przycisk,
   schowaj strzałkę wewnątrz linku (żeby nie dublować) */
@media (max-width: 880px), (hover: none) {
  .submenu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; }
  .has-dropdown > a .caret { display: none; }
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, rgba(20,40,42,0.35), rgba(20,40,42,0.75)), var(--color-river-dark) center/cover;
  padding: 96px 0 80px;
}
.hero.has-image {
  background-image: linear-gradient(180deg, rgba(20,40,42,0.25), rgba(15,30,32,0.82)), var(--hero-img);
  background-size: cover;
  background-position: center;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--color-mist);
  margin-bottom: 14px;
  display: inline-block;
}
.hero h1 { color: #fff; max-width: 720px; }
.hero p.lead {
  max-width: 620px;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
}
.hero-page {
  padding: 64px 0 56px;
}

/* Strona główna — kolaż zdjęć na całą szerokość ekranu (jak w oryginale) */
.home-hero {
  background: #f4f1ee;
  padding: 0;
}
.home-hero .container {
  max-width: none;
  padding: 0;
}
.home-hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
}
.base-tagline {
  text-align: center;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-heading);
  margin: 32px 0;
}

.home-intro { text-align: center; }
.home-intro .grid > div { display: flex; flex-direction: column; justify-content: center; }

/* Hero podstron — jasny: zdjęcie na całą szerokość, tytuł pod spodem (jak oryginał) */
.page-hero { text-align: center; }
.page-hero-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}
.page-hero .container {
  padding-top: 28px;
  padding-bottom: 4px;
}
.page-hero h1 {
  color: var(--color-heading);
  margin: 0;
}
@media (max-width: 640px) {
  .page-hero-img { height: 220px; }
}

/* Signature river-bend divider */
.river-divider {
  display: block;
  width: 100%;
  height: 34px;
  color: var(--color-foam);
}
.river-divider path { fill: currentColor; }
.river-divider.flip { transform: rotate(180deg); }

/* ---------------------------------- Buttons ---------------------------------- */

/* Linki-akcje w stylu oryginału: „— Etykieta —" w stalowym błękicie */
.btn {
  display: inline-block;
  background: none;
  color: var(--color-amber);
  padding: 8px 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.btn::before { content: "— "; }
.btn::after { content: " —"; }
.btn:hover {
  color: var(--color-amber-dark);
  background: none;
  text-decoration: none;
}
.btn.btn-outline { border: 0; color: var(--color-amber); }
.btn.btn-outline:hover { background: none; color: var(--color-amber-dark); }

/* ---------------------------------- Sections ---------------------------------- */

section { padding: 64px 0; }
section.tight { padding: 40px 0; }
section.alt { background: var(--color-foam-dim); }

.section-title {
  max-width: 640px;
  margin-bottom: 32px;
}

.grid {
  display: grid;
  gap: 40px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); align-items: center; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 800px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20,40,42,0.08);
}
.feature-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.feature-card .feature-body { padding: 22px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card h3 a { color: var(--color-river-dark); }
.feature-card h3 a:hover { color: var(--color-amber-dark); text-decoration: none; }

.difficulty-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-moss);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.difficulty-label.medium { background: var(--color-amber-dark); }

/* ---------------------------------- Route info table ---------------------------------- */

.route-facts {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20,40,42,0.08);
  margin: 0 0 36px;
}
.route-facts tr:not(:last-child) td,
.route-facts tr:not(:last-child) th {
  border-bottom: 1px solid var(--color-foam-dim);
}
.route-facts th, .route-facts td {
  text-align: left;
  padding: 13px 20px;
  vertical-align: top;
}
.route-facts th {
  width: 42%;
  color: var(--color-ink-soft);
  font-weight: 600;
  font-size: 0.93rem;
}
.route-facts td strong { color: var(--color-amber-dark); }

.route-body {
  max-width: 680px; /* ~65–70 znaków w wierszu — optymalna czytelność */
  margin-left: auto;
  margin-right: auto;
}
/* opisy (akapity, listy) wyśrodkowane na życzenie klientki — tabela z
   danymi trasy (.route-facts) zostaje wyrównana do lewej, bo to dane
   tabelaryczne, nie tekst opisowy */
.route-body p,
.route-body li {
  text-align: center;
}
/* linki w treści podkreślone domyślnie — lepsza wykrywalność */
.route-body p a,
.route-body li a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.route-body img { border-radius: var(--radius); margin: 28px 0; }
.route-body .img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.route-body .img-pair img { margin: 0; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .route-body .img-pair { grid-template-columns: 1fr; }
}

/* ---------------------------------- Pricing ---------------------------------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20,40,42,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.price-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-river-dark);
  padding: 16px 20px 4px;
  caption-side: top;
}
.price-table td, .price-table th {
  padding: 12px 20px;
  text-align: left;
  vertical-align: top;
}
.price-table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--color-foam-dim); }
.price-table td:last-child { text-align: right; color: var(--color-amber-dark); font-weight: 700; white-space: nowrap; }

/* wiersz nagłówkowy tabel z trasami */
.price-table thead th {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-ink-soft);
  padding-top: 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-foam-dim);
}
.price-table thead th span {
  display: block;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.74rem;
}

/* tabele tras: dwie kolumny cen wyrównane do prawej, metryczka pod nazwą */
.price-table.routes td:nth-child(2),
.price-table.routes td:nth-child(3),
.price-table.routes th:nth-child(2),
.price-table.routes th:nth-child(3) {
  text-align: right;
  white-space: nowrap;
  width: 132px;
}
.price-table.routes td:nth-child(2),
.price-table.routes td:nth-child(3) {
  color: var(--color-amber-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.price-table.routes td small {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-ink-soft);
  margin-top: 2px;
}
.price-table.routes tbody tr:hover td { background: #faf8f6; }

.pricing-intro {
  color: var(--color-ink-soft);
  max-width: 640px;
  margin: 0 0 30px;
}
.pricing-intro a { text-decoration: underline; text-underline-offset: 0.15em; }

/* karta „W cenie każdego spływu" */
.included-card {
  background: var(--color-foam-dim);
  border-radius: var(--radius);
  padding: 26px 30px 28px;
  margin: 0 0 40px;
}
.included-card h3 { margin-bottom: 14px; }
.included-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}
.included-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.55;
}
.included-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-moss);
  font-weight: 700;
}

/* węższa kolumna nazwy na mobile, cena zawija się zamiast rozpychać stronę */
@media (max-width: 640px) {
  .included-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .price-table { font-size: 0.95rem; }
  .price-table td, .price-table th { padding: 10px 10px; }
  .price-table td:first-child { width: 55%; }
  .price-table.routes td:nth-child(2),
  .price-table.routes td:nth-child(3),
  .price-table.routes th:nth-child(2),
  .price-table.routes th:nth-child(3) { width: auto; padding-left: 6px; }
  .price-table.routes th:nth-child(2),
  .price-table.routes th:nth-child(3) { white-space: normal; }
  .price-table.routes td small { font-size: 0.78rem; }
  .included-card { padding: 20px 18px; }
}

/* ---------------------------------- Lightbox (powiększanie zdjęć) ---------------------------------- */

/* zdjęcia w treści są klikalne */
.route-body img,
.gallery img,
.img-pair img,
.photo-gallery img,
.home-intro img,
section .grid.cols-2 > img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 22, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.55);
  cursor: default;
}
.lightbox-btn {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-close {
  top: 18px; right: 20px;
  width: 46px; height: 46px;
  font-size: 1.9rem; line-height: 1;
}
.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2.2rem; line-height: 1;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
@media (max-width: 560px) {
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 1.8rem; }
  .lightbox-prev { left: 10px; } .lightbox-next { right: 10px; }
}

/* ---------------------------------- Photo gallery (miniatury -> lightbox) ---------------------------------- */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.photo-gallery img {
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@media (max-width: 560px) {
  .photo-gallery { grid-template-columns: 1fr; }
}

/* ---------------------------------- Video (prezentacja) ---------------------------------- */

.video-block { margin: 40px 0 8px; }
.video-block .section-title { margin-bottom: 16px; }
.video-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 40, 42, 0.14);
  background: #000;
}
.video-embed video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------------------------------- Gallery ---------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 800px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

.amenities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 36px 0;
}
.amenities .amenity h4 { color: var(--color-amber-dark); font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;}
@media (max-width: 800px) {
  .amenities { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------- Contact / map ---------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 10px rgba(20,40,42,0.08);
}
.contact-card dt { color: var(--color-ink-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 18px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-size: 1.05rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(20,40,42,0.08); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

.social-links { display: flex; gap: 14px; margin-top: 22px; }
.social-links a {
  border: 1px solid var(--color-foam-dim);
  border-radius: 999px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-river-dark);
}
.social-links a:hover { background: var(--color-amber); color: #fff; border-color: var(--color-amber); text-decoration: none; }

/* ---------------------------------- Breadcrumb ---------------------------------- */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  padding: 16px 0 0;
}
.breadcrumb a { color: var(--color-ink-soft); }

/* ---------------------------------- CTA band ---------------------------------- */

.cta-band {
  background: var(--color-moss);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.9); }
.cta-band .btn, .cta-band .btn:hover { color: #fff; }

/* ---------------------------------- Legal / regulamin ---------------------------------- */

.legal ol { padding-left: 1.2em; }
.legal li { margin-bottom: 0.9em; }
.legal h4 { margin-top: 2em; }

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background: var(--color-river-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------- Responsive nav ---------------------------------- */

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #ececec;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    padding: 8px 16px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .has-dropdown { flex-wrap: wrap; }
  .has-dropdown > a { flex: 1; }
  .dropdown { position: static; width: 100%; box-shadow: none; border: 0; background: #f5f3f1; }
}
