/* Additional theme styling for Green Ray Solutions */

/* WordPress Admin Bar Compatibility */
body.admin-bar header.sticky {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar header.sticky {
    top: 46px !important;
  }
}

/* Brand Colors (#4d9925 & #0e5093) */
:root {
  --brand-green: #4d9925;
  --brand-green-hover: #41821f;
  --brand-blue: #0e5093;
  --brand-blue-hover: #0b427b;
}

/* Hatke Navbar Top Gradient Accent Line */
.header-brand-line {
  height: 3px;
  background: linear-gradient(90deg, #4d9925 0%, #0e5093 100%);
  width: 100%;
}

/* Nav Link Hover Underline Indicator */
.nav-link-item {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: #4d9925;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
  border-radius: 9999px;
}

.nav-link-item:hover::after {
  width: 80%;
}

/* Resources Navigation Dropdown Hub */
.nav-dropdown-group {
  position: relative;
}

.nav-dropdown-group:hover .dropdown-chevron,
.nav-dropdown-group:focus-within .dropdown-chevron {
  transform: rotate(180deg);
  color: #0e5093;
}

.nav-dropdown-group:hover .nav-dropdown-menu,
.nav-dropdown-group:focus-within .nav-dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.nav-dropdown-menu {
  display: none;
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-dropdown-menu > div {
  transform: translateY(6px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.nav-dropdown-group:hover .nav-dropdown-menu > div,
.nav-dropdown-group:focus-within .nav-dropdown-menu > div {
  transform: translateY(0);
}

/* Glassmorphism helpers */
.glass-nav {
  background-color: rgba(7, 27, 52, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card {
  background-color: rgba(7, 27, 52, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-card-light {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Custom shadow utilities */
.shadow-editorial {
  box-shadow: 0 16px 40px -12px rgba(14, 80, 147, 0.10);
}

.shadow-gold,
.shadow-brand {
  box-shadow: 0 10px 25px -5px rgba(77, 153, 37, 0.35);
}

.shadow-gold-hover:hover,
.shadow-brand-hover:hover {
  box-shadow: 0 14px 30px -5px rgba(77, 153, 37, 0.45);
}

/* Modal styles */
#consultation-modal.flex,
#booking-modal.flex {
  display: flex !important;
}

#consultation-modal.hidden,
#booking-modal.hidden {
  display: none !important;
}

/* Toast styles */
#toast-notification.flex {
  display: flex !important;
}

#toast-notification.hidden {
  display: none !important;
}

/* Payment Method Selection Card */
.payment-card {
  transition: all 0.2s ease-in-out;
}

.payment-card.selected {
  border-color: #4d9925 !important;
  background-color: #f2f9ee !important;
  box-shadow: 0 0 0 2px #4d9925;
}

/* Tab indicator */
.booking-step-badge.active {
  background-color: #4d9925;
  color: #ffffff;
  font-weight: 600;
}

.booking-step-badge.completed {
  background-color: #0e5093;
  color: #ffffff;
}

/* Brand logo styling */
.brand-sun-icon {
  animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.03);
  }
}

/* Counter number animation */
.stat-counter {
  font-variant-numeric: tabular-nums;
}

/* Smooth Accordion Details Animation */
details summary::-webkit-details-marker {
  display: none;
}
details[open] summary ~ * {
  animation: details-expand 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes details-expand {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card hover elevations */
.service-card-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.service-card-lift:hover {
  transform: translateY(-4px);
}

/* Print styles */
@media print {
  header, footer, #consultation-modal, #booking-modal, #toast-notification {
    display: none !important;
  }
}
