/**
 * Header, Navigation & Mobile Drawer Styles
 * Part 2.2 — Matched to live WordPress site
 */

/* ==========================================================================
   Top Info Bar — Harmonized with Website Theme
   ========================================================================== */
.top-bar {
  background-color: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-top: 3px solid #f59e0b;
  border-bottom: 1px solid var(--border);
}

.top-bar .container {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-bar__link {
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.top-bar__link svg {
  color: #e68a00;
  flex-shrink: 0;
}

.top-bar__link:hover {
  color: #0a284b;
}

.top-bar__divider {
  color: #cbd5e1;
  user-select: none;
}

.top-bar__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar__social-icon {
  color: #64748b;
  display: inline-flex;
  transition: var(--transition);
  text-decoration: none;
}

.top-bar__social-icon:hover {
  color: #e68a00;
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .top-bar__social {
    display: none;
  }
  .top-bar__contact {
    justify-content: center;
    width: 100%;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Main Header / Site Header
   ========================================================================== */
.site-header {
  background: var(--bg-card);
  padding: 0.65rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(10, 40, 75, 0.06);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  gap: 1.5rem;
}

/* Brand / Logo */
.site-header__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo-img {
  height: 48px;
  width: auto;
  max-height: 52px;
  object-fit: contain;
  display: block;
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
}

.site-header__brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0a284b;
  line-height: 1.1;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.site-header__brand-accent {
  color: #e68a00;
  font-weight: 800;
}

.site-header__brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Desktop Navigation */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.site-nav__link:hover {
  color: var(--primary);
  background-color: rgba(31, 124, 236, 0.06);
}

.site-nav__link--active {
  color: var(--primary);
  font-weight: 600;
  background-color: rgba(31, 124, 236, 0.08);
}

/* Header Action Pill Buttons (Saffron / Gold Theme) */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #F5A623 0%, #E68A00 100%);
  color: #ffffff !important;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(230, 138, 0, 0.35);
  transition: var(--transition);
  white-space: nowrap;
  min-height: 38px;
}

.btn-header-pill:hover {
  background: linear-gradient(180deg, #FFB733 0%, #D97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(230, 138, 0, 0.45);
  color: #ffffff !important;
}

@media (max-width: 1024px) {
  .site-nav {
    display: none;
  }
  .site-header__actions {
    display: none;
  }
}

/* ==========================================================================
   Mobile Hamburger Toggle
   ========================================================================== */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-toggle__bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle--open .mobile-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle--open .mobile-toggle__bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle--open .mobile-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
  .mobile-toggle {
    display: flex;
  }
}

/* ==========================================================================
   Mobile Navigation Drawer
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}

.mobile-drawer--open {
  pointer-events: all;
  visibility: visible;
}

.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer--open .mobile-drawer__overlay {
  opacity: 1;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-card);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-drawer--open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  transition: var(--transition);
}

.mobile-drawer__close:hover {
  color: var(--primary-dark);
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  flex: 1;
}

.mobile-drawer__link {
  display: block;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.mobile-drawer__link:hover {
  background-color: rgba(31, 124, 236, 0.06);
  color: var(--primary);
  border-left-color: var(--primary);
}

.mobile-drawer__link--highlight {
  color: var(--primary);
  font-weight: 600;
}

.mobile-drawer__footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-drawer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer__contact a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mobile-drawer__contact a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Mobile Sticky Action Bar (Bottom of Screen)
   ========================================================================== */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

.mobile-action-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.2rem;
  padding: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-action-bar__item:hover {
  color: var(--primary);
}

.mobile-action-bar__item--primary {
  color: var(--primary);
}

@media (max-width: 768px) {
  .mobile-action-bar {
    display: flex;
  }

  body {
    padding-bottom: 65px; /* Space for sticky bar */
  }
}
