/* Słoneczny Brzeg — editorial redesign
   Shared tokens + components */

:root {
  --navy: #0a3a7d;
  --navy-deep: #07294f;
  --navy-soft: #1a4d9a;
  --gold: #c9a45e;
  --gold-soft: #e0c08a;
  --gold-deep: #a37f3b;
  --cream: #f5efe2;
  --cream-soft: #faf5e9;
  --paper: #fefcf7;
  --ink: #16223a;
  --ink-soft: #2a3852;
  --slate: #6b6f7a;
  --slate-soft: #9ba0aa;
  --line: rgba(10, 58, 125, 0.14);
  --line-soft: rgba(10, 58, 125, 0.07);
  --shadow-sm: 0 1px 2px rgba(7, 41, 79, 0.06), 0 1px 3px rgba(7, 41, 79, 0.05);
  --shadow-md: 0 8px 28px -12px rgba(7, 41, 79, 0.22), 0 4px 12px -6px rgba(7, 41, 79, 0.08);
  --shadow-lg: 0 32px 64px -28px rgba(7, 41, 79, 0.32), 0 14px 28px -14px rgba(7, 41, 79, 0.14);

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1320px;
  --container-narrow: 1080px;
  --container-prose: 720px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 18px 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}
.display-xl { font-size: clamp(48px, 7vw, 104px); }
.display-lg { font-size: clamp(40px, 5.5vw, 80px); }
.display-md { font-size: clamp(32px, 4vw, 56px); }
.display-sm { font-size: clamp(26px, 3vw, 40px); }

.italic { font-style: italic; font-weight: 300; }
.gold { color: var(--gold-deep); }
.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 60ch;
}
.label-lg {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 20px; }
}

.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-lg { padding: 160px 0; }
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-sm { padding: 56px 0; }
  .section-lg { padding: 96px 0; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.on-hero { color: white; }
.site-header.scrolled {
  background: rgba(254, 252, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 40px;
  border-bottom-color: var(--line-soft);
  color: var(--ink);
}
@media (max-width: 900px) {
  .site-header, .site-header.scrolled { padding: 16px 20px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.brand-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  display: block;
  transition: filter 0.35s ease;
}
/* On dark hero, knock the grey letters out to white while preserving sun + waves */
.site-header.on-hero .brand-logo {
  filter: brightness(0) invert(1);
}
.site-header.scrolled .brand-logo { filter: none; }
.mobile-nav .brand-logo { filter: brightness(0) invert(1); }
.brand-word { white-space: nowrap; }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav a {
  position: relative;
  padding: 4px 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  padding: 11px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.site-header.on-hero .nav-cta:hover {
  background: white;
  color: var(--ink);
}
.site-header.scrolled .nav-cta {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.site-header.scrolled .nav-cta:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--cream-soft);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.mobile-nav-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: inherit;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 36px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav .mn-cta {
  margin-top: auto;
  padding: 16px 24px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-lg); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-deep); color: white; }
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover { background: var(--ink); color: white; border-color: var(--ink); }
.btn-ghost-light:hover { background: white; color: var(--ink); border-color: white; }

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 88vh;
  min-height: 640px;
  max-height: 880px;
  display: flex;
  align-items: flex-end;
  color: white;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 41, 79, 0.35) 0%, rgba(7, 41, 79, 0) 40%, rgba(7, 41, 79, 0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 40px 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: flex-end;
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; padding: 80px 20px 56px; }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0;
  color: white;
  max-width: 12ch;
}
.hero-title .accent {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-soft);
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-self: flex-end;
  text-align: right;
  opacity: 0.92;
}
@media (max-width: 900px) {
  .hero-meta { text-align: left; align-self: flex-start; }
}
.hero-meta .loc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-side {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.7;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-side::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}
@media (max-width: 1100px) { .hero-side { display: none; } }

.hero-scroll {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: currentColor;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}
@media (max-width: 900px) { .hero-scroll { display: none; } }

/* ---------- Sections ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-bottom: 72px;
  align-items: end;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.divider-gold {
  height: 1px;
  background: var(--gold);
  border: 0;
  width: 80px;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  line-height: 1;
  color: var(--navy);
  display: block;
  margin-bottom: 12px;
}
.stat .num .unit { color: var(--gold-deep); font-style: italic; }
.stat .lbl {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 32px 16px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Cards / Tiles ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: white;
  isolation: isolate;
  transition: transform 0.4s ease;
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile:hover img { transform: scale(1.06); }
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(7,41,79,0.78) 100%);
  z-index: 1;
}
.tile-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px;
  z-index: 2;
}
.tile-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  margin: 0 0 12px 0;
  letter-spacing: -0.005em;
}
.tile-body .meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}
.tile .num-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  z-index: 2;
  letter-spacing: 0;
  color: var(--gold-soft);
}

/* ---------- Quote / Review ---------- */
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.4;
  color: var(--ink);
}
.quote .mark {
  font-size: 1.6em;
  line-height: 0;
  color: var(--gold);
  vertical-align: -0.25em;
  margin-right: 0.08em;
}
.author {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.author .av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
}
.author .name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.author .role {
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 96px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.1;
  font-weight: 400;
  color: white;
  margin: 0 0 20px 0;
}
.footer-brand em { color: var(--gold); font-weight: 300; }
.footer-brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px 0;
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,0.78); transition: color 0.2s; }
.footer a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Util ---------- */
.bg-cream { background: var(--cream); }
.bg-cream-soft { background: var(--cream-soft); }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: white; }
.bg-ink { background: var(--ink); color: var(--cream-soft); }
.text-light { color: white; }

.spacer-xs { height: 16px; }
.spacer-sm { height: 32px; }
.spacer { height: 64px; }
.spacer-lg { height: 112px; }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* page banner (smaller hero for inner pages) */
.page-banner {
  position: relative;
  height: 72vh;
  min-height: 520px;
  color: white;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-banner .hero-media::after {
  background: linear-gradient(180deg, rgba(7,41,79,0.35) 0%, rgba(7,41,79,0.15) 40%, rgba(7,41,79,0.7) 100%);
}
.page-banner-inner {
  position: relative;
  z-index: 1;
  padding: 0 40px 80px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.page-banner h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 16px 0 0 0;
  max-width: 16ch;
}
.page-banner .crumbs {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.page-banner .crumbs .sep { opacity: 0.5; }
@media (max-width: 720px) {
  .page-banner-inner { padding: 0 20px 56px; }
  .page-banner { height: auto; min-height: 480px; padding-top: 100px; }
}

/* Selection */
::selection { background: var(--gold); color: var(--ink); }
