/* ===================================
    Crafto - It business
====================================== */
/* font */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap");
/* variable */
:root {
  --base-color: #074eb9;
  --dark-gray: #252840;
  --black: #05060a;
  --medium-gray: #7d8087;
  --very-light-gray: #f0f2f8;
  --primary-font: "Plus Jakarta Sans", sans-serif;
}
/* reset */
body {
  line-height: 29px;
}
/* header */
header .navbar-brand {
  display: flex;
  align-items: center;
  padding: 15px 0; /* Reduced for more compact navbar */
}

/* Support for both traditional img and Kentico picture elements */
header .navbar-brand img,
header .navbar-brand picture {
  max-height: 60px; /* Increased from 45px for better visibility */
  width: auto;
  height: auto;
  transition: all 0.3s ease; /* Smooth transitions */
}

header .navbar-brand img {
  object-fit: contain; /* Maintain aspect ratio */
}

/* Kentico picture element specific styling */
header .navbar-brand picture {
  display: inline-block;
  line-height: 0; /* Remove extra space below picture */
}

header .navbar-brand picture img {
  max-height: inherit; /* Inherit from parent picture */
  object-fit: contain;
  display: block; /* Remove inline spacing */
}

/* Logo visibility states - compatible with both systems */
header .navbar-brand .default-logo,
header .navbar-brand .logo-dark {
  visibility: visible;
  opacity: 1;
  width: auto;
  transition: all 0.3s ease;
}

header .navbar-brand .alt-logo,
header .navbar-brand .logo-light {
  visibility: hidden;
  opacity: 0;
  width: 0;
  transition: all 0.3s ease;
}

/* Ensure Kentico picture elements are always visible */
header .navbar-brand picture {
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
}

/* Mobile logo handling */
header .navbar-brand .mobile-logo {
  display: none !important;
}

@media (max-width: 991.98px) {
  header .navbar-brand .default-logo,
  header .navbar-brand .logo-dark,
  header .navbar-brand .alt-logo,
  header .navbar-brand .logo-light {
    display: none !important;
  }

  header .navbar-brand .mobile-logo {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
  }

  /* Ensure mobile picture elements are visible */
  header .navbar-brand picture.mobile-logo {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
  }
}

/* Sticky header logo adjustments */
header.sticky-active .navbar-brand {
  padding: 12px 0;
}

header.sticky-active .navbar-brand img,
header.sticky-active .navbar-brand picture {
  max-height: 50px; /* Slightly smaller for sticky header */
}

/* Simplified sticky header logo switching */
/* Only apply logo switching if both default and alt logos exist */
header.sticky-active .navbar-brand .default-logo ~ .alt-logo {
  visibility: visible;
  opacity: 1;
  width: auto;
}

header.sticky-active .navbar-brand .default-logo:not(:only-of-type) {
  visibility: hidden;
  opacity: 0;
  width: 0;
}

/* Ensure Kentico picture elements remain visible in sticky mode */
header.sticky-active .navbar-brand picture {
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
}

/* Mobile logo optimizations */
@media (max-width: 991.98px) {
  header .navbar-brand {
    padding: 12px 0;
  }

  header .navbar-brand img,
  header .navbar-brand picture {
    max-height: 45px;
  }
}

/* Logo hover effect - works with both img and picture */
header .navbar-brand:hover img,
header .navbar-brand:hover picture img {
  transform: scale(1.02);
  filter: brightness(1.05);
}
.navbar .navbar-nav .nav-link {
  font-size: 17px;
}
header .btn.btn-rounded.btn-large {
  padding: 10px 26px;
  font-size: 13px;
  font-weight: 500;
}
.sticky .header-transparent .header-button .btn {
  color: var(--dark-gray);
  border-color: var(--extra-medium-gray);
}
.sticky .header-transparent .header-button .btn:hover {
  border-color: var(--dark-gray);
  color: var(--white);
  background: var(--dark-gray);
}
header.sticky.sticky-active [data-header-hover="light"] .widget-text i {
  color: var(--white);
}
/* accordion style 02 */
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu {
  background-color: var(--dark-gray);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.navbar
  .navbar-nav
  .dropdown.dropdown-with-icon-style02
  .dropdown-menu
  li:hover
  a,
.navbar
  .navbar-nav
  .dropdown.dropdown-with-icon-style02
  .dropdown-menu
  li.active
  a {
  opacity: 0.5;
}
/* btn */
[class*="btn-transparent"],
[class*=" btn-transparent"] {
  font-weight: 500;
}
.btn {
  text-transform: none;
  font-family: var(--primary-font);
}
.btn.btn-switch-text.btn-extra-large > span {
  padding: 19px 40px;
}
.btn-gradient-purple-pink {
  background-image: linear-gradient(to right, #0b58cb, #e94037, #0b58cb);
  background-size: 200% auto;
  color: var(--white);
}
/* bg gradient color */
.bg-gradient-dark-gray-transparent {
  background: -webkit-linear-gradient(
    right,
    rgba(24, 25, 28, 0.5),
    rgba(255, 255, 255, 0)
  );
  background: linear-gradient(
    to right,
    rgba(24, 25, 28, 0.5),
    rgba(255, 255, 255, 0)
  );
}
.bg-gradient-very-light-gray-transparent {
  background: -webkit-linear-gradient(
    right,
    rgba(240, 244, 253, 1),
    rgba(255, 255, 255, 0)
  );
  background: linear-gradient(
    to right,
    rgba(240, 244, 253, 1),
    rgba(255, 255, 255, 0)
  );
}
.bg-gradient-flamingo-red-transparent {
  background: -webkit-linear-gradient(
    right,
    rgba(243, 69, 59, 1),
    rgba(255, 255, 255, 0)
  );
  background: linear-gradient(
    to right,
    rgba(243, 69, 59, 1) 10%,
    rgba(255, 255, 255, 0) 95%
  );
}
.bg-gradient-base-color-transparent {
  background: -webkit-linear-gradient(
    right,
    rgba(15, 89, 201, 1),
    rgba(255, 255, 255, 0)
  );
  background: linear-gradient(
    to right,
    rgba(15, 89, 201, 1) 10%,
    rgba(255, 255, 255, 0) 95%
  );
}
.bg-gradient-light-gray-transparent {
  background: -webkit-linear-gradient(
    right,
    rgba(222, 230, 244, 1),
    rgba(255, 255, 255, 0)
  );
  background: linear-gradient(
    to right,
    rgba(222, 230, 244, 1),
    rgba(255, 255, 255, 0)
  );
}
.bg-midnight-blue {
  background-color: #1e2033;
}
/* text */
.text-flamingo {
  color: #e55b53;
}
.text-gradient-orange-sky-blue {
  background-image: linear-gradient(
    to right,
    #5e70f3,
    #6170f1,
    #8074dc,
    #b87bb6,
    #ec8192
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 25px;
}
/* portfolio filter */
.portfolio-filter li {
  padding: 0 18px;
  line-height: 24px;
}
/* blog */
.categories-btn {
  font-size: 11px;
}
/* page title */
.page-title-extra-large h1 {
  font-size: 4rem;
  line-height: 4rem;
}
.page-title-extra-large h2 {
  font-size: 17px;
  line-height: 28px;
  margin: 0 auto;
}
.process-step-style-05 .progress-step-separator {
  bottom: -10px;
  height: 100%;
  z-index: -1;
}
/* height */
.h-72px {
  height: 72px !important;
}
#map {
  height: 650px;
  border-radius: 6px 0 0 6px;
}
/* margin top */
.mt-minus-50px {
  margin-top: -50px;
}
/* line-height */
.lh-200 {
  line-height: 12.5rem;
}
/* bottom */
.bottom-auto {
  bottom: auto;
}
/* footer */
footer .footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

footer .footer-logo img,
footer .footer-logo picture {
  max-height: 45px; /* Increased from 35px for better visibility */
  width: auto;
  height: auto;
  transition: all 0.3s ease;
}

footer .footer-logo img {
  object-fit: contain;
}

/* Footer picture element specific styling */
footer .footer-logo picture {
  display: inline-block;
  line-height: 0; /* Remove extra space below picture */
}

footer .footer-logo picture img {
  max-height: inherit; /* Inherit from parent picture */
  object-fit: contain;
  display: block; /* Remove inline spacing */
}

/* Footer logo hover effect - works with both img and picture */
footer .footer-logo:hover img,
footer .footer-logo:hover picture img {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* Responsive footer logo */
@media (max-width: 767.98px) {
  footer .footer-logo img,
  footer .footer-logo picture {
    max-height: 40px;
  }
}
footer ul li {
  margin-bottom: 0;
}
.footer-navbar li {
  display: inline-block;
  margin-bottom: 0;
  margin-right: 15px;
}
.footer-navbar li:last-child {
  margin-right: 0;
}
.footer-light a:hover,
.footer-navbar li a:hover {
  color: var(--dark-gray);
}
@media (max-width: 1299px) {
  .navbar .navbar-nav .nav-link {
    font-size: 16px;
  }
  header .btn.btn-rounded.btn-large {
    padding: 10px 15px;
    font-size: 12px;
  }
}
@media (max-width: 1199px) {
  .navbar .navbar-nav .nav-link {
    font-size: 15px;
  }
  header .btn.btn-rounded.btn-large {
    padding: 10px 10px;
    font-size: 11px;
  }
}
@media (max-width: 991px) {
  .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu {
    width: calc(100% + 30px) !important;
    margin-left: -15px;
    padding: 10px 45px;
    margin-bottom: 0;
    margin-right: -15px;
  }
  .navbar
    .navbar-nav
    .dropdown.dropdown-with-icon-style02
    .dropdown-menu
    li:last-child
    a {
    padding-bottom: 17px;
  }
  [data-mobile-nav-style="full-screen-menu"]
    .navbar-full-screen-menu-inner
    .navbar-nav
    .dropdown.dropdown-with-icon-style02
    .dropdown-menu
    li
    a
    i {
    font-size: 19px;
  }
  header .btn.btn-rounded.btn-large {
    color: var(--dark-gray);
    border-color: var(--extra-medium-gray);
    padding: 10px 15px;
    font-size: 13px;
  }
}
@media (max-width: 767px) {
  .portfolio-filter li {
    padding: 0;
  }
}

/* Time Input Component Styles */
.time-input-container {
  position: relative;
}

input[type="time"] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-image: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="time"]:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

input[type="time"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

/* Firefox specific styling */
input[type="time"]::-moz-focus-inner {
  border: 0;
}

/* Styling for validation states */
input[type="time"].is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

input[type="time"].is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

input[type="time"].is-valid {
  border-color: #198754;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94L4.5 7.04 6.76 4.78l.94.94L4.5 8.72z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

input[type="time"].is-valid:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}
