/* Navbar CSS - Pixel-perfect match to React Header component */

/* Root CSS Variables for Theming */
:root {
  --mr-blue: #0C4A6E;
  --mr-orange: #D97706;
  --mr-light: #FCD34D;
  --mr-dark-bg: #1f2933;
  --mr-dark-card: #374151;
}

/* Dark mode class applied to html element */
html.dark {
  color-scheme: dark;
}

/* Header - Sticky positioning for better UX */
.navbar-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--mr-orange);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html.dark .navbar-header {
  background: rgba(31, 41, 51, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Container - matches Header.tsx line 26 */
.navbar-container {
  max-width: 1280px; /* max-w-7xl */
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo - matches Header.tsx line 28-33 */
.navbar-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--mr-blue);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

html.dark .navbar-logo {
  color: white;
}

.navbar-logo:hover {
  opacity: 0.8;
}

/* Desktop Navigation - matches Header.tsx line 36 */
.navbar-desktop {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .navbar-desktop {
    display: flex;
  }
}

/* Nav links container - matches Header.tsx line 37 */
.navbar-nav {
  display: flex;
  gap: 24px;
}

/* Nav links - matches Header.tsx line 42 */
.navbar-nav a {
  color: #374151;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

html.dark .navbar-nav a {
  color: #E5E7EB;
}

.navbar-nav a:hover {
  color: var(--mr-orange);
}

html.dark .navbar-nav a:hover {
  color: var(--mr-light);
}

/* Services Dropdown Container */
.services-nav-item {
  position: relative;
}

/* Services Toggle Button */
.services-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #374151;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  transition: color 0.2s ease;
}

html.dark .services-toggle {
  color: #E5E7EB;
}

.services-toggle:hover {
  color: var(--mr-orange);
}

html.dark .services-toggle:hover {
  color: var(--mr-light);
}

/* Arrow icon for dropdown */
.services-toggle::after {
  content: '▼';
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.3s ease;
}

.services-toggle.active::after {
  transform: rotate(180deg);
}

/* Services Dropdown Menu */
.services-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  z-index: 50;
  opacity: 0;
  transform: translateX(-50%) scale(0.9) translateY(-10px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.services-dropdown.active {
  opacity: 1;
  transform: translateX(-50%) scale(1) translateY(0);
  pointer-events: auto;
}

html.dark .services-dropdown {
  background: #1F2937;
  border-color: #374151;
}

/* Service Dropdown Links */
.services-dropdown a {
  display: block;
  padding: 12px 16px;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #F3F4F6;
}

.services-dropdown a:last-child {
  border-bottom: none;
}

html.dark .services-dropdown a {
  color: #D1D5DB;
  border-bottom-color: #374151;
}

.services-dropdown a:hover {
  background-color: #F9FAFB;
  color: var(--mr-orange);
}

html.dark .services-dropdown a:hover {
  background-color: #374151;
  color: var(--mr-light);
}

/* Active service page highlight */
.services-dropdown a.active {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--mr-orange);
  font-weight: 700;
}

html.dark .services-dropdown a.active {
  background-color: rgba(217, 119, 6, 0.2);
}

/* Controls container - matches Header.tsx line 49 */
.navbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Selector - matches LanguageSelector.tsx line 81 */
.lang-selector {
  position: relative;
}

.lang-selector-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lang-selector-button:hover {
  background-color: #F3F4F6;
}

html.dark .lang-selector-button:hover {
  background-color: #1F2937;
}

.lang-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lang-label {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

html.dark .lang-label {
  color: #E5E7EB;
}

/* Language Dropdown - matches LanguageSelector.tsx line 93 */
.lang-dropdown {
  position: absolute;
  right: 0;
  margin-top: 8px;
  width: 192px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  z-index: 50;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.lang-dropdown.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

html.dark .lang-dropdown {
  background: #1F2937;
  border-color: #374151;
}

/* Language option - matches LanguageSelector.tsx line 97 */
.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
  color: #374151;
}

html.dark .lang-option {
  color: #D1D5DB;
}

.lang-option:hover {
  background-color: #F9FAFB;
}

html.dark .lang-option:hover {
  background-color: #374151;
}

/* Active language - matches LanguageSelector.tsx line 101-103 */
.lang-option.active {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--mr-orange);
  font-weight: 700;
}

html.dark .lang-option.active {
  background-color: rgba(217, 119, 6, 0.2);
}

.lang-option-name {
  font-size: 14px;
  flex: 1;
}

.lang-checkmark {
  margin-left: auto;
  color: var(--mr-orange);
  font-weight: 700;
}

/* Theme Toggle Button - matches Header.tsx line 52-58 */
.theme-toggle {
  padding: 12px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: var(--mr-blue);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.dark .theme-toggle {
  color: white;
}

.theme-toggle:hover {
  background-color: #F3F4F6;
}

html.dark .theme-toggle:hover {
  background-color: #374151;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Phone Button - matches Header.tsx line 60-67 */
.navbar-phone-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--mr-orange);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.navbar-phone-btn:hover {
  background: var(--mr-blue);
  transform: scale(1.05);
}

.navbar-phone-btn svg {
  width: 18px;
  height: 18px;
}

.navbar-phone-text {
  display: none;
}

@media (min-width: 1024px) {
  .navbar-phone-text {
    display: inline;
  }
}

/* Mobile Menu - matches Header.tsx line 71-87 */
.navbar-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .navbar-mobile {
    display: none;
  }
}

.mobile-menu-btn {
  color: var(--mr-blue);
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

html.dark .mobile-menu-btn {
  color: white;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
}

/* Mobile Dropdown - matches Header.tsx line 91-113 */
.mobile-dropdown {
  display: none;
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  background: white;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html.dark .mobile-dropdown {
  background: var(--mr-dark-bg);
  border-bottom-color: #374151;
}

.mobile-dropdown.active {
  display: block;
}

@media (min-width: 768px) {
  .mobile-dropdown {
    display: none !important;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
}

.mobile-nav a {
  font-size: 18px;
  font-weight: 500;
  color: #1F2937;
  text-decoration: none;
}

html.dark .mobile-nav a {
  color: #E5E7EB;
}

.mobile-nav a:hover {
  color: var(--mr-orange);
}

html.dark .mobile-nav a:hover {
  color: var(--mr-light);
}

/* Mobile Services Dropdown */
.mobile-services-item {
  display: flex;
  flex-direction: column;
}

.mobile-services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 500;
  color: #1F2937;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 100%;
  text-align: left;
}

html.dark .mobile-services-toggle {
  color: #E5E7EB;
}

.mobile-services-toggle:hover {
  color: var(--mr-orange);
}

html.dark .mobile-services-toggle:hover {
  color: var(--mr-light);
}

.mobile-services-toggle::after {
  content: '▼';
  font-size: 12px;
  transition: transform 0.3s ease;
}

.mobile-services-toggle.active::after {
  transform: rotate(180deg);
}

.mobile-services-dropdown {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-left: 16px;
  margin-top: 8px;
}

.mobile-services-dropdown.active {
  display: flex;
}

.mobile-services-dropdown a {
  font-size: 16px;
  font-weight: 400;
  color: #4B5563;
  text-decoration: none;
  padding: 8px 0;
}

html.dark .mobile-services-dropdown a {
  color: #9CA3AF;
}

.mobile-services-dropdown a:hover {
  color: var(--mr-orange);
}

html.dark .mobile-services-dropdown a:hover {
  color: var(--mr-light);
}

.mobile-services-dropdown a.active {
  color: var(--mr-orange);
  font-weight: 600;
}

.mobile-phone-btn {
  width: 100%;
  text-align: center;
  background: var(--mr-orange);
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  margin-top: 16px;
  text-decoration: none;
  display: block;
}

/* Body padding - Not needed for sticky navbar (removed) */

/* ========================================
   FOOTER STYLES - Reusable Footer Component
   ======================================== */

/* Footer Container */
.footer {
  background: var(--mr-blue);
  color: white;
  padding: 48px 20px 20px;
  margin-top: 60px;
  border-top: 3px solid var(--mr-orange);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer Grid - 3 Columns Responsive */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Footer Column */
.footer-column h3 {
  color: var(--mr-light);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Footer Links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease, transform 0.2s ease;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--mr-light);
  transform: translateX(4px);
}

.footer-links svg,
.footer-info svg {
  flex-shrink: 0;
  stroke: var(--mr-light);
}

.footer-info {
  color: rgba(255, 255, 255, 0.8);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  font-weight: 500;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Dark Mode Footer Adjustments */
html.dark .footer {
  background: #0A3A54;
  border-top-color: var(--mr-orange);
}

/* Footer Responsive Adjustments */
@media (max-width: 640px) {
  .footer {
    padding: 32px 16px 16px;
  }

  .footer-column h3 {
    font-size: 16px;
  }

  .footer-links a,
  .footer-info {
    font-size: 13px;
  }
}
