/* Fundacja Sportowo-Turystyczna Beskid – demo
   Identity: deep navy shading into blue, white type on navy, photography-forward.
   Display face: Fraunces (a foundation, not a sports club); body: Albert Sans.
   Signature: a thin ridgeline — in the wordmark and as a section divider. */

:root {
  --navy: #16224c;
  --navy-2: #1c2c63;
  --blue: #2e4a9e;
  --sky: #9db8e8;
  --ice: #eef2fb;
  --white: #ffffff;
  --sun: #f0b429;
  --text: #1d2438;
  --muted: #55607e;
  --line: #dbe1f0;

  --display: "Fraunces", Georgia, serif;
  --body: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(22,34,76,0.06), 0 14px 34px -14px rgba(22,34,76,0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--navy); padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; font-size: 0.82rem; color: var(--blue); margin-bottom: 1rem; }
.on-dark .eyebrow { color: var(--sky); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.on-dark .lede { color: #ccd6ef; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1rem; line-height: 1; padding: 0.95rem 1.6rem; border-radius: 999px; background: var(--sun); color: var(--navy); text-decoration: none; border: 2px solid var(--sun); cursor: pointer; }
.btn:hover { background: #ffc84a; border-color: #ffc84a; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: currentColor; }
.btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.on-dark .btn--ghost { color: var(--white); }
.on-dark .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* Header */
.site-head { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.site-head__row { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.brand { display: block; line-height: 0; }
.site-nav { margin-left: auto; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav__list a { display: block; padding: 0.55rem 0.75rem; color: #d5def3; text-decoration: none; font-weight: 500; font-size: 0.98rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav__list a:hover { color: var(--white); }
.site-nav__list a[aria-current="page"] { color: var(--white); border-bottom-color: var(--sun); }
.site-head__cta { white-space: nowrap; font-weight: 600; font-size: 0.95rem; color: var(--white); text-decoration: none; padding: 0.55rem 1rem; border-radius: 999px; border: 2px solid rgba(157,184,232,0.5); }
.site-head__cta::after { content: " →"; }
.site-head__cta:hover { border-color: var(--white); color: var(--white); }
@media (max-width: 760px) {
  .site-head__cta { display: none; }
  .brand svg { width: 160px; height: auto; }
}
@media (max-width: 480px) {
  .site-head__row { gap: 0.6rem; }
  .site-nav__list { gap: 0; }
  .site-nav__list a { padding-inline: 0.35rem; font-size: 0.86rem; }
  .brand svg { width: 124px; }
}

/* Sections + ridgeline divider */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--ice { background: var(--ice); }
.section--navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 130%); color: var(--white); }
.section--navy a:not(.btn) { color: var(--sky); }
.section-head { max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Hero: full-bleed photo, navy gradient, white serif */
.hero { position: relative; background: var(--navy); color: var(--white); isolation: isolate; overflow: hidden; }
.hero__img { position: absolute; inset: 0; z-index: -1; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(12deg, rgba(15,23,52,0.92) 25%, rgba(15,23,52,0.45) 60%, rgba(15,23,52,0.15) 100%); }
.hero__body { padding-block: clamp(6rem, 16vw, 11rem) clamp(3.5rem, 9vw, 6rem); max-width: 680px; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { color: #e4eafa; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* Page head (wyjazdy) */
.page-head { position: relative; background: var(--navy); color: var(--white); isolation: isolate; overflow: hidden; }
.page-head .hero__body { padding-block: clamp(3.5rem, 9vw, 6rem); }

/* Mission split */
.split { display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; grid-template-columns: 1.05fr 1fr; }
.split > * { min-width: 0; }
.split__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--focus, center); border-radius: var(--r-lg); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* What we do */
.goals { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.goals > * { min-width: 0; }
.goal { background: var(--white); border-radius: var(--r); padding: 1.6rem 1.7rem 1.8rem; box-shadow: var(--shadow); }
.goal h3::before { content: ""; display: block; width: 2.2rem; height: 3px; border-radius: 2px; background: var(--sun); margin-bottom: 0.8rem; }
.goal p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .goals { grid-template-columns: 1fr; } }

/* Trips */
.trips { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
.trips > * { min-width: 0; }
.trip { display: flex; flex-direction: column; background: var(--white); color: inherit; text-decoration: none; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.trip:hover { transform: translateY(-3px); color: inherit; box-shadow: 0 2px 5px rgba(22,34,76,0.08), 0 22px 44px -16px rgba(22,34,76,0.32); }
.trip__img { aspect-ratio: 16 / 9; overflow: hidden; }
.trip__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.trip__body { padding: 1.3rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.trip__meta { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.trip h3 { margin: 0; }
.trip p { margin: 0; color: var(--muted); }
.trip__price { margin-top: auto; padding-top: 0.9rem; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.trip__price small { font-family: var(--body); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.trip__cta { font-weight: 600; color: var(--blue); }
@media (max-width: 720px) { .trips { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .trip { transition: none; } .trip:hover { transform: none; } }

/* Chronicle */
.chronicle { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.chronicle > * { min-width: 0; }
.entry { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); margin: 0; display: flex; flex-direction: column; }
.entry img { aspect-ratio: 3 / 2; object-fit: cover; object-position: var(--focus, center); width: 100%; }
.entry__body { padding: 1.1rem 1.3rem 1.4rem; }
.entry__year { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.entry h3 { font-size: 1.25rem; margin: 0.15rem 0 0.4rem; }
.entry p { color: var(--muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 900px) { .chronicle { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .chronicle { grid-template-columns: 1fr; } }

/* Foundation facts */
.facts { display: grid; gap: 1.5rem; grid-template-columns: 1.2fr 1fr; align-items: start; }
.facts > * { min-width: 0; }
.fact-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(157,184,232,0.3); border-radius: var(--r); padding: 1.5rem 1.6rem; }
.fact-card h3 { color: var(--white); font-size: 1.15rem; }
.fact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.2rem; font-size: 0.95rem; }
.fact-card dt { color: var(--sky); }
.fact-card dd { margin: 0; color: #e4eafa; overflow-wrap: anywhere; }
.people { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.people li { margin-bottom: 0.5rem; color: #e4eafa; }
.people li strong { color: var(--white); display: block; }
.people li span { font-size: 0.9rem; color: var(--sky); }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }

/* Protenis band */
.band { display: grid; gap: 1.5rem; grid-template-columns: 1fr auto; align-items: center; }
.band > * { min-width: 0; }
.band h2 { margin: 0 0 0.3em; }
.band p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (max-width: 720px) { .band { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--navy); color: #ccd6ef; padding-top: 3.5rem; font-size: 0.97rem; }
.site-foot a { color: var(--white); }
.site-foot a:hover { color: var(--sky); }
.site-foot__grid { display: grid; gap: 2rem; grid-template-columns: 1.2fr 1fr 1.3fr; padding-bottom: 2.5rem; }
.site-foot__grid > * { min-width: 0; }
.site-foot__name { font-family: var(--display); font-size: 1.25rem; color: var(--white); margin-bottom: 0.6rem; }
.site-foot__h { font-family: var(--body); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--sky); margin: 0 0 0.7rem; font-weight: 600; }
.site-foot__fine { font-size: 0.85rem; line-height: 1.55; }
.site-foot__bottom { border-top: 1px solid rgba(157,184,232,0.25); padding-block: 1.2rem; font-size: 0.82rem; }
.site-foot__bottom p { margin: 0; }
.site-foot__bottom a { color: #ccd6ef; }
@media (max-width: 860px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* ---------- v2: independent catalog + signup ---------- */

/* Home teaser strip for the two upcoming trips */
.teaser { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr auto; align-items: center; background: var(--navy); color: var(--white); border-radius: var(--r-lg); padding: 1.4rem 1.6rem; }
.teaser > * { min-width: 0; }
.teaser a.teaser__item { color: inherit; text-decoration: none; display: block; padding: 0.4rem 0.6rem; border-radius: var(--r); }
.teaser a.teaser__item:hover { background: rgba(255,255,255,0.07); color: inherit; }
.teaser__when { display: block; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.teaser__name { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.teaser__price { display: block; color: #e4eafa; font-size: 0.95rem; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }

/* Chronicle on phones: a list, not six full-width cards */
@media (max-width: 560px) {
  .chronicle { gap: 0.6rem; }
  .entry { flex-direction: row; align-items: flex-start; box-shadow: none; border: 1px solid var(--line); }
  .entry img { width: 96px; height: 96px; aspect-ratio: 1; flex: none; }
  .entry__body { padding: 0.7rem 0.9rem 0.8rem; }
  .entry h3 { font-size: 1.05rem; margin: 0.1rem 0 0.25rem; }
  .entry p { font-size: 0.9rem; }
}

/* Trip detail page */
.detail { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1.15fr 1fr; align-items: start; }
.detail > * { min-width: 0; }
.detail__meta { display: grid; gap: 0.8rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 1.2rem 0 1.6rem; }
.detail__meta div { border-left: 3px solid var(--sun); padding-left: 0.8rem; }
.detail__meta dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.detail__meta dd { margin: 0; font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.8rem; height: 3px; border-radius: 2px; background: var(--sun); }
.gallery { display: grid; gap: 0.7rem; grid-template-columns: 1fr 1fr; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--focus, center); border-radius: var(--r); }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery--two { grid-template-columns: 1fr; }
.gallery--two img { aspect-ratio: 16 / 10; }
.rooms-wrap { overflow-x: auto; margin-bottom: 1rem; }
.rooms { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rooms th, .rooms td { text-align: left; padding: 0.6rem 0.6rem; border-top: 1px solid var(--line); vertical-align: top; }
.rooms th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.rooms td.n { font-weight: 600; white-space: nowrap; text-align: right; color: var(--navy); }
.rooms td small { display: block; color: var(--muted); font-size: 0.85rem; }
.note { font-size: 0.93rem; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); margin: 0; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .t { font-weight: 600; color: var(--navy); }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .timeline li { grid-template-columns: 1fr; gap: 0.1rem; } }

/* Forms */
.form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form > * { min-width: 0; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 0.75rem 0.95rem; border: 1px solid #b9c3dd; border-radius: 10px; background: var(--white); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(46,74,158,0.22); }
.on-dark .field input, .on-dark .field select, .on-dark .field textarea { background: rgba(255,255,255,0.96); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.on-dark .consent { color: #ccd6ef; }
.consent input { margin-top: 0.3em; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
