/* =====================================================================
   CottonSky V9 — styles.css
   Czytelny, prosty układ pre-launch marki CottonSky.
   ===================================================================== */

:root {
  --bg: #f7f4ee;
  --panel: #fbfaf7;
  --panel-2: #f1ede6;
  --text: #1f2530;
  --muted: #66707d;
  --line: #ddd5ca;
  --accent: #687957;
  --accent-dark: #566548;
  --shadow: 0 18px 40px rgba(44, 39, 32, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1340px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbf8f2 0%, #f4efe7 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(221, 213, 202, 0.85);
}

.header-row {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.brand img { width: 210px; height: auto; }
.brand-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 700;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}
.main-nav a,
.nav-disabled {
  font-size: 16px;
  color: #27313a;
}
.main-nav a:hover { color: var(--accent); }
.nav-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}
.lang {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
}
.lang.is-active {
  background: var(--panel-2);
  color: var(--text);
  font-weight: 700;
}

/* ---------------------------------------------------------------------
   Przyciski
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.72);
  border-color: #b5ab9d;
}

.hero {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.42fr);
  gap: 18px;
  padding: 28px 0 18px;
  align-items: stretch;
}

.hero-copy,
.hero-slider,
.hero-benefits,
.about,
.collection-row,
.patterns,
.opinion-card,
.image-card,
.cotton-card,
.site-footer {
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(221, 213, 202, 0.85);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-benefits,
.about,
.patterns,
.opinion-card,
.cotton-card,
.image-card,
.collection-row {
  border-radius: var(--radius);
}

/* Lewy blok hero — kierunek z wcześniejszej wersji Bootstrap. */
.hero-copy-bootstrap {
  padding: clamp(28px, 4vw, 54px) clamp(24px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8f5ef;
}

.hero-title-bootstrap {
  margin: 0 0 28px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(56px, 5.6vw, 88px);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: #17384b;
}

.hero-title-bootstrap em {
  font-style: italic;
  font-weight: 400;
  color: #3f738e;
}

.hero-lead-bootstrap {
  margin: 0 0 28px;
  max-width: 470px;
  font-size: 19px;
  line-height: 1.65;
  color: #233d4b;
}

.hero-btn-bootstrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 22px;
  width: 200px;
  min-width: 0;
  height: 58px;
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #4f7c94;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.hero-btn-bootstrap:hover {
  background: #416b82;
  color: #fff;
  transform: none;
}

.hero-btn-arrow {
  font-size: 18px;
  line-height: 1;
  margin-top: -1px;
}

.hero-sign-bootstrap {
  margin: clamp(34px, 8vh, 76px) 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.4;
  font-style: italic;
  color: #687b85;
}

/* Slider i pasek zalet tworzą jedną prawą kolumnę. */
.hero-main {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(460px, 1fr) auto;
  gap: 14px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 460px;
}

.slides,
.slide,
.slide img {
  width: 100%;
  height: 100%;
}

.slides { position: relative; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.slide.active { opacity: 1; }

.slide img {
  object-fit: cover;
  object-position: center;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.85);
  background: rgba(250,248,244,0.88);
  color: #2f3741;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
}

.dots button.active { background: white; }

/* Zalety zostały przeniesione pod slider. */
.hero-benefits {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  background: rgba(255,255,255,0.60);
}

.benefit-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 2px 12px 2px 0;
  border-right: 1px solid rgba(221,213,202,0.9);
}

.benefit-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.benefit-icon {
  width: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  font-size: 23px;
  color: #44505d;
}

.benefit-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 3px;
}

.benefit-item small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.about {
  margin-top: 12px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
}
.section-heading h2,
.about h2,
.collection-info h3,
.patterns h2,
.bottom-grid h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  margin: 0;
}
.about h2,
.section-heading h2 { font-size: clamp(34px, 3vw, 46px); }
.about-copy p,
.section-note,
.collection-info p,
.mini-card p,
.pattern-card figcaption,
.opinion-card p,
.form-help,
.cotton-card p,
.footer-copy {
  color: var(--muted);
}
.about-copy p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.6;
}

.collections { padding: 22px 0 10px; }
.section-heading-wide {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 480px);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}
.section-note {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.collection-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  margin-bottom: 16px;
  align-items: stretch;
}
.collection-info {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.collection-info h3 {
  font-size: clamp(34px, 3.1vw, 56px);
  line-height: 0.95;
  margin-bottom: 14px;
}
.collection-info p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.5;
}
.collection-banner { display: none; }
.collection-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}
.collection-scroller::-webkit-scrollbar { height: 10px; }
.collection-scroller::-webkit-scrollbar-thumb {
  background: #d7cfc3;
  border-radius: 999px;
}
.mini-card {
  min-height: 180px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  scroll-snap-align: start;
}
.mini-card h4 {
  margin: 10px 0 8px;
  font-size: 18px;
}
.mini-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.photo-scroller { align-items: start; }

.photo-card {
  padding: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  display: grid;
  grid-template-rows: auto 78px;
  border-radius: 18px;
}

.collection-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3efe8;
}

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

.has-baked-caption .collection-photo img {
  height: auto;
  min-height: 125%;
  object-fit: cover;
  object-position: top center;
}


.photo-card figcaption {
  padding: 11px 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  background: #fff;
  border-top: 1px solid rgba(221, 213, 202, 0.75);
}

.photo-card figcaption strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.1;
  color: #2b2e31;
}

.photo-card figcaption span {
  font-size: 13px;
  line-height: 1.25;
  color: var(--muted);
}
.swatch {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(76,74,68,0.10);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,0.45);
}
.swatch.natural { background: #f0e6d7; }
.swatch.cream { background: #f5ead2; }
.swatch.sand { background: #e6d6bf; }
.swatch.blush { background: #efcfd2; }
.swatch.lavender { background: #d7cee8; }
.swatch.sky { background: #c7d9ef; }
.swatch.mint { background: #cbe1d6; }
.swatch.olive-light { background: #b7bea0; }
.swatch.graphite-light { background: #a8abb0; }
.swatch.grey-cool { background: #c8ccd1; }
.swatch.beige-stone { background: #c9b8a0; }
.swatch.slate-blue { background: #7f8fa4; }

.patterns {
  margin-top: 10px;
  padding: 26px;
}
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}
.pattern-card {
  margin: 0;
  padding: 0;
}
.pattern-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.pattern-card figcaption {
  padding-top: 8px;
  text-align: center;
  font-size: 15px;
}

.bottom-grid {
  padding: 20px 0 34px;
  display: grid;
  grid-template-columns: 0.94fr 0.9fr 0.86fr;
  gap: 16px;
}
.opinion-card,
.cotton-card,
.image-card { padding: 26px; }
.opinion-card h3,
.cotton-card h3 { font-size: 26px; margin-bottom: 12px; }
.opinion-card p,
.cotton-card p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
}

.feedback-mail {
  margin-top: 18px !important;
}
.feedback-mail a {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 56, 75, 0.28);
}
.feedback-mail a:hover {
  border-bottom-color: currentColor;
}
.image-card { display: grid; place-items: center; }
.image-card img {
  width: 100%;
  border-radius: 18px;
}
.cotton-card .btn { margin-top: 8px; }

.site-footer {
  border-radius: 30px 30px 0 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  margin-top: 8px;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 110px;
}
.footer-brand img { width: 180px; }
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-nav a { color: #38424d; }
.footer-copy {
  display: grid;
  justify-items: end;
  gap: 6px;
  font-size: 14px;
}

@media (max-width: 1220px) {
  .hero { grid-template-columns: 1fr; }
  .hero-main { grid-template-rows: minmax(520px, 1fr) auto; }
  .hero-slider { min-height: 520px; }
  .hero-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .collection-row { grid-template-columns: 1fr; }
  .section-heading-wide { grid-template-columns: 1fr; }
  .pattern-grid { grid-template-columns: repeat(4, 1fr); }
  .bottom-grid { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 18px 0; }
  .footer-copy { justify-items: center; }
}

@media (max-width: 920px) {
  .header-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0;
  }
  .main-nav { flex-wrap: wrap; gap: 18px; }
  .hero-title-bootstrap { font-size: clamp(52px, 9vw, 76px); }
  .hero-lead-bootstrap { font-size: 18px; }
  .about { grid-template-columns: 1fr; }
  .hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pattern-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 18px)); }
  .hero { padding-top: 16px; }
  .hero-copy,
  .hero-benefits,
  .about,
  .patterns,
  .opinion-card,
  .image-card,
  .cotton-card { padding: 20px; }
  .hero-main { grid-template-rows: minmax(410px, 1fr) auto; }
  .hero-slider { min-height: 410px; }
  .hero-title-bootstrap { font-size: clamp(46px, 14vw, 62px); }
  .hero-sign-bootstrap { margin-top: 34px; }
  .hero-benefits { grid-template-columns: 1fr 1fr; padding: 16px; }
  .benefit-item:nth-child(2) { border-right: 0; }
  .benefit-item:nth-child(n+3) { border-top: 1px solid rgba(221,213,202,0.9); padding-top: 12px; }
  .collection-row { padding: 12px; }
  .collection-info h3 { font-size: 30px; }
  .collection-scroller { grid-auto-columns: minmax(210px, 72%); }
  .pattern-grid { grid-template-columns: 1fr; }
}


/* V17: podpisy modeli — jedna czytelna listwa pod każdym zdjęciem. */
.photo-card figcaption {
  display: flex !important;
  min-height: 78px;
  padding: 11px 14px 10px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  background: #fff;
  border-top: 1px solid rgba(221, 213, 202, 0.75);
}

.photo-card figcaption strong {
  display: block;
}

.photo-card figcaption span {
  display: block;
}


/* =====================================================================
   V18: powiększenie zdjęć modeli (lightbox)
   ===================================================================== */
.collection-photo {
  cursor: zoom-in;
}

.collection-photo img {
  transition: transform 180ms ease;
}

@media (hover: hover) {
  .collection-photo:hover img {
    transform: scale(1.025);
  }
}

.collection-photo:focus-visible {
  outline: 3px solid rgba(78, 124, 148, 0.65);
  outline-offset: 3px;
}

.collection-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(18, 22, 24, 0.88);
  backdrop-filter: blur(3px);
}

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

.collection-lightbox__image {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  cursor: zoom-out;
}

.collection-lightbox__close {
  position: fixed;
  top: 18px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: 999px;
  background: rgba(20, 24, 26, 0.62);
  color: #fff;
  font: 300 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.collection-lightbox__close:hover,
.collection-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .collection-lightbox {
    padding: 14px;
  }

  .collection-lightbox__image {
    max-width: 96vw;
    max-height: 86vh;
    border-radius: 9px;
  }

  .collection-lightbox__close {
    top: 10px;
    right: 10px;
  }
}
