:root {
  --main-color: #006837;
  --secondary-color: #8bc349;
  --text-color: #270041;
}

/* PRELOADER */
#preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1), visibility 0.6s;
}

.preloader-bar {
    width: 120px;
    height: 6px;
    background: #8bc349;
    border-radius: 3px;
    box-shadow: 0 0 16px #8bc34966;
    animation: preloader-move 1.2s infinite linear;
    position: relative;
    overflow: hidden;
}
@keyframes preloader-move {
    0%   { box-shadow: 0 0 16px #8bc34966, 0 0 0 #8bc349; }
    50%  { box-shadow: 0 0 16px #8bc34966, 0 0 24px #8bc349; }
    100% { box-shadow: 0 0 16px #8bc34966, 0 0 0 #8bc349; }
}

#preloader.preloader-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* PRELOADER KONIEC */


body {
  font-family: "Gabarito", serif;
  font-size: 20px;
  color: #b2b2b2;
  background-color: #fff;
  min-width: 320px;
  overflow-x: hidden;
  margin-top: 75px;
}

a {
    color: var(--main-color);
    text-decoration: none;
}
a:hover{
  color:#86B15A;
}
.custom-list {
  list-style: none;
  padding-left: 1rem;
}
.custom-list li {
  position: relative;
  padding-left: 1.2em;
}
.custom-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #8bc349; /* zielony */
  font-weight: bold;
  font-size: 1.1em;
}
.border-radius {
  border-radius: 2rem;
}
.btn-check:focus+.btn-primary, .btn-primary:focus {
    color: #fff;
    background-color: #006837;
    border-color: #006837;
    box-shadow: 0 0 0 .25rem rgb(0 104 55);
}

.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
    color:#78a84c;
}
.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .show>.nav-link {
    color:#78a84c;
}
.navbar-light .navbar-nav .nav-link {
    color: var(--main-color);
}
.navbar.fixed-top {
      background-color: #ffffffd9;
    backdrop-filter: blur(10px);
}
button.navbar-toggler {
    border: none;
    padding: 0;
}
button.navbar-toggler:focus {
    box-shadow: none!important;
}

.logo { width: 150px; height: auto; }
@media (max-width: 768px) {
  .logo { width: 20vw; }
}

.hero-bg {
  position: relative;
  min-height: 80vh;
  border-radius: 2rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-inner {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: inherit; 
  transform: scale(1.12); /* efekt oddalenia na starcie */
  filter: brightness(0.8);
  transition: transform 1.2s cubic-bezier(.4,0,.2,1), filter 1.2s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  border-radius: inherit;
}

.hero-bg.animate-in .hero-bg-inner {
  transform: scale(1);    /* końcowy stan */
  filter: brightness(1);
}

/* Treść hero nad tłem */
.hero-bg > *:not(.hero-bg-inner) {
  position: relative;
  z-index: 1;
}


.hero-bg h1{
  height: 100%;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  padding: 0px 0px 0px 0px;
  font-size: 95px !important;
  text-shadow: 5px 5px 0px #3d571f;
  margin-left: 6rem;
  width: 80%;
}
.hero-subtitle {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #333333;
  display: block;
  text-align: start;
}

.fadein-hero {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

.hero-bg.animate-in .fadein-hero {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 1.2s; }
.delay-2 { transition-delay: 1.5s; }
.delay-3 { transition-delay: 1.8s; }


.section-title {
  color: var(--main-color);
  font-size: 36px;
  font-weight: 800;
  background: -webkit-linear-gradient(#8bc349, #619128);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 991px) {
  .section-title {font-size: 26px;}
}

.section-desc {
  color: #333;
  font-size: 20px;
  font-weight: 200;
  line-height: 1.5;
}
@media (max-width: 991px) {
  .section-desc {
  font-size: 16px;
  line-height: 1.3;
}
}

.feature-card {
  background-color: #f7f9f5a6;
  border-radius: 2rem;
  border: 3px solid #fff;
  min-height: 130px;
  transition: box-shadow 0.25s, border 1s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px #c9a06322;
  border: 3px solid #8bc349;
}

.section-image-wrapper {
  min-height: 350px;
  background: #eee;
  position: relative;
  overflow: hidden;
  border-radius: 2rem 0 0 2rem;
}

.section-image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
  border-radius: inherit !important;
}

.section-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit !important;
}
.section-image-link:hover .section-image,
.section-image-link:focus .section-image {
  transform: scale(1.08);
}
.section-image-link:hover .section-image-overlay,
.section-image-link:focus .section-image-overlay {
  opacity: 1;
}

.corner-image {
  top: 18px;
  left: 18px;
  width: 56px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  position: absolute;
}

.bottom-overlay {
  left: 0;
  margin: 0;
  bottom: 0;
  padding: 0.7rem 1.2rem;
  background: #232323f5;
  color: #dadada;
  font-size: 1rem;
  border-radius: 1.5rem 1.5rem 0rem 1.5rem;
  z-index: 3;
  pointer-events: none;
  position: absolute;
  text-align: left;
}

/* Hero section */
.tytul-hero {
  font-size: 2.5rem;
  line-height: 1.1;
}
.apartamenty {
  position: relative;
  display: inline-block;
  z-index: 2;
}
.leaf-anim {
  position: absolute;
  top: -0.65em;
  right: -1.5em;
  width: 1.8em;
  height: 1.8em;
  opacity: 0;
  transform: translateY(20px) rotate(20deg);
  transition: opacity 0.6s, transform 1.6s;
  pointer-events: none;
  z-index: 1;
}
.leaf-anim.visible {
  opacity: 0.8;
  transform: translateY(0) rotate(15deg);
  z-index: -1;
}
.hero-text {
  font-size: 2.3rem;
  color: #fffffff2;
  margin-top: 1rem;
  margin-bottom: 2.3rem;
  line-height: 1.2;
  text-shadow: 3px 3px 0px #17220a;
  margin-left: 6rem;
}
@media (max-width: 991px) {
  .hero-text { margin-left: 2rem; }
  .btn-primary.hero-btn { margin-left: 2rem; }
}

.btn-primary {
  padding: 0.5rem 2rem;
  border-radius: 2rem;
  border: 2px solid #000;
  color: #000;
  font-weight: 600;
  background: none;
  font-size: 18px;
  text-transform: uppercase;
}
.btn-primary:hover, .btn-primary.hero-btn:hover {
  background: white;
  border: 2px solid #006837;
  color: #006837;
}
.btn-primary.hero-btn {
  color: #fff;
  border: 2px solid #fff;
  margin-left: 6rem;
}
a.btn-primary.active{
    background: white;
  border: 2px solid #006837;
  color: #006837;
    transition: background 0.3s;
}
a.btn-primary.active:hover{
    background: #006837;
  border: 2px solid #006837;
  color: white;
  transition: background 0.3s;
}





.footer-main {
  background: #fff;
  border-top: 4px solid #e9e9e9;
  font-size: 1rem;
}
.footer-main h4, .footer-main h5 { font-weight: 700; }
.footer-main a:hover { color: #8BC349 !important; }

.logo-wrapper {
  height: 104px; /* połowa wysokości logo, jeśli logo ma 104px */
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  transition: height 0.3s;
}

.logo {
  width: 150px;
  height: 104px;
  margin-top: -5px;
  display: block;
   transition: width 0.3s, height 0.3s, margin-top 0.3s;
}

.navbar {
  transition: padding 0.3s, background 0.3s;
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(255,255,255,0.95);
}


.navbar.navbar-shrink {
  padding-top: 16px;
  padding-bottom: 16px;
  box-shadow: 0px 0px 15px #00000030;
}
.navbar.navbar-shrink .logo-wrapper {
  height: 45px; /* mniejsza połowa logo */ 
}
.navbar.navbar-shrink .logo {
  width: 150px;
  margin-top: -55px;
}
@media (max-width: 991px) {
.hero-bg h1 {
    height: 100%;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
    padding: 0px 0px 0px 0px;
    font-size: 11vw!important;
    text-shadow: 5px 5px 0px #3d571f;
    margin-left: 0rem;
    width: 80vw;
}
.hero-text {
  font-size: 2rem;
  color: #fffffff2;
  margin-top: 1rem;
  margin-bottom: 2.3rem;
  line-height: 1.2;
  text-shadow: 3px 3px 0px #17220a;
  margin-left: 0rem;
}
.btn-primary.hero-btn {
    color: #fff;
    border: 2px solid #fff;
    margin-left: 0rem;
}
.navbar.navbar-shrink {
    padding-top: 0px;
    padding-bottom: 0px;
}
}


.rotate-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}
.accordion-button.collapsed .rotate-icon {
  transform: rotate(0deg);
}
.accordion-button:not(.collapsed) .rotate-icon {
  transform: rotate(90deg);
}
.faq-section .accordion-item {
  border-color: #006837 !important;
  border-radius: 1rem !important;
  border: 0px!important;
}
.faq-section .accordion-button {
background-color: #d8ddd1;
    color: #272727;
  font-weight: 400;
  font-size: 20px;
  border-radius: 1rem !important;
  padding-left: 1.5rem;
  transition: background 0.4s;
}
.faq-section .accordion-button:hover {
background-color: #cbcfc5;
transition: background 0.4s;
}
.faq-section .accordion-button:focus {
  box-shadow: 0 0 0 0rem rgba(139, 195, 73, 0.5);
}
.faq-section .accordion-body {
  background-color: #ffffff;
  color: #151515;
  border-radius: 0 0 1rem 1rem !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border: 0px;
}
.accordion-button::after,
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23006837'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}



.building-map-svg-wrapper {
  position: relative;
  background: #e9f5db;
  border-radius: 2rem;
  box-shadow: 0 4px 32px #8bc34922;
  overflow: hidden;
}

.building-svg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; /* domyślnie blokuje kliknięcia */
}

.svg-floor-link {
  pointer-events: all; /* pozwala na klikalność */
  cursor: pointer;
}

.svg-floor {
  fill: rgba(139, 195, 73, 0.18); /* delikatna zieleń */
  stroke: #8bc349;
  stroke-width: 0;
  transition: fill 0.2s, stroke 0.2s;
}

.svg-floor-link:hover .svg-floor,
.svg-floor-link:focus .svg-floor {
  fill: rgba(0, 104, 55, 0.38);
  stroke: #006837;
}

.svg-floor-link:active .svg-floor {
  fill: rgba(0, 104, 55, 0.55);
  stroke: #006837;
}
