/* =========================
   GLOBAL STYLES
========================= */

body {
  font-family: 'Poppins', sans-serif;
  color: #1f1712;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

p {
  line-height: 1.6;
}

/* Section spacing (future system) */

.section {
  padding: 120px 0;
}


.dropdown-item.active, .dropdown-item:active {
  background-color: #1f1712;
}

/* =========================
   FOOTER
========================= */

.footer {
  background: #fff;
  color: #6f4f3b;
  padding: 120px 0 50px;
  text-align: center;
}

.footer__logo {
  margin-bottom: 60px;
}

.footer__logo img {
  height: 54px;
  width: auto;
  margin: 0 auto;
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  max-width: 620px;
  margin: 0 auto 46px;
  text-align: left;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 18px;
  position: relative;
  padding-left: 34px;
}

.footer-menu li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 18px;
  height: 1px;
  background: #b98c5b;
}

.footer-menu a,
.footer__contact a,
.footer__privacy a {
  color: inherit;
  text-decoration: none;
}
.footer__menu {
  margin-left: 40px;
}

.footer__contact {
  font-size: 18px;
  line-height: 1.55;
  margin-left: 50px;
}

.footer__address {
  margin-top: 28px;
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 42px;
}

.footer__socials a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
   color: #6f4f3b;
   transition: transform 0.25s ease;
}
.footer__socials a:hover {
  transform: translateY(-3px);
}

.footer__socials img {
  width: 34px;
  height: 34px;
  display: block;
}

.footer__socials a:hover {
    color: #80683a;
}

.footer__socials svg {
    width: 40px;
    height: 40px;
    display: block;
    transition: fill .3s ease, color .3s ease;
}

.footer__privacy {
  font-size: 14px;
  margin-bottom: 8px;
  color: #7b7b7b;
}
.footer__privacy a:hover {
  text-decoration: underline;
}

.footer__copyright {
  font-size: 14px;
  color: #7b7b7b;
}

@media (max-width: 767.98px) {
  .footer {
    padding: 70px 0 36px;
  }

  .footer__logo img {
    height: 48px;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }
  .footer__menu, .footer__contact {
    margin-left: 0;
  }

  .footer-menu li {
    padding-left: 0;
  }

  .footer-menu li::before {
    display: none;
  }
}

/* =========================
   FOOTER MENU HOVER
========================= */

.footer-menu a {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  line-height: 1.2;
  padding: 3px 0;
}

.footer-link-text {
  position: relative;
  display: inline-block;
  transition: transform .28s cubic-bezier(.7, 0, .3, 1);
  will-change: transform;
}

.footer-link-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 140%;
  white-space: nowrap;
}

.footer-menu a:hover .footer-link-text {
  transform: translateY(-140%);
}


/* =========================
   HOME PRODUCTION
========================= */

.home-production {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  color: #fff;
}

.home-production__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-production__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-production__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.home-production .container {
  position: relative;
  z-index: 3;
}

.home-production__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 90px;
  align-items: center;
}

.home-production__eyebrow {
  color: #b98c5b;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}

.home-production__title {
  font-size: 42px;
  line-height: 1.18;
  font-weight: 600;
  margin-bottom: 30px;
}

.home-production__desc {
  font-size: 20px;
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 56px;
}

.home-production__button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(185,140,91,.7);
  background: transparent;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  transition: transform 0.25s ease;
}
.home-production__button:hover {
  transform: translateY(-3px);
}

.home-production__play {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.home-production__media {
  position: relative;
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  cursor: pointer;
}

.home-production__media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

.home-production__media-play {
  position: absolute;
  left: 34px;
  bottom: 34px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 3px solid #fff;
}

.home-production__media-play::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 16px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.production-video-modal .modal-content {
  background: #000;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.production-video-modal__body video {
  width: 100%;
  height: auto;
  display: block;
}

.production-video-modal__close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.9);
}

.production-video-modal__close::before,
.production-video-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #111;
  transform-origin: center;
}

.production-video-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.production-video-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 991.98px) {
  .home-production {
    min-height: auto;
    padding: 80px 0;
  }

  .home-production__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-production__title {
    font-size: 32px;
  }

  .home-production__desc {
    font-size: 16px;
    margin-bottom: 34px;
  }

  .home-production__media {
    max-width: 100%;
  }

  .home-production__media img {
    height: 460px;
  }
}

@media (max-width: 575.98px) {
  .home-production {
    padding: 60px 0;
  }

  .home-production__title {
    font-size: 28px;
  }

  .home-production__media img {
    height: 380px;
  }
}

.production-video-modal .modal-dialog {
  max-width: 1400px;
  width: 90vw;
}

.production-video-modal .modal-content {
  width: fit-content;
  max-width: 80vw;
  max-height: 80vh;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

.production-video-modal__body {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.production-video-modal__body video {
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 18px;
  display: block;
}


/* =========================
   HOME CTA
========================= */

.home-cta {
  position: relative;
  min-height: calc(100vh - 200px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.home-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, .35);
}

.home-cta__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 980px;
  padding: 0 20px;
  transform: translateY(-100px);
}

.home-cta__title {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 22px;
}

.home-cta__text {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.home-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #6f4f27;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.25s ease;
}
.home-cta__button:hover {
  transform: translateY(-3px);
}

/* Modal */

.home-cta-modal .modal-content {
  border: none;
  border-radius: 22px;
  padding: 44px;
  position: relative;
}

.home-cta-modal__close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
}

.home-cta-modal__close::before,
.home-cta-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #111;
  transform-origin: center;
}

.home-cta-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.home-cta-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.home-cta-modal__body h3 {
  margin-bottom: 12px;
}

@media (max-width: 767.98px) {
  .home-cta {
    min-height: 520px;
  }

  .home-cta__content {
  position: relative;
  transform: translateY(30px);
}

  .home-cta__title {
    font-size: 32px;
  }

  .home-cta__text {
    font-size: 16px;
    margin-bottom: 120px;
  }

  .home-cta-modal .modal-content {
    padding: 34px 22px;
  }
}


/* =========================
   GLOBAL MOBILE SIDE SPACING
========================= */

@media (max-width: 575.98px) {
  .container,
  .container-fluid,
  .w-2040,
  .hp-hero__content,
  .home-cta__content {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .hp-hero__features {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}


/* REALIZACJE */
.realizations-page {
  background: #f6f3ee;
}

.realizations-hero {
  padding: 140px 0 70px;
}

.realizations-hero h1 {
  margin: 0;
  color: #8a652f;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.95;
  font-weight: 700;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  margin-bottom: 20px;
}

.realizations-list {
  padding: 40px 0 120px;
}

.realizations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 24px;
}

.realization-card__image {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-radius: 15px;
}

.realization-card__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
  border-radius: 15px;
}

.realization-card:hover .realization-card__image img {
  transform: scale(1.04);
}

.realization-card__content {
  padding-top: 18px;
}

.realization-card__content h2 {
  font-size: 22px;
  margin: 0 0 6px;
}

.realization-card__content p {
  margin: 0;
  color: rgba(0,0,0,.6);
}


/* MODAL */
/* MODAL REALIZACJE */

.realization-gallery-modal .modal-dialog {
  max-width: 1440px;
}

.realization-gallery-modal__content {
  position: relative;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.realization-gallery-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  font-size: 34px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.realization-gallery-modal__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 100px;
  padding: 48px 24px 24px 60px;
  background: #fff;
}

.realization-gallery-modal__thumbs {
  display: grid;
  grid-template-columns: repeat(2, 80px);
  gap: 15px;
  align-content: start;
  max-height: 76vh;
  overflow: auto;
}

.realization-gallery-modal__thumb {
  width: 82px;
  height: 82px;
  border: 1px solid #ddd;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.realization-gallery-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.realization-gallery-modal__thumb.is-active {
  border: 1px solid #000;
}

.realization-gallery-modal__preview {
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76vh;
}

.realization-gallery-modal__big {
  width: 100%;
  height: 100%;
  max-height: 76vh;
  object-fit: contain;
  display: block;
  padding: 0 40px;
}

@media (max-width: 991.98px) {
  .realization-gallery-modal__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 60px 20px 20px;
  }

  .realization-gallery-modal__thumbs {
    display: flex;
    order: 2;
    max-height: none;
    overflow-x: auto;
  }

  .realization-gallery-modal__preview {
    height: 60vh;
  }

  .realization-gallery-modal__big {
    padding: 0;
  }
}

/* MOBILE SLIDER */

.realization-mobile-slider {
  display: none;
}

.realization-mobile-slider.product-gallery-slider {
  position: relative;
  overflow: hidden;
  background: #f5f1eb;
  border-radius: 15px;
}

.realization-mobile-slider .product-gallery-slider__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.realization-mobile-slider .product-gallery-slider__viewport::-webkit-scrollbar {
  display: none;
}

.realization-mobile-slider .product-gallery-slider__viewport.is-dragging {
  cursor: grabbing;
}

.realization-mobile-slider .product-gallery-slider__track {
  display: flex;
}

.realization-mobile-slider .product-gallery-slider__slide {
  flex: 0 0 100%;
}

.realization-mobile-slider .product-gallery-slider__slide img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.realization-mobile-slider .product-gallery-slider__dots {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.realization-mobile-slider .product-gallery-slider__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: transparent;
  opacity: 1;
}

.realization-mobile-slider .product-gallery-slider__dots button.active {
  background: #fff;
}

@media (max-width: 767.98px) {
  .realization-card__image--desktop {
    display: none;
  }

  .realization-mobile-slider {
    display: block;
  }

  .realizations-grid {
    grid-template-columns: 1fr !important;
    gap: 34px;
  }
}