/* =========================================================
   HOMEPAGE CSS (scoped to elements/classes in your HTML only)
   - Fully responsive: desktop / tablet / mobile
   - Clear spacing + readable typography across breakpoints
   - No :root, no CSS variables, no global token layer
   ========================================================= */


/* =========================
   0) SAFETY / BASE (homepage only)
   ========================= */
/*
*,
*::before,
*::after { box-sizing: border-box; }

img { max-width: 100%; height: auto; display: block; }
*/
.container{
  width: min(1200px, 100%);
  margin: 0 auto;
}

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  
}

/* Prevent long headings from overflowing on small screens */
h1, h2, h3, p, li { overflow-wrap: anywhere; }

/* If your theme adds weird button/link defaults, keep the hero sane */
.hero a { text-decoration: none; }


/* =========================
   1) HERO (3-tab video slider)
   Fully responsive + readable
   ========================= */

/* Section sizing */
.hero--video-tabs{
  position: relative;
  overflow: hidden;

  /* Desktop behaves like a hero */
  min-height: 560px;
  height: clamp(560px, 72vh, 820px);
}

/* Slides container */
.hero__slides{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}

.hero__slide.is-active{ opacity: 1; }

.hero__video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Video overlay (single overlay layer) */
.hero__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10,14,20,0.78) 0%,
    rgba(10,14,20,0.52) 42%,
    rgba(10,14,20,0.22) 76%,
    rgba(10,14,20,0.10) 100%
  );
}

/* Content wrapper */
.hero__content{
  position: relative;
  z-index: 2;
  padding-top: clamp(28px, 6vh, 72px);
  padding-bottom: clamp(24px, 6vh, 72px);
}

/* Text column spacing */
.hero__content .col-lg-6,
.hero__content .col-md-10{
  position: relative;
  z-index: 1; /* ensure text above video overlay */
  padding-left: clamp(16px, 4vw, 56px);
  padding-right: 16px;
}

/* Scrim behind text block only (keeps text readable) */
.hero__content .col-lg-6::before,
.hero__content .col-md-10::before{
  content: "";
  position: absolute;
  inset: -10px -12px -14px -12px;
  border-radius: 14px;
  background: rgba(10,14,20,0.34);
  z-index: -1;
  pointer-events: none;
}

/* Tabs: segmented control */
.hero__tabs{
  display: inline-flex;
  gap: 0;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,14,20,0.22);
  margin-bottom: 24px;
}

.hero__tab{
  appearance: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  opacity: 0.92;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  transition: background 150ms ease, opacity 150ms ease;
  margin: 0; /* IMPORTANT: remove margin from individual tabs */
	font:"Raleway", Arial, sans-serif;
}

.hero__tab + .hero__tab{
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.14);
}

.hero__tab:hover{
  background: rgba(255,255,255,0.08);
  opacity: 1;
}

.hero__tab.is-active{
  background: rgba(142,175,157,0.34); /* #8eaf9d */
  opacity: 1;
  position: relative;
}

.hero__tab.is-active::after{
  content:"";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: #8eaf9d;
}

/* Typography + spacing */
.hero__h1{
  margin-top: 0;
  margin-bottom: 22px;

  color: #ffd54f;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(30px, 3.2vw, 46px);
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(0,0,0,0.32);
	  font-family: "Raleway", Arial, sans-serif;
}

.hero__h1::after{
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: #8eaf9d;
}

.hero__panelWrap{ margin-top: 6px; }

.hero__h2{
  margin: 0 0 12px;
  color: #ffffff;
  font-weight: 650;
  line-height: 1.18;
  font-size: clamp(18px, 1.45vw, 22px);
  text-shadow: 0 2px 10px rgba(0,0,0,0.26);
}

.hero__p{
  margin: 0 0 16px;
  color: rgba(255,255,255,0.92);
  line-height: 1.62;
  font-size: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.22);
}

.hero__list{
  margin: 0 0 10px;
  padding-left: 18px;
  color: rgba(255,255,255,0.90);
  line-height: 1.62;
  text-shadow: 0 2px 10px rgba(0,0,0,0.20);
	  font-weight: 500;
}

.hero__list li{ margin-bottom: 8px; }

/* Panels */
.hero__panelWrap{
  padding: 0;
  border: 0;
  background: transparent;
}

/* CTA */
.hero__cta{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Keep hero CTA links consistent */
.hero__cta a,
.hero__cta a:visited{
  text-decoration: none !important;
}

/* Buttons: solid (no glass) */
.hero__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  border: 2px solid transparent;

  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.hero__btn--primary{
  background: #16412f;
  border-color: #16412f;
  color: #f0f0f0 !important;
}

.hero__btn--primary:hover{
  transform: translateY(-1px);
  background: #7fa18f;
  border-color: #7fa18f;
}

.hero__btn--secondary{
  background: #16412f;
  border-color: #16412f;
 font-family: "Raleway", Arial, sans-serif;
  color: #f0f0f0 !important;
}

/*.hero__btn--secondary:hover{
  transform: translateY(-1px);
  border-color: #ffd54f;
}*/

.hero__btn *{ color: inherit; }

/* --- Tablet hero adjustments --- */
@media (max-width: 992px){
  .hero--video-tabs{
    height: auto;           /* allow content to dictate height */
    min-height: 640px;      /* ensure room for CTA */
  }

  .hero__content{
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .hero__content .col-lg-6,
  .hero__content .col-md-10{
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero__tabs{ margin-bottom: 18px; }

  .hero__h1{
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 18px;
  }

  .hero__p{ font-size: 15.5px; }
}

/* --- Mobile hero adjustments (keep CTAs visible) --- */
@media (max-width: 576px){
  .hero--video-tabs{
    height: auto;
    min-height: 680px; /* room for text + stacked buttons */
  }

  .hero__content{
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero__content .col-lg-6,
  .hero__content .col-md-10{
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .hero__content .col-lg-6::before,
  .hero__content .col-md-10::before{
    inset: -8px -8px -10px -8px;
    border-radius: 12px;
    background: rgba(10,14,20,0.40);
  }

  .hero__tabs{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .hero__tab{
    width: 100%;
    text-align: left;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .hero__h1{
    font-size: 30px;
    line-height: 1.06;
    margin-bottom: 14px;
  }

  .hero__h2{
    font-size: 18px;
    margin-bottom: 10px;
  }

  .hero__p{
    font-size: 15px;
    margin-bottom: 12px;
  }

  /* Reduce list density on phones */
  .hero__list li{ margin-bottom: 6px; }

  /* Cap bullets to 2 on mobile so CTAs stay on-screen */
  .hero__panel.is-active .hero__list li:nth-child(n+3){ display: none; }

  /* Stack CTAs full-width */
  .hero__cta{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .hero__btn{
    width: 100%;
    padding: 14px 16px;
  }
}

/* =========================
   HERO: Force left justification (no Bootstrap needed)
   ========================= */

.hero--video-tabs,
.hero--video-tabs .hero__content,
.hero--video-tabs .hero__content *{
  text-align: left;
}

/* Tabs were inline-flex, which will center if parent has text-align:center */
.hero--video-tabs .hero__tabs{
  display: flex;          /* was inline-flex */
  justify-content: flex-start;
  width: fit-content;     /* keep it only as wide as the tabs */
}

/* Ensure CTA row aligns left too */
.hero--video-tabs .hero__cta{
  justify-content: flex-start;
}

.hero--video-tabs .hero__btn:hover,
.hero--video-tabs .hero__btn:focus,
.hero--video-tabs .hero__btn:active{
  background: #16412f;
  border-color: #16412f;
  color: #f0f0f0 !important;
  transform: none;
}

/* =========================
   2) .cta (Company overview)
   Fully responsive typography and spacing
   ========================= */

.cta.clearfix{
  padding: clamp(28px, 5vw, 44px) 0;
  border-bottom: 1px solid #dce4e6;
  text-align: center;
  background: #f9f9f9;
}

.cta .cta-title{
  margin: 0;
  display: inline-block;
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: #31373a;
}

.cta .cta-title2{
  margin: 18px auto 0;
  padding: 0 18px;
  max-width: 1100px;

  font-family: "PT Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  color: #5a6763;
}

@media (max-width: 767px){
  .cta .cta-title{ display: block; }
  .cta .cta-title2{ padding: 0 16px; }
}


/* =========================
   3) .dark-content (HPL Door promo)
   Desktop row / mobile stack
   ========================= */

.dark-content{ background: #8eaf9d; }

.dark-content .section{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) 16px;
  color: #f0f0f0;
}

.dark-content .section-content{
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 4vw, 40px);
  text-align: center;
}

@media (min-width: 900px){
  .dark-content .section-content{
    grid-template-columns: 1.1fr 0.9fr;
    text-align: left;
    align-items: center;
  }
}

.dark-content .text-content{ max-width: 100%; }

.dark-content .text-content .eyebrow{
  margin: 0 0 8px;
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.dark-content .text-content h2{
  margin: 0 0 10px;
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  color: #ffd54f;
}

.dark-content .text-content p{
  margin: 0 0 10px;
  max-width: 62ch;
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.75;
  color: #f0f0f0;
}

.dark-content .buttons{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 900px){
  .dark-content .buttons{ justify-content: flex-start; }
}

.dark-content .buttons a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;

  font-family: "Raleway", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;

  background: #16412f;
  color: #f0f0f0;

  transition: transform 120ms ease, background-color 160ms ease;
}

.dark-content .buttons a:hover{
  background-color: #6aa476;
  transform: translateY(-1px);
}

.dark-content .image-wrap img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}


/* =========================
   4) .capabilities-section
   Responsive grid + readable cards
   ========================= */

.capabilities-section{
  background: #f9f9f9;
  color: #31373a;
  padding: clamp(32px, 6vw, 72px) 16px;
}

.capabilities-wrap{
  width: min(1200px, 100%);
  margin: 0 auto;
}

.capabilities-header{
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.capabilities-title{
  margin: 0 0 12px;
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(28px, 4vw, 44px);
  color: #ffd54f;
  line-height: 1.15;
}

.capabilities-subtitle{
  margin: 0 auto;
  max-width: 900px;
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.7;
  color: #31373a;
}

.capabilities-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

/* Go straight to 2x2 (no 3-column state) */
@media (max-width: 1100px){
  .capabilities-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* Single column on small phones */
@media (max-width: 560px){
  .capabilities-grid{ grid-template-columns: 1fr; }
}

.capability-card{
  display: flex;
  flex-direction: column;
  background: #8eaf9d;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  min-height: 100%;
}

.capability-content{
  padding: 22px;
  display: grid;
  gap: 10px;
}

.capability-title{
  margin: 0;
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.2;
  color: #31373a;
}

.capability-desc{
  margin: 0;
  font-family: "PT Serif", Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
  color: #31373a;
}

.capability-media{
  margin-top: 8px;
  padding: 0 22px 22px;
}

.capability-media img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 560px){
  .capability-media img{ height: 170px; }
}

.capability-footer{
  padding: 0 22px 22px;
  margin-top: auto;
}

.capability-footer .learn-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;

  font-family: "Raleway", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;

  color: #16412f;
}

.capability-footer .learn-link .arrow{
  transition: transform 180ms ease;
}

.capability-footer .learn-link:hover .arrow{
  transform: translateX(4px);
}


/* =========================
   5) .why-northway
   ========================= */

.why-northway{
  background: #8eaf9d;
  padding: clamp(32px, 6vw, 80px) 20px;
  border-top: 2px solid #eaeaea;
  border-bottom: 2px solid #eaeaea;
}

.why-northway .container{
  width: min(1200px, 100%);
  margin: 0 auto;
}

.why-northway .section-title{
  margin: 0 0 clamp(20px, 4vw, 40px);
  display: inline-block;
  padding: 8px 20px;

  background: #16412f;
  color: #f0f0f0;

  font-family: "Raleway", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.2;
}

.why-northway .features{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 3vw, 40px);
}

.why-northway .feature{
  text-align: center;
}

@media (max-width: 1100px){
  .why-northway .features{ grid-template-columns: repeat(2, 1fr); }
}

/* Single column on small phones */
@media (max-width: 560px){
  .why-northway .features{ grid-template-columns: 1fr; }
}

.why-northway .feature-icon{
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.why-northway .feature h3{
  margin: 0 0 10px;
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 16px;
  color: #f0f0f0;
}

.why-northway .feature p{
  margin: 0;
  font-family: "PT Serif", Georgia, serif;
  font-size: 14px;
  line-height: 1.6;
  color: #f0f0f0;
}


/* =========================
   6) Full-width Contact CTA Band
   Responsive spacing + buttons
   ========================= */

.quote-cta{
  /*width: 100%;*/
  background-color: #1f3d2b;
  padding: clamp(36px, 6vw, 64px) 20px;
  text-align: center;
}

.quote-cta-inner{
  max-width: 1100px;
  margin: 0 auto;
}

.quote-cta h2{
  color: #ffffff;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.2;
}

.quote-cta p{
  color: #ffffff;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  margin: 0 0 22px;
  line-height: 1.6;
}

.quote-cta-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #1f3d2b;
  padding: 14px 34px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.12s ease;
}

.quote-cta-button:hover,
.quote-cta-button:focus{
  background-color: #e6e6e6;
  transform: translateY(-1px);
}

.quote-cta-actions{
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.quote-cta-phone{
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.quote-cta-phone a{
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.quote-cta-phone a:hover{ text-decoration: underline; }

@media (max-width: 576px){
  .quote-cta-button{
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 576px){
  .hero__panel.is-active .hero__list li:nth-child(n+3){
    display: list-item !important;
  }
}


/* =========================
   7) Footer (.site-footer)
   Responsive footer grid compatibility
   ========================= */

.site-footer{
  background: #f1f4f5;
  padding: clamp(48px, 8vw, 100px) 0;
  color: #5a6763;
}

.site-footer .container{
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-footer p,
.site-footer li{
  font-family: "PT Serif", Georgia, serif;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.site-footer strong{
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #31373a;
}

.site-footer i.fas,
.site-footer i.fab{
  margin-right: 8px;
}

/* Social links */
.site-footer .social-links.list-inline{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer .social-links.list-inline a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  text-decoration: none;

  color: #6aa476;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  transition: transform 0.12s ease, color 0.16s ease;
}

.site-footer .social-links.list-inline a:hover{
  color: #16412f;
  transform: translateY(-1px);
}

/* Footer menu */
.site-footer .h5,
.site-footer h5{
  margin: 0 0 14px;
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  color: #31373a;
}

.site-footer .footer-menu{
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-menu li{ margin-bottom: 8px; }

.site-footer .footer-menu a{
  color: #5a6763;
  text-decoration: none;
  font-family: "PT Serif", Georgia, serif;
}

.site-footer .footer-menu a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Copyright */
.site-footer .copyright-text{
  margin: 30px 0 0;
  text-align: center;

  font-family: "Raleway", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;

  color: #5a6763;
}
