/* Layout Component Styles - External CSS */

/* TopBar Styles */
.topbar {
  background-color: hsl(240 10% 93% / 0.5);
  border-bottom: 1px solid hsl(240 6% 90%);
  color: hsl(240 8% 45%);
}

.topbar-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.topbar-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .topbar-content {
    justify-content: space-between;
    gap: 1rem;
  }
}

.topbar-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .topbar-info {
    gap: 1.5rem;
  }
}

.topbar-info-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.topbar-phone {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .topbar-phone {
    display: flex;
  }
}

.topbar-phone-link {
  color: hsl(240 8% 45%);
  transition: color 0.15s ease;
}

.topbar-phone-link:hover {
  color: hsl(240 10% 10%);
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: hsl(0 0% 100%);
  border-bottom: 1px solid hsl(240 6% 90%);
}

.header-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header-content {
    height: 5rem;
  }
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo-img {
  height: 2rem;
  width: auto;
}

@media (min-width: 768px) {
  .header-logo-img {
    height: 2.5rem;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background-color: hsl(240 12% 94%);
  color: hsl(240 10% 10%);
}

.nav-link:focus-visible {
  outline: none;
  ring: 2px solid hsl(210 85% 45%);
  ring-offset: 2px;
}

.nav-dropdown {
  width: 500px;
  padding: 1rem;
}

.nav-dropdown-narrow {
  width: 300px;
  padding: 1rem;
}

.nav-dropdown-section {
  margin-bottom: 0.5rem;
}

.nav-dropdown-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(240 8% 45%);
  margin-bottom: 0.5rem;
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease;
}

.nav-dropdown-item:hover {
  background-color: hsl(240 12% 94%);
}

.nav-dropdown-item-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  text-align: center;
  transition: background-color 0.15s ease;
}

.nav-dropdown-item-centered:hover {
  background-color: hsl(240 12% 94%);
}

.nav-dropdown-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(210 85% 45%);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.nav-dropdown-icon-centered {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(210 85% 45%);
}

.nav-dropdown-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-dropdown-label-sm {
  font-size: 0.75rem;
  font-weight: 500;
}

.nav-dropdown-desc {
  font-size: 0.75rem;
  color: hsl(240 8% 45%);
}

/* Header CTA & Mobile Nav */
.header-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .header-cta {
    display: flex;
  }
}

.mobile-nav {
  width: 300px;
  overflow-y: auto;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease;
}

.mobile-nav-link:hover {
  background-color: hsl(240 12% 94%);
}

.mobile-nav-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease;
}

.mobile-nav-trigger:hover {
  background-color: hsl(240 12% 94%);
}

.mobile-nav-submenu {
  padding-left: 1rem;
}

.mobile-nav-sublink {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: hsl(240 8% 45%);
  transition: color 0.15s ease;
}

.mobile-nav-sublink:hover {
  color: hsl(240 10% 10%);
}

/* Footer Styles */
.footer {
  background-color: hsl(240 20% 98%);
  border-top: 1px solid hsl(240 6% 90%);
  margin-top: auto;
}

.footer-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .footer-container {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.875rem;
  color: hsl(240 8% 45%);
  line-height: 1.625;
}

.footer-links {
  font-size: 0.875rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: hsl(240 8% 45%);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: hsl(240 10% 10%);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social-link {
  color: hsl(240 8% 45%);
  transition: color 0.15s ease;
}

.footer-social-link:hover {
  color: hsl(210 85% 45%);
}

.footer-contact {
  font-size: 0.875rem;
}

.footer-contact > div {
  margin-bottom: 0.75rem;
}

.footer-contact-label {
  color: hsl(240 8% 45%);
  margin-bottom: 0.25rem;
}

.footer-contact-value {
  color: hsl(240 10% 10%);
  transition: color 0.15s ease;
}

.footer-contact-value:hover {
  color: hsl(210 85% 45%);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(240 6% 90%);
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
  }
}

.footer-legal {
  font-size: 0.875rem;
  color: hsl(240 8% 45%);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-legal {
    text-align: left;
  }
}

.footer-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-badges {
    align-items: flex-end;
  }
}

.footer-badges-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-badge {
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-copyright {
  font-size: 0.75rem;
  color: hsl(240 8% 45%);
}
