/* ——— Hero (Apple-inspired) ——— */
.hero-spot {
  background: #fdf8f7;   /* same tone as render background */
  margin: 0;
  height: 95vh;
  display: flex;
}

.hero-spot__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 60%;
}

.hero-spot__img {
  width: min(560px, 90vw);
  height: auto;
  display: block;
}

.hero-spot__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem,5vw,4rem) clamp(1rem,4vw,2rem);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items:center;
  gap:clamp(1.5rem,4vw,3rem);
}
.hero-spot__copy h1{
  font-size:clamp(2.2rem,5vw,4rem);
  line-height:1.05;
  letter-spacing:-.01em;
  color:#0e2e5a;
  margin:0 0 .6rem 0;
}

.hero-spot__copy .subtitle{
  font-size:clamp(1.2rem,2vw,1.5rem);
  line-height:1.2;
  letter-spacing:-.01em;
  color:#d0b81c;
  margin:0 0 .6rem 0;
}

.hero-spot__copy .bullets{ list-style:none; padding:0; margin-left:1.4rem; }
.hero-spot__copy .bullets li{
  color:#5b6987;
  font-size:clamp(1rem,1.6vw,1.35rem);
  transform: translate3d(calc(var(--dx, 0) * 1rem), 0, 0); /* --dx set by JS */
  will-change: transform;
}



.hero-spot__copy .lede{
  font-size:clamp(1rem,1.6vw,1.25rem);
  color:#5b6987;
  margin:0;
}

.hero-spot__art{
  position:relative;
  display:grid;
  place-items:center;
  overflow:visible;         /* ensures the drop-shadow isn't clipped */
}
.hero-spot__img{
  width:min(800px, 60vw);
  height:auto;
  display:block;
  transform: translateZ(0); /* avoids blurring on some GPUs */
}



/* Responsive stack */
@media (max-width: 750px){
  .hero-spot{ min-height: calc(100svh - 72px); padding-block: clamp(8px, 2vh, 16px); display: block; padding-top: 10rem;}

  .hero-spot__inner {
    grid-template-columns: 1fr; /* stack */
    text-align: center;
    justify-items: center;
  }

  /* Image on top layer */
  .hero-spot__art{ position: relative; order: -1; z-index: 2; }
  .hero-spot__img{ width:min(78vw, 560px); height:auto; z-index:2; margin-left: -30vw;}

  /* Copy pulled closer; if it overlaps, it goes under the image */
  .hero-spot__copy{
    z-index: 1;                /* lower than the image */
    margin-top: clamp(-1.5rem, -4vw, -2.25rem);  /* pull text upward toward the image */
    padding-inline: 12px;      /* a bit of breathing room */
  }

  .hero-spot__copy h1{ margin: 0 0 .25rem; line-height: 1.05; }
  .hero-spot__copy .lede{ margin: 0; }
  }


/* grid cards */
.a-card-grid .a-card__label {
  font-size: 1.5rem;
  color: #082342;
}
.a-expanded-subtitle {
  font-size: 1.2rem;
  color: #E8D228;
  margin-bottom: 1.5rem;
}

#expand1-info {
  flex-direction: column;
  align-items: flex-start;
}
#expand1-info .info-box__text {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
#expand1-info .info-box__image {
  width: 100%;
  justify-content: flex-start;
}

#expand1-benefits,
.info-box {
  width: 100%;
  max-width: none;
  margin: 2rem 0;
  box-sizing: border-box;
}
#expand1-benefits .info-box__left {
  flex: 1 1 0;
  min-width: 0;
}
#expand1-benefits .info-box__image {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expand-benefits,
.info-box {
  width: 100%;
  max-width: none;
  margin: 2rem 0;
  box-sizing: border-box;
}
.expand-benefits .info-box__left {
  flex: 1 1 0;
  min-width: 0;
}
.expand-benefits .info-box__image {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expand-benefits .info-box__image img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Make content appear above the model */
.hero-content {
  position: absolute;
  z-index: 2; /* text above overlay, below model-viewer */
  transform: translateX(0%);
  text-align: center;
  color: #f2f3f4; /* oxford blue or any brand color */
  padding: 1rem 2rem;
  border-radius: 1rem;
}
.hero-title-animation {
  position: absolute;
  top:4%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  z-index: 2;
  color: #f2f3f4;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.hero-subtitle-animation {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  z-index: 2;
  color: #f2f3f4;
  font-size: clamp(1rem, 2vw, 2rem);
  text-align: center;
}

/* end of hero section styles */

.a-card-grid {
  background: #fff;
  border-radius: 0rem;
  padding: 2.5rem 2rem;
  max-width: 100vw;
}

/*How it works section styles */

/* Target only the How It Works section */
.how-it-works {
  background: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  width: 100vw;
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Override video wrapper constraints for How It Works section */
.how-it-works .video-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  aspect-ratio: unset;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.how-it-works .how-video {
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 1rem;
  display: block;
  margin: 0;
  object-fit: cover;
}

.section-header {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
  color: #002147;
}

.how-it-works .subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Optional: spacing tune-up for text */
.how-it-works .description {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

/* Learn More = primary button */
.how-it-works .learn-more {
  background-color: #002e5a;
  color: #f2f2f2;
  border: none;
}

.how-it-works .learn-more:hover {
  background-color: #f0f0f0;
  color: #002e5a;
}

/* Request a Quote = secondary button */
.how-it-works .get-quote {
  background-color: #f2f2f2;
  color: #002e5a;
  border: 2px solid #f2f2f2;
}

.how-it-works .get-quote:hover {
  background-color: #002e5a;
  color: #f2f2f2;
}

.how-it-works ul {
  list-style: none; /* removes bullets */
  padding-left: 0;
}
.how-it-works li::before {
  content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNkMGI4MWMiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNoZWNrLWljb24gbHVjaWRlLWNoZWNrIj48cGF0aCBkPSJNMjAgNiA5IDE3bC01LTUiLz48L3N2Zz4=");
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  vertical-align: middle;
}


.right p,
.right ul {
  margin: 0;
}

.how-video {
  width: 100%;
  height: auto;
  max-width: 600px;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: block;
}

/* end of How it works section styles */

/* about us section styles */

.mosaic--about .mosaic__tile--text{
  grid-column: 1 / span 4;
  grid-row: 1 / span 4 ;
}

.mosaic--about .mosaic__tile--text h2{font-size: clamp(1rem, 2.5vw, 2.8rem);}
.mosaic--about .mosaic__tile--text p {max-width: 42ch; font-size: clamp(0.875rem, 1.3vw, 1.5rem);}

.mosaic--about .t1{grid-column: 5 / span 4; grid-row: 1 / span 5;}
.mosaic--about .t2{grid-column:9 / span 4; grid-row:1 / span 2;}  /* top-right small */
.mosaic--about .t3{grid-column:9 / span 4; grid-row:3 / span 2;}  /* mid-right wide */
.mosaic--about .t5{grid-column:9 / span 4; grid-row:5 / span 5;}  /* right tall */
.mosaic--about .t6{grid-column:1 / span 4; grid-row:5 / span 3;}  /* bottom-left */
.mosaic--about .t4{grid-column:5 / span 4; grid-row:7 / span 3;}  /* bottom-center */
.mosaic--about .t7 {
  grid-column: 1 / span 4;
  grid-row: 8 / span 2; /* adjust to match your grid height */
}
.mosaic--about .t8 {grid-column: 5 / span 4; grid-row: 6 / span 1;}

.mosaic--about .t8 img{
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.mosaic--about .t8 img:hover {
  filter: grayscale(0%);
}


@media (max-width: 1000px) and (min-width: 885px) {
  .mosaic--about {
    grid-template-columns: repeat(8, 1fr); /* fewer columns for tablet */
    grid-auto-rows: minmax(80px, 10vw);
  }

  /* Text tile stays on top left */
  .mosaic--about .mosaic__tile--text {
    grid-column: 1 / span 4;
    grid-row: 1 / span 3;
  }

  /* t1 (Tony working) under text tile */
  .mosaic--about .t1 {
    grid-column: 1 / span 4;
    grid-row: 4 / span 4;
  }

  /* t3 moves top right */
  .mosaic--about .t2 {
    grid-column: 5 / span 4;
    grid-row: 1 / span 4;
  }

  /* t4 moves middle right */
  .mosaic--about .t4 {
    grid-column: 5 / span 4;
    grid-row: 5 / span 3;
  }

  /* t6 moves bottom right */
  .mosaic--about .t6 {
    grid-column: 5 / span 4;
    grid-row: 8 / span 3;
  }

  /* t7 bottom left */
  .mosaic--about .t7 {
    grid-column: 1 / span 4;
    grid-row: 8 / span 3;
  }
}
@media (max-width: 885px){
  .mosaic--about{
    grid-template-columns: repeat(8, 1fr);
    grid-auto-rows: minmax(80px, 10vw);
    grid-auto-flow: dense;     /* pack items, no gaps */
    gap: 12px;
  }

  /* left column */
  .mosaic--about .mosaic__tile--text{ grid-column: 1 / span 4; grid-row: 1 / span 3; }
  .mosaic--about .t1{                 grid-column: 1 / span 4; grid-row: 4 / span 4; }

  /* right column */
  .mosaic--about .t4{ grid-column: 5 / span 4; grid-row: 1 / span 3; }  /* TOP-RIGHT */
  .mosaic--about .t6{ grid-column: 5 / span 4; grid-row: 4 / span 4; }  /* under it */

  /* if t3 exists in HTML, hide it on mobile */
  .mosaic--about .t3{ display: none !important; }
}

/* logo's */

.logo-slider {
  overflow: hidden;
  background: #fff; /* match your site background */
  padding: 20px 0;
}

.logo-track {
  display: flex;
  animation: scroll 30s linear infinite;
}

@media  (max-width: 768px) and (min-width: 481px) {
  .logo-track {
    animation: scroll 10s linear infinite;
  }
}

@media (max-width: 480px) {
  .logo-track {
    animation: scroll 5s linear infinite;
  }
}

.logo-track img {
  height: 65px; /* adjust size */
  margin: 0 40px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .logo-track img {
    height: 50px; /* smaller on mobile */
    margin: 0 20px;
  }
}

.logo-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Homepage Applications Grid as Background === */
.home-applications {
  position: relative;
  isolation: isolate; /* ensure z-index context */
  padding: 4rem 0;    /* outer breathing room */
}

/* The grid renders as a background layer */
.home-applications .grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0.25;             /* calm */
  pointer-events: none;       /* non-interactive */
}

/* Cards in the background layer: ultra minimal, no lifts */
.home-applications .grid-bg .application-card {
  background: #f2f3f4;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transform: none;
}

/* Foreground content sits above the grid */
.home-applications .standard-container {
  position: relative;
  z-index: 1;
}

/* Optional: brand tint wash over background for cohesion */
.home-applications::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #fff;
  pointer-events: none;
}

/* Homepage-specific accent on hover (foreground grids only, if any) */
.home-applications .feature-grid .application-card:hover {
  background: #002e5a;
  color: #fff;
}

.home-applications .application-card:hover .app-icon svg { stroke: #d0b81c; }

/* Home: Cases section styling */
.home-cases { background: #fff; border-block: 1px solid #f2f2f2; margin: 4rem; border-radius: 20px; }

@media (max-width: 768px) {
  .home-cases { margin-left: 0.75rem; margin-right: 0.75rem; }
}
