/* style.css - Bethany Hospital - Lorma-inspired premium style */

@config {
  theme: {
    extend: {
      fontFamily: {
        sans: ['Century Gothic', 'CenturyGothic', 'AppleGothic', 'Arial', 'sans-serif'],
      },
      colors: {
        'hospital-green': {
          DEFAULT: '#588157',
          950: '#1f2f1f',
          900: '#2f4f2f',
          800: '#3a5f3a',
          700: '#456b45',
          600: '#4f7650',
          500: '#588157',
          400: '#6f986d',
          300: '#93b58f',
          200: '#c8dbc3',
          100: '#e4eedf',
          50: '#f4f8f1',
        },
      },
      fontSize: {
        'hero': ['3.5rem', { lineHeight: '1.05' }],           // ~56px
        'section': ['2.5rem', { lineHeight: '1.15' }],        // ~40px
        'card-title': ['1.75rem', { lineHeight: '1.25' }],    // ~28px
        'body-lg': ['1.125rem', { lineHeight: '1.75' }],      // 18px
      },
      spacing: {
        '18': '4.5rem',
        '22': '5.5rem',
      },
      borderRadius: {
        '2.5xl': '1.375rem',
      }
    }
  }
}

body {
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, Arial, sans-serif;
  @apply bg-gray-50 text-gray-800;
}

h1, h2, h3, h4 {
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, Arial, sans-serif;
  font-weight: 700;
}

/* Nav link active/hover */
.nav-link {
  @apply relative transition-colors duration-300;
}

.nav-link::after {
  content: '';
  @apply absolute left-0 bottom-0 w-0 h-0.5 bg-hospital-green transition-all duration-300;
}

.nav-link:hover::after,
.nav-active::after {
  @apply w-full;
}

.nav-active {
  @apply text-hospital-green;
}

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 60s linear infinite;
}

/* Card hover */
.group:hover .group-hover\\:scale-110 {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: #3a5f3a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(15,118,110,.12);
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.site-header .relative {
  overflow: visible;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  border-radius: 10px;
  padding: 10px 0;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 9999;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  color: #456b45;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(15,118,110,.12);
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.site-header .relative {
  position: relative;
  overflow: visible;
}

.mega-menu {
  width: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}

.mega-menu h4 {
  margin: 4px 0 8px;
  color: #456b45;
  font-size: 13px;
  text-transform: uppercase;
}

.call-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #588157;
  color: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.mobile-link {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f7;
}

/* Premium navigation system */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(88, 129, 87, 0.18);
  transition: box-shadow 240ms ease, border-color 240ms ease;
}
.site-header.is-scrolled {
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.08);
  border-bottom-color: rgba(88, 129, 87, 0.28);
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.8rem;
  color: #111827;
  font-weight: 600;
  transition: color 220ms ease;
}
.nav-link:hover {
  color: #456b45;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.2rem;
  height: 2px;
  background: #588157;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease-out;
}
.nav-link:hover::after,
.nav-active::after {
  transform: scaleX(1);
}
.nav-active {
  color: #456b45;
  border-bottom: 2px solid #588157;
}
.nav-item {
  position: relative;
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  z-index: 60;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.13);
  padding: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}
.nav-item.is-open .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mega-panel {
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(72rem, 92vw);
  max-width: 72rem;
  padding: 2rem;
  border-radius: 1.1rem;
}
.nav-item.is-open .mega-panel {
  transform: translateX(-50%) translateY(0);
}
.mega-title {
  color: #456b45;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* NAVBAR INTERACTION FIXES */
nav a {
  pointer-events: auto !important;
}

header, nav {
  position: relative !important;
  z-index: 9999 !important;
}

/* Global element layer safety */
.hero, .banner, .overlay, .top-overlay {
  z-index: 1 !important;
  pointer-events: none !important;
}

}
.dropdown-link {
  display: block;
  padding: 0.66rem 0.8rem;
  border-radius: 0.75rem;
  color: #1f2937;
  font-size: 0.95rem;
  transition: background-color 200ms ease, color 200ms ease;
}
.dropdown-link:hover,
.dropdown-link:focus {
  background: rgba(88, 129, 87, 0.16);
  color: #456b45;
}
.mega-cta {
  font-weight: 700;
  color: #456b45;
}
.call-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #588157;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  transition: transform 220ms ease, background-color 220ms ease;
}
.call-cta:hover {
  background: #4f7650;
  transform: translateY(-1px);
}
.mobile-nav-panel {
  border-top: 1px solid rgba(88, 129, 87, 0.24);
  background: #fff;
}
.mobile-link,
.mobile-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.55rem;
  font-weight: 600;
  color: #111827;
  border-radius: 0.65rem;
}
.mobile-link:hover,
.mobile-trigger:hover {
  background: rgba(88, 129, 87, 0.14);
}
.mobile-submenu {
  display: none;
  padding: 0.2rem 0 0.45rem 0.65rem;
}
.mobile-submenu.is-open {
  display: block;
}
.mobile-sublink {
  display: block;
  padding: 0.55rem;
  color: #374151;
  border-radius: 0.6rem;
}
.mobile-sublink:hover {
  background: rgba(88, 129, 87, 0.12);
  color: #456b45;
}
