/* =============================================================
   martamerriday.com – arkusz stylów
   Wygląd odtworzony z dawnego motywu WordPress "Twenty Seventeen".
   Spis treści:
     1. Fonty (Libre Franklin, hostowane lokalnie)
     2. Zmienne i podstawy
     3. Nagłówek (hero)
     4. Sekcje i zdjęcia-panele
     5. Wstęp, recenzje, cytaty
     6. Przyciski i okna (dialog)
     7. Media queries
   ============================================================= */

/* ---------- 1. Fonty ----------
   Libre Franklin, SIL Open Font License 1.1.
   Dwa podzbiory: latin (podstawowy) i latin-ext (polskie znaki). */
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 300; font-display: fallback; src: url("../fonts/libre-franklin-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 300; font-display: fallback; src: url("../fonts/libre-franklin-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: fallback; src: url("../fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: fallback; src: url("../fonts/libre-franklin-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: fallback; src: url("../fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: fallback; src: url("../fonts/libre-franklin-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 800; font-display: fallback; src: url("../fonts/libre-franklin-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 800; font-display: fallback; src: url("../fonts/libre-franklin-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 300; font-display: fallback; src: url("../fonts/libre-franklin-latin-300-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 300; font-display: fallback; src: url("../fonts/libre-franklin-latin-ext-300-italic.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 400; font-display: fallback; src: url("../fonts/libre-franklin-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 400; font-display: fallback; src: url("../fonts/libre-franklin-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 800; font-display: fallback; src: url("../fonts/libre-franklin-latin-800-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 800; font-display: fallback; src: url("../fonts/libre-franklin-latin-ext-800-italic.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- 2. Zmienne i podstawy ---------- */
:root {
  --text: #333;
  --text-dark: #222;
  --muted: #666;
  --border: #e6e6e6;
  --quote-mark: #cdcdcd;
  --btn-bg: #eee;
  --btn-border: #737373;
  --content-width: 740px;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.66;
  word-wrap: break-word;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

p { margin: 0 0 1.5em; }
strong { font-weight: 700; }

h1, h2, h3 { line-height: 1.4; margin: 0 0 0.75em; font-weight: 300; }

a { color: var(--text-dark); text-underline-offset: 0.15em; }
a:hover, a:focus { color: #000; }
:focus-visible { outline: 2px dotted currentColor; outline-offset: 2px; }

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2em;
}

.center  { text-align: center; }
.justify { text-align: justify; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75em 1em;
  background: #fff;
}
.skip-link:focus { left: 0.5em; top: 0.5em; }

/* ---------- 3. Nagłówek (hero) ----------
   Zdjęcie jest przypięte (position: fixed), a treść strony przewija się nad nim. */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 75vh;
  min-height: 300px;
  color: #fff;
}

.hero__img {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* Lekkie przyciemnienie dołu zdjęcia, żeby tytuł był czytelny */
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 75%, rgba(0,0,0,.3) 100%);
  pointer-events: none;
}

.hero__branding {
  position: relative;
  width: 100%;
  max-width: 1400px;
  padding-top: 1em;
  padding-bottom: 1em;
}

.hero__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 6px 6px 6px #000, 4px 4px 16px #000;
}

.hero__tagline {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  opacity: 0.8;
  text-shadow: 3px 3px 3px #000, 2px 2px 8px #000;
}

.hero__scroll { display: none; color: #fff; }

/* ---------- 4. Sekcje i zdjęcia-panele ---------- */
main {
  position: relative;
  background: #fff;   /* zakrywa przypięte zdjęcie z nagłówka */
}

.section > .wrap { padding-top: 1.75em; padding-bottom: 0.5em; }

.section-title {
  margin-bottom: 2em;
  color: var(--text-dark);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Duże zdjęcie rozdzielające sekcje (proporcje 5:3, jak oryginał) */
.panel-image {
  position: relative;
  aspect-ratio: 5 / 3;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.panel-image::before {
  content: "";
  position: absolute;
  inset: 100px 0 0 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 100%);
}

/* ---------- 5. Wstęp, recenzje, cytaty ---------- */
.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5em;
  text-align: center;
}
.intro > * { flex: 1 1 50%; min-width: 200px; }
.intro__cover img { margin-bottom: 1em; }
.intro__text { font-size: larger; }

.reviews-title { font-size: 1.5rem; padding-top: 0.5em; }

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 2em;
  padding: 0;
  list-style: none;
}

.review {
  padding: 20px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
}
.review h3 {
  margin-bottom: 0.5em;
  padding-left: 40px;
  background: url("../img/cudzyslow.png") no-repeat left center;
  color: var(--text);
  font-size: 1.125rem;
}
.review img {
  display: block;
  margin: 0 auto 0.75em;
  padding: 6px;
  border: 1px solid #efefef;
  width: 89px;   /* 75px obrazek + 2×6px padding + 2×1px ramka */
}
.review p { margin-bottom: 1em; }
.review p:last-child { margin-bottom: 0; }

/* Nawigacja recenzji: ‹ 1 2 3 4 › (tworzona w main.js) */
.reviews:has(+ .reviews-nav:not([hidden])) { margin-bottom: 1em; }
.reviews-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 2em;
}
.reviews-nav button {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid #ccc;
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
}
.reviews-nav button:hover { background: #bbb; color: #fff; }
.reviews-nav button[aria-current="page"] { background: #999; border-color: #999; color: #fff; }
.reviews-nav__counter { min-width: 4em; text-align: center; font-size: 0.875rem; }

.wide-img { display: block; width: 100%; }

/* Cytat z dużymi cudzysłowami po bokach */
.quote {
  position: relative;
  margin: 0 0 1.5em;
  padding: 30px 56px;
  font-size: 1.1em;
  font-style: italic;
  text-align: center;
}
.quote::before,
.quote::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  background: var(--quote-mark);
}
.quote::before { left: 0;  top: 30px;    -webkit-mask: url("../img/cytat-lewy.svg") center / contain no-repeat;  mask: url("../img/cytat-lewy.svg") center / contain no-repeat; }
.quote::after  { right: 0; bottom: 30px; -webkit-mask: url("../img/cytat-prawy.svg") center / contain no-repeat; mask: url("../img/cytat-prawy.svg") center / contain no-repeat; }
.quote figcaption { margin-bottom: 0.5em; color: var(--text-dark); font-weight: 700; }
.quote blockquote { margin: 0; }
.quote p { margin: 0; }

/* ---------- 6. Przyciski i okna ---------- */
.buttons { display: grid; justify-items: center; gap: 20px; margin-bottom: 1.5em; }

.btn {
  width: 70%;
  padding: 10px 10px 10px 58px;
  border: 1px solid var(--btn-border);
  border-radius: 0;
  background: var(--btn-bg) no-repeat 5px center;
  color: var(--text);
  font: inherit;
  font-size: larger;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background-color: #e2e2e2; }
.btn--czytaj  { background-image: url("../img/ikona-czytaj.png"); }
.btn--sluchaj { background-image: url("../img/ikona-sluchaj.png"); }

.dialog {
  width: min(640px, calc(100% - 2em));
  max-height: calc(100vh - 4em);
  padding: 2em 1.5em 1em;
  border: 8px solid #000;
  border-radius: 0;
  box-shadow: 0 0 30px rgba(0,0,0,.6);
  color: var(--text);
  text-align: center;
}
.dialog::backdrop { background: rgba(0,0,0,.6); }
.dialog h2 { color: var(--text-dark); font-size: 1.5rem; }
.dialog audio { display: block; width: 100%; margin-bottom: 1.5em; }

.dialog__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  background: #000;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- 7. Media queries ---------- */
@media (max-width: 40em) {
  .btn { width: 100%; padding-left: 10px; background-image: none; }
}

@media (min-width: 30em) {
  body { font-size: 1.125rem; }
  .hero__branding { padding-top: 3em; padding-bottom: 3em; }
  .reviews-title { font-size: 1.875rem; }
  .section > .wrap { padding-top: 3.5em; padding-bottom: 2em; }
  .section-title { margin-bottom: 4.5em; }
}

@media (min-width: 48em) {
  body { font-size: 1rem; line-height: 1.5; }
  .wrap { padding: 0 3em; }

  .hero { height: 100vh; }
  .hero::before { height: 33%; }
  .hero__branding { margin-bottom: 70px; }
  .hero__title { font-size: 2.25rem; }
  .hero__tagline { font-size: 1rem; }
  .hero__scroll { display: block; position: absolute; right: 3em; bottom: 3em; padding: 1em; }

  .section > .wrap { padding-top: 6em; padding-bottom: 4.5em; }

  /* Panele na pełną wysokość ekranu z efektem "paralaksy" */
  .panel-image { aspect-ratio: auto; height: 100vh; max-height: 1200px; background-attachment: fixed; }
}

/* iOS Safari nie obsługuje background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
  .panel-image { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
