/* ------------------------------------------------------------------
 * Elevate landing-page design system.
 *
 * One stylesheet powers every landing page under this Netlify site.
 *
 * The tokens below are a straight port of the brand system running on
 * elevate-digital-solutions.com (Bricks `--elvdg-*` custom properties)
 * so LPs here render with identical type, spacing and colour to the
 * main site. If the main site's tokens change, change them here too.
 *
 * When adding a new LP:
 *   - link this file from your <head>
 *   - use the utility classes (.container, .eyebrow, .btn-primary, etc.)
 *   - only add page-specific rules to a per-page stylesheet if you have to
 * -----------------------------------------------------------------*/

:root {
  /* ---- Palette (mirrors --elvdg-color-p-*) ---- */
  --blue: #202356;
  --blue-d-1: #1d204e;
  --blue-d-2: #1a1d46;
  --blue-d-4: #141637;
  --blue-l-1: #343765;
  --blue-l-2: #494b75;
  --blue-l-3: #5d5f84;
  --blue-l-6: #9a9bb2;
  --blue-l-7: #aeafc2;
  --blue-l-8: #c2c3d1;
  --blue-l-9: #d6d7e0;
  --blue-l-10: #ebebf0;
  --orange: #f37c47;
  --orange-d-1: #dd7141;
  --orange-d-2: #c7653a;
  --white: #ffffff;
  --black: #0f0f0f;
  --black-l-4: #666666;

  /* Legacy aliases kept so older component rules keep resolving. */
  --navy: var(--blue);
  --ink: var(--blue);
  --grey: var(--blue-l-3);
  --grey-light: #f6f8fa;
  --border: var(--blue-l-10);

  /* ---- Type scale (mirrors --elvdg-text-*) ---- */
  --text-2xs: 13px;
  --text-xs: 16px;
  --text-s: 20px;
  --text-m: 24px;
  --text-l: 32px;
  --text-xl: 44px;
  --text-2xl: 60px;
  --text-3xl: 76px;
  --text-btn: clamp(14px, 0.8rem + 0.5vw, 16px);
  --text-body-12: 12px;
  --text-body-14: 14px;
  --text-body-16: 16px;
  --text-body-18: 18px;

  /* ---- Spacing scale (mirrors --elvdg-space-*) ---- */
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 80px;
  --space-s-xs: 4px;
  --space-s-sm: 8px;
  --space-s-md: 12px;
  --space-s-lg: 16px;
  --space-s-xl: 24px;
  --space-s-2xl: 32px;

  /* ---- Layout ---- */
  --c-width-full: 1280px;
  --c-width-large: 1080px;
  --c-width-medium: 992px;

  --radius: 15px;
  --radius-btn: 8px;
  --shadow: 0 10px 30px rgba(32, 35, 86, 0.08);
  --shadow-lg: 0 20px 60px rgba(32, 35, 86, 0.14);
}

/* The main site steps the whole scale down at these two breakpoints
   rather than restyling individual elements — do the same here. */
@media (max-width: 992px) {
  :root {
    --space-2xs: 6px;
    --space-xs: 10px;
    --space-s: 14px;
    --space-m: 20px;
    --space-l: 28px;
    --space-xl: 36px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --text-2xs: 12px;
    --text-xs: 15px;
    --text-s: 18px;
    --text-m: 22px;
    --text-l: 28px;
    --text-xl: 36px;
    --text-2xl: 48px;
    --text-3xl: 60px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-s: 12px;
    --space-m: 16px;
    --space-l: 18px;
    --space-xl: 20px;
    --space-2xl: 28px;
    --space-3xl: 36px;
    --text-2xs: 12px;
    --text-xs: 14px;
    --text-s: 16px;
    --text-m: 18px;
    --text-l: 22px;
    --text-xl: 28px;
    --text-2xl: 36px;
    --text-3xl: 44px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-xs);
  color: var(--blue);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ---------- Headings — main-site scale ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 500;
  line-height: 115%;
  color: var(--blue);
}

h1 {
  font-size: var(--text-2xl);
  letter-spacing: -2px;
}

h2 {
  font-size: var(--text-xl);
  letter-spacing: -2px;
}

h3 {
  font-size: var(--text-l);
  letter-spacing: -0.5px;
}

h4 {
  font-size: var(--text-m);
  letter-spacing: -0.5px;
}

h5 {
  font-size: var(--text-s);
  letter-spacing: -0.5px;
}

h6 {
  font-size: var(--text-xs);
  letter-spacing: -0.5px;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--c-width-full);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

section {
  padding: var(--space-3xl) 0;
}

/* Mono eyebrow — .elvdg-typography-mono on the main site. */
.eyebrow {
  font-family: 'PT Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  font-size: var(--text-m);
  font-weight: 400;
  line-height: 1.2;
  color: var(--orange);
  margin-bottom: var(--space-s-md);
  display: block;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-xl);
}

.section-head p {
  color: var(--blue-l-3);
  font-size: var(--text-xs);
  margin-top: var(--space-s-md);
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  border-bottom: 1px solid var(--blue-l-2);
  padding: var(--space-s) 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s-md);
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  transition: opacity 0.15s ease;
}

.logo a:hover,
.logo a:focus-visible {
  opacity: 0.75;
}

.logo img {
  height: 25px;
  width: auto;
  display: block;
}

/* ---------- Buttons — .elvdg-btn-* on the main site ---------- */
.btn-primary,
.nav-cta {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: var(--text-btn);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.3;
  padding: var(--space-xs) var(--space-s-xl);
  border: 1px solid var(--orange);
  border-radius: var(--radius-btn);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  background: transparent;
  color: var(--orange);
}

/* On the orange CTA bands the primary button inverts to white. */
.cta-band .btn-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue);
}

.cta-band .btn-primary:hover,
.cta-band .btn-primary:focus-visible {
  background: transparent;
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1100px 500px at 20% -10%, var(--blue-l-1) 0%, transparent 60%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue) 100%);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-areas:
    'headline headline'
    'subcopy  subcopy'
    'video    form';
  gap: var(--space-l);
  align-items: stretch;
}

.hero-headline {
  grid-area: headline;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-headline h1 {
  color: var(--white);
}

.hero-headline h1 span {
  color: var(--orange);
}

.hero-subcopy {
  grid-area: subcopy;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-subcopy p {
  font-size: var(--text-body-18);
  color: var(--blue-l-9);
  margin: 0;
}

.hero-badges {
  display: flex;
  gap: var(--space-m);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-m);
  font-size: var(--text-2xs);
  color: var(--blue-l-7);
}

.hero-badges div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-video {
  grid-area: video;
  min-width: 0;
}

.hero-video .video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-video .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero-form-card {
  grid-area: form;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-l);
  color: var(--blue);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-form-card h3 {
  margin-bottom: var(--space-s-xs);
}

.hero-form-card .sub {
  color: var(--blue-l-3);
  font-size: var(--text-body-14);
  margin-bottom: var(--space-s-lg);
}

/* ---------- Placeholder embed slots (before real widgets load) ---------- */
.embed-slot {
  border: 2px dashed var(--blue-l-8);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    135deg,
    #f7f9fd,
    #f7f9fd 10px,
    #f1f4fb 10px,
    #f1f4fb 20px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blue-l-3);
  padding: var(--space-l);
  gap: 6px;
}

.embed-slot .tag {
  font-family: 'PT Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-body-12);
  text-transform: uppercase;
  letter-spacing: 0.25px;
  color: var(--blue);
  background: var(--blue-l-10);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: var(--space-2xs);
}

.embed-slot strong {
  color: var(--blue);
  font-size: var(--text-body-16);
}

.embed-slot span {
  font-size: var(--text-2xs);
  max-width: 260px;
}

/* ==================================================================
 * Carousels
 *
 * The main site drives these with Splide; here they're a CSS
 * scroll-snap track plus a few lines of JS in carousel.js, which keeps
 * the LP dependency-free. Same card design, same 3 / 2 / 1-up
 * responsive behaviour.
 * ================================================================*/
.carousel {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--space-m)) / 3);
  gap: var(--space-m);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-2xs);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > * {
  scroll-snap-align: start;
  min-width: 0;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  border: 1px solid var(--blue-l-8);
  background: transparent;
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.carousel-arrow:hover:not(:disabled),
.carousel-arrow:focus-visible:not(:disabled) {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-dots {
  display: flex;
  gap: var(--space-s-sm);
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 100%;
  background: var(--blue-l-8);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-dot[aria-current='true'] {
  background: var(--orange);
  transform: scale(1.35);
}

/* Carousels sitting on a dark section need light chrome. */
.on-dark .carousel-arrow {
  border-color: var(--blue-l-2);
  color: var(--white);
}

.on-dark .carousel-dot {
  background: var(--blue-l-2);
}

.on-dark .carousel-dot[aria-current='true'] {
  background: var(--orange);
}

/* ---------- Video testimonial cards ---------- */
.video-testimonials {
  background: var(--blue);
  color: var(--white);
}

.video-testimonials .section-head h2,
.video-testimonials .section-head h3 {
  color: var(--white);
}

.video-testimonials .section-head p {
  color: var(--blue-l-7);
}

.vt-card {
  display: flex;
  flex-direction: column;
  background: var(--blue-d-2);
  border: 1px solid var(--blue-l-1);
  border-radius: var(--radius);
  overflow: hidden;
}

.vt-card .video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.vt-card .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.vt-body {
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vt-logo {
  height: 30px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: var(--space-s-xl);
}

.vt-card .name {
  color: var(--white);
  font-size: var(--text-s);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.vt-card .role {
  color: var(--blue-l-6);
  font-size: var(--text-body-14);
  margin-top: var(--space-s-sm);
}

.vt-card .quote {
  color: var(--blue-l-9);
  font-style: italic;
  margin-top: var(--space-m);
}

/* ---------- Quote (review) cards ---------- */
.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-l);
  background: var(--blue);
  border-radius: var(--radius);
  padding: var(--space-l);
  color: var(--white);
}

.quote-card-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
}

/* The inline SVGs also carry width/height attributes, so if this stylesheet
   ever fails to reach a visitor they render at a sane size rather than
   stretching to the full column. */
.quote-mark {
  width: 32px;
  height: auto;
  flex: 0 0 auto;
  display: block;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--orange);
  font-size: 20px;
  line-height: 1;
}

.stars svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

.quote-card .quote {
  font-size: var(--text-s);
  margin: var(--space-l) 0 var(--space-s-md);
  flex: 1;
}

.quote-card-person {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-s);
}

.quote-card-person img {
  width: 60px;
  height: 60px;
  border-radius: 100%;
  object-fit: cover;
  flex: 0 0 auto;
}

.quote-card-person .name {
  font-weight: 500;
}

.quote-card-person .role {
  color: var(--blue-l-7);
  font-size: var(--text-body-14);
}

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: var(--space-xl) 0;
  background: var(--grey-light);
}

.logo-strip p {
  font-family: 'PT Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  font-size: var(--text-body-14);
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: var(--blue-l-2);
  margin: 0 0 var(--space-m);
}

.logo-strip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.logo-strip-row img {
  max-width: 140px;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

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

/* ---------- Example video ---------- */
.example-video-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.example-video-wrap .video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.example-video-wrap .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-d-2) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-2xl) 0;
}

.cta-band h2 {
  color: var(--white);
  max-width: 760px;
  margin: 0 auto var(--space-s-lg);
}

.cta-band p {
  color: #ffe5d1;
  font-size: var(--text-xs);
  max-width: 560px;
  margin: 0 auto var(--space-l);
}

/* ---------- Stats ---------- */
.stats {
  background: var(--blue);
  color: var(--white);
}

.stats .section-head h2 {
  color: var(--white);
}

.stats .section-head p {
  color: var(--blue-l-7);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-m);
}

.stat {
  text-align: center;
  padding: 0 var(--space-s-md);
}

/* Same size as the stat headings on the main site's audit page (h3). */
.stat .num {
  font-size: var(--text-l);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 115%;
  color: var(--orange);
}

.stat .label {
  font-family: 'PT Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  font-size: var(--text-body-14);
  margin-top: var(--space-2xs);
  color: var(--white);
}

.stat .desc {
  color: var(--blue-l-7);
  font-size: var(--text-2xs);
  margin-top: 6px;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-m);
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 100%;
  box-shadow: var(--shadow);
}

.team-card .name {
  font-weight: 500;
  margin-top: var(--space-s-md);
  font-size: var(--text-body-16);
}

.team-card .role {
  font-family: 'PT Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--orange);
  font-size: var(--text-body-12);
  text-transform: uppercase;
  letter-spacing: 0.25px;
  line-height: 1.35;
  margin-top: var(--space-s-xs);
}

/* ---------- Trust badges footer ---------- */
/* Deliberately understated — a quiet footer signal, not a section. */
.trust-strip {
  padding: var(--space-l) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-strip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust-strip-row a,
.trust-strip-row .trust-item {
  display: inline-flex;
  align-items: center;
}

.trust-strip-row img {
  height: 24px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

footer {
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--blue-l-3);
  font-size: var(--text-2xs);
}

/* ---------- Responsive breakpoints ---------- */
@media (max-width: 1279px) {
  .carousel-track {
    grid-auto-columns: calc((100% - var(--space-m)) / 2);
  }
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .hero {
    padding-top: var(--space-xl);
  }
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      'headline'
      'video'
      'subcopy'
      'form';
    gap: var(--space-m);
    align-items: start;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-l);
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-m);
  }
  .carousel-track {
    grid-auto-columns: 88%;
  }
  /* The wordmark is a wide 12:1 lockup — step it down hard so it and the
     CTA both fit on one line at phone widths. */
  .nav .container {
    flex-wrap: nowrap;
    gap: var(--space-s-sm);
  }
  .logo {
    min-width: 0;
  }
  .logo img {
    height: 16px;
  }
  .nav-cta {
    font-size: 11px;
    padding: var(--space-2xs) var(--space-s-md);
    white-space: normal;
    text-align: center;
  }
  .hero {
    padding-top: var(--space-l);
    padding-bottom: var(--space-2xl);
  }

  /* Hero-only type overrides. On a phone the hero has to earn its space
     above the fold, so it runs a notch tighter than the shared scale —
     section headings further down keep the main site's sizes.
     The four levels stay clearly stepped apart:
       h1 ~27px  >  subcopy 15px  >  eyebrow ~13px  >  badges 12px
     with the eyebrow's mono/uppercase/orange treatment and the badges'
     muted colour doing the rest of the separating work.

     Note this flips the main site's eyebrow-larger-than-body relationship,
     but only inside the mobile hero: at 15px the eyebrow lands within a
     pixel of the subcopy, which reads as an accident rather than a
     hierarchy. Dropping it to a true kicker keeps the step deliberate, and
     it's sized to hold one line all the way down to 320px. Desktop, and
     every other section, keep the main site's relationship untouched. */
  .hero .eyebrow {
    font-size: clamp(11px, 3.2vw, 13px);
    margin-bottom: var(--space-2xs);
  }

  .hero-headline h1 {
    font-size: clamp(24px, 7vw, 30px);
    letter-spacing: -1px;
  }

  .hero-subcopy p {
    font-size: 15px;
  }

  .hero-badges {
    margin-top: var(--space-s);
    gap: var(--space-2xs) var(--space-s);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m);
  }
  .trust-strip-row {
    gap: var(--space-m);
    flex-direction: column;
  }
  .trust-strip-row img {
    height: 20px;
  }
}
