﻿/* ==========================================================================
   NAVIGATION & FOOTER STYLES
   ========================================================================== */

/* Top Info Bar */
.top-bar {
  background-color: var(--primary-darker);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1001;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}

.top-bar-item:hover {
  color: var(--secondary-light);
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.badge-emergency {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.65rem;
  background-color: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-coral 2s infinite;
}

@keyframes pulse-coral {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Main Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  height: 72px;
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  z-index: 1002;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.brand-logo:hover .brand-icon {
  transform: rotate(6deg) scale(1.05);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-darker);
  line-height: 1.1;
}

.brand-name span {
  color: var(--secondary);
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.65rem;
  right: 0.65rem;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 260px;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-darker);
}

.dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-item:hover .dropdown-item-icon {
  background-color: var(--primary);
  color: #fff;
}

.dropdown-item-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
}

.dropdown-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}

.dropdown-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary-dark);
  align-items: center;
  justify-content: center;
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 1100;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-section-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.mobile-drawer-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-link {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-link:hover, .mobile-link.active {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.mobile-submenu {
  padding-left: 1.25rem;
  margin: 0.25rem 0 0.5rem 0;
  border-left: 2px solid var(--border-medium);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-sublink {
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  display: block;
}

.mobile-sublink:hover {
  color: var(--primary);
  background: var(--primary-ultralight);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 45, 45, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.site-footer {
  background-color: #0B2B2B;
  color: rgba(255, 255, 255, 0.82);
  padding-top: 5rem;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(20, 184, 166, 0.25);
  margin-top: auto;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.footer-brand .brand-logo {
  margin-bottom: 1.25rem;
}

.footer-brand .brand-name {
  color: #FFFFFF;
}

.footer-brand .brand-tagline {
  color: var(--secondary-light);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-badge-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--secondary-light);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-3px);
  color: #fff;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background-color: var(--secondary);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--secondary-light);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 0.2rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 1;
}

.footer-credit {
  font-weight: 700;
  color: var(--secondary-light);
  letter-spacing: 0.02em;
}