/* Google Fonts - display=swap zapobiega blokowaniu renderowania */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

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

:root {
  --gold:       #c9a84c;
  --gold-light: #e8c87a;
  --gold-dim:   #8a6e2f;
  --bg:         #162332;
  --bg-dark:    #0f1a26;
  --bg-card:    #1c2d3e;
  --text:       #e8e0d0;
  --muted:      #7a8a96;
  --white:      #ffffff;
  --border:     rgba(201,168,76,0.18);
  --nav-h:      80px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  height: auto; /* CLS fix */
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ══ NAV ══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(15,26,38,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo img {
  height: 110px;
  width: auto;
}
.nav-logo-fallback {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem; /* ZWIĘKSZONE z 0.68rem */
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

/* burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 210;
}
.nav-burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9,17,26,0.97);
  backdrop-filter: blur(16px);
  z-index: 190;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color 0.2s;
}
.nav-mobile-overlay a:hover { color: var(--gold); }
.nav-mobile-overlay a.active { color: var(--gold); }

/* ══ COOKIE ══ */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 16px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p {
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}
.cookie-bar p a { color: var(--gold); text-decoration: underline; }
.cookie-accept {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  padding: 10px 28px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.cookie-accept:hover { background: var(--gold-light); }

/* ══ FOOTER ══ */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 56px 48px 28px;
  margin-top: 80px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand img { height: 110px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.74rem; line-height: 1.8; color: var(--muted); max-width: 280px; }
.footer-col h4 { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.75rem; color: var(--muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-col address { font-style: normal; font-size: 0.75rem; color: var(--muted); line-height: 2; }
.footer-col address strong { color: var(--text); font-weight: 500; }
.footer-col address a { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.footer-copy { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); line-height: 1.7; }
.footer-copy a { color: var(--gold); }
.footer-made { display: flex; align-items: center; gap: 8px; opacity: 0.7; transition: opacity 0.2s; }
.footer-made:hover { opacity: 1; }
.footer-made span { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer-made img { height: 20px; width: auto; }
.footer-made-text { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600; letter-spacing: 0.1em; color: var(--gold); }

/* ══ SHARED ══ */
.section-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--white);
  letter-spacing: 0.02em;
}
.section-title em { font-style: italic; color: var(--gold); }
.gold-line { width: 48px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); margin: 20px 0; }

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  padding: 14px 32px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 13px 32px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover { background: var(--gold); color: var(--bg-dark); transform: translateY(-2px); }

.corner-tl { position: absolute; top: -8px; left: -8px; width: 34px; height: 34px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); opacity: 0.6; pointer-events: none; }
.corner-br { position: absolute; bottom: -8px; right: -8px; width: 34px; height: 34px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); opacity: 0.6; pointer-events: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══ ANIMATIONS ══ */
@keyframes fadeDown { from { opacity:0; transform:translateY(-22px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .site-footer { padding: 40px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-bar { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
}
