/* ===========================
   FONT: Broadway BT (cross-device)
=========================== */
@font-face {
  font-family: "BroadwayBT";
  src:
    local("Broadway BT"),
    local("BroadwayBT"),
    url("fonts/8094231822.woff2") format("woff2"),
    url("fonts/8094231822.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #111;
  --accent: #ff6600;
  --container: 1200px; /* maksymalna szerokość treści */
}

html {
  scroll-behavior: smooth;
}

body.dark {
  --bg: #121212;
  --text: #f1f1f1;
}
:root{
  /* watermark (jasny motyw) */
  --bglogo-opacity: 0.42; /* było 0.30 */
    --bglogo-scale: 0.82; /* REGULUJ: mniejsze = dalsze logo, większe = bliżej */
--bglogo-filter: saturate(1.55) brightness(0.88) contrast(1.28);
}

body.dark{
  /* watermark (ciemny motyw) */
  --bglogo-opacity: 0.28;           /* u Ciebie już było OK */
  --bglogo-filter: saturate(0.75) brightness(1.05) contrast(1.05);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: 0.3s;
  padding-top: 80px; /* kompensacja headera */
}

/* =======================================================
   CONTAINER – pełna responsywność bez zmiany wyglądu
======================================================= */

section,
.header-inner,
footer {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

/* =======================================================
   TŁO LOGO
======================================================= */

.bg-logo {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  opacity: var(--bglogo-opacity);
}

.bg-logo{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  opacity: var(--bglogo-opacity);
}

/* Rozmiar logo w tle (globalnie) */
.bg-logo img{
  width: min(1100px, 92vw);
  height: auto;
  transform: scale(var(--bglogo-scale));
  transform-origin: center;
  opacity: 0.95;
  filter: var(--bglogo-filter);
}


.bg-logo::before{
  content:"";
  position:absolute;
  width: min(900px, 92vw);
  height: min(900px, 92vw);
  border-radius: 999px;
  background: radial-gradient(circle,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.06) 35%,
    rgba(0,0,0,0.00) 70%
  );
  transform: rotate(-8deg);
}


body.dark .bg-logo img{
  filter: var(--bglogo-filter)
          drop-shadow(0 0 22px rgba(255,255,255,0.06));
}

body > *:not(.bg-logo):not(#intro):not(#lightbox) {
  position: relative;
  z-index: 1;
}

/* =======================================================
   INTRO
======================================================= */

body.intro-lock {
  overflow: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
}

.intro.show {
  display: flex;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  transition: opacity 0.4s ease;
}

.intro img {
  width: min(600px, 80vw);
  animation: logo-breathe 1.6s ease-in-out;
}

.intro.hide {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* =======================================================
   HEADER – stabilny fixed
======================================================= */

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: "BroadwayBT", serif !important;
  font-size: 30px;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 400 !important;
  font-style: normal !important;
}

/* jasny motyw */
.logo,
.logo:visited,
.logo:hover,
.logo:active {
  color: #111;
}

/* ciemny motyw */
body.dark .logo,
body.dark .logo:visited,
body.dark .logo:hover,
body.dark .logo:active {
  color: #fff;
}

/* span ma być IDENTYCZNY */
.logo span {
  font-family: "BroadwayBT", serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  color: inherit;
}


nav a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

nav button {
  margin-left: 15px;
  cursor: pointer;
}

/* =======================================================
   HERO
======================================================= */

.hero {
  min-height: 80vh;
  background: linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.4)),
              url("img/hero.jpg") center/cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 10px;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.95;
}

/* =======================================================
   BUTTONY
======================================================= */

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 12px 18px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.btn.btn-outline {
  background: transparent;
  border: 2px solid white;
}

.btn:hover {
  filter: brightness(0.95);
}

/* =======================================================
   SEKCJE
======================================================= */
h2 {
  margin-bottom: 20px;
  font-size: clamp(24px, 3vw, 32px);
}

/* =======================================================
   GALERIA
======================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
  display: grid;
  place-items: center;
}

/* =======================================================
   FORMULARZ
======================================================= */

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 12px;
  font-size: 15px;
}

button {
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
}

/* =======================================================
   FOOTER
======================================================= */

footer {
  text-align: center;
  padding: 40px 0;
}

/* =======================================================
   LIGHTBOX
======================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

/* =======================================================
   RESPONSYWNOŚĆ
======================================================= */

@media (max-width: 768px) {
  nav {
    display: flex;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 40px;
  }
}

@keyframes logo-breathe {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* =======================================================
   RESPONSYWNY HEADER – wersja czysta (bez starych hotfixów)
   - header zawsze widoczny (fixed)
   - na mobile: logo nie zasłania menu (logo wchodzi w układ, mniejsze)
   - bez grzebania w reszcie wyglądu
======================================================= */

:root{
  --header-h: 74px;        /* kompensacja treści pod fixed header */
  --header-pad-x: 40px;    /* poziomy padding paska */
}

#header{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

/* żeby hero/treść nie wchodziły pod pasek */
body{ padding-top: var(--header-h); }

/* żadnych sztucznych max-width na pasku */
#header .header-inner{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;

  padding-left: var(--header-pad-x) !important;
  padding-right: var(--header-pad-x) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px;
}

/* klik w linki kotwic nie chowa sekcji pod fixed header */
.section{ scroll-margin-top: calc(var(--header-h) + 16px); }
/* ===== DESKTOP/TABLET (>= 761px): logo w headerze, ale bez wystawania pod pasek ===== */
#header .header-logo{
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none;
  z-index: 2;
}
#header .header-logo img{
  width: clamp(120px, 14vw, 180px) !important;
  height: auto !important;
  display: block;
}
/* shrink na desktop: delikatnie mniejsze */
#header.header--shrink .header-logo img{
  width: clamp(105px, 12vw, 160px) !important;
}

/* ===== MOBILE: układ paska + logo bez konfliktu z menu ===== */
@media (max-width: 760px){
  :root{
    --header-h: 118px;
    --header-pad-x: 12px;
  }

  #header .header-inner{
    flex-wrap: wrap !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    gap: 10px;
  }

  /* 1 rząd: nazwa + przełącznik */
  .logo{ order: 1; }
  #themeToggle{ order: 2; }

  /* logo graficzne NIE absolute – wchodzi w flow i jest mniejsze */
  #header .header-logo{
    order: 3;
    position: static !important;
    transform: none !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 auto;
    pointer-events: none;
  }
  #header .header-logo img{
    width: 92px !important;
    height: auto;
  }

  /* 2 rząd: menu zawsze widoczne */
  nav{
    order: 4;
    width: 100%;
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  nav a{
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.2;
    padding: 6px 8px;
  }

  nav button{
    margin-left: 0 !important;
  }
}

/* ultra-wąskie telefony */
@media (max-width: 390px){
  :root{ --header-h: 126px; }
  nav a{ font-size: 13px; padding: 6px 7px; }
}
/* =====================================================
   FIX: zakres 760px–850px – logo nie nachodzi na menu
===================================================== */

@media (min-width: 760px) and (max-width: 850px) {

  /* zmniejszamy logo w headerze */
  #header .header-logo img{
    width: 140px !important;
  }

  /* delikatnie zmniejszamy odstępy w menu */
  nav a{
    margin: 0 6px;
    font-size: 14px;
  }

}



/* =======================================================
   SPÓJNOŚĆ PODSTRON: układ sekcji (szerokość + padding)
   - dotyczy bloków z class="section" (podstrony)
   - nie zmienia hero na stronie głównej
======================================================= */
.section{
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) clamp(16px, 5vw, 56px);
}

.section h1{
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  margin: 0 0 14px;
}

.section h2{
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  margin: 0 0 14px;
}

.section p{
  line-height: 1.6;
  margin: 0 0 12px;
}

/* niech dłuższe treści nie rozjeżdżają czytelności */
.section p,
.section li{
  max-width: 75ch;
}
/* =======================================================
   HEADER: delikatnie "przeszklony" + premium separator
   (nadpisanie bez ruszania layoutu/logo)
======================================================= */

#header{
  background: rgba(255, 255, 255, 0.58) !important;  /* było 0.72 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark #header{
  background: rgba(10, 10, 10, 0.78) !important;     /* było 0.72 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
