/*
Theme Name: Wnetrzarska Przystan
Theme URI: https://wnetrzarskaprzystan.pl
Author: Agata
Description: Motyw indywidualny dla marki Wnetrzarska Przystan.
Version: 1.0
Text Domain: przystan
*/

/* ==========================================================================
   Wnętrzarska Przystań — system designu
   Paleta: beżowy #fffbf5, jasna zieleń #C8D2C1, ciemna zieleń #0F3A13, pomarańczowy #BB5122, czarny #000000
   Typografia: Cormorant Garamond (nagłówki) + Inter (treść/UI)
   ========================================================================== */

:root {
  --forest: #0F3A13;
  --forest-light: #1c5320;
  --cream: #F7F0E1;
  --sand: #C8D2C1;
  --ink: #000000;
  --brass: #BB5122;
  --brass-faint: rgba(187, 81, 34, 0.6);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--forest);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; font-weight: 600; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { margin: 0 0 1.2em; max-width: 62ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 0.8em;
  display: inline-block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Nagłówek / nawigacja ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 240, 225, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--brass-faint);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest);
}

.logo span { color: var(--forest); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--forest);
}

nav.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--forest);
  color: var(--forest);
  font-size: 0.85rem;
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--sans);
}

@media (max-width: 760px) {
  nav.main-nav { display: none; }
  nav.main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--brass-faint); }
  nav.main-nav.open ul { flex-direction: column; padding: 20px var(--pad) 28px; gap: 18px; }
  .nav-toggle { display: block; }
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border: 1px solid var(--forest);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-light); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }

/* ---------- Linijki kreślarskie (motyw pomiarowy) ---------- */

.ruled {
  border-top: 1px solid var(--brass-faint);
}

.tick-corner {
  position: relative;
}
.tick-corner::before,
.tick-corner::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--brass);
  opacity: 0.6;
}
.tick-corner::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tick-corner::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 70px);
}

.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 52ch;
  color: rgba(0,0,0,0.7);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- Kafelki (siatka nawigacyjna strony głównej) ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--brass-faint);
  border: 1px solid var(--brass-faint);
  margin: 0 0 var(--pad);
}

@media (max-width: 900px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tile-grid { grid-template-columns: 1fr; }
}

.tile {
  background: var(--cream);
  padding: 40px 32px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease;
}

.tile:hover { background: var(--sand); }

.tile .tile-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--brass);
}

.tile h3 { margin-bottom: 10px; }

.tile p {
  font-size: 0.92rem;
  color: rgba(0,0,0,0.65);
  margin-bottom: 0;
}

.tile .tile-note {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--brass);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tile:hover .tile-note {
  opacity: 1;
  transform: translateY(0);
}

.tile .tile-arrow {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--forest);
}

.tile.soon { opacity: 0.55; cursor: default; }
.tile.soon:hover { background: var(--cream); }
.tile.soon .tile-note { display: none; }

/* ---------- Sekcje ogólne ---------- */

section { padding: clamp(50px, 8vw, 90px) 0; }

.section-sand { background: var(--sand); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
}

.numbered-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--brass-faint);
}

.step:last-child { border-bottom: 1px solid var(--brass-faint); }

.step .step-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--brass);
  font-style: italic;
}

@media (max-width: 600px) {
  .step { grid-template-columns: 50px 1fr; gap: 16px; }
  .step .step-num { font-size: 1.6rem; }
}

.price-card {
  border: 1px solid var(--forest);
  padding: 40px;
  background: var(--cream);
}

.price-card .price {
  font-family: var(--serif);
  font-size: 2.8rem;
  color: var(--forest);
  margin: 10px 0;
}

.price-card .price small {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: rgba(0,0,0,0.65);
}

ul.plain { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.plain li {
  padding: 10px 0;
  border-top: 1px solid var(--brass-faint);
  font-size: 0.95rem;
}
ul.plain li:last-child { border-bottom: 1px solid var(--brass-faint); }

/* ---------- Cytat / manifest ---------- */

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--forest);
  max-width: 20ch;
  line-height: 1.3;
  border-left: 2px solid var(--brass);
  padding-left: 28px;
}

/* ---------- Stopka ---------- */

.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding: 50px 0 30px;
}

.site-footer a { color: var(--cream); }
.site-footer .logo { color: var(--cream); }
.site-footer .logo span { color: var(--cream); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-grid > nav {
  justify-self: end;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-grid > nav {
    justify-self: center;
  }
}

.footer-bottom {
  padding-top: 20px;
  font-size: 0.8rem;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Formularz kontaktowy (statyczny — patrz notatka wdrożeniowa) ---------- */

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--forest);
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--brass-faint);
  background: var(--cream);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
}

/* Widoczny fokus klawiaturowy wszędzie */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

/* ---------- Zdjęcia ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--brass);
  background: var(--sand);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-frame { aspect-ratio: 4 / 5; }
.landscape-frame { aspect-ratio: 16 / 10; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .media-frame { grid-column: span 2; max-width: 320px; }
}
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .media-frame { grid-column: auto; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Logo z Customizera (header + stopka) ---------- */

.logo-image {
  display: flex;
  align-items: center;
}

.logo-image img {
  height: 44px;
  width: auto;
  display: block;
}

.site-footer .footer-logo img {
  height: 72px;
}

.footer-logo-standalone {
  width: 320px;
  height: 140px;
  background-color: var(--cream);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ---------- Ikonki social media (strona Kontakt) ---------- */

.social-links {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--forest);
  color: var(--forest);
  transition: background 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  background: var(--forest);
  color: var(--cream);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
