/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Updated primary colors to deep blue theme */
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --secondary: #003d99;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --border: #e2e8f0;
  --radius: 0.5rem;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Updated top bar styles for white background */
.top-bar {
  background: white;
  /* Updated color to deep blue */
  color: #0066ff;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #e2e8f0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-icons a {
  /* Updated color to deep blue */
  color: #0066ff;
  font-size: 0.75rem;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons a:hover {
  opacity: 0.8;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Updated color to deep blue */
  color: #0066ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.phone-number:hover {
  opacity: 0.9;
}

.search-btn {
  background: transparent;
  /* Updated border and color to deep blue */
  border: 1px solid #0066ff;
  color: #0066ff;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.3s;
  white-space: nowrap;
}

.search-btn:hover {
  /* Updated hover background to deep blue */
  background: #0066ff;
  color: white;
}

.search-input-wrapper {
  position: relative;
  display: none;
  align-items: center;
}

.search-input-wrapper.active {
  display: flex;
  animation: expandSearch 0.3s ease-out;
}

@keyframes expandSearch {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 250px;
    opacity: 1;
  }
}

.search-input-wrapper input {
  width: 250px;
  padding: 0.375rem 0.75rem;
  /* Updated border color to deep blue */
  border: 1px solid #0066ff;
  border-radius: 0.375rem;
  background: white;
  font-size: 0.875rem;
}

.search-input-wrapper input:focus {
  outline: none;
  /* Updated focus border and shadow to deep blue */
  border-color: #0066ff;
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.3);
}

/* Header Styles */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
  gap: 2rem;
}

.logo img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  flex: 1;
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.9rem;
  margin: 0;
  flex-shrink: 1;
  background: #f1f5f9;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
}

.nav-menu a .nav-icon {
  font-size: 0.85rem;
  color: var(--primary);
  transition: color 0.25s ease;
}

.nav-menu a.active .nav-icon,
.nav-menu a:hover .nav-icon {
  color: currentColor;
}

.nav-menu a:hover {
  color: var(--primary);
  background: rgba(0, 102, 255, 0.08);
}

.nav-menu a.active {
  color: white;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.35);
}

.nav-menu a.active::after {
  content: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-caret {
  font-size: 0.6rem;
  margin-left: -0.15rem;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  min-width: 170px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.18s ease;
  z-index: 1100;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--light);
  color: var(--primary);
}

.nav-dropdown-menu a i {
  color: var(--primary);
  font-size: 0.85rem;
  width: 1rem;
  text-align: center;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.nav-login-link {
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-login-link:hover {
  color: var(--primary);
}

/* Interactive auth buttons for logged-out visitors */
.auth-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.auth-login-btn i {
  font-size: 0.8rem;
  color: var(--gray);
  transition: color 0.25s ease;
}

.auth-login-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 102, 255, 0.06);
}

.auth-login-btn:hover i {
  color: var(--primary);
}

.auth-signup-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
  transition: all 0.25s ease;
}

.auth-signup-btn i {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.auth-signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.4);
}

.auth-signup-btn:hover i {
  transform: translateX(4px);
}

/* Professional user menu dropdown, replaces the old Dashboard/Sign Out button pair */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.user-menu-trigger:hover {
  border-color: var(--primary);
  background: #f0f6ff;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-menu-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-caret {
  font-size: 0.65rem;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

.user-menu.open .user-menu-caret {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  min-width: 190px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.18s ease;
  z-index: 1100;
}

.user-menu.open .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.user-menu-dropdown a i {
  width: 16px;
  text-align: center;
  color: #9ca3af;
}

.user-menu-dropdown a:hover {
  background: #f3f4f6;
}

.user-menu-dropdown a.user-menu-signout {
  color: #dc2626;
}

.user-menu-dropdown a.user-menu-signout i {
  color: #dc2626;
}

.user-menu-dropdown a.user-menu-signout:hover {
  background: #fef2f2;
}

.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0.25rem;
}

/* Improved mobile menu toggle button with better visibility and clickability */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  border: 2px solid var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  z-index: 1002;
  position: relative;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
}

.user-menu-toggle:hover {
  border-color: var(--primary);
  background: var(--light);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  display: none;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--dark);
  transition: background 0.3s;
}

.user-dropdown a:hover {
  background: var(--light);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  /* Updated shadow to deep blue */
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  /* Updated focus shadow to deep blue */
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-control:disabled {
  background: var(--light);
  cursor: not-allowed;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  cursor: pointer;
}

/* Alert Styles */
.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* Updated footer styles to match blue gradient design */
.site-footer {
  background: white;
  color: var(--dark);
  padding: 3rem 0 1rem;
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--light);
  border-radius: 50%;
  transition: all 0.3s;
  color: var(--primary);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--gray);
}

.contact-info i {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--gray);
}

/* ============================================================
   Mobile-only footer (dark navy theme, Quick Links, no Contact
   block). The .footer-desktop / .footer-mobile pair below keeps
   this fully isolated from the desktop footer styles above -
   nothing here is reachable outside the mobile breakpoint, and
   none of it reuses the desktop's class names.
   ============================================================ */
.footer-mobile {
  display: none;
}

@media (max-width: 768px) {
  .footer-desktop {
    display: none;
  }

  /* .site-footer keeps a white bg + 3rem top padding + gray border-top
     unconditionally (see the base rule above) for the desktop footer.
     .footer-mobile supplies its own dark background/padding, so without
     this override that white padding + border-top sits as a visible gap
     above the dark box on every page. */
  .site-footer {
    background: #0B1B3D;
    padding: 0;
    border-top: none;
  }

  .footer-mobile {
    display: block;
    background: #0B1B3D;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 -1rem;
    padding: 2.5rem 1rem 1.5rem;
  }

  .fm-main {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .fm-brand {
    flex: 1.3;
    min-width: 0;
  }

  .fm-logo-link {
    display: inline-block;
    margin-bottom: 1rem;
  }

  .fm-logo {
    height: 34px;
    width: auto;
    display: block;
  }

  .fm-tagline {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
  }

  .fm-social {
    display: flex;
    gap: 0.6rem;
  }

  .fm-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: all 0.3s;
    color: white;
  }

  .fm-social a:hover {
    background: var(--primary);
    color: white;
  }

  .fm-divider-v {
    align-self: stretch;
    width: 1px;
    background: rgba(255, 255, 255, 0.14);
  }

  .fm-links {
    flex: 1;
    min-width: 0;
  }

  .fm-links h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
  }

  .fm-links ul {
    list-style: none;
  }

  .fm-links ul li {
    margin-bottom: 0.85rem;
  }

  .fm-links ul li:last-child {
    margin-bottom: 0;
  }

  .fm-links a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
  }

  .fm-links a:hover {
    color: white;
  }

  .fm-links a i {
    color: var(--primary);
    font-size: 0.7rem;
  }

  .fm-divider-h {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
  }

  .fm-bottom {
    text-align: center;
    padding-top: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
  }
}

/* Badge Styles for Technician Status */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Improved responsive breakpoints */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 1.25rem;
  }

  .nav-wrapper {
    gap: 1.5rem;
  }
}

@media (max-width: 1100px) {
  .nav-menu {
    gap: 1rem;
  }

  .nav-wrapper {
    gap: 1.25rem;
  }

  .nav-actions .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .nav-menu {
    gap: 0.875rem;
  }

  .nav-menu a {
    font-size: 0.9rem;
  }

  .nav-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Improved mobile menu with better z-index and visibility */
@media (max-width: 968px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 1001;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-wrapper.show {
    display: flex !important;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu {
    flex-direction: column;
    padding: 0;
    gap: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--border);
  }

  .nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--dark);
    font-size: 1rem;
    border-radius: 0;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: var(--light);
    color: var(--primary);
    box-shadow: none;
  }

  .nav-menu a.active::after {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--light);
    min-width: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 0.875rem 1.5rem 0.875rem 2.5rem;
    border-radius: 0;
    font-size: 1rem;
  }

  .nav-dropdown-caret {
    margin-left: auto;
  }

  .nav-dropdown-trigger {
    justify-content: space-between;
  }

  .nav-actions {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    border-top: 2px solid var(--border);
    margin: 0;
    width: 100%;
  }

  .nav-actions .btn {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .auth-login-btn,
  .auth-signup-btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .user-menu {
    width: 100%;
  }

  .user-menu-trigger {
    width: 100%;
    justify-content: space-between;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
  }

  .user-menu-name {
    max-width: none;
    flex: 1;
    text-align: left;
  }

  .user-menu-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
    display: none;
  }

  .user-menu.open .user-menu-dropdown {
    display: block;
  }

  .user-menu-dropdown a {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .nav-login-link {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
  }

  .top-bar-content {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .phone-number {
    font-size: 0.875rem;
  }

  .search-input-wrapper.active {
    width: 180px;
  }
}

@media (max-width: 640px) {
  .top-bar-content {
    font-size: 0.75rem;
  }

  .social-icons {
    gap: 0.5rem;
  }

  .social-icons a {
    font-size: 0.7rem;
  }

  .phone-number {
    font-size: 0.8rem;
  }

  .search-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .search-input-wrapper.active {
    width: 150px;
  }
}