/* =========================
   NORTHERN TINT - HOMEPAGE
   TRU-CUT v1 (single hero) + Header CTAs + Quick Kit Finder + Tiles
   Turbify-safe, scoped to nt- classes
   ========================= */

/* -------------------------
   TURBIFY-SAFE WRAPPER
   (Prevents theme overrides)
   ------------------------- */
.nt-home-hero, .nt-home-hero * ,
.nt-finder, .nt-finder * ,
.nt-tiles, .nt-tiles * ,
.nt-header-cta, .nt-header-cta * {
  box-sizing: border-box;
}

/* Keep Turbify from forcing colors inside our modules */
.nt-home-hero,
.nt-home-hero h1, .nt-home-hero h2, .nt-home-hero h3,
.nt-home-hero p, .nt-home-hero li, .nt-home-hero div, .nt-home-hero span,
.nt-finder,
.nt-finder h1, .nt-finder h2, .nt-finder h3,
.nt-finder p, .nt-finder li, .nt-finder div, .nt-finder span,
.nt-tiles,
.nt-tiles h1, .nt-tiles h2, .nt-tiles h3,
.nt-tiles p, .nt-tiles li, .nt-tiles div, .nt-tiles span {
  color: inherit;
}

/* Prevent Turbify link styling from breaking our buttons */
.nt-home-hero a,
.nt-home-hero a:link,
.nt-home-hero a:visited,
.nt-header-cta a,
.nt-header-cta a:link,
.nt-header-cta a:visited,
.nt-finder a,
.nt-finder a:link,
.nt-finder a:visited,
.nt-tiles a,
.nt-tiles a:link,
.nt-tiles a:visited {
  text-decoration: none !important;
}

/* FULL-BLEED trick for the hero (works inside constrained containers) */
.nt-home-hero section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* =========================
   SHARED BUTTONS
   ========================= */
.nt-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  user-select: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

/* Solid = strong CTA */
.nt-btn--solid{
  background: #ff7a18 !important;
  color: #111827 !important;
  border-color: rgba(0,0,0,0.12) !important;
  box-shadow: 0 12px 22px rgba(255, 122, 24, 0.18);
}

/* Ghost = secondary CTA */
.nt-btn--ghost{
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: rgba(255,255,255,0.92) !important;
}

/* Disabled states */
.nt-btn[disabled],
button.nt-btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* =========================
   HEADER CTA STRIP (v2)
   (You removed the block from the page; keeping styles is harmless.
   If you want to fully disable it, add: .nt-header-cta{display:none!important;}
   ========================= */
.nt-header-cta{
  width: min(1100px, 92%);
  margin: 10px auto -54px;   /* visually tucks into hero area */
  position: relative;
  z-index: 50;
  padding: 0 16px;

  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

/* In header strip, ghost button should be dark-on-light */
.nt-header-cta .nt-btn--ghost{
  background: transparent !important;
  border-color: rgba(17,24,39,0.25) !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.nt-header-cta .nt-btn--solid{
  height: 42px;
  border-radius: 12px;
}

/* =========================
   TRU-CUT HERO (single)
   ========================= */
.nt-home-hero .nt-trucut{
  position: relative;

  /* allow hero to grow with content (prevents mobile clipping) */
  height: auto;
  min-height: 320px;

  background: url("trucut-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* do not clip stacked CTA buttons */
  overflow: visible;

  /* gives breathing room when content stacks */
  padding: 18px 0;
}

/* Overlay */
.nt-home-hero .nt-trucut__overlay{
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
      rgba(0,0,0,0.12) 0%,
      rgba(0,0,0,0.34) 62%,
      rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.nt-home-hero .nt-trucut__content{
  position: relative;
  z-index: 2;
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 0 16px;

  /* force white text inside hero */
  color: #ffffff !important;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- TRU-CUT box overlap (title/sub) --- */
.nt-home-hero .nt-trucut__box{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 18px 58px 20px;
  margin-bottom: 14px;

  background: rgba(10, 12, 16, 0.26);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(7px);
}

.nt-home-hero .nt-trucut__title{
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.0 !important;
  font-weight: 900 !important;
  font-size: clamp(44px, 6vw, 72px) !important;
  letter-spacing: 0.16em !important;
  text-shadow: 0 0 22px rgba(255,255,255,0.18);
  color: #fff !important;
}

.nt-home-hero .nt-trucut__sub{
  margin: 0 !important;
  line-height: 1.2;
  display: block;
  font-size: clamp(16px, 2vw, 26px);
  opacity: 0.92;
}

.nt-home-hero .nt-trucut__tagline{
  font-size: clamp(18px, 2.6vw, 30px);
  font-weight: 650;
  letter-spacing: 0.10em;
  margin: 2px 0 10px;
  opacity: 0.95;
}

.nt-home-hero .nt-trucut__exclusive{
  font-size: clamp(14px, 1.8vw, 20px);
  opacity: 0.92;
  margin: 0 0 10px;
}

.nt-home-hero .nt-trucut__exclusive span{
  color: #ff7a18 !important;
  font-weight: 900;
}

.nt-home-hero .nt-trucut__micro{
  font-size: 14px;
  opacity: 0.82;
  max-width: 70ch;
}

/* Hero CTAs */
.nt-home-hero .nt-trucut__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

/* In hero, ghost stays white */
.nt-home-hero .nt-trucut__actions .nt-btn--ghost{
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: rgba(255,255,255,0.92) !important;
}

/* Trust pills under CTAs (you removed this block; styles are harmless) */
.nt-home-hero .nt-trucut__trust{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  opacity: 0.92;
}

.nt-home-hero .nt-trucut__trust span{
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}

/* =========================
   QUICK KIT FINDER (Layout Card)
   ========================= */
.nt-finder{
  width: min(1100px, 92%);
  margin: 18px auto 10px;
  padding: 0 16px;
  color: #111827;
}

.nt-finder__wrap{
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(17,24,39,0.12);
  box-shadow: 0 14px 30px rgba(17,24,39,0.08);
  padding: 18px;
}

/* Header line (if used) */
.nt-finder__head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.nt-finder__title{
  margin: 0 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #111827 !important;
}

.nt-finder__sub{
  font-weight: 700;
  opacity: 0.72;
  color: #111827;
}

/* =========================
   KIT FINDER (Injected)
   Integrate nt-kit-finder.js output into new homepage styles
   ========================= */
#kitFinderContainer{
  width: 100%;
}

/* Neutralize any “extra widget card” styling so our page styling can own the look */
#kitFinderContainer .kit-finder-container{
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: block;
}

/* Content width + alignment */
#kitFinderContainer .kit-finder{
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

/* Heading */
#kitFinderContainer .kit-finder h1{
  margin: 0 0 8px !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #111827 !important;
}

/* Subcopy */
#kitFinderContainer .kit-finder p{
  margin: 0 0 14px !important;
  font-weight: 700;
  opacity: .75;
  color: #111827 !important;
}

/* Form layout */
#kitFinderContainer #tintForm{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: end;
}

/* Select styling */
#kitFinderContainer #tintForm select{
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,0.18);
  background: #ffffff;
  font-weight: 750;
  color: #111827;
  outline: none;
}

/* Disabled selects */
#kitFinderContainer #tintForm select:disabled{
  opacity: .6;
  cursor: not-allowed;
  background: rgba(255,255,255,.85);
}

/* Button styling */
#kitFinderContainer #tintForm .kit-btn{
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #ff7a18;
  color: #111827;
  font-weight: 950;
  cursor: pointer;
  padding: 0 16px;
  white-space: nowrap;
  box-shadow: 0 12px 22px rgba(255, 122, 24, 0.18);
}

/* =========================
   TRUST STRIP (Under Finder)
   ========================= */

.nt-trust-strip{
  width: min(1100px, 92%);
  margin: 8px auto 28px;
  padding: 0 16px;
}

.nt-trust-strip__inner{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.nt-trust-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 6px 18px rgba(2,6,23,.06);
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.nt-trust-icon{
  font-size: 14px;
  line-height: 1;
  color: #ff7a18;
}

/* Mobile tightening */
@media (max-width: 520px){
  .nt-trust-strip{
    margin: 10px auto 24px;
  }

  .nt-trust-strip__inner{
    gap: 10px;
  }

  .nt-trust-item{
    font-size: 12px;
    padding: 7px 12px;
  }
}

/* =========================
   TILES (Browse by Kit Type)
   ========================= */
.nt-tiles{
  padding: 34px 0 56px; /* increased top padding for better separation from Finder */
  background: #f6f7f9;
}

.nt-tiles__inner{
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 0 16px;
}

.nt-tiles__head{
  text-align: center;
  margin: 0 0 18px;
}

.nt-tiles__title{
  margin: 0 !important;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .2px;
  color: #0f172a;
}

.nt-tiles__sub{
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #475569;
  opacity: 0.92;
}

.nt-tiles__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.nt-tile{
  display: block;
  height: 100%;
  text-decoration: none !important;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 10px 28px rgba(2, 6, 23, .08);
  overflow: hidden;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.nt-tile:hover{
  transform: translateY(-5px);
  border-color: rgba(15, 23, 42, .18);
  box-shadow: 0 16px 38px rgba(2, 6, 23, .14);
}

.nt-tile__imgwrap{
  background: linear-gradient(180deg, rgba(2,6,23,.06), rgba(2,6,23,0));
  padding: 12px;
}

.nt-tile__img{
  width: 100%;
  height: 130px;
  object-fit: contain;
  display: block;
  filter: contrast(1.03);
}

.nt-tile__body{
  padding: 14px 14px 16px;
}

.nt-tile__name{
  font-size: 16px;
  line-height: 1.15;
  font-weight: 900;
  color: #0f172a;
}

.nt-tile__desc{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: #475569;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px){
  .nt-header-cta{
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
    margin-bottom: -44px;
  }

  .nt-home-hero .nt-trucut{
    min-height: 280px;
    padding: 16px 0;
  }

  /* Injected finder: 2 columns, button on its own row */
  #kitFinderContainer #tintForm{
    grid-template-columns: 1fr 1fr;
  }

  #kitFinderContainer #tintForm .kit-btn{
    grid-column: 1 / -1;
    width: 100%;
  }

  /* Tiles: 2 per row */
  .nt-tiles__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nt-tile__img{
    height: 140px;
  }
}

@media (max-width: 600px){
  .nt-home-hero .nt-trucut{
    min-height: 0;
    padding: 16px 0 18px;
  }

  .nt-home-hero .nt-trucut__box{
    padding: 14px 18px 16px;
  }

  .nt-home-hero .nt-trucut__actions{
    flex-direction: column;
    width: 100%;
    max-width: 360px;
  }

  .nt-home-hero .nt-trucut__actions .nt-btn{
    width: 100%;
  }
}

@media (max-width: 520px){
  /* Injected finder: single column */
  #kitFinderContainer #tintForm{
    grid-template-columns: 1fr;
  }

  #kitFinderContainer .kit-finder{
    text-align: left;
  }

  .nt-finder__head{
    flex-direction: column;
    align-items: flex-start;
  }

  /* Keep tiles at 2-per-row here (important for 430px phones) */
  .nt-tiles{
    padding: 34px 0 46px;
  }

  .nt-tiles__title{
    font-size: 22px;
  }

  .nt-tiles__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .nt-tile{
    border-radius: 18px; /* slightly more premium on mobile */
  }

  .nt-tile__img{
    height: 120px; /* tighter for mobile so titles sit higher */
  }
}

/* Only collapse tiles to 1-per-row on truly small screens */
@media (max-width: 360px){
  .nt-tiles__grid{
    grid-template-columns: 1fr;
  }

  .nt-tile__img{
    height: 120px;
  }
}