/**
 * @file
 * Site branding styles for NBVT Base theme
 * Replicates the old site branding structure
 */

/* Region branding container */
.region-inner.region-branding-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  flex-wrap: wrap;
}

/* Branding data container */
.branding-data {
  display: flex !important;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.branding-data::after {
  content: "";
  display: table;
  clear: both;
}

/* Logo styling */
.logo-img {
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
}

.logo-img a {
  display: inline-block;
  border: none;
  text-decoration: none;
  line-height: 0;
}

.logo-img img {
  height: 60px;
  width: auto;
  max-width: 200px;
  border: none;
  display: block;
}

/* Site name container */
#site-name {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  min-width: 0; /* Prevents flex item from overflowing */
}

#site-name h3,
#site-name h2 {
  margin: 0;
  padding: 0;
  line-height: 1.2;
  font-weight: normal;
}

#site-name h3 {
  font-size: 18px;
  color: var(--color-primary);
  margin-bottom: 2px;
  font-weight: 500;
}

#site-name h2 {
  font-size: 24px;
  color: var(--color-primary);
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .region-inner.region-branding-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  #site-name {
    margin-left: 0;
    margin-top: 10px;
  }

  .logo-img img {
    height: 50px;
  }

  #site-name h3 {
    font-size: 16px;
  }

  #site-name h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .region-inner.region-branding-inner {
    padding: 5px 0;
  }

  .logo-img img {
    height: 40px;
  }

  #site-name h3 {
    font-size: 14px;
  }

  #site-name h2 {
    font-size: 18px;
  }
}
