/* Hero: move headline, VIEW PROJECTS button and social icons into a bottom band.
   Load AFTER style.css and responsive.css (or append to the end of responsive.css). */

/* Tablet/desktop: hero fills the visible window below the 140px header, band overlays the bottom */
@media screen and (min-width: 768px) {
  .sec-main video {
    display: block;
    height: clamp(420px, calc(100vh - 140px), 56.25vw);
    object-fit: cover;
    object-position: 50% 40%;
  }
  .sec-main .outter {
    top: auto;
    bottom: 0;
    padding: 90px 0 26px;
    text-align: left;
    background: linear-gradient(to top, rgba(0,0,0,.60) 0%, rgba(0,0,0,.32) 50%, rgba(0,0,0,0) 100%);
  }
  .sec-main .outter .col-md-12 {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .sec-main .outter .inner {
    padding: 0 !important;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .sec-main .outter .inner h1 {
    margin: 0 auto 0 0;
    font-size: 30px;
    line-height: 1.25;
    text-shadow: 0 1px 8px rgba(0,0,0,.45);
  }
  .sec-main .outter .inner p { margin: 0; flex: 0 0 auto; }
  .sec-main .outter .inner a { padding: 13px 32px; }
  .sec-main .outter .social { flex: 0 0 auto; }
  .sec-main .outter .social ul li { padding: 0 6px; }
  .sec-main .outter .social ul li a i { font-size: 22px; }
}
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .sec-main .outter .inner h1 { font-size: 24px; }
}

/* Phones: band sits directly under the video instead of on top of the house */
@media screen and (max-width: 767px) {
  .sec-main video { display: block; }
  .sec-main .outter {
    position: static;
    background: #1f2326;
    padding: 18px 0 20px;
  }
  .sec-main .outter .inner { padding: 0 !important; }
  .sec-main .outter .inner h1 {
    font-size: 16.5px;   /* whole headline fits on one line at 390px, so 'Plan Modification' never splits */
    line-height: 24px;
    margin: 0 0 14px;
  }
  .sec-main .outter .inner h1 i { padding: 0 6px; font-size: 7px; }
  .sec-main .outter .inner p { margin: 0 0 14px; }
  .sec-main .outter .inner a { padding: 12px 30px; }
  .sec-main .outter .social ul li a i { font-size: 22px; }
}

/* The band is near/below the fold, so AOS's scroll trigger never fires; use a CSS fade instead */
.sec-main .outter .inner[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  animation: heroBandIn 1.2s ease-out both;
}
@keyframes heroBandIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Phones: theme hides the button and icons on small screens; there is room in the band now */
@media screen and (max-width: 767px) {
  .sec-main .outter .inner a { display: inline-block; }
  .sec-main .outter .social { display: block; }
}
@media screen and (min-width: 450px) and (max-width: 767px) {
  .sec-main .outter .inner h1 { font-size: 19px; line-height: 27px; }
}
@media screen and (max-width: 389px) {
  .sec-main .outter .inner h1 { font-size: 16px; }
}
@media screen and (max-width: 374px) {
  .sec-main .outter .inner h1 { font-size: 15px; }
}
