/* styles.css */

:root {
  --bs-body-font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
}

/* ========= SYNC BOOTSTRAP PRIMARY WITH BRAND ========= */
:root {
  --bs-primary: var(--immo-primary);
  --bs-primary-rgb: 0, 76, 120;
}

/* ========= KOLORY BRANDU ========= */
:root {
  --immo-primary: #004c78;          
  --immo-primary-dark: #003c63;     
  --immo-header-bg: #2c333c;        
  --immo-accent-dark: #1e2a36;      
  --immo-text-main: #333333;
  --immo-text-light: #f5f5f5;
}

/* ========= GLOBAL ========= */

body {
  font-family: var(--bs-body-font-family);
  color: var(--immo-text-main);
}

a {
  color: var(--immo-primary);
  text-decoration: none;
}

a:hover {
  color: var(--immo-primary-dark);
  /* text-decoration: underline; */
}

.section-padding {
  padding: 3rem 0;
}

@media (min-width: 992px) {
  .section-padding {
    padding: 4rem 0;
  }
}

/* ========= HEADER ========= */

.main-navbar {
  background-color: var(--immo-header-bg);
  border-bottom: 1px solid #232931;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.navbar-logo {
  height: 44px;
  width: auto;
}

/* Navbar dropdown: open on hover on desktop */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}


/* Header in neutral mode (not sticky at start) */
.site-header {
  position: relative;
  width: 100%;
  z-index: 9999;
}

/* When sticky becomes active */
.header--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

/* Optional: shadow when sticky */
.header--sticky .main-navbar {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}


.brand-text {
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-navbar .nav-link {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #e8e8e8;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus {
  color: #a39c9c;
}

.main-navbar .nav-link.active {
  color: #ffffff;
  font-weight: 600;
  /* border-bottom: 2px solid var(--immo-primary); */
}

.nav-cta-btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  /* border-radius: 5px; */
}

/* ========= PRZYCISKI ========= */

.btn-primary {
  background-color: var(--immo-primary);
  border-color: var(--immo-primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--immo-primary-dark);
  border-color: var(--immo-primary-dark);
  color: #ffffff;
}

.btn-outline-primary {
  color: var(--immo-primary);
  border-color: var(--immo-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #ffffff;
  background-color: var(--immo-primary);
  border-color: var(--immo-primary);
}

/* ========= HERO SLIDER ========= */

.hero-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 380px;
  max-height: 650px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* overlay */
.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 1;
}

/* content */
.hero-slider-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--immo-text-light);
  padding: 0 1rem;
}

.hero-slider-content h1 {
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-slider-content p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  margin-bottom: 1rem;
}

/* arrows */
.hero-slider-prev,
.hero-slider-next {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
  background: rgba(0, 0, 0, 0.65);
}

.hero-slider-prev {
  left: 1.5rem;
}

.hero-slider-next {
  right: 1.5rem;
}

/* dots */
.hero-slider-dots {
  display: none;
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.4rem;
}

.hero-dot {
  display: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
  background: #ffffff;
}

/* ========= FOOTER ========= */

.site-footer {
  background: var(--immo-accent-dark);
  color: #f5f5f5;
  padding: 2.5rem 0;
  font-size: 1.1rem;
}

.site-footer h5 {
  font-weight: 600;
}

.footer-cta-btn {
  /* border-radius: 999px; */
  font-size: 0.9rem;
  padding: 0.45rem 1.4rem;
  background-color: var(--immo-primary);
  border-color: var(--immo-primary);
  color: #ffffff;
}

.footer-cta-btn:hover {
  background-color: var(--immo-primary-dark);
  border-color: var(--immo-primary-dark);
}

.footer-links {
  font-size: 0.85rem;
}

.footer-link {
  color: #e0e0e0;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-separator {
  color: #999999;
  margin: 0 0.25rem;
}

.footer-proven {
  color: #c0c0c0;
}


/* ========= TICKERY POD SLIDEREM ========= */

.ticker-wrapper {
  width: 100%;
  border-bottom: 1px solid #e4e4e4;
  /* padding: 2em 0; */
}

.ticker-bar {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-bar--primary {
  background-color: var(--immo-primary);
  color: #ffffff;
}

.ticker-bar--light {
  background-color: #f5f5f5;
  color: #2c333c;
  border-top: 1px solid #e0e0e0;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0.4rem 1.5rem;
  animation: ticker-scroll 35s linear infinite;
}

.ticker-item {
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
}

.ticker-bar--primary .ticker-item {
  color: #ffffff;
  font-weight: 500;
}

.ticker-bar--primary .ticker-item:hover {
  /* text-decoration: underline; */
}

.ticker-bar--light .ticker-item {
  color: #2c333c;
  font-weight: 500;
}

.ticker-bar--light .ticker-item:hover {
  color: var(--immo-primary);
  /* text-decoration: underline; */
}

.ticker-separator {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* animacja przesuwania w lewo */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

/* Feature icons styling */
.icon-feature {
  font-size: 50px;
  color: var(--immo-primary);
}

.card .card-title {
  margin-bottom: 0.6rem;
}

.icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Cookie Banner */
/* Cookie banner base */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2c333c;
  color: #ffffff;
  padding: 1.6rem 1.2rem;
  z-index: 9999;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
}

.cookie-banner--hidden {
  display: none;
}

.cookie-content {
  margin: 0 auto;
}

.cookie-banner h4 {
  color: #ffffff;
  font-weight: 600;
}

.cookie-link {
  color: var(--immo-secondary);
  text-decoration: underline;
}
.cookie-link:hover {
  color: #a39c9c;
  text-decoration: underline;
}

.cookie-buttons {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Cookie modal overlay */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.cookie-modal--hidden {
  display: none;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cookie-modal-dialog {
  position: relative;
  max-width: 720px;
  margin: 5vh auto;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #e0e0e0;
  background: #f7f7f7;
}

.cookie-modal-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal-body {
  padding: 1.4rem;
}

.cookie-modal-footer {
  padding: 1rem 1.4rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* Cookie options list */
.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eeeeee;
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-text {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.cookie-option input[type="checkbox"] {
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 576px) {
  .cookie-modal-dialog {
    margin: 10vh 1rem;
  }

  .cookie-option {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-modal-footer {
    justify-content: flex-start;
  }
}



/* ===============================
   PROVENEXPERT BAR – FINAL
   mobile-safe, no overflow
================================ */
.provenexpert-bar {
  background-color: #ffffff;
  border-top: 1px solid #e5e5e5;
  padding: 12px 0;
  width: 100%;
  overflow-x: hidden;
}

.footer-provenexpert {
  display: flex;
  flex-wrap: wrap;                 /* 🔥 allow wrapping */
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 auto;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none !important;
  text-align: center;
}

.footer-provenexpert:hover,
.footer-provenexpert:focus,
.footer-provenexpert:active {
  text-decoration: none !important;
}

.footer-provenexpert > span {
  display: flex;
  flex-wrap: wrap;                 
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.footer-provenexpert #pe_stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.footer-provenexpert svg {
  width: 18px;
  height: 18px;
  display: block;
}

.pe_u {
  color: #726542 !important;
  white-space: normal;            
  word-break: break-word;
  width: 100%;
  text-align: center;
}

/* MOBILE TUNING */
@media (max-width: 768px) {
  .footer-provenexpert {
    font-size: 0.85rem;
    gap: 6px;
  }

  .footer-provenexpert svg {
    width: 16px;
    height: 16px;
  }
}



/* ===============================
   NEWS SLIDER – CAROUSEL
================================ */

.news-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* TRACK */
.news-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* SLIDES */
.news-slide {
  position: relative;      
  opacity: 1;              
  visibility: visible;
  flex: 0 0 50%;
  padding: 0 12px;
}

/* MOBILE */
@media (max-width: 767px) {
  .news-slide {
    flex: 0 0 100%;
  }
}

/* ===============================
   SLIDER ARROWS
================================ */

.news-prev,
.news-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: #ffffff;
  color: #003b71;
  font-size: 22px;
  font-weight: bold;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, background 0.2s ease;
}

.news-prev:hover,
.news-next:hover {
  background: #003b71;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

/* LEFT */
.news-prev {
  left: 10px;
}

/* RIGHT */
.news-next {
  right: 10px;
}

/* MOBILE – inside slider */
@media (max-width: 767px) {
  .news-prev {
    left: 0px;
    top: 113px;
  }

  .news-next {
    right: 0px;
    top: 113px;
  }
}





/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--immo-primary);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999; /* 🔥 MUST HAVE */
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}


#backToTop:hover {
  transform: translateY(-3px);
}

/* Social icons and links hover effect */
.social-icon img,
a img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover img,
a:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ===============================
   PARTNER LOGOS – UNIFIED SIZE
================================ */
.partner-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ===============================
   SOCIAL ICONS – UNIFIED SIZE
================================ */
.social-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .partner-logo {
    width: 100px;
    height: 100px;
  }

  .social-logo {
    width: 65px;
    height: 65px;
  }
}


/* =========================================================
   COOKIE SETTINGS BUTTON – GLOBAL
   ========================================================= */

.cookie-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.cookie-label {
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ukrywanie tekstu */
.cookie-label.is-hidden {
  display: none;
}


/* =========================================================
   COOKIE SETTINGS – ALWAYS STICKY
   ========================================================= */

#open-cookie-settings {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1050;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.5rem 0.75rem;

  background-color: #fff;
  border: 2px solid currentColor;
  border-radius: 999px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#open-cookie-settings:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   ICON + LABEL
   ========================================================= */

.cookie-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.cookie-label {
  font-size: 0.95rem;
  white-space: nowrap;
}

/* label znika po akceptacji */
.cookie-label.is-hidden {
  display: none;
}


#open-cookie-settings.icon-only {
  width: 48px;
  height: 48px;
  padding: 0;

  justify-content: center;
  border-radius: 50%;
}
#open-cookie-settings.text-success .cookie-label {
  display: none;
}

#open-cookie-settings.icon-only .cookie-icon {
  font-size: 1.5rem;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {
  #open-cookie-settings {
            bottom: 10px;
        left: 15px;
  }
}
