/* ======== */
/* HOME.CSS */
/* ======== */

/*  Hero  */
.hero{
  padding: 72px 0;
}

.hero-centered{
  text-align:center;
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 14px;
}

.slogan{
  margin:0;
  font-size: 15.px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: rgba(15,23,42,.58);
}

.hero-title{
  margin:0;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-subtitle{
  margin:0;
  max-width: 72ch;
  color: var(--ink);
  font-size: 17px;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:center;
}

.hero-badges{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  justify-content:center;
}

/* Cards / grids */
.grid-two{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  margin-top: 18px;
}

/* Variant: swap widths (small left, big right) */
.grid-two.grid-two-rev{
  grid-template-columns: .85fr 1.15fr;
}

/* Certification card layout */
.cert-card{
  display: block;
  height: 100%;
}

/* Grid that reflows between desktop and mobile */
.cert-layout{
  display: grid;
  gap: 14px;
  align-items: center;

  /* Desktop:
     - text on top (full width)
     - logo bottom-left
     - buttons bottom-right
  */
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "text text"
    "logo buttons";

  /* Make the bottom row (logo + buttons) sit on the card's bottom edge
     so spacing to bottom matches the card padding.
     Works because the parent grid (.grid-two) stretches item heights. */
  height: 100%;
  grid-template-rows: 1fr auto;
}

.cert-text{
  grid-area: text;
  margin: 0;
  color: rgba(15,23,42,.72);
  max-width: 72ch;
  text-align: left;
}

.cert-img{
  grid-area: logo;
  width: min(88px, 44vw);
  height: auto;
  display: block;
  opacity: 0.75;
  justify-self: start;
}

.cert-buttons{
  grid-area: buttons;
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end; /* desktop: right side of the card */
}

.cert-buttons .btn{
  width: auto;            /* match global button sizing */
  justify-content: center;
}

.card-lite{
  border-radius: 18px;
  padding: 18px;
}

.card-lite h3{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -.01em;
}

.ticks{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
}

.ticks li{
  padding-left: 26px;
  position: relative;
  color: rgba(15,23,42,.78);
}

.ticks li::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(69,117,180,.20);
  border: 2px solid rgba(69,117,180,.45);
  position: absolute;
  left: 0;
  top: 7px;
}

/* Soft links */
.soft-links{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.soft-link{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(15,23,42,.80);
  font-weight: 750;
}

.soft-link:hover{
  background: rgba(69,117,180,.10);
  text-decoration: none;
}



/* ABOUT SNAPSHOT: stack buttons and pin to bottom-left (desktop) */
.section-soft .grid-two > .card-lite:first-child{
  display:flex;
  flex-direction: column;
}

.section-soft .grid-two > .card-lite:first-child .soft-links{
  margin-top: auto;          /* push to bottom */
  display:flex;
  flex-direction: column;    /* stack */
  gap: 10px;
  align-items: flex-start;   /* desktop: left */
  flex-wrap: nowrap;
}

.section-soft .grid-two > .card-lite:first-child .soft-links .btn{
  width: auto;            /* match global button sizing */
  justify-content: center;
  text-align: center;
}

.extra-marg{
  margin-bottom: 15px;
}

@media (max-width: 980px){
  /* ABOUT: buttons side-by-side + stretched (premium) on mobile/tablet */
  .section-soft .grid-two > .card-lite:first-child .soft-links{
    margin-top: 18px;           /* consistent gap like certification */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;          /* keep on one row in portrait */
    gap: 10px;
    justify-content: center;
    align-items: stretch;
  }
  .section-soft .grid-two > .card-lite:first-child .soft-links .btn{
    flex: 1 1 0;                /* share the row and fill the card width */
    min-width: 0;               /* allow text to wrap inside instead of pushing layout */
  }

  /* CERTIFICATION: buttons side-by-side + stretched on mobile/tablet */
  .cert-buttons{
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
  }
  .cert-buttons .btn{
    flex: 1 1 0;
    min-width: 0;
  }
}

.section-soft .grid-two > .card-lite:first-child .soft-links .btn{
    width: auto;
  }
  
/* Features */
.features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.feature{
  border-radius: 18px;
  padding: 18px;
}

.feature-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 850;
  color: rgba(15,23,42,.86);
  background: rgba(69,117,180,.12);
  border: 1px solid rgba(69,117,180,.22);
  margin-bottom: 10px;
}

/* Numbered label */
.feature-num{
  font-weight: 900;
  color: rgba(15,23,42,.70);
  letter-spacing: .06em;
  font-size: 14px;
  text-transform: uppercase;
}


.feature h3{ margin: 0 0 8px; font-size: 18px; }
.feature p{ margin: 0 0 10px; color: rgba(15,23,42,.72); }

.mini-link{
  display:inline-flex;
  gap: 6px;
  align-items:center;
  font-weight: 750;
  color: var(--blue);
  text-decoration: none;
}
.mini-link:hover{ text-decoration: underline; }

/* Spotlight */
.spotlight{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  align-items: stretch;
}

.spotlight-text{
  margin: 0;
  color: rgba(15,23,42,.72);
  max-width: 72ch;
}


.spotlight-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.spotlight-panel{
  border-radius: 18px;
  padding: 16px;
  display:grid;
  gap: 12px;
}

.panel-item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.panel-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 7px;
  background: rgba(69,117,180,.35);
  border: 2px solid rgba(69,117,180,.55);
}

.panel-item strong{ display:block; }
.panel-item span{ display:block; color: rgba(15,23,42,.68); margin-top: 2px; }

/* Marquee (unchanged) */
.marquee{
  overflow: hidden;
  border-radius: 18px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.marquee.is-dragging{ cursor: grabbing; }
.marquee.is-interactive .marquee-track{ animation: none !important; }

.marquee-track{
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 34s linear infinite;
}

.car-note{
  margin-top: 12px;
  text-align: center;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(15,23,42,.70);
  font-size: small;
}

.marquee-row{
  display:flex;
  gap: 10px;
  padding: 16px;
  align-items:center;
}

@keyframes marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-20%); }
}

@media (hover:hover){
  .marquee:hover .marquee-track{ animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

@media (max-width: 980px){
  .grid-two{ grid-template-columns: 1fr; }
  .grid-two.grid-two-rev{ grid-template-columns: 1fr; }

  /* Mobile:
     - text and logo on the same row (logo on the right)
     - buttons centered underneath
  */
  .cert-layout{
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "buttons";
    align-items: start;
    padding-right: 0; /* logo is absolutely positioned; keep layout centered */
  }

  .cert-text{
    padding-right: 72px; /* reserve space so text doesn't collide with corner logo */
  }

  .cert-img{
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    width: 56px;     /* smaller on mobile */
    height: auto;
    opacity: 0.70;
  }

  .cert-buttons{
    margin-top: 18px;
    align-items: center;
    justify-self: center;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;

    /* mobile/tablet: side-by-side buttons */
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cert-buttons .btn{ width: auto; }

  .features{ grid-template-columns: 1fr; }
  .spotlight{ grid-template-columns: 1fr; }
  .cta.cta-split{ flex-direction: column; text-align: center; }
}
/* Landscape phones/tablets: smaller ISO logo to avoid colliding with buttons */
@media (max-width: 980px) and (orientation: landscape){
  .cert-img{
    width: 40px;
    opacity: 0.65;
  }
  .cert-text{
    padding-right: 60px;
  }
}