/* =========================================================
   NORDISKA — HOME
   Źródło: docs/design/mockups/home.html. Sekcje bez zaplecza w danych
   (Eras, Designers, Story, Newsletter, Cart drawer, Mobile menu, reveal
   animations) pominięte -- patrz komentarz w product_home_category.html.twig.
   Bootstrapowe klasy siatki z mockupu (row-cols-*, col-lg-*) zastąpione
   zwykłym CSS grid, tak jak w pozostałych przeprojektowanych stronach
   (patrz collection-listing.css/.product-grid, about.css/.values-grid) --
   żadna z nich nie ładuje Bootstrapa.
========================================================= */

:root {
  --ivory: #f4f1ea;
  --ivory-dark: #eae6dd;
  --dark: #151716;
  --muted: #5a605d; /* WCAG AA: >= 4.5:1 na wszystkich jasnych tłach projektu (ivory, ivory-dark, #e7e2d8, #ddd8ce) -- wcześniej 3.6-4.2 */
  --muted-on-dark: #8a8b86; /* drugorzędny tekst na ciemnej stopce (--dark): 5.25:1, wcześniej #777873/#6f706b = 4.05/3.61 */
  --border: #d8d5cd;

  --serif: "Libre Baskerville", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Inter", Helvetica, Arial, sans-serif;

  --container: 1440px;
  --space-xl: 80px;
  --space-xxl: 128px;

  --transition: 450ms cubic-bezier(.2,.65,.2,1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Pojedyncze długie słowo/adres w dużym kroju (np. nagłówki, e-mail) łamie się tylko wtedy, gdy
     inaczej nie zmieści się na ekranie -- zamiast dawać poziome przewijanie na telefonie. */
  overflow-wrap: break-word;
}

img {
  display: block;
  width: 100%;
}

button, input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory-dark);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
}

.section {
  width: min(calc(100% - 80px), var(--container));
  margin: auto;
  padding-block: var(--space-xxl);
}

.section--small {
  padding-block: var(--space-xl);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-title {
  max-width: 800px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}

.section-intro {
  max-width: 470px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.link-arrow::after {
  content: "→";
  font-size: 15px;
  transition: transform var(--transition);
}

.link-arrow:hover::after {
  transform: translateX(5px);
}

/* =========================================================
   HEADER (przezroczysty na hero, "scrolled" po przewinięciu --
   jedyna strona z takim wariantem, patrz base.css)
========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 82px;
  background: transparent;
  transition: background var(--transition), border-color var(--transition), height var(--transition);
}

.site-header.scrolled {
  height: 64px;
  background: rgba(244, 241, 234, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(calc(100% - 80px), var(--container));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
}

.logo {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .22em;
  color: white;
  transition: color var(--transition);
}

.scrolled .logo {
  color: var(--dark);
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a,
.header-actions a,
.header-actions button {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: white;
  transition: color var(--transition);
}

.scrolled .main-nav a,
.scrolled .header-actions a,
.scrolled .header-actions button {
  color: var(--dark);
}

.main-nav a:hover,
.header-actions a:hover,
.main-nav a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-coming-soon {
  cursor: default;
  opacity: .55;
}

/* Zawężone do .main-nav (2026-09-11), żeby nie nadpisać stopki -- patrz komentarz w base.css. */
.main-nav .nav-coming-soon {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-coming-soon:hover {
  opacity: .55;
  text-decoration: none;
}

.header-actions {
  margin-left: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(135deg, #6d6153, #d5d0c5);
}

.hero-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(85, 75, 61, .15), rgba(244, 241, 234, .1));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 80px), var(--container));
  margin: auto;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 55px;
  color: white;
}

.hero-copy {
  max-width: 900px;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 116px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.055em;
}

.hero-copy p {
  max-width: 430px;
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.55;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  height: 52px;
  margin-top: 30px;
  padding-inline: 28px;
  background: white;
  color: var(--dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.hero-button:hover {
  background: var(--dark);
  color: white;
}

.hero-location {
  position: absolute;
  right: 0;
  bottom: 58px;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* =========================================================
   PRODUCTS
========================================================= */

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 55px;
}

.products-header .section-intro {
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.products-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e7e2d8;
}

.product-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.035);
}

.product-number {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: white;
  font-size: 9px;
  letter-spacing: .1em;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 9px;
  background: rgba(244, 241, 234, .92);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.product-info {
  padding-top: 17px;
}

.product-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.05;
}

.product-price {
  margin-top: 10px;
  font-size: 12px;
}

/* =========================================================
   EDITORIAL
========================================================= */

.edit-section {
  width: 100%;
  max-width: none;
  background: var(--dark);
  color: var(--ivory);
}

.edit-layout {
  width: min(calc(100% - 80px), var(--container));
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: center;
}

.edit-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.edit-copy .eyebrow {
  color: #9c9e99;
}

.edit-copy .section-title {
  max-width: 520px;
}

.edit-copy .section-intro {
  color: #aaa9a3;
}

/* =========================================================
   COLLECTIONS
========================================================= */

.collection-grid {
  margin-top: 65px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.collection-card {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
  background: #ddd8ce;
}

.collection-card.tall {
  grid-row: span 2;
  min-height: 880px;
}

.collection-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}

.collection-card:hover .image-placeholder,
.collection-card:hover > img {
  transform: scale(1.035);
}

.collection-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 35px;
  color: white;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}

.collection-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 55px);
  font-weight: 400;
  line-height: .9;
}

.collection-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* =========================================================
   ERAS ("Design through time")
   .era-list to zwykły CSS grid zamiast Bootstrapowego row-cols-2/row-cols-md-5
   z mockupu (jak reszta pliku). Logika obramowań uogólniona względem mockupu
   (tam :nth-child(2)/:nth-child(n+3) zakładały dokładnie 5 elementów) -- tu
   :nth-child(2n)/:nth-child(n+3) działają poprawnie przy dowolnej liczbie
   dekad w katalogu, nie tylko przy pięciu.
========================================================= */

.era-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.era-list {
  margin-top: 65px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
}

.era-item {
  position: relative;
  padding: 28px 15px;
  border-right: 1px solid var(--border);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 55px);
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}

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

.era-item:hover {
  background: var(--dark);
  color: var(--ivory);
}

.era-item span {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
}

/* =========================================================
   DESIGNERS
   Wiersze jak na /designers (designers.css .designer-row), ale bez zdjęcia
   profilowego (Designer go nie ma) i bez grupowania A-Z (to tylko podgląd
   pierwszych kilku, patrz ProductCategoryPageBuilder).
========================================================= */

.designers-list {
  margin-top: 65px;
}

.designer-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 30px;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  border-top: 1px solid var(--border);
}

.designers-list a.designer-row:last-child {
  border-bottom: 1px solid var(--border);
}

.designer-name {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.025em;
  transition: color var(--transition);
}

.designer-meta {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: right;
}

.designer-arrow {
  color: var(--muted);
  font-size: 16px;
  text-align: right;
  transition: transform var(--transition), color var(--transition);
}

.designer-row:hover .designer-name {
  color: var(--muted);
}

.designer-row:hover .designer-arrow {
  color: var(--dark);
  transform: translateX(4px);
}

/* =========================================================
   MANUFACTURERS
   Wygląda analogicznie do Designers wyżej (na wyraźną prośbę) --
   identyczne reguły, tylko pod nazwą encji Manufacturer.
========================================================= */

.manufacturers-list {
  margin-top: 65px;
}

.manufacturer-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 30px;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  border-top: 1px solid var(--border);
}

.manufacturers-list a.manufacturer-row:last-child {
  border-bottom: 1px solid var(--border);
}

.manufacturer-name {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.025em;
  transition: color var(--transition);
}

.manufacturer-meta {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: right;
}

.manufacturer-arrow {
  color: var(--muted);
  font-size: 16px;
  text-align: right;
  transition: transform var(--transition), color var(--transition);
}

.manufacturer-row:hover .manufacturer-name {
  color: var(--muted);
}

.manufacturer-row:hover .manufacturer-arrow {
  color: var(--dark);
  transform: translateX(4px);
}

/* =========================================================
   ABOUT / STORY
========================================================= */

.story-image {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  margin-bottom: 60px;
}

.story-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 100px;
  align-items: start;
}

.story-heading .section-title {
  max-width: 650px;
}

.story-text {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* =========================================================
   WHY NORDISKA
========================================================= */

.why-section {
  width: 100%;
  max-width: none;
  background: var(--ivory-dark);
}

.why-section > * {
  width: min(calc(100% - 80px), var(--container));
  margin-inline: auto;
}

.why-grid {
  margin-top: 65px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-card {
  padding-top: 22px;
  border-top: 1px solid var(--dark);
}

.why-number {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .15em;
}

.why-title {
  margin-top: 70px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
}

.why-text {
  max-width: 300px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* =========================================================
   JOURNAL
========================================================= */

.journal-grid {
  margin-top: 65px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.journal-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.journal-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd8ce;
}

.journal-category {
  margin-top: 18px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.journal-title {
  max-width: 390px;
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.05;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  padding-block: 70px 30px;
  background: var(--dark);
  color: var(--ivory);
}

.footer-main {
  width: min(calc(100% - 80px), var(--container));
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  padding-bottom: 100px;
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 801px) {
  .footer-brand {
    grid-column: auto;
  }
}

.footer-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .22em;
}

.footer-tagline {
  max-width: 220px;
  margin-top: 20px;
  color: #9a9a94;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.05;
}

.footer-heading {
  margin: 0 0 18px;
  color: var(--muted-on-dark);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-links .nav-coming-soon {
  width: fit-content;
  font-size: 12px;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  width: min(calc(100% - 80px), var(--container));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #333530;
  color: var(--muted-on-dark);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .edit-layout,
  .story-layout {
    gap: 50px;
  }
}

@media (max-width: 800px) {
  :root {
    --space-xl: 60px;
    --space-xxl: 85px;
  }

  .era-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .era-item:nth-child(2n) {
    border-right: 0;
  }

  .era-item:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }

  .site-header {
    height: 68px;
  }


  .hero-content {
    padding-bottom: 35px;
  }

  .hero-copy h1 {
    font-size: clamp(50px, 15vw, 90px);
  }

  .hero-location {
    display: none;
  }

  .products-header {
    display: block;
  }

  .products-header .section-intro {
    margin-top: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 12px;
  }

  .edit-layout,
  .story-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .story-image {
    margin-bottom: 35px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-card.tall {
    grid-row: auto;
    min-height: 600px;
  }

  .collection-card {
    min-height: 450px;
  }

  .why-grid,
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .designer-row,
  .manufacturer-row {
    grid-template-columns: 1fr 30px;
    row-gap: 6px;
  }

  .designer-meta,
  .manufacturer-meta {
    grid-column: 1 / 2;
    text-align: left;
  }

  .why-title {
    margin-top: 35px;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 25px;
  }

  .footer-bottom {
    display: block;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .hero-button {
    width: 100%;
  }

  .product-name {
    font-size: 17px;
  }

  .collection-card,
  .collection-card.tall {
    min-height: 470px;
  }
}
