/* ============================================
   Domowe Akwarium — tokens
   ============================================ */
:root{
  --bg-deep:      #0B211E;
  --bg-panel:     #12302B;
  --bg-panel-2:   #163832;
  --line:         rgba(237, 239, 231, 0.10);

  --text-primary: #EDEFE7;
  --text-muted:   #93A69E;

  --accent-wood:  #C98A4B;
  --accent-wood-dim: #A8713B;
  --accent-plant: #5B9279;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1120px;
  --radius: 12px;
}

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

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

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

h1{ font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 400; }
h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3{ font-size: 1.25rem; font-weight: 500; }

p{ max-width: 62ch; color: var(--text-muted); }

a{ color: var(--accent-wood); text-decoration: none; }
a:hover{ color: var(--text-primary); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--accent-plant);
  outline-offset: 3px;
}

section{ padding: 96px 0; }
.panel{
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel) 18%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ============================================
   Header
   ============================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 33, 30, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
  font-style: italic;
}
.logo:hover{ color: var(--accent-wood); }

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

.main-nav{
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a{
  color: var(--text-muted);
  font-size: 0.95rem;
}
.main-nav a:hover{ color: var(--text-primary); }

.nav-cta{
  color: var(--bg-deep) !important;
  background: linear-gradient(180deg, #E3B27E, var(--accent-wood));
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  box-shadow: 0 6px 16px -6px rgba(201, 138, 75, 0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.nav-cta:hover{ background: var(--text-primary) !important; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  width: 22px;
  height: 2px;
  background: var(--text-primary);
}

/* ============================================
   Hero
   ============================================ */
.hero{
  position: relative;
  padding: 120px 0 0;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(6,15,14,0.55) 0%, rgba(11,33,30,0.7) 55%, var(--bg-deep) 100%),
    url('img/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
}

.hero-inner{ padding-bottom: 90px; }

.hero-kicker{
  color: var(--accent-plant);
  font-size: 0.95rem;
  margin-bottom: 18px;
  max-width: none;
}

.hero-lede{
  font-size: 1.15rem;
  margin-top: 22px;
}

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

.btn{
  position: relative;
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 500;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn::after{
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn:hover::after{ left: 130%; }

.btn-primary{
  background: linear-gradient(180deg, #E3B27E, var(--accent-wood));
  color: var(--bg-deep);
  box-shadow: 0 10px 24px -10px rgba(201, 138, 75, 0.6), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover{
  background: linear-gradient(180deg, #EFC190, #D89A5C);
  color: var(--bg-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(201, 138, 75, 0.7), inset 0 1px 0 rgba(255,255,255,0.45);
}

.btn-ghost{
  border-color: var(--line);
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-ghost:hover{
  border-color: var(--accent-plant);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

.waterline{
  width: 100%;
  line-height: 0;
}
.waterline svg{ width: 100%; height: 70px; display: block; }
.wave-front{ filter: drop-shadow(0 -8px 16px rgba(0,0,0,0.28)); }
.wave-back{ opacity: 0.7; }

.wave-back, .wave-front{
  transform-origin: center;
}
.wave-back{
  animation: rise 1.4s ease-out both, waveBob 6.5s ease-in-out 1.4s infinite;
}
.wave-front{
  animation: rise 1.4s ease-out 0.12s both, waveBob 5.5s ease-in-out 1.6s infinite reverse;
}

@keyframes rise{
  from{ transform: translateY(24px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

@keyframes waveBob{
  0%, 100%{ transform: translateY(0) scaleY(1); }
  50%{ transform: translateY(4px) scaleY(1.03); }
}

/* ============================================
   About
   ============================================ */
.about-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
}

.about-stats{
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-left: 1px solid var(--line);
  padding-left: 32px;
  margin: 0;
}
.about-stats dt{
  font-family: var(--font-display);
  font-style: italic;
  background: linear-gradient(180deg, #E3B27E, var(--accent-wood-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.2rem;
}
.about-stats dd{
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   Tematy — accordion
   ============================================ */
.section-lede{ margin-bottom: 40px; }

.accordion{
  border-top: 1px solid var(--line);
}

.acc-item{ border-bottom: 1px solid var(--line); }

.acc-trigger{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 22px 4px;
  cursor: pointer;
  text-align: left;
}

.acc-trigger .acc-count{
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.acc-trigger::after{
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--accent-wood);
  border-bottom: 1.5px solid var(--accent-wood);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-left: 12px;
}
.acc-trigger[aria-expanded="true"]::after{
  transform: rotate(-135deg);
}

.acc-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.acc-panel ul{
  list-style: none;
  margin: 0;
  padding: 0 4px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc-panel a{
  color: var(--text-muted);
  font-size: 0.98rem;
}
.acc-panel a:hover{ color: var(--accent-wood); }

/* ============================================
   Reportaże — filmstrip
   ============================================ */
.filmstrip{
  display: flex;
  justify-content: center;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  margin-bottom: 56px;
  scroll-snap-type: x proximity;
}

.reel-card{
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.reel-thumb{
  position: relative;
  display: block;
  height: 170px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background-color: var(--bg-panel-2);
  background-image:
    radial-gradient(120% 140% at 18% 0%, rgba(255,255,255,0.16), transparent 55%),
    linear-gradient(160deg, rgba(201,138,75,0.4), rgba(91,146,121,0.3) 55%, var(--bg-panel-2));
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(237,239,231,0.08);
  overflow: hidden;
  box-shadow:
    0 20px 40px -18px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.3s ease;
}
.reel-thumb:hover{ transform: scale(1.02); }
.reel-thumb::before{
  content: "";
  position: absolute;
  top: -50%;
  left: -25%;
  width: 55%;
  height: 200%;
  background: linear-gradient(100deg, rgba(255,255,255,0.22), transparent 65%);
  transform: rotate(14deg);
  pointer-events: none;
}
.reel-thumb::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    100deg,
    transparent 0 40px,
    rgba(237,239,231,0.04) 40px 42px
  );
}

.reel-card h3{ margin-bottom: 8px; }
.reel-card p{ font-size: 0.95rem; }

.latest-embed h3{ margin-bottom: 20px; }

.filmstrip-fade{ animation: filmstripFade 0.5s ease; }
@keyframes filmstripFade{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}

.video-embed{
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-panel-2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid rgba(237,239,231,0.08);
  box-shadow:
    0 30px 60px -24px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.video-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   Kontakt
   ============================================ */
.kontakt-grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.social-list{
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kontakt-note{
  margin-top: 22px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent-wood);
  background: linear-gradient(90deg, rgba(201,138,75,0.1), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 54ch;
}

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label{
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.contact-form input,
.contact-form textarea{
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.35);
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: var(--accent-plant);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), 0 0 0 3px rgba(91,146,121,0.25);
}

.contact-form button{
  margin-top: 22px;
  cursor: pointer;
  align-self: flex-start;
}

.form-note{
  font-size: 0.82rem;
  margin-top: 10px;
  color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-inner nav{ display: flex; gap: 20px; }
.footer-inner a{ color: var(--text-muted); }
.footer-inner a:hover{ color: var(--accent-wood); }
.visit-counter{ color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ============================================
   Pojawianie się przy scrollowaniu
   ============================================ */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-in{
  opacity: 1;
  transform: translateY(0);
}

/* lekkie przesunięcie w czasie dla elementów w siatkach/listach */
.acc-item.reveal{ transition-delay: 0.05s; }
.reel-card.reveal:nth-child(2){ transition-delay: 0.08s; }
.reel-card.reveal:nth-child(3){ transition-delay: 0.16s; }
.gallery-item.reveal:nth-child(2){ transition-delay: 0.05s; }
.gallery-item.reveal:nth-child(3){ transition-delay: 0.1s; }
.gallery-item.reveal:nth-child(4){ transition-delay: 0.15s; }
.gallery-item.reveal:nth-child(5){ transition-delay: 0.2s; }
.gallery-item.reveal:nth-child(6){ transition-delay: 0.25s; }

/* ============================================
   Moje zbiorniki — galeria
   ============================================ */
.gallery{
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.gallery-item{
  position: relative;
  display: block;
  flex: 0 0 260px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid rgba(237,239,231,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel-2);
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow:
    0 18px 36px -18px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover{
  transform: translateY(-3px);
  box-shadow:
    0 24px 46px -18px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img{ transform: scale(1.06); }

.gallery-item::before{
  content: "";
  position: absolute;
  top: -50%;
  left: -25%;
  width: 50%;
  height: 200%;
  background: linear-gradient(100deg, rgba(255,255,255,0.16), transparent 65%);
  transform: rotate(14deg);
  pointer-events: none;
  z-index: 2;
}

.gallery-caption{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(6,15,14,0.85));
  color: var(--text-primary);
  font-size: 0.9rem;
  text-align: left;
}

.gallery-item.is-empty{ cursor: default; }
.gallery-item.is-empty:hover{ transform: none; }
.gallery-item.is-empty img{ display: none; }
.gallery-item.is-empty::after{
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background:
    radial-gradient(120% 140% at 18% 0%, rgba(255,255,255,0.08), transparent 55%),
    linear-gradient(160deg, rgba(91,146,121,0.18), var(--bg-panel-2));
}
.gallery-item.is-empty .gallery-caption{ display: none; }

/* ============================================
   Lightbox
   ============================================ */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(6, 15, 14, 0.92);
  backdrop-filter: blur(4px);
}
.lightbox[hidden]{ display: none; }

.lightbox img{
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85);
}

.lightbox-close{
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}
.lightbox-close:hover{ color: var(--accent-wood); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px){
  .about-grid, .kontakt-grid{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-stats{
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 28px;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px){
  .main-nav{
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--bg-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .main-nav.open{ transform: translateX(0); }
  .nav-toggle{ display: flex; }
  .nav-cta{ order: 99; }
  section{ padding: 64px 0; }
  .hero{ padding-top: 96px; }
}
