/* header.css — shared header normalization
   Load AFTER /css/styles.css

   Purpose:
   - Keep top banner aligned with page content
   - Keep default desktop layout: logo left, pitch right
   - Make inner-page mobile headers much more compact
   - Allow homepage-specific overrides in index.css
*/

/* =========================
   Top banner tweaks (layout only)
========================= */
.top-banner .container {
  gap: 12px;
}

.top-menu a.active,
.top-menu a[aria-current="page"] {
  font-weight: 700;
}

/* =========================
   Logo header: shared defaults
========================= */

/* styles.css sets .logo-header display:flex;
   normalize it back to block so container alignment is stable */
.logo-header {
  display: block !important;
  width: 100%;
}

/* Shared desktop layout */
.logo-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--gutter);
  flex-wrap: nowrap;
  width: 100%;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Logo block */
.logo-header .logo {
  flex: 0 0 auto;
  margin-right: 0;
}

.logo-header .logo img {
  max-height: 92px;
  width: auto;
  object-fit: contain;
}

/* Est. lockup */
.logo-header .established {
  display: block;
  margin: 6px 0 0 0 !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #555;
}

/* Shared pitch area */
.logo-header .elevator-pitch,
.logo-header .hero-pitch {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  color: #000;
  font-size: 1rem;
  line-height: 1.45;
}

/* If a page uses hero-pitch with headings, keep it tidy */
.logo-header .hero-pitch h1 {
  margin: 0 0 0.4rem;
}

.logo-header .hero-pitch p:last-child,
.logo-header .elevator-pitch p:last-child {
  margin-bottom: 0;
}

/* =========================
   Top phone: clickable but looks like text
========================= */
.top-banner .top-phone a,
.top-banner .top-phone a:visited,
.top-banner .top-phone a:hover,
.top-banner .top-phone a:active,
.top-banner .top-phone a:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

.top-banner .top-phone a {
  cursor: default;
}

.top-phone .phone-link {
  color: #ffffff;
  text-decoration: none;
}

.top-phone .phone-link:hover,
.top-phone .phone-link:focus {
  color: #ffffff;
  text-decoration: none;
}

/* =========================
   Mobile: top banner
========================= */
@media (max-width: 768px) {
  .top-banner .container {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .menu-toggle {
    display: block;
    margin-right: auto;
  }

  .top-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin: 0.5rem 0;
    gap: 1rem;
    align-self: stretch;
  }

  .top-menu.open {
    display: flex !important;
  }

  .top-phone {
    align-self: center;
    margin: 0.75rem 0 0;
  }
}

/* =========================
   Mobile: compact logo header
========================= */
@media (max-width: 768px) {
  .logo-header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: nowrap;
  }

  .logo-header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
  }

  .logo-header .logo img {
    max-height: 64px;
    width: auto;
  }

  .logo-header .established {
    margin-top: 4px !important;
    font-size: 0.66rem;
  }

  .logo-header .elevator-pitch,
  .logo-header .hero-pitch {
    width: 100%;
    min-width: 0;
    max-width: 680px;
    padding: 0;
    font-size: 0.94rem;
    line-height: 1.4;
  }
}
