/* Global Styles & Modern Font */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: #555;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #333;
}

.section-padding {
  padding: 80px 0;
}

hr.divider {
  max-width: 7rem;
  border-width: 0.2rem;
  border-color: #ffc107;
  margin: 1.5rem auto;
}

.img-fluid-rounded {
  border-radius: 8px;
}

/* Navbar Styling */
.navbar {
  padding: 15px 20px;
  transition: background-color 0.4s ease-out, padding 0.4s ease-out, box-shadow 0.4s ease-out;
  font-weight: 500;
}

.navbar-brand img {
  transition: transform 0.3s ease;
  height: 35px;
  width: auto;
}

.navbar-brand:hover img {
  transform: scale(1.1);
}

.navbar .nav-link {
  color: #ffffff;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: #ffc107 !important;
}

.navbar.navbar-transparent .navbar-toggler {
  border: 1px solid rgba(206, 206, 206, 0.8) !important;
  background: rgba(30,30,30,0.16);
  border-radius: 8px;
}

.navbar-transparent .nav-link {
  color: rgb(255, 255, 255) !important;
}

.navbar-transparent {
  background-color: rgba(20, 20, 20, 0.4) !important;
  box-shadow: none;
}

.navbar-scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding: 10px 20px;
}

.navbar-scrolled .nav-link {
  color: #333 !important;
}

.navbar-scrolled .navbar-nav .nav-link:hover,
.navbar-scrolled .navbar-nav .nav-link.active {
  color: #ffc107 !important;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(233, 233, 233, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar.navbar-transparent .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(207, 207, 207, 0.95)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar.navbar-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(33, 33, 33, 0.95)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Jumbotron / Hero Section */
#backg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  text-align: center;
  background-image: url('../img/textures/Plaster003_1K-JPG_Color.webp') !important; /* Fallback/initial */
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

#backg.vanta-loaded, #backg.loaded {
  opacity: 1;
}

.hero-content {
  z-index: 2;
  padding: 30px;
  border-radius: 10px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
  margin-bottom: 20px;
}

.company-logo-main {
  background-image: url('img/goremont.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 700px;
  height: 250px;
  margin: 0 auto 30px auto;
  animation: fadeInScale 1.5s 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* About Section Styling */
#about .yellow-it { color: #ffc107; font-weight: 600; }
#about .fa-hand-point-right { color: #ffc107; margin-right: 10px; transition: transform 0.3s ease; }
#about h4:hover .fa-hand-point-right { transform: translateX(5px); }
#about .img-how-work { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Offer Section */
.offer-section-bg {
  --offer-grad-angle: -60deg;
  --offer-color-start: #343a40;
  --offer-color-mid1: #2a2e32;
  --offer-color-mid2: #3a3f44;
  --offer-color-end: #23272b;
  background: linear-gradient(
    var(--offer-grad-angle),
    var(--offer-color-start),
    var(--offer-color-mid1),
    var(--offer-color-mid2),
    var(--offer-color-end)
  );
  color: #e9ecef;
  position: relative;
  overflow: hidden;
}

.offer-section-bg h2 { color: #ffffff; }
.offer-section-bg hr.divider { border-color: #ffc107; }

.offer-card {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
  min-height: 240px;
}

.offer-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  background-color: rgba(255, 255, 255, 0.12);
}

.offer-icon {
  margin-bottom: 20px;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  transition: transform 0.3s ease-out, background-color 0.3s ease-out;
}

.offer-card:hover .offer-icon {
  transform: scale(1.1) rotate(-3deg);
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.offer-icon img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease-out, filter 0.3s ease-out;
}

.offer-card:hover .offer-icon img {
  transform: scale(1.05);
  filter: none;
}

.offer-title {
  font-size: 1.15rem;
  color: #f0f0f0;
  font-weight: 500;
  margin-bottom: 0;
}


#portfolio { 
  background-color: #fff; 
}

.portfolio-splide .splide__slide {
    display: flex; 
    justify-content: center;
    align-items: center;
    /* Odstęp między slajdami jest zarządzany przez opcję 'gap' w inicjalizacji Splide.js */
}

.portfolio-splide .portfolio-carousel-image-wrapper {
    box-sizing: border-box;
    width: 100%; /* Wrapper powinien zajmować całą szerokość slajdu */
    /* Można dodać padding, jeśli opcja 'gap' nie wystarcza lub dla wizualnej separacji */
    /* padding: 0 5px;  */
}

.portfolio-splide .portfolio-carousel-img {
    height: 600px; /* Wysokość obrazka, można dostosować */
    width: 100%;   
    object-fit: cover; /* Zapewnia, że obrazek pokrywa kontener, przycinając nadmiar */
    border-radius: 6px; 
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
}

.portfolio-splide .portfolio-carousel-image-wrapper a:hover .portfolio-carousel-img {
    transform: scale(1.03); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); 
}

/* Opcjonalne style dla strzałek i paginacji Splide */
.portfolio-splide .splide__arrow {
    background: rgba(0,0,0,0.35); /* Półprzezroczyste tło dla strzałek */
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    width: 2.5em; /* Rozmiar strzałek */
    height: 2.5em;
}
.portfolio-splide .splide__arrow:hover {
    background: rgba(0,0,0,0.5);
    opacity: 1;
}
.portfolio-splide .splide__arrow svg {
    fill: #fff; /* Biała ikona strzałki */
    width: 1.2em; /* Rozmiar ikony wewnątrz strzałki */
    height: 1.2em;
}
.portfolio-splide .splide__pagination {
    bottom: -2em; /* Pozycjonowanie paginacji pod karuzelą */
}
.portfolio-splide .splide__pagination__page {
    background: rgba(0,0,0,0.25);
    border: none;
    opacity: 0.7;
    transition: background 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    width: 10px; /* Rozmiar kropek paginacji */
    height: 10px;
    margin: 0 4px;
}
.portfolio-splide .splide__pagination__page.is-active {
    background: #ffc107; /* Kolor aktywnej kropki paginacji */
    transform: scale(1.3);
    opacity: 1;
}
/* Koniec stylów dla Splide Carousel */


/* Contact Section Styling */
#contact { background-color: #212529; color: #f8f9fa; }
#contact h2, #contact h4, #contact p, #contact strong, #contact address { color: #f8f9fa; }
#contact .section-heading { color: #ffc107; } 
#contact .contact-icon-row img { max-height: 120px; opacity: 0.7; }
.social_links { color: #adb5bd; font-size: 1.1rem; text-decoration: none; transition: color 0.3s ease; }
.social_links:hover { color: #ffc107; text-decoration: none; }
.social_links i { margin-right: 12px; font-size: 1.5rem; transition: transform 0.3s ease; vertical-align: middle; }
.social_links:hover i { transform: scale(1.25) rotate(-5deg); }
#contact address img { filter: brightness(0) invert(1) sepia(1) hue-rotate(320deg) saturate(5) brightness(1.2); }

/* Instagram Section Styling */
#insta { position: relative; background-color: #1a1a1a; color: #fff; z-index: 0; overflow: hidden; }
#insta.insta-bg-loaded::before { 
  background-image: url('../../img/insta-bg.webp');
}
#insta::before { 
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; 
  background-size: cover; background-position: center center; background-attachment: fixed; 
  filter: grayscale(80%) brightness(0.7); opacity: 0.5; z-index: -2; transform: scale(1.05); 
}
#insta::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(10, 10, 10, 0.5); z-index: -1; }
#insta .container { position: relative; z-index: 1; }
#insta h2 { color: #fff; }
#insta hr.divider { border-color: #ffc107; }
.instagram-media { margin: 10px auto !important; box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important; border-radius: 12px !important; transition: transform 0.3s ease, box-shadow 0.3s ease; background-color: rgba(255,255,255, 0.95) !important; max-width: 90%; }
.instagram-media:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important; }

/* Footer */
footer { background-color: #16191c; color: #adb5bd; padding: 50px 0 30px 0; }
footer .toparrow { font-size: 2.5rem; color: #ffc107; margin-bottom: 15px; display: inline-block; transition: transform 0.3s ease, color 0.3s ease; }
footer .toparrow:hover { transform: translateY(-8px); color: #fff; }
footer p { font-size: 0.9rem; }
footer .white-page { color: #ffc107 !important; font-weight: 600; }

/* Bottom Nav for Mobile */
.nav-bottom { border-top: 1px solid #444; background-color: #212529 !important; }
.nav-bottom .bottom-item .nav-link { color: #adb5bd; font-weight: 500; transition: color 0.2s ease, background-color 0.2s ease; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.nav-bottom .bottom-item .nav-link:hover { color: #ffc107; background-color: #343a40; }
.nav-bottom .bottom-item .nav-link i { margin-right: 5px; }

/* Utility */
.nopadding { padding: 0 !important; }
.nopadding-left { padding-left: 0 !important; }
.navbar-transparent .navbar-collapse{
  background-color:rgba(16, 16, 16, 0);
  filter: drop-shadow(0 0 5px rgba(99, 99, 99, 0.6));
}

/* === MEDIA QUERIES FOR RESPONSIVENESS === */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .company-logo-main {
    width: 550px;
    height: 200px;
  }
  #about .text-center img {
    margin-left: auto;
    margin-right: auto;
  }
  /* Splide on mobile - ensure image height is appropriate */
  .portfolio-splide .portfolio-carousel-img {
    height: 450px !important; /* Dostosowana wysokość dla widoku pojedynczego slajdu na mobilkach */
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .nav-bottom {
    background-color: rgba(36, 41, 46, 0.98) !important;
    border-top: 1px solid #444;
    z-index: 1002;
    min-height: 30px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
  }
  .nav-bottom .nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 0.72rem;
    padding-top: 7px;
    padding-bottom: 7px;
    transition: color 0.2s;
  }
  .nav-bottom .nav-link:hover {
    color: #ffc107 !important;
    background: rgba(255,193,7,0.08);
  }
  .nav-bottom .fa {
    opacity: 1 !important;
    color: #ffc107;
    transition: color 0.2s;
  }
  .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
  }
  #backg {
    background-image: url('../img/textures/Plaster003_1K-JPG_Color.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    opacity: 1 !important; 
    transition: none !important;
  }
  .section-padding {
    padding: 60px 0;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .company-logo-main {
    width: 400px;
    height: 145px;
    margin-bottom: 20px;
  }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }
  h4 { font-size: 1.1rem; }

  #about .col-lg-7, #about .col-lg-5 {
    text-align: center;
  }
  #about .img-how-work {
    margin-top: 30px;
    max-width: 80%;
  }
  .offer-icon {
    width: 120px;
    height: 120px;
    padding: 10px;
  }
  .offer-title {
    font-size: 1.05rem;
  }

  #contact .col-lg-5, #contact .col-lg-7 {
    text-align: center;
  }
  #contact .social_links {
    display: block;
    margin-bottom: 10px;
  }
  .navbar-collapse { 
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1); 
  }
  .navbar-nav {
    align-items: center;
  }
  #backg::after {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(30,30,30,0.47); 
    z-index: 1; 
    pointer-events: none; 
    border-radius: inherit; 
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .section-padding {
    padding: 40px 0;
  }
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .company-logo-main {
    width: 300px;
    height: 110px;
    margin-bottom: 15px;
  }
  .navbar-brand img {
    height: 30px;
  }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1rem; }
  
  #about h4 {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  #about p {
    font-size: 0.9rem;
  }
  .offer-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }
  .offer-title {
    font-size: 1rem;
  }
  .offer-card {
    min-height: 200px;
    padding: 20px;
  }

  /* Usunięto style dla .carousel-control-prev-icon, .carousel-control-next-icon, bo Splide ma własne */

  #contact .contact-icon-row img {
    max-height: 80px;
  }
  #contact .social_links i {
    font-size: 1.3rem;
    margin-right: 8px;
  }
  #contact address {
    font-size: 0.9rem;
  }
  .instagram-media {
    max-width: 100%;
  }
  footer p {
    font-size: 0.8rem;
  }
  footer .toparrow {
    font-size: 2rem;
  }
  .navbar,
  .navbar.navbar-transparent,
  .navbar.navbar-scrolled {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    min-height: 44px !important;
    box-shadow: none !important; 
  }
  .navbar-brand img {
    height: 22px !important;
    max-height: 24px !important;
  }
  .navbar-toggler {
    padding: 2px 7px !important;
    font-size: 1rem !important;
    border-radius: 6px !important;
    height: 32px !important;
    min-width: 34px !important;
  }
  .navbar-nav .nav-link { 
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    font-size: 1rem !important;
  }
}

.instagram-gradient {
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 40%, #6228d7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  display: inline-block;
}

.goremont-logo {
  font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.07em;
  font-size: 6.5rem;
  color: #222; 
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px; 
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7); 
}

.goremont-logo .go-bold {
  color: #ffc107;
  font-weight: 900;
  margin-right: 2px; 
  letter-spacing: 0.01em; 
}

.goremont-logo .roller-icon {
  margin-left: 0.18em; 
  display: inline-block;
  vertical-align: middle;
  color: #fff; 
}


@media (max-width: 991.98px) { 
    .goremont-logo {
        font-size: 4.5rem; 
    }
}

@media (max-width: 767.98px) { 
    .goremont-logo {
        font-size: 3rem; 
    }
    .goremont-logo .roller-icon svg { 
        width: 35px; height: 35px;
    }
}


@media (max-width: 575.98px) {
  .goremont-logo { font-size: 2rem; }
  .goremont-logo .roller-icon svg { width: 30px; height: 30px; }
}

/* Cookie Banner */
#cookie-banner {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background:rgba(34, 34, 34, 0.7) !important;
  color: #ffffff !important;
  padding: 5px 32px !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.04) !important;
  font-size: 16px !important;
  z-index: 2147483647 !important;
  display: none !important; 
  align-items: center !important;
  gap: 20px !important;
  max-width: 95vw !important;
  min-width: 260px !important;
}

#cookie-banner button {
  background: #ffd600 !important;
  color: #222 !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 6px 24px !important;
  cursor: pointer !important;
  font-size: 15px !important;
  margin-left: 16px !important;
  transition: background 0.2s !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#cookie-banner a {
  color: #ffd600 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    font-size: 14px !important;
    padding: 5px 5px !important; 
    max-width: 97vw !important;
    min-width: 0 !important;
    left: 1.5vw !important;
    transform: none !important;
    bottom: 68px !important; 
    box-sizing: border-box !important;
    gap: 5px !important;
    text-align: center !important;
  }
  #cookie-banner span {
    margin-bottom: 6px !important;
    display: block !important;
    word-break: break-word !important;
  }
  #cookie-banner button {
    width: 100% !important;
    margin-left: 0 !important;
    font-size: 15px !important;
    padding: 5px 0 !important; 
    border-radius: 8px !important;
  }
}
