/* ============================================================
   Sync Inn Digital — Hero Section
   Two-column layout: Left ~64% content (44fr) / Right ~36% tagline (25fr)
   Section height: 950px fixed (collapses to auto on mobile)

   All colours use var(--sid-*) global CSS custom properties.
   Typography: Poppins (headings/trust/buttons) · Nunito (description)
   ============================================================ */

/* ── Section wrapper ──────────────────────────────────────────── */

.sid-hero {
  position: relative;
  width: 100%;
  height: 950px;
  background-color: var(--sid-black);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ── Background video ─────────────────────────────────────────── */

.sid-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* ── Gradient overlay: bottom black → top transparent ────────── */

.sid-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none; /* purely decorative — must not intercept clicks */
}

/* ── Inner grid: 75% left / 25% right ───────────────────────── */

.sid-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--sid-site-width);
  margin: 0 auto;
  padding: 72px 20px 0;
  display: grid;
  grid-template-columns: 44fr 25fr;
  gap: 48px;
  align-items: flex-start;
}

/* ── Left content column ─────────────────────────────────────── */

.sid-hero__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Section label — white text on dark hero bg ───────────────── */

.sid-hero .sid-section-label__text {
  color: var(--sid-white, #fff);
}

/* ── Heading ──────────────────────────────────────────────────── */

.sid-hero__heading {
  font-size: 70px;
  font-weight: 700;
  line-height: 88px;
  color: var(--sid-white);
  margin: 0;
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  word-break: break-word;
}

/* Static highlight span (non-rotating pages) */
.sid-hero__highlight {
  background: linear-gradient(to bottom, #0047D8 0%, #32CCFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Rotating word container — inline-block so overflow can clip the slide */
.sid-hero__word-rotator {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
}

/* All spans hidden by default; JS and :first-child rule manage visibility */
.sid-hero__word-rotator span {
  display: none;
  background: linear-gradient(to bottom, #0047D8 0%, #32CCFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* First word shows before JS runs (no layout jump on load) */
.sid-hero__word-rotator span:first-child {
  display: inline;
}

/* ── Description ──────────────────────────────────────────────── */

.sid-hero__desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--sid-white);
  margin: 0;
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  max-width: 640px;
}

/* ── Trust row ────────────────────────────────────────────────── */

.sid-hero__trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Overlapping circular avatars */
.sid-hero__trust-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sid-hero__trust-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-left: -10px;
  border: 1px var(--sid-white) solid;
}

.sid-hero__trust-avatar:first-child {
  margin-left: 0;
}

/* Text block */
.sid-hero__trust-body {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

/* Text wrapper for main and sub */
.sid-hero__trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sid-hero__trust-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.sid-hero__trust-star-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sid-hero__trust-main {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--sid-white);
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
}

.sid-hero__trust-sub {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--sid-white);
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
}

/* ── CTA buttons ──────────────────────────────────────────────── */

.sid-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Right tagline column ─────────────────────────────────────── */

.sid-hero__tagline-wrap {
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  padding-left: 8px;
  flex-direction: row;
  align-content: flex-start;
}

/* Angled gradient divider — 6 deg slant, button gradient top → bottom */
.sid-hero__tagline-divider {
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 109px;
  background: linear-gradient(to bottom, #32CCFF, #0047D8);
  border-radius: 0;
  transform: rotate(6deg);
}

.sid-hero__tagline {
  font-size: 35px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--sid-white);
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ── Responsive breakpoints ───────────────────────────────────── */

@media (max-width: 1280px) {
  .sid-hero__inner {
    padding: 72px 48px 0;
    gap: 32px;
  }

  .sid-hero__heading {
    font-size: 56px;
    line-height: 68px;
  }

  .sid-hero__tagline {
    font-size: 30px;
  }

  .sid-hero__tagline-divider {
    height: 85px;
  }
}

/* Tablet landscape: collapse to single column */
@media (max-width: 1023px) {
  .sid-hero {
    height: auto;
    min-height: 950px;
  }

  .sid-hero__inner {
    grid-template-columns: 1fr;
    padding: 100px 20px 80px;
    gap: 36px;
    align-items: start;
  }

  .sid-hero__tagline-wrap {
    display: none;
  }
}

/* Tablet portrait */
@media (max-width: 767px) {
  .sid-hero {
    min-height: 750px;
  }

  .sid-hero__inner {
    padding: 130px 20px 80px;
    gap: 28px;
  }

  .sid-hero__heading {
    font-size: 42px;
    line-height: 52px;
  }

  .sid-hero__desc {
    font-size: 17px;
  }

  .sid-hero__tagline {
    font-size: 26px;
  }

  .sid-hero__tagline-divider {
    height: 70px;
  }

  .sid-hero__content {
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 479px) {
  .sid-hero__heading {
    font-size: 32px;
    line-height: 44px;
    margin-top: -20px;
  }

  .sid-hero__desc {
    font-size: 18px;
  }

  .sid-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .sid-hero__trust-body {
    flex-direction: column;
    gap: 8px;
  }
}

/* Front page only — show tagline ABOVE content at ≤ 1023px */
@media (max-width: 1023px) {
  .home .sid-hero__tagline-wrap {
    display: flex;
    order: 1;
    justify-content: flex-start;
    padding-top: 0;
    padding-left: 0;
        margin-bottom: 20px;
        margin-top: -20px;
  }

  .home .sid-hero__content {
    order: 2;
  }

  .home .sid-hero__tagline {
    font-size: 18px;
    line-height: 21px;
  }

  .home .sid-hero__tagline-divider {
    height: 63px;
  }
}
