/*
  Theme Name: 2026 Fort Duńkowiczki
  Author: prokris.com
  Author URI: https://prokris.com
  URL: https://fortdunkowiczki.pl
  Version: 1.0
*/

/* font-family: "Karla", sans-serif;
font-family: "Playfair", serif; */

/* * {
  outline: 1px solid limegreen !important;
} */

/* ############################ COMMON  */

:root {
  --brown: #222222;
  --brown2: #13130d;
  --light-brown: #c9a050;
  --text-color: #13130d;
  --text-color2: #cca050;
  --text-color3: #ebe9cf;
  --white: #fff;
  --web-bg: #f7f7f0;
  --web-bg2: #eeede0;
  --text: "Karla", sans-serif;
  --title: "Playfair", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--text);
  font-size: 18px;
  background-color: var(--web-bg);
  color: var(--text-color);
  line-height: 28px;
  font-weight: 400;
}

.layout {
  width: 1280px;
  margin: auto;
}

.layout-wide {
  width: 95%;
  margin: auto;
}

a {
  text-decoration: none;
  color: var(--brown);
}

a:hover {
  text-decoration: underline;
  color: var(--light-brown);
}

.button {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--text-color2);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  margin: 20px 0;
  transition: background 0.25s, color 0.25s;
}

.button:hover {
  background: var(--brown);
  color: var(--text-color2);
  text-decoration: none;
}

.button-light {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--text-color2);
  color: var(--light-brown);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  margin: 20px 0;
  transition: background 0.25s, color 0.25s;
}

.button-light:hover {
  background: var(--brown);
  color: var(--text-color2);
  text-decoration: none;
}

h2 {
  font-family: var(--title);
  font-weight: 800;
  line-height: 2rem;
}

h3 {
  line-height: 2.5rem;
}

.wp-element-button,
.wp-block-button__link {
  border: 1px solid var(--text-color2);
  background: var(--light-brown) !important;
  color: var(--text-color) !important;
  border-radius: 0px !important;
  margin: 20px 0;
  transition: background 0.25s, color 0.25s;
}

.wp-element-button:hover {
  background: var(--brown) !important;
  color: var(--text-color2) !important;
  text-decoration: none;
}

.center {
  text-align: center;
  align-items: center;
}

.justify {
  text-align: justify;
}

/* ################################################## COMMON  */

/* ########################### HEADER */

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: relative;
  z-index: 100;
}

.top-logo img {
  vertical-align: middle;
}

.top-logo a {
  font-weight: 700;
  font-size: 2rem;
  font-family: var(--title);
  color: var(--text-color3);
}

.top-logo a:hover {
  color: var(--text-color2);
  text-decoration: none;
  transition: all 0.5s;
}

nav span i {
  color: var(--text-color3);
  font-weight: 700;
  font-size: 2.5rem;
  font-family: var(--title);
  cursor: pointer;
}

/* The side navigation menu */
.sidenav {
  height: 100%;
  width: 350px;
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  background-color: var(--brown);
  color: var(--white);
  overflow-x: hidden;
  padding-top: 60px;
  opacity: 0.96;
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

.sidenav a {
  padding: 2px 8px 0px 32px;
  text-decoration: none;
  font-size: 1.2rem;
  font-family: var(--title);
  color: var(--white);
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: var(--text-color2);
  padding-left: 52px;
}

.sidenav-main-link {
  color: var(--text-color2) !important;
  font-weight: 700;
  font-size: 1.5rem !important;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 6rem;
  margin-left: 50px;
}

.sidenav-heading {
  display: block;
  font-family: var(--title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color2);
  padding: 5px 0 5px 25px;
}

@media screen and (max-width: 480px) {
  .sidenav {
    width: 100%;
  }

  .sidenav a {
    font-size: 1.1rem;
  }

  .sidenav-heading {
    font-size: 1.3rem;
  }

  .sidenav .closebtn {
    font-size: 5rem;
    top: 15px;
  }
}

/* ########################### FRONT PAGE */
.slider {
  /* background-image: url("assets/img/slider-start.webp"); */
  background-size: cover;
  height: 120vh;
  margin-top: -220px;
  position: relative;
  overflow: hidden;
}

.slider video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.section-header {
  text-align: center;
  align-items: center;
}

.section-header__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-brown);
  margin: 30px 0 -20px 0px;
}

.section-header__title {
  font-family: var(--title);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--text-color);
}

.section-header__desc {
  font-size: 1rem;
  color: var(--text-color);
  /* margin-bottom: 48px; */
  /* max-width: 480px; */
}

.about {
  background-color: var(--web-bg2);
  margin: auto;
}

.about__wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 80px;
  padding: 6rem 0;
}

.about__content {
  flex: 1;
  /* max-width: 400px; */
  padding: 0 10px;
}

.about__media {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.about__media:hover .about__image {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .about__wrapper {
    flex-direction: column;
    gap: 30px;
  }
}

.info {
  padding: 3rem 0 6rem 0;
}

.info__grid {
  display: flex;
  gap: 4rem;
}

.info__card {
  flex: 1 1 0;
  background: var(--white);
  padding: 3rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

/* ── TREŚĆ KARTY ── */
.info__card-title {
  font-family: var(--title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.info__card-text {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: var(--text-color);
}

.info__card-text span {
  display: block;
}

.info__btn {
  display: inline-block;
  margin-top: auto;
  padding: 12px 32px;
  border: 1px solid var(--text-color2);
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.info__btn:hover {
  background: var(--brown);
  color: var(--text-color2);
  text-decoration: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .info__grid {
    flex-direction: column;
  }
}

.ft-atrakcje {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  overflow: hidden;
  position: relative;
}

.ft-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  flex: 1;
  transition: flex 0.4s ease, opacity 0.7s ease, transform 0.7s ease;
}

.ft-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 1;
  transition: background 0.4s ease;
}

.ft-panel:hover::before {
  background: rgba(0, 0, 0, .3);
}

.ft-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.ft-panel:hover .ft-bg {
  transform: scale(1.06);
}

.ft-bg-wieza {
  background-image: url("assets/img/front-wieza.webp");
  /* podmień na właściwy plik */
}

.ft-bg-skansen {
  background-image: url("assets/img/front-skansen.webp");
  /* podmień na właściwy plik */
}

.ft-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
  width: 100%;
}

.ft-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-brown);
  margin-bottom: 0.5rem;
}

.ft-title {
  font-family: var(--title);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.ft-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, .82);
  line-height: 1.55;
  margin: 0 0 1.4rem;
  max-width: 340px;
}

.ft-divider {
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(201, 160, 80, .4);
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 768px) {
  .ft-atrakcje {
    grid-template-columns: 1fr;
  }

  .ft-divider {
    display: none;
  }
}


.front-page__parallax {
  background-image: url("assets/img/front-page__parallax.webp");

  height: 60vh;
  min-height: 600px;
  overflow: hidden;
  position: relative;

  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  display: flex;
  align-items: center;
  justify-content: center;
}

.front-page__parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  /* 0.45 = intensywność zaciemnienia */
}

.front-page__parallax__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
}

.front-page__parallax__content h2 {
  font-family: var(--title);
  font-size: 4rem;
  line-height: 4rem;
}

.front-page__parallax__content p {
  font-size: 1rem;
  margin: 0 4rem;
}

.front-page__news {
  padding: 6rem 0;
}

.front-page__news-more {
  text-transform: uppercase;
  color: var(--text-color2);
}

.fort-cennik-card {
  border: 1px solid var(--light-brown);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0 20px;
}

.fort-cennik-card:hover {
  color: var(--brown2);
  border-color: var(--light-brown);
  transform: translateY(-4px);
  box-shadow: 10px 10px 20px var(--text-color3);
}

.partners {
  padding: 6rem 0;
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 50px;
  align-items: center;
}

.partners__grid a:nth-child(7) {
  grid-column: 2;
}

.partners__grid a:nth-child(8) {
  grid-column: 3;
}

.partners__grid a:nth-child(9) {
  grid-column: 4;
}

.partners__grid a:nth-child(10) {
  grid-column: 5;
}

@media (max-width: 900px) {
  .partners__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }

  .partners__grid a:nth-child(7) {
    grid-column: 2;
  }

  .partners__grid a:nth-child(8) {
    grid-column: 3;
  }

  .partners__grid a:nth-child(9) {
    grid-column: 2;
  }

  .partners__grid a:nth-child(10) {
    grid-column: 3;
  }
}

/* Mobil — 2 kolumny, bez centrowania */
@media (max-width: 480px) {
  .partners__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Reset — wszystkie elementy wracają do auto-placement */
  .partners__grid a:nth-child(n) {
    grid-column: auto;
  }
}

.partners__grid a {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: 0.3s;
}

.partners__grid a:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.post-cont {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: space-between;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex: 1;
}

.post {
  background-color: var(--white);
  border: 1px solid var(--web-bg);
  padding: 20px;
  max-width: 370px;
  height: 650px;
  /* position: relative; */
}

@media (max-width: 576px) {
  .post {
    max-width: 80%;
    text-align: center;
  }
}

.post:hover {
  border: 1px solid var(--brown);
  transition: all 0.5s;
}

.post a:hover {
  text-decoration: none;
  color: var(--text-color);
}

.post h2 {
  font-family: var(--title);
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0;
  color: var(--text-color);
}

.post p {
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.3rem;
  color: var(--text-color);
  opacity: 0.6;
}

.post-time {
  font-size: 0.8rem;
}

.wp-post-image {
  aspect-ratio: 1/1;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.post-single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

@media (max-width: 768px) {
  .post-single-layout {
    grid-template-columns: 1fr;
  }
}

.post-single {
  /* margin: 15px 0; */
  padding: 15px;
  background-color: var(--white);
  border: 1px solid var(--web-bg2);
}

.post-single h2 {
  font-family: var(--title);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green);
  line-height: normal;
}

.wp-block-image {
  border-radius: 10px;
  margin: auto;
  text-align: center;
  /* padding: 10px;
  height: 350px; */
}

.post-single-content {
  line-height: normal;
}

.post-single-back {
  background-color: var(--text-color2);
  color: var(--white);
  text-decoration: none;
  width: 150px;
  padding: 15px 20px;
  text-align: right;
  border-radius: 10px;
}

.post-single-back:hover {
  background-color: var(--text-color);
  color: #fff;
  text-decoration: none;
}

aside {
  margin: 0 10px;
}

.pagination {
  text-align: center;
  margin: 80px auto;
}

.pagination a {
  /* padding: 10px; */
  text-decoration: none;
}

.page-numbers {
  padding: 10px 12px;
  text-decoration: none;
}

.current {
  background-color: var(--light-brown);
}

.page {
  margin: 15px 0;
  padding: 15px;
  background-color: var(--white);
  border: 1px solid var(--web-bg2);
}

.page img {
  border-radius: 10px;
}

.page-title {
  background-image: url(assets/img/page-header-bg.webp);
  background-size: cover;
  background-position: center;
  font-family: var(--title);
  font-size: 4rem;
  font-weight: 700;
  line-height: normal;
  color: var(--brown);
  text-transform: uppercase;
  animation: fade 2s;
  margin-top: -100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 600px;
  padding: 40px 50px;
}

@media (max-width: 576px) {
  .page-title {
    min-height: 12rem;
    margin-top: 0;
    font-size: 2rem;
    text-align: center;
    padding: 1rem 1.25rem 0;
  }
}

.page table td {
  border: 0;
  vertical-align: top;
}

.stats-counter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
}

.stat {
  background-color: var(--white);
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__number {
  display: block;
  font-size: 3rem;
  line-height: 1em;
  font-weight: 700;
  color: var(--brown);
  font-family: var(--title);
}

.stat__label {
  display: block;
  font-size: 0.95rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2rem;
}

.stat-icon {
  width: 28px;
  height: 28px;
  color: var(--light-brown);
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .stats-counter {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.footer {
  background-color: var(--brown2);
  color: var(--text-color3);
  padding-top: 60px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 60px;
}

.footer__description {
  line-height: 1.6;
  margin: 0;
}

.footer__title {
  color: var(--text-color2);
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 25px;
  font-family: var(--title);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__item {
  margin-bottom: 12px;
}

.footer__link {
  color: var(--text-color3);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--text-color2);
  text-decoration: none;
}

@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__column:first-child {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer__logo {
    margin: 0 auto 20px auto;
  }
}

@media (max-width: 576px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer__bottom {
  background-color: var(--brown);
  padding: 15px 0;
  font-size: 13px;
  color: var(--text-color3);
}

.footer__bottom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom a {
  color: var(--text-color2);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__bottom a:hover {
  color: var(--text-color3);
}

@media (max-width: 768px) {
  .footer__bottom-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

.footer__polski-lad {
  margin: auto;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  .footer__polski-lad img {
    width: 80%;
  }
}


.scrollToTopBtn {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #c8924b;
  background: #1b1b1b;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.scrollToTopBtn.showBtn {
  opacity: 0.9;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.scrollToTopBtn:hover,
.scrollToTopBtn:focus-visible {
  opacity: 1;
}

.scrollToTopBtn:focus-visible {
  outline: 2px solid #c8924b;
  outline-offset: 2px;
}

.wp-block-latest-posts.wp-block-latest-posts__list li {
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, var(--light-brown), transparent) 1;
}


@media only screen and (max-width: 768px) {
  .layout {
    width: 100%;
    margin: auto;
  }

  header {
    background-color: var(--text-color);
    padding: 30px 20px;
  }

  .menu-cont {
    margin: auto;
  }

  .menu-cont ul {
    display: block;
    width: 100%;
  }

  .main-slider {
    margin-top: 0;
    font-size: 20%;
  }

  .front-container img {
    width: 90%;
    margin: auto;
  }

  .front-wrapper {
    width: 90%;
    margin: auto;
    padding: 10px;
  }

  .main-slider {
    margin-top: 0px;
  }

  .main-slider img {
    width: 100%;
  }

  .page h2 {
    line-height: 2.5rem;
  }

  footer {
    text-align: center;
  }

  footer h2 {
    font-size: 1.8rem;
    padding: 30px 40px;
  }
}

/*####################################################### ANIMATIONS */
.fade {
  animation: fade linear both;
  animation-timeline: view();
  animation-range: entry 40% cover 40%;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slide-left {
  animation: slidein-left 2s ease;
}

.scroll-slide-left {
  animation: slidein-left 1s;
  animation-timeline: scroll();
  animation-range: entry 50% cover 50%;
}

.slide-right {
  animation: slidein-right 3s ease;
}

.scroll-slide-right {
  animation: slidein-right 1s;
  animation-timeline: view();
  animation-range: entry 50% cover 50%;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes slidein-left {
  from {
    translate: -150vw 0;
  }

  to {
    translate: 0 0;
  }
}

@keyframes slidein-right {
  from {
    translate: 150vw 0;
  }

  to {
    translate: 0 0;
  }
}

@keyframes slidein-top {
  from {
    translate: -150hw 0;
    opacity: 0;
  }

  to {
    translate: 0 0;
    opacity: 1;
  }
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-1000px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/*############################# ANIMATIONS */

.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}