body {
  font-family: "Open Sans", sans-serif !important;
  color: #100f0d;
}

section {
  padding-top: 75px;
}

.navbar {
  background-color: #f2f3f3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.navbar .nav-item .nav-link {
  font-weight: 500;
  color: #100f0d;
  font-size: 24px;
  margin-right: 30px;
  padding: 0;
}
.navbar-collapse {
  flex-direction: column;
}
/* added styles for the small social link row above the menu */
.social-links {
  gap: 12px;
  align-items: center;
}

/* Hero section */
#hero {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding-top: 0;
}

.hero-subtitle {
  color: #fc721e;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 30px;
}

.hero-title {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
}
.btn-container {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
}
.btn {
  width: 200px;
  height: 50px;
  background-color: #fc721e;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  font-weight: 600;
  line-height: 50px;
  padding: 0;
}

.btn:hover {
  background-color: #e6601c;
  /* keep text color unchanged on hover */
  color: #fff;
  text-decoration: none;
}

.btn-white {
  background-color: #fff;
  color: #fc721e;
}

/* Products Section */
.section-title {
  font-size: 40px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
}
.section-subtitle {
  font-size: 28px;
  text-align: center;
  font-weight: 300;
  margin-bottom: 30px;
  color: #808080;
}
.product-card {
  display: flex;
  align-items: center;
  flex-direction: row;
  border-radius: 15px;
  background-color: #f2f3f3;
  transition: transform 0.3s;
  min-height: 180px;
  height: 100%;
  border: none;
  box-shadow: 0 6px 14px rgba(16, 15, 13, 0.04);
}

.card-image {
  padding: 30px;
  min-width: 25%;
}

.product-card img {
  max-width: 100%;
  height: 80px;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card .card-body {
  padding: 15px;
}

.product-card .card-body {
  text-align: center;
}

.product-card .card-body h5 {
  font-size: 24px;
  font-weight: 600;
}

.product-card .card-body p {
  font-size: 18px;
}

.product-text {
  margin-top: 40px;
  font-size: 20px;
  line-height: 40px;
}

/* Blog Section */
.blog-card {
  border-radius: 15px;
  overflow: hidden;
  background-color: #f2f3f3;
  border: none;
  box-shadow: 0 6px 14px rgba(16, 15, 13, 0.04);
  color: inherit;
  text-align: center;
  transition: transform 0.3s;
  height: 100%;
}

.blog-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.blog-card:hover {
  transform: translateY(-5px);
  color: inherit;
}

.blog-card .card-body {
  padding: 30px 15px;
}

/* Make the whole blog card clickable while preserving card styles */
.blog-link {
  text-decoration: none;
  color: inherit;
  display: block; /* ensures the anchor fills the column */
}

/* Prevent the internal 'Czytaj więcej' visual button from capturing pointer events
   (we replaced the inner <a> with a <span>, but keep this to be safe) */
.blog-link .btn {
  pointer-events: none;
}

/* keyboard focus outline for accessibility */
.blog-link:focus {
  outline: 3px solid rgba(252, 114, 30, 0.25);
  outline-offset: 4px;
}
/* Pagination (themed) */
.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 32px 0 56px;
  flex-wrap: wrap;
}

.pagination-link,
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 15px;
  background: #fff;
  border: 2px solid #fc721e;
  color: #100f0d;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
  box-shadow: 0 6px 14px rgba(16, 15, 13, 0.04);
}

.pagination-link:hover,
.page-link:hover {
  transform: translateY(-3px);
  border-color: #fc721e;
  color: #fc721e;
}

.pagination-link.active,
.pagination .active .page-link {
  background: linear-gradient(180deg, #fc721e 0%, #e6601c 100%);
  color: #fff;
  border-color: #fc721e;
  box-shadow: 0 10px 30px rgba(252, 114, 30, 0.18);
}

.pagination-link.disabled,
.page-link.disabled,
.pagination .disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.pagination-link:focus,
.page-link:focus {
  outline: 3px solid rgba(252, 114, 30, 0.14);
  outline-offset: 4px;
}

.blog-card .card-title {
  min-height: 60px;
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-text {
  margin-top: 15px;
  font-size: 18px;
  line-height: 28px;
}

/* Single post styles */
#single-post .mb-5 {
  padding-bottom: 24px;
}

#single-post a {
  color: #fc721e;
  font-weight: 600;
  text-decoration: none;
}

#single-post h1 {
  font-size: 36px;
  font-weight: 800;
  color: #100f0d;
  margin-bottom: 18px;
  line-height: 1.1;
}

#single-post .post-content {
  font-size: 18px;
  line-height: 1.8;
  color: #222;
}

/* featured image adjustments */
#single-post .img-fluid.mb-4 {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 15, 13, 0.06);
}

/* Post meta placeholder styling (if added) */
.post-meta {
  color: #808080;
  font-size: 15px;
  margin-bottom: 14px;
}

/* Improve readability for long content */
#single-post .post-content p {
  margin-bottom: 18px;
}

@media screen and (max-width: 767px) {
  #single-post h1 {
    font-size: 28px;
  }
  #single-post .post-content {
    font-size: 16px;
    line-height: 1.7;
  }
}

.accordion-item {
  margin-bottom: 30px;
  border: none;
}

.accordion-header {
  margin: 0;
}

.accordion-button {
  background-color: transparent;
  color: #fc721e;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  box-shadow: none;
  border: 3px solid #fc721e;
  border-radius: 15px !important;
}

.accordion-button:not(.collapsed) {
  color: #fff;
  background-color: #fc721e;
  box-shadow: none;
  border-radius: 15px 15px 0 0 !important;
}
.accordion-body {
  font-size: 18px;
  line-height: 28px;
  border: 3px solid #fc721e;
  border-top: 0;
  border-radius: 0 0 15px 15px !important;
}

/* Theme dropdowns with Nav Walker Support */
.dropdown-menu {
  background: #fff;
  border: 2px solid #fc721e;
  border-radius: 10px;
  min-width: 220px;
  padding: 0.25rem 0;
  margin: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  pointer-events: none;
}

/* Desktop: Show on hover for all levels */
@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu,
  .dropdown-item.dropdown-toggle:hover + .dropdown-menu,
  .dropdown-item.dropdown-toggle + .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Position submenu dropdowns */
  .dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
    margin-left: 0;
    transform: translateX(-10px);
  }

  /* Show correct arrow for submenus */
  .dropdown-item.dropdown-toggle::after {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
  }

  /* Third level adjustments */
  .dropdown-menu .dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
  }
}

/* Mobile: Click behavior */
@media (max-width: 991.98px) {
  .dropdown-menu {
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    position: static;
    float: none;
    pointer-events: auto;
  }

  .dropdown-menu.show {
    display: block;
  }

  /* Indent levels on mobile */
  .dropdown-menu .dropdown-menu {
    padding-left: 1.5rem;
    margin-top: 0;
  }

  .dropdown-menu .dropdown-menu .dropdown-menu {
    padding-left: 1.5rem;
  }

  /* Reset and hide all default Bootstrap arrows first */
  .dropdown-toggle::after,
  .nav-link.dropdown-toggle::after,
  .dropdown-item.dropdown-toggle::after {
    display: none !important;
  }

  /* Basic styles for all dropdown items */
  .navbar-nav .dropdown-item {
    position: relative;
    padding-right: 2.5rem !important;
  }

  /* Target all levels of dropdown toggles */
  .navbar-nav .nav-item > .nav-link.dropdown-toggle,
  .navbar-nav .dropdown-menu .dropdown-toggle {
    position: relative;
    padding-right: 2.5rem !important;
  }

  /* Plus icon for ALL dropdown toggles that have submenus */
  .navbar-nav .nav-item > .nav-link.dropdown-toggle::before,
  .navbar-nav .dropdown-menu .dropdown-toggle::before {
    content: "+" !important;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    font-weight: 300;
    color: #fc721e;
    pointer-events: none;
    font-family: Arial, sans-serif;
    text-align: center;
    min-width: 1em;
    z-index: 1;
  }

  /* Minus icon for open dropdowns at ALL levels - HIGHER SPECIFICITY */
  .navbar-nav .nav-item > .nav-link.dropdown-toggle.show::before,
  .navbar-nav .dropdown-menu .dropdown-toggle.show::before {
    content: "−" !important;
  }

  /* Specifically target second level */
  .navbar-nav .dropdown-menu .dropdown-menu {
    margin-top: 0;
  }

  /* Ensure submenus stay visible when open */
  .navbar-nav .dropdown-menu.show {
    display: block;
  }

  /* Force plus/minus visibility */
  .dropdown-toggle[aria-expanded="true"]::before {
    content: "−" !important;
  }

  .dropdown-toggle[aria-expanded="false"]::before {
    content: "+" !important;
  } /* Mobile dropdown arrows */
  .dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    transition: transform 0.2s ease;
  }

  .dropdown-toggle.show::after {
    transform: rotate(180deg);
  }

  /* Better touch targets */
  .nav-link.dropdown-toggle,
  .dropdown-item.dropdown-toggle {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    min-height: 44px;
    width: 100%;
    text-align: center;
  }

  .dropdown-item {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    white-space: normal;
    min-height: 44px;
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  /* Remove desktop-only styles on mobile */
  .dropdown-menu,
  .dropdown-item,
  .dropdown-toggle {
    transition: none;
    transform: none !important;
  }

  /* Make all dropdown items and toggles visible */
  .dropdown-toggle::after,
  .dropdown-item.dropdown-toggle::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    opacity: 0.75;
    transition: opacity 0.2s ease;
  }

  /* Only apply hover effects on devices that support hover */
  @media (hover: hover) {
    .dropdown-toggle:hover::after,
    .dropdown-item.dropdown-toggle:hover::after {
      opacity: 1;
    }
  }

  /* Different arrow for first level vs nested levels */
  .navbar-nav > .dropdown > .dropdown-toggle::after {
    border-width: 0.4em;
  }

  /* Rotate arrows when menu is open */
  .dropdown-toggle.show::after,
  .dropdown-item.dropdown-toggle.show::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Style for items with nested menus */
  .dropdown-item.has-submenu {
    padding-right: 2.5rem;
    position: relative;
  }

  /* Add plus/minus icons using pseudo-elements */
  .dropdown-item.dropdown-toggle::before {
    content: "+";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    font-weight: 300;
    color: #fc721e;
    pointer-events: none;
  }

  .dropdown-item.dropdown-toggle.show::before {
    content: "−";
  }

  /* Prevent text selection on menu items */
  .navbar-nav {
    user-select: none;
    -webkit-user-select: none;
    width: 100%;
  }

  /* Ensure dropdowns are clickable */
  .dropdown,
  .dropdown-menu {
    width: 100%;
  }

  /* Style adjustments for mobile */
  .dropdown-item.dropdown-toggle {
    position: relative;
    padding-right: 2rem;
  }

  .dropdown-item.dropdown-toggle::after {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .dropdown-item.dropdown-toggle.show::after {
    transform: translateY(-50%) rotate(180deg);
  }
}

/* Shared styles for all viewports */
.dropdown-item {
  color: #100f0d;
  font-weight: 600;
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
  white-space: normal;
  display: flex;
  align-items: center;
}

/* Only apply subtle hover effects on devices that actually support hover (not touch devices) */
@media (hover: hover) {
  .dropdown-item:hover,
  .dropdown-item:focus {
    background-color: rgba(252, 114, 30, 0.1);
    color: inherit;
    text-decoration: none;
  }
}

/* Keep active states for accessibility on all devices but without orange background */
.dropdown-item.active {
  background-color: rgba(252, 114, 30, 0.15);
  color: inherit;
  text-decoration: none;
}

footer {
  background-color: #f2f3f3;
  padding: 30px 0;
  margin-top: 75px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.footer-container img {
  border-radius: 5px;
}

.footer-info .social-links {
  margin-left: 15px;
}

.footer-description {
  max-width: 400px;
  font-size: 18px;
  line-height: 25px;
  margin-bottom: 35px;
  margin-top: 20px;
}
.footer-links .footer-link {
  color: #100f0d;
  text-decoration: none;
  font-size: 20px;
  line-height: 40px;
}

/* Contact Section */
.form-label {
  font-weight: 600;
  font-size: 18px;
}
.form-control {
  border: 3px solid #fc721e;
}
#breadcrumbs {
  padding: 30px 15px;
}
#breadcrumbs a {
  color: #100f0d;
  font-weight: 600;
  text-decoration: none;
}

#breadcrumbs a:hover {
  color: #fc721e;
}

#breadcrumbs .breadcrumb-item {
  color: #fc721e;
}
#contact-info {
  padding-top: 0px;
}
.contact-box {
  display: flex;
  justify-content: center;
  gap: 30px;
}
.contact-box .clearfix img {
  float: left;
  margin-right: 15px;
}
.contact-box h5 {
  font-size: 20px;
  float: left;
  line-height: 35px;
  margin-bottom: 0;
}
.contact-box h5 a {
  color: #100f0d;
  text-decoration: none;
}
.service-badge {
  background: linear-gradient(180deg, #fc721e 0%, #e6601c 100%);
  color: #fff;
  border-radius: 15px;
  padding: 0.35em 1em;
  font-weight: 600;
  font-size: 1em;
  display: inline-block;
  margin-bottom: 2px;
}

/* Service Category Styles */
.service-category {
  padding: 2rem 0;
  border-bottom: 2px solid #f2f3f3;
}

.service-category:last-child {
  border-bottom: none;
}

.service-category h2 {
  margin-bottom: 0.5rem;
}

.service-category h2 a {
  color: #100f0d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-category h2 a:hover {
  color: #fc721e;
}

.category-description {
  color: #808080;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-category .blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.service-category .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(16, 15, 13, 0.08);
  text-decoration: none;
  color: inherit;
}

.service-category .blog-card .card-title,
.service-category .blog-card .card-text {
  text-decoration: none;
  color: inherit;
} /* Responsive adjustments */
@media (max-width: 991.98px) {
  .service-category .col-lg-4.text-lg-end {
    margin-top: 1rem;
    text-align: left !important;
  }
}

@media (max-width: 575.98px) {
  .service-category {
    padding: 1.5rem 0;
  }

  .category-description {
    font-size: 1rem;
  }
}
#service-single a,
#text-page a {
  color: #fc721e;
  font-weight: 600;
  text-decoration: none;
}

@media screen and (max-width: 1199px) {
  .navbar .nav-item .nav-link {
    font-size: 22px;
    margin-right: 20px;
  }
  #hero {
    height: 450px;
  }
  .hero-subtitle {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .hero-title {
    font-size: 36px;
  }
  .btn {
    width: 180px;
    height: 45px;
    font-size: 18px;
    line-height: 45px;
  }
  .section-title {
    font-size: 36px;
  }
  .section-subtitle {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .product-text {
    font-size: 18px;
    line-height: 36px;
  }
}

@media screen and (max-width: 991px) {
  /* Active state and focus visibility */
  .dropdown-item.active,
  .dropdown-item:active {
    background-color: #e6601c;
    color: #fff;
  }

  .dropdown-item:focus {
    outline: 2px solid rgba(252, 114, 30, 0.25);
    outline-offset: -2px;
  }

  /* Better touch targets */
  .dropdown-item {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .navbar .nav-item .nav-link {
    font-size: 24px;
    margin-right: 0;
    text-align: center;
    padding: 10px 0;
  }
  .navbar .navbar-brand img {
    height: 60px;
  }
  .navbar-toggler {
    border: none;
  }
  .navbar-toggler-icon {
    filter: invert(56%) sepia(86%) saturate(1913%) hue-rotate(340deg)
      brightness(101%) contrast(101%);
    transform: scale(1.2);
    width: 1.8em;
    height: 1.8em;
  }
  .navbar .nav-item .nav-link {
    font-size: 24px;
    margin-right: 0;
    text-align: center;
    padding: 10px 0;
  }

  section {
    padding-top: 50px;
  }

  #hero {
    height: 400px;
  }

  .hero-subtitle {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .btn {
    width: 150px;
    height: 45px;
    font-size: 18px;
    line-height: 45px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .product-card {
    flex-direction: column;
    text-align: center;
  }

  .product-text {
    font-size: 18px;
    line-height: 30px;
  }
}

@media screen and (max-width: 767px) {
  .hero-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .hero-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .footer-info {
    width: 100%;
  }
  .footer-copy {
    margin-top: 15px;
  }
  .blog-card .card-title {
    min-height: 0;
  }
}

@media screen and (max-width: 575px) {
  .btn {
    width: 130px;
    height: 40px;
    font-size: 16px;
    line-height: 40px;
  }
  #hero {
    height: 150px;
  }
  .section-title {
    font-size: 24px;
  }
  .section-subtitle {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .card-image {
    padding: 20px 15px;
    min-width: auto;
  }

  .card-title {
    font-size: 20px;
    min-height: auto;
  }
  .card-text {
    font-size: 16px;
  }

  .accordion-button {
    font-size: 18px;
    text-align: left;
  }

  .accordion-body {
    font-size: 16px;
    line-height: 24px;
  }
  .contact-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .pagination-link,
  .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 15px;
  }
  .pagination {
    margin-bottom: 32px;
  }
}

/* Floating call button */
.call-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fc721e 0%, #e6601c 100%);
  box-shadow: 0 8px 24px rgba(230, 96, 28, 0.28);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.call-button img {
  width: 28px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.call-button:active,
.call-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(230, 96, 28, 0.32);
}

/* Slightly smaller on very small screens */
@media screen and (max-width: 420px) {
  .call-button {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }
  .call-button img {
    width: 24px;
  }
}
