/* Custom CSS for Gleno Theme */

/* WordPress Admin Bar offset */
body.admin-bar #masthead {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar #masthead {
    top: 46px;
  }
}

@media screen and (max-width: 767px) {
  .mobile-title-28 {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }
}

/* Base styles */


/* Main Navigation */
#site-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-navigation>ul>li>a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

#site-navigation>ul>li>a:hover,
#site-navigation>ul>li.current-menu-item>a,
#site-navigation>ul>li.current_page_item>a,
#site-navigation>ul>li.current-menu-parent>a {
  color: #ea580c;
  font-weight: 600;
}

/* Desktop Dropdown */
#site-navigation>ul>li {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: -1rem;
}

#site-navigation ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 14rem;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
  margin-top: 0;
}

#site-navigation>ul>li.menu-item-has-children:hover>ul.sub-menu {
  display: block;
  animation: slideUpFade 0.2s ease-out forwards;
}

#site-navigation ul.sub-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

#site-navigation ul.sub-menu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ea580c;
  padding-left: 1.5rem;
}

/* Desktop dropdown icon */
#site-navigation>ul>li.menu-item-has-children>a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#site-navigation>ul>li.menu-item-has-children>a::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s;
  margin-top: 2px;
}

#site-navigation>ul>li.menu-item-has-children:hover>a::after {
  transform: rotate(180deg);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Dropdown */
#mobile-menu>nav>ul>li.menu-item-has-children>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#mobile-menu .menu-item-has-children>a::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
  cursor: pointer;
  padding: 0.5rem;
}

#mobile-menu .menu-item-has-children.is-open>a::after {
  transform: rotate(180deg);
}

#mobile-menu ul.sub-menu {
  display: none;
  /* hidden by default on mobile */
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 0.5rem;
}

#mobile-menu .menu-item-has-children.is-open>ul.sub-menu {
  display: flex;
  animation: slideDownFade 0.3s ease-out forwards;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobile-menu ul.sub-menu li {
  width: 100%;
}

#mobile-menu ul.sub-menu a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 400 !important;
}

#mobile-menu ul.sub-menu a:hover {
  color: #ea580c !important;
}

/* FluentForm overrides */
.fluentform.ff-default .ff-el-form-control {
  padding: 0.75rem 1rem !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.5rem !important;
  width: 100% !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  color: #374151 !important;
}

.fluentform.ff-default .ff-el-form-control:focus {
  outline: none !important;
  border-color: #ea580c !important;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2) !important;
}

.fluentform.ff-default .ff-btn-submit {
  width: 100% !important;
  background-color: #ea580c !important;
  color: #ffffff !important;
  padding: 1rem 2rem !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  transition: background-color 0.2s !important;
  border: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.fluentform.ff-default .ff-btn-submit::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.fluentform.ff-default .ff-btn-submit:hover {
  background-color: #c2410c !important;
}

.fluentform.ff-default .ff-el-input--label {
  font-weight: 500 !important;
  color: #374151 !important;
  margin-bottom: 0.5rem !important;
}

/* Newsletter Form specific fixes */
.footer-newsletter-form .fluentform.ff-default .ff-t-container {
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  padding: 0 !important;
}

.footer-newsletter-form .fluentform.ff-default .ff-t-cell {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-newsletter-form .fluentform.ff-default .ff-t-cell:first-child {
  flex: 1 1 0% !important;
  width: auto !important;
}

.footer-newsletter-form .fluentform.ff-default .ff-t-cell:last-child {
  flex: 0 0 auto !important;
  width: auto !important;
}

.footer-newsletter-form .fluentform.ff-default .ff-el-group,
.footer-newsletter-form .fluentform.ff-default .ff-el-input--content {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
}

.footer-newsletter-form .fluentform.ff-default .ff-el-form-control {
  height: 42px !important;
  margin: 0 !important;
  width: 100% !important;
  border-radius: 0.25rem 0 0 0.25rem !important;
  /* rounded-l */
  border-right: none !important;
  font-size: 12px !important;
}

.footer-newsletter-form .fluentform.ff-default .ff-el-form-control:focus {
  box-shadow: none !important;
  /* remove orange ring on focus to keep seamless look */
}

.footer-newsletter-form .fluentform.ff-default .ff-btn-submit {
  height: 42px !important;
  margin: 0 !important;
  padding: 0 1.5rem !important;
  width: auto !important;
  min-width: max-content !important;
  border-radius: 0 0.25rem 0.25rem 0 !important;
  /* rounded-r */
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.footer-newsletter-form .fluentform.ff-default .ff-btn-submit::before {
  display: none !important;
}

/* End of Newsletter Form specific fixes */

/* Luxury Form Styles for Dark Glassmorphism Backgrounds */
.luxury-form .fluentform.ff-default .ff-el-input--label {
  color: #ffffff !important;
}

.luxury-form .fluentform.ff-default .ff-el-form-control {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.luxury-form .fluentform.ff-default .ff-btn-submit {
  background-color: #ea580c !important;
  /* Theme primary color */
  color: #ffffff !important;
}

.luxury-form .fluentform.ff-default .ff-btn-submit:hover {
  background-color: #c2410c !important;
}

.luxury-form .fluentform.ff-default .ff-btn-submit::before {
  display: none !important;
}

/* Shine/Mirror Glare Effect */
@keyframes shineSweep {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

.hover-shine-effect {
  position: relative;
  overflow: hidden;
}

.hover-shine-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  z-index: 10;
  pointer-events: none;
}

.group:hover .hover-shine-effect::before {
  animation: shineSweep 0.8s ease-in-out;
}

/* Pagination Styling */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  color: #374151;
  background-color: #ffffff;
  transition: all 0.2s;
  margin: 0 0.25rem;
  text-decoration: none;
}

.page-numbers:hover {
  background-color: #f9fafb;
  color: #ea580c;
  border-color: #ea580c;
}

.page-numbers.current {
  border-color: #ea580c;
  background-color: #ea580c;
  color: #ffffff;
  pointer-events: none;
}

.page-numbers.dots {
  border-color: transparent;
  background-color: transparent;
  color: #6b7280;
  pointer-events: none;
}

/* FluentForm Success Message Fix */
.fluentform .ff-message-success {
  background-color: transparent !important;
  color: #ea580c !important;
  /* Primary Theme Color */
  border: 1px solid #ea580c !important;
  padding: 1rem !important;
  border-radius: 0.5rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  margin-top: 1rem !important;
}