/* ==========================================================================
   Davide Services — style podstron (o nas, usługi, marki, kolekcja, kontakt,
   dziennik). Bazuje na tokenach i komponentach ze style.css.
   ========================================================================== */

/* ─── Hero podstrony (niższy niż na homepage) ─── */
.page-hero {
  /* Ciemna sekcja na foto: tokeny w zasięgu -> tytuł/okruszki jasne na obrazie */
  --text: var(--on-dark);
  --text-secondary: var(--on-dark-muted);
  --text-tertiary: rgba(255,255,255,.5);
  color: var(--on-dark);
  position: relative;
  min-height: 64vh;
  min-height: 64svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero__media {
  position: absolute; inset: 0;
  background-color: var(--surface-dark);
  background-position: center 25%;
  background-size: cover;
  transform: scale(1.04);
  animation: kenburns 24s ease-out infinite alternate;
}
.page-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,15,15,.6) 0%, rgba(15,15,15,.35) 40%, rgba(15,15,15,.9) 100%),
    linear-gradient(90deg, rgba(15,15,15,.7) 0%, transparent 60%);
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.page-hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--text);
  max-width: 18ch;
  text-wrap: balance;
}
.page-hero__title em { font-style: italic; color: var(--gold); }
.page-hero__lead {
  margin-top: 1.25rem;
  max-width: 40rem;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── Okruszki / breadcrumb ─── */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}
.crumbs a { color: var(--text-secondary); transition: color .2s; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-current] { color: var(--gold); }
.crumbs .sep { color: rgba(207,181,122,.4); }

/* ─── Proza / bloki treści ─── */
.prose { max-width: 44rem; }
.prose.center { margin-inline: auto; text-align: center; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.18;
  color: var(--gold-ink);
  margin-top: 2.5rem;
}
.prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  color: var(--gold-ink);
  margin-top: 2rem;
}
.prose p {
  font-size: clamp(.98rem, 1.1vw, 1.06rem);
  line-height: 1.85;
  color: var(--text-secondary);
  font-weight: 300;
  text-wrap: pretty;
}
.prose strong { color: var(--gold-ink); font-weight: 500; }
.prose a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(207,181,122,.4); }
.prose a:hover { color: var(--gold-ink); }
.prose .drop {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
}
.prose .drop em { font-style: italic; color: var(--gold-ink); }

/* ─── Siatka cech / kroków ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}
.feature-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: 1.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.015);
  transition: border-color .3s, background .3s, transform .3s var(--ease-out);
}
.feature-card:hover { border-color: rgba(207,181,122,.35); background: rgba(207,181,122,.03); transform: translateY(-3px); }
.feature-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: rgba(207,181,122,.6);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
/* Duża, flat ikona jako watermark w tle kafelka */
.feature-card__bg-icon {
  position: absolute;
  right: -1.75rem;
  bottom: -1.75rem;
  width: clamp(8rem, 13vw, 11rem);
  height: clamp(8rem, 13vw, 11rem);
  color: var(--gold-ink);
  opacity: .07;
  pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
}
.feature-card:hover .feature-card__bg-icon { opacity: .15; transform: scale(1.06) rotate(-3deg); }
.feature-card__bg-icon svg { width: 100%; height: 100%; display: block; stroke-width: 1; }
/* treść zawsze nad ikoną */
.feature-card > h3, .feature-card > p { position: relative; z-index: 1; }
.feature-card > .link-arrow { position: relative; z-index: 1; margin-top: auto; padding-top: 1.25rem; }
.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold-ink);
  margin-bottom: .55rem;
}
.feature-card p {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ─── Fakty / liczby ─── */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 2rem;
  padding: 2.25rem clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(207,181,122,.2);
  border-radius: var(--r-lg);
  background: rgba(207,181,122,.03);
}
.fact { text-align: center; }
.fact__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--gold-ink);
}
.fact__label {
  margin-top: .6rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── Lista marek ─── */
.brand-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.brand-row {
  display: grid;
  grid-template-columns: 12rem 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--border);
  transition: background .35s var(--ease-out);
}
.brand-row:hover { background: linear-gradient(90deg, rgba(207,181,122,.04), transparent 70%); }
.brand-row__logo {
  display: flex;
  align-items: center;
  height: 42px;
}
.brand-row__logo img {
  max-height: 40px; max-width: 100%;
  width: auto; object-fit: contain;
  filter: brightness(0);
  opacity: .8;
  transition: opacity .3s;
}
.brand-row:hover .brand-row__logo img { opacity: 1; }
.brand-row__body { max-width: 42rem; }
.brand-row__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gold-ink);
  margin-bottom: .35rem;
}
.brand-row__tag {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
}
.brand-row__meta {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ─── Galeria kolekcji ─── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}
.gallery__item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.gallery__item--wide { aspect-ratio: 3 / 2; grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(15,15,15,.5)); }
.gallery__cap {
  position: absolute; left: 1rem; bottom: .9rem; z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: 1rem;
  color: var(--text); text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

/* ─── Kontakt ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-list { display: flex; flex-direction: column; }
.contact-item {
  display: flex;
  gap: 1.1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
}
.contact-item:first-child { border-top: 0; }
.contact-item svg { width: 1.35rem; height: 1.35rem; color: var(--gold-ink); flex-shrink: 0; margin-top: .15rem; }
.contact-item__label {
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: .4rem;
}
.contact-item__value { font-size: 1rem; color: var(--text); font-weight: 300; line-height: 1.6; }
.contact-item__value a { color: var(--text); transition: color .2s; }
.contact-item__value a:hover { color: var(--gold-ink); }
.contact-item__value strong { color: var(--gold-ink); font-weight: 500; }
.contact-map {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 340px;
  height: 100%;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ─── Dziennik (blog) ─── */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.journal-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.journal-card:hover { border-color: rgba(207,181,122,.4); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.journal-card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.journal-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.journal-card:hover .journal-card__media img { transform: scale(1.05); }
.journal-card__body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.journal-card__cat {
  font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: .7rem;
}
.journal-card__title {
  font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.25;
  color: var(--text); margin-bottom: .6rem;
}
.journal-card:hover .journal-card__title { color: var(--gold-ink); }
.journal-card__excerpt { font-size: .9rem; line-height: 1.6; color: var(--text-secondary); font-weight: 300; flex: 1; }
.journal-card__meta { margin-top: 1.25rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); }

/* ─── Artykuł ─── */
.article { max-width: 46rem; margin-inline: auto; }
.article__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 1.5rem;
}
.article__meta .cat { color: var(--gold-ink); font-weight: 600; }
.article__figure { margin: 2.5rem 0; }
.article__figure img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--border); }
.article__figure figcaption { margin-top: .75rem; font-size: .8rem; color: var(--text-tertiary); font-style: italic; text-align: center; }

/* ─── Dokument prawny (polityka prywatności) ─── */
.legal-box {
  padding: 1.75rem;
  border: 1px solid rgba(207,181,122,.28);
  border-radius: var(--r-lg);
  background: rgba(207,181,122,.04);
  margin: 2rem 0;
}
.legal-box__label {
  font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1rem;
}
.legal-box p { font-size: .95rem; line-height: 1.8; color: var(--text-secondary); font-weight: 300; margin: 0; }
.legal-box strong { color: var(--text); font-weight: 500; }
.legal-box a { color: var(--gold-ink); }

.legal-table { width: 100%; margin: 1.75rem 0; border-collapse: collapse; font-size: .9rem; }
.legal-table th, .legal-table td {
  text-align: left; padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top; line-height: 1.6;
}
.legal-table th {
  font-family: var(--sans); font-size: .64rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink);
  border-bottom-color: rgba(207,181,122,.3);
}
.legal-table td { color: var(--text-secondary); font-weight: 300; }
.legal-table td:first-child { color: var(--text); }
.legal-table__wrap { overflow-x: auto; }

.legal-note {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.1rem 1.25rem; margin: 1.75rem 0;
  border-left: 2px solid var(--gold);
  background: rgba(207,181,122,.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .9rem; line-height: 1.7; color: var(--text-secondary); font-weight: 300;
}
.legal-note strong { color: var(--gold-ink); font-weight: 500; }

.legal-meta {
  font-size: .78rem; letter-spacing: .06em; color: var(--text-tertiary);
  padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border);
}

/* ─── FAQ (natywne <details>) ─── */
.faq { max-width: 46rem; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: var(--gold-ink);
  transition: color .2s;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--gold-ink); }
.faq-item > summary::after {
  content: '';
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out);
  margin-right: .25rem;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-item__body {
  padding: 0 0 1.5rem;
  font-size: .98rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 42rem;
}

/* ─── Prosty formularz (kontakt) ─── */
.simple-form { display: grid; gap: 1rem; max-width: 34rem; }
.simple-form label { display: flex; flex-direction: column; gap: .4rem; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); }
.simple-form input, .simple-form textarea {
  padding: .85rem 1rem; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text); font-family: var(--sans); font-size: .95rem; font-weight: 300;
}
.simple-form textarea { resize: vertical; min-height: 90px; }
.simple-form input:focus, .simple-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207,181,122,.15); }

/* ─── Responsywność ─── */
@media (max-width: 860px) {
  .brand-row { grid-template-columns: 1fr; gap: .6rem; }
  .brand-row__logo { height: 34px; }
  .brand-row__meta { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; aspect-ratio: 3/4; }
}
