/* Alwayz Contracting LLC - Website V4.2 corporate banner
   Loads after styles.css. Affects only the banner above the navigation bar. */

.site-header .corporate-banner {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(10px, 2vw, 28px) 0;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* Base tones matched to the logo's own edge colors (navy left, charcoal right) */
  background:
    radial-gradient(ellipse 60% 70% at 50% 108%, rgba(64,96,133,0.85) 0%, rgba(64,96,133,0) 70%),
    radial-gradient(ellipse 45% 60% at 50% -10%, rgba(1,66,131,0.55) 0%, rgba(1,66,131,0) 70%),
    linear-gradient(90deg, #00102c 0%, #001230 24%, #04142c 50%, #121a26 76%, #131a25 100%);
}

/* Electric-blue glow and silver sheen in the outer banner areas,
   fading out before they reach the emblem */
.site-header .corporate-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 18% 55% at 4% 45%, rgba(30,140,255,0.55) 0%, rgba(30,140,255,0) 100%),
    radial-gradient(ellipse 16% 45% at 96% 50%, rgba(185,195,207,0.30) 0%, rgba(185,195,207,0) 100%),
    linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(210,220,232,0.10) 6%, rgba(255,255,255,0) 14%, rgba(255,255,255,0) 86%, rgba(210,220,232,0.08) 93%, rgba(255,255,255,0) 100%);
}

/* Brushed-metal sheen and electric-blue edge lines */
.site-header .corporate-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, rgba(255,255,255,0) 1px 3px),
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 45%, rgba(4,10,22,0.45) 100%),
    linear-gradient(180deg, rgba(64,160,255,0.35) 0, rgba(64,160,255,0) 3px),
    linear-gradient(0deg, rgba(64,160,255,0.55) 0, rgba(64,160,255,0) 3px);
}

.site-header .banner-logo-wrap {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-header .banner-logo-link {
  display: block;
  line-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Enlarged emblem and lettering: width drives size, height stays auto,
   so the original proportions are never distorted */
.site-header .banner-logo-img {
  display: block;
  width: min(94vw, 760px);
  aspect-ratio: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  /* Feathered edges remove the rectangular boundary */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

.site-header .banner-logo-link:focus-visible {
  outline: 3px solid #40a0ff;
  outline-offset: 4px;
}

/* Tablet */
@media (max-width: 1024px) {
  .site-header .banner-logo-img { width: min(90vw, 640px); }
}

/* Mobile */
@media (max-width: 640px) {
  .site-header .corporate-banner { padding: 6px 0; }
  .site-header .banner-logo-img {
    width: 100vw;
    max-width: 100vw;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }
}

@media print {
  .site-header .corporate-banner::before,
  .site-header .corporate-banner::after { display: none; }
  .site-header .banner-logo-img { -webkit-mask-image: none; mask-image: none; }
}

/* V4.3: retain original artwork and avoid clipping lettering with masks. */
.site-header .corporate-banner { min-height: 0; padding: 0; }
.site-header .corporate-banner::after { height: auto; }
.site-header .banner-logo-img { width: min(96vw, 760px); max-width: 100%; filter: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent), linear-gradient(180deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent), linear-gradient(180deg, transparent, #000 3%, #000 97%, transparent); }
@media print { .site-header .banner-logo-img { mask-image: none; -webkit-mask-image: none; } }
