@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

body { box-sizing: border-box; }

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

body {
  font-family: 'Montserrat', sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  overflow-x: hidden;
}

/* WordPress admin bar offset (żeby nagłówek fixed nie nachodził na pasek WP) */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }

.main-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: none;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: none;
}

.logo {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 3px solid #ff0000;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.logo:hover { opacity: 0.8; }

.nav-link {
  color: #f5f5f5;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  font-weight: 400;
}

.nav-link:hover { color: #dc2626; }

.cta-button {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

/* Hero Section */
.hero {
  height: 100%;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.7)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23222" width="1200" height="800"/><path fill="%23333" d="M0 400h300l100-100h200l100 100h200l100-100h200l100 100h200v400H0z"/></svg>');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
  animation: fadeInUp 1s ease;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #f5f5f5;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #d4d4d4;
  font-weight: 300;
}

/* Section Styles */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: #dc2626;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #dc2626;
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #d4d4d4;
}

.read-more {
  display: inline-block;
  margin-top: 1.5rem;
  color: #dc2626;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #dc2626;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #b91c1c;
  border-color: #b91c1c;
}

/* Gallery Carousel */
.carousel-container {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
  position: relative;
  width: 400px;
  height: 300px;
  flex-shrink: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.carousel-item.side {
  transform: scale(0.8) rotateY(15deg);
  opacity: 0.6;
  filter: brightness(0.7);
}

.carousel-item.side.left {
  transform: scale(0.8) rotateY(-15deg);
}

.carousel-item.center {
  transform: scale(1) rotateY(0deg);
  opacity: 1;
  filter: brightness(1);
  z-index: 10;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: none;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-item.center:hover .carousel-overlay { opacity: 1; }

.carousel-overlay p {
  color: #f5f5f5;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 600;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(220, 38, 38, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  color: #ffffff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-button:hover {
  background: #dc2626;
  transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev { left: 2rem; }
.carousel-button.next { right: 2rem; }

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  background: rgba(30, 30, 30, 0.8);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: none;
  border-color: rgba(220, 38, 38, 0.5);
}

.news-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #333 0%, #222 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.news-content { padding: 1.5rem; }

.news-date {
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #f5f5f5;
}

.news-excerpt {
  color: #b4b4b4;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: rgba(15, 15, 15, 0.95);
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  padding: 3rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #dc2626;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #b4b4b4;
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(220, 38, 38, 0.1);
  text-align: center;
}

.footer-cta { margin-top: 1rem; }

/* Mobile Menu */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: #f5f5f5;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 3rem 1rem; }
  .section-title { font-size: 2rem; }

  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    padding: 1rem;
    gap: 0.5rem;
  }

  .mobile-menu-button { display: block; }

  .carousel-container { height: 350px; }
  .carousel-item { width: 280px; height: 200px; }

  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-button.prev { left: 0.5rem; }
  .carousel-button.next { right: 0.5rem; }

  .news-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}
/* FIX: usuń czerwoną linię i poświatę pod headerem */
.header,
header.header,
#header,
#headerAbout,
.header.scrolled {
  border-bottom: none !important;
  box-shadow: none !important;
}
/* HARD FIX: usuń WSZYSTKIE bordery/poświaty z headera (również pseudo-elementy) */
html body .header,
html body #header,
html body #headerAbout,
html body .header.scrolled {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body .header::before,
html body .header::after,
html body #header::before,
html body #header::after,
html body #headerAbout::before,
html body #headerAbout::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* HARD FIX: usuń czerwoną ramkę i tło z logo */
html body .logo {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
/* === O NAS: szerokość + marginesy treści === */
body.page .entry-header,
body.page .entry-content,
body.page .wp-block-group,
body.page .wp-block-columns,
body.page .wp-block-cover__inner-container{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* opcjonalnie: odstęp od góry, bo header jest fixed */
body.page .entry-content{
  padding-top: 80px;
}
.fb-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.fb-cell{
  background: rgba(30,30,30,0.6);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

/* responsywność */
@media (max-width: 1100px){
  .fb-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .fb-grid{ grid-template-columns: 1fr; }
}
.fb-cell iframe{
  max-width: 100% !important;
}
.fb-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.fb-cell{
  background: rgba(30,30,30,0.6);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

.fb-embed{
  width: 100%;
}

.fb-embed iframe{
  width: 100% !important;     /* najważniejsze: dopasuj do kolumny */
  max-width: 100% !important;
  border: 0 !important;
  display: block;
}

/* responsywność */
@media (max-width: 1100px){
  .fb-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .fb-grid{ grid-template-columns: 1fr; }
}
/* === HOME: 3 najnowsze aktualności (kafelki) === */
#news .home-news-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

#news .home-news-tile{
  display: block;
  text-decoration: none !important;
  background: rgba(30,30,30,0.8);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 12px;
  padding: 1.25rem;
  min-height: 170px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

#news .home-news-tile:hover{
  transform: translateY(-6px);
  border-color: rgba(220,38,38,0.6);
  box-shadow: 0 12px 30px rgba(220,38,38,0.18);
}

#news .home-news-date{
  color: #dc2626;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

#news .home-news-title{
  color: #f5f5f5;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
}

#news .home-news-sub{
  color: #b4b4b4;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* responsywność */
@media (max-width: 1024px){
  #news .home-news-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px){
  #news .home-news-grid{ grid-template-columns: 1fr; }
}

.footer-text-link{
  display:inline-block;
  margin-top: 10px;
  color:#dc2626;
  font-weight:700;
  text-decoration:none;
}
.footer-text-link:hover{
  text-decoration:underline;
  opacity:.9;
}
