/* =========================================================
   Weselny Kompas — system designu
   Inspirowane przesłanym wzorem: Playfair Display + Montserrat
   + Pinyon Script, ciepła paleta boho, delikatna tekstura.
   ========================================================= */

:root {
  --bg: #FFF8F4;
  --paper: #FFFFFF;
  --surface-soft: #FBF2EB;
  --surface-high: #F0E7DF;

  --primary: #7C554A;       /* nagłówki, linki, przyciski */
  --primary-deep: #5C392F;  /* najciemniejszy tekst */
  --rose: #C68A90;          /* "Weselny" w logo, akcent script */
  --rose-deep: #B06A72;
  --gold: #8A6A42;          /* etykiety, eyebrow */
  --gold-soft: #C7A871;
  --line: #E6D9CE;
  --accent: #AE3B33;        /* czerwone serce z logo — akcenty, CTA */
  --accent-soft: #F1DAD6;

  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Pinyon Script", cursive;
  --font-body: "Montserrat", "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 6px;
  --shadow-soft: 0 20px 40px -18px rgba(124, 85, 74, 0.18);
  --shadow-lift: 0 10px 26px -12px rgba(124, 85, 74, 0.22);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--primary-deep);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* delikatny szum / tekstura na całej stronie, dla premium feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

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

p { margin: 0 0 1em; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Eyebrow / script ---------- */
.script-tag {
  display: block;
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--rose);
  line-height: 1;
  margin-bottom: 6px;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-intro h2, .section-intro h3 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.section-intro p { color: var(--gold); font-size: 1.02rem; }

/* ---------- Heart dividers (motyw z logo) ---------- */
.heart-icon { width: 13px; height: 13px; fill: var(--accent); display: inline-block; flex-shrink: 0; }

.heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 30px 0 36px;
}
.heart-divider::before, .heart-divider::after {
  content: ""; height: 1px; width: 80px; background: var(--line);
}

.trio-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 10px 0 14px;
}
.trio-divider .line { height: 1px; flex: 1; max-width: 180px; background: var(--line); }
.trio-divider .hearts { display: flex; gap: 14px; }

/* ---------- Header / nawigacja ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 244, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .top-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 6px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; border: none; background: none; cursor: pointer; padding: 0; }
.brand img { height: 50px; width: auto; }
.brand .word { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.brand .word .w1 { color: var(--rose); }
.brand .word .w2 { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-deep);
  padding: 6px 2px; border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start;
    gap: 6px; padding: 14px 24px 20px; display: none;
  }
  .main-nav.open { display: flex; }
  .brand img { height: 40px; }
  .brand .word { font-size: 1.2rem; }
  .trio-divider .line { max-width: 50px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  text-align: center;
  overflow: hidden;
  transition: padding 0.2s ease;
}
@media (min-width: 768px) {
  .hero {
    padding: 160px 0 130px;
  }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(255, 248, 244, 0.15), var(--bg)), url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center 22%;
  opacity: 0.15;
  filter: grayscale(10%) sepia(20%);
  z-index: 1;
  pointer-events: none;
}
.hero .logo-mark { max-width: 360px; margin: 0 auto 18px; position: relative; z-index: 2; }
.hero p.lead { max-width: 540px; margin: 6px auto 28px; color: var(--gold); font-size: 1.08rem; position: relative; z-index: 2; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 30px; border-radius: 999px; cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn.btn-outline { background: transparent; color: var(--accent); }
.btn.btn-ghost { background: transparent; color: var(--primary-deep); border-color: var(--line); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Sekcje ogólne ---------- */
section.page-section { padding: 64px 0; }

/* ---------- Blog: bento grid ---------- */
.featured-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--surface-soft); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 32px;
  box-shadow: var(--shadow-soft);
}
.featured-card .thumb { aspect-ratio: 4/3; background: var(--surface-high); overflow: hidden; }
.featured-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-card .thumb.placeholder { display: flex; align-items: center; justify-content: center; color: var(--gold-soft); }
.featured-card .thumb.placeholder svg { width: 64px; height: 64px; }
.featured-card .body { padding: 38px 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-card .eyebrow { margin-bottom: 10px; }
.featured-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.featured-card .excerpt { color: var(--primary-deep); margin-bottom: 18px; }
.featured-card .date { font-size: 0.78rem; color: var(--gold); margin-bottom: 6px; }
.featured-card .read-more { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 760px) { .featured-card { grid-template-columns: 1fr; } }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; padding-bottom: 10px; }

.post-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.post-card .thumb { aspect-ratio: 4/3; background: var(--surface-soft); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb.placeholder { display: flex; align-items: center; justify-content: center; color: var(--gold-soft); }
.post-card .thumb.placeholder svg { width: 46px; height: 46px; }
.post-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-card .date { font-size: 0.76rem; color: var(--gold); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; }
.post-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.post-card .excerpt { color: var(--primary-deep); flex: 1; font-size: 0.94rem; }
.post-card .read-more { margin-top: 14px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

.badge-new {
  position: absolute; top: 16px; left: -8px; background: var(--accent); color: #fff;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px 5px 18px; border-radius: 0 3px 3px 0; box-shadow: 0 4px 10px -4px rgba(174, 59, 51, 0.7);
  z-index: 2;
}
.badge-new::after { content: ""; position: absolute; left: 0; bottom: -6px; border-width: 6px 8px 0 0; border-style: solid; border-color: #7a261f transparent transparent transparent; }

.empty-state { text-align: center; padding: 50px 24px 70px; color: var(--gold); }
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--gold-soft); }
.empty-state h3 { margin-bottom: 8px; color: var(--primary); }

/* ---------- Pojedynczy post ---------- */
.post-article { padding: 44px 0 90px; }
.post-article .back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 28px; }
.post-article .date { color: var(--gold); font-size: 0.84rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px; }
.post-article h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 20px; }
.post-article .cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; border: 1px solid var(--line); }
.post-article .content { font-size: 1.05rem; color: var(--primary-deep); max-width: 720px; }
.post-article .content p { margin-bottom: 1.2em; }
.post-article .content img { border-radius: var(--radius); margin: 1.4em 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 28px; max-width: 720px; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* ---------- Polecane: kafelki ---------- */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.rec-tile {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-soft); border: 1px solid var(--line); cursor: pointer;
  box-shadow: var(--shadow-lift);
}
.rec-tile .bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; transition: opacity 0.4s ease, transform 0.6s ease; }
.rec-tile:hover .bg-img { opacity: 0.55; transform: scale(1.05); }
.rec-tile .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; gap: 8px; }
.rec-tile .overlay svg { width: 34px; height: 34px; color: var(--primary); }
.rec-tile .overlay h4 { font-size: 1.05rem; margin: 0; color: var(--primary-deep); }
.rec-tile .overlay .cat { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

.rec-detail {
  display: none; position: fixed; inset: 0; background: rgba(60, 45, 35, 0.45); z-index: 100;
  align-items: center; justify-content: center; padding: 24px;
}
.rec-detail.open { display: flex; }
.rec-detail .panel {
  background: var(--paper); border-radius: var(--radius); padding: 32px; max-width: 420px;
  width: 100%; position: relative; box-shadow: var(--shadow-soft);
}
.rec-detail .panel img { border-radius: var(--radius-sm); margin-bottom: 16px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.rec-detail .close-btn { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--gold); line-height: 1; }
.rec-detail .cat { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.rec-detail h3 { margin: 6px 0 10px; }

/* ---------- Kontakt: dwie karty ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid.single-card { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
.contact-card {
  background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 34px; text-align: center; box-shadow: var(--shadow-lift);
}
.contact-card h3 { margin-bottom: 14px; }
.contact-card p { color: var(--primary-deep); margin-bottom: 22px; }
.contact-card .mail-link { font-weight: 600; letter-spacing: 0.04em; border-bottom: 1px solid var(--primary); padding-bottom: 2px; }
.contact-email { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0 28px; font-size: 1.05rem; }
.contact-email .email-icon { width: 20px; height: 20px; color: var(--accent); }
.contact-socials { display: flex; justify-content: center; gap: 22px; margin-top: 12px; }
.contact-socials a { color: var(--primary); transition: color 0.15s ease, transform 0.15s ease; }
.contact-socials a:hover { color: var(--accent); transform: translateY(-2px); }
.contact-socials .social-icon { width: 24px; height: 24px; }

/* ---------- Formularze ---------- */
.field { margin-bottom: 18px; text-align: left; }
.field label { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-family: var(--font-body); font-size: 0.96rem; color: var(--primary-deep);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rose); }
.form-msg { font-size: 0.88rem; margin-top: 12px; }
.form-msg.ok { color: #4B6A4E; }
.form-msg.err { color: var(--accent); }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 14px; background: var(--surface-soft); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 14px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.footer-brand .word { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--primary); display: block; }
.footer-brand p { color: var(--gold); font-size: 0.8rem; margin: 0; line-height: 1.3; }
.footer-nav-group { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-links a { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-deep); }
.footer-links a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.footer-legal a { font-size: 0.62rem; letter-spacing: 0.04em; color: var(--gold-soft); cursor: pointer; background: none; border: none; font-family: inherit; line-height: 1.4; }
.footer-legal a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 12px; text-align: center;
  font-size: 0.78rem; color: var(--gold);
}
.footer-bottom .admin-link { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-soft); margin-left: 14px; }

/* ---------- Strona: Polityka prywatności / Polityka cookies ---------- */
.legal-toc {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin: 0 0 48px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.legal-toc a {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--primary-deep); padding: 8px 18px; border: 1px solid var(--line);
  border-radius: 999px; transition: border-color 0.2s, color 0.2s;
}
.legal-toc a:hover { color: var(--accent); border-color: var(--accent-soft); }
.legal-block { max-width: 760px; margin: 0 auto; }
.legal-block + .legal-block { margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--line); }
.legal-block-title { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-bottom: 6px; }
.legal-updated { color: var(--gold); font-size: 0.84rem; letter-spacing: 0.03em; margin-bottom: 36px; }
.legal-block h3 {
  font-size: 1.12rem; color: var(--primary); margin: 2em 0 0.6em;
}
.legal-block h3:first-of-type { margin-top: 0; }
.legal-block h4 { font-size: 0.96rem; color: var(--primary-deep); margin: 1.3em 0 0.4em; }
.legal-block p { color: var(--primary-deep); line-height: 1.7; font-size: 0.97rem; }
.legal-block ul { margin: 0 0 1.2em 1.3em; padding: 0; color: var(--primary-deep); line-height: 1.7; font-size: 0.97rem; }
.legal-block li { margin-bottom: 0.35em; }
.legal-block a { text-decoration: underline; text-decoration-color: var(--line); }
.legal-contact { font-weight: 600; color: var(--primary); }

/* ---------- Strony statyczne / intro ---------- */
.page-intro { padding: 56px 0 16px; text-align: center; }

/* ---------- Skeleton loading ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-soft) 25%, #fff 37%, var(--surface-soft) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -10px rgba(124, 85, 74, 0.25);
  padding: 22px 24px; display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 240px; font-size: 0.9rem; color: var(--primary-deep); margin: 0; }
.cookie-text a { font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 20px; font-size: 0.76rem; }

.cookie-prefs { max-width: var(--max-width); margin: 18px auto 0; border-top: 1px solid var(--line); padding-top: 18px; display: none; }
.cookie-prefs.open { display: block; }
.cookie-pref-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cookie-pref-row:last-of-type { border-bottom: none; }
.cookie-pref-row strong { font-size: 0.92rem; color: var(--primary-deep); }
.cookie-pref-row p { font-size: 0.84rem; color: var(--gold); margin: 4px 0 0; }
.cookie-pref-row input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--accent); flex-shrink: 0; }

/* Zablokowanie kursora tekstowego (I-beam) na elementach nieedytowalnych */
body, h1, h2, h3, h4, p, span, div, img, section, header, footer, nav, button {
  cursor: default;
  user-select: none;
}

/* Przywrócenie odpowiednich kursorów dla elementów interaktywnych */
a, a *, button, button *, .btn, [role="button"], [role="button"] * {
  cursor: pointer;
}

input, textarea, [contenteditable], [contenteditable] * {
  cursor: text !important;
  user-select: text !important;
}
