/* ==========================================================================
   Homepage V2 — Second screenshot style (scoped to .home-v2)
   home-v2 v2026-05-23 — includes Resources 2x2 grid
   ========================================================================== */

.home-v2 {
  --v2-teal: #0D9488;
  --v2-teal-dark: #0F766E;
  --v2-teal-light: #14B8A6;
  --v2-navy: #0F172A;
  --v2-navy-bar: #1E293B;
  --v2-text: #1E293B;
  --v2-muted: #64748B;
  --v2-border: #E2E8F0;
  --v2-radius: 16px;
  --v2-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  --topbar-h: 40px;
  --nav-h: 80px;
}

/* --- Top utility bar (dark) --- */
.home-v2 .v2-topbar {
  position: sticky;
  top: 0;
  z-index: 101;
  background: var(--v2-navy);
  color: #94A3B8;
  font-size: 0.8125rem;
}

.home-v2 .v2-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-h);
  gap: var(--space-4);
}

.home-v2 .v2-topbar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.home-v2 .v2-topbar__contact a {
  color: #CBD5E1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.home-v2 .v2-topbar__contact a:hover {
  color: var(--v2-teal-light);
}

.home-v2 .v2-topbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.home-v2 .v2-topbar__portal {
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 500;
}

.home-v2 .v2-topbar__portal:hover {
  color: var(--v2-teal-light);
}

.home-v2 .v2-topbar__social {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.home-v2 .v2-topbar__social a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
}

.home-v2 .v2-topbar__social a:hover {
  color: var(--v2-teal-light);
  background: rgba(255, 255, 255, 0.08);
}

/* --- Main nav --- */
.home-v2 .site-header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--v2-border);
  box-shadow: none;
  height: auto;
}

.home-v2 .site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--nav-h);
  gap: var(--space-6);
}

.home-v2 .site-logo__text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--v2-navy);
  letter-spacing: 0.02em;
}

.home-v2 .site-logo__text span {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--v2-muted);
  margin-top: 2px;
}

.home-v2 .site-nav {
  justify-content: center;
}

.home-v2 .site-nav__list {
  gap: var(--space-8);
}

.home-v2 .site-nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--v2-text);
  position: relative;
  padding-bottom: 4px;
}

.home-v2 .site-nav__link.is-active {
  color: var(--v2-teal);
}

.home-v2 .site-nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--v2-teal);
  border-radius: 2px;
}

.home-v2 .site-nav__item--dropdown {
  position: relative;
}

.home-v2 .site-nav__chevron {
  font-size: 0.65em;
  margin-left: 2px;
}

.home-v2 .site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  padding: var(--space-2) 0;
  background: var(--color-white);
  border: 1px solid var(--v2-border);
  border-radius: var(--radius-md);
  box-shadow: var(--v2-shadow);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 50;
}

.home-v2 .site-nav__item--dropdown:hover .site-nav__dropdown,
.home-v2 .site-nav__item--dropdown:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
}

.home-v2 .site-nav__dropdown a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--v2-text);
  text-decoration: none;
}

.home-v2 .site-nav__dropdown a:hover {
  background: var(--color-gray-50);
  color: var(--v2-teal);
}

.home-v2 .btn--v2-primary {
  background: var(--v2-teal);
  color: var(--color-white);
  border-color: var(--v2-teal);
  border-radius: 999px;
  font-weight: 600;
}

.home-v2 .btn--v2-primary:hover {
  background: var(--v2-teal-dark);
  border-color: var(--v2-teal-dark);
  color: var(--color-white);
}

.home-v2 .btn--v2-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  font-weight: 600;
}

.home-v2 .btn--v2-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

/* --- Hero V2 --- */
.home-v2 .v2-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: var(--space-12) 0 var(--space-20);
  overflow: hidden;
}

.home-v2 .v2-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-v2 .v2-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-v2 .v2-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-10);
  align-items: center;
}

.home-v2 .v2-hero__content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.home-v2 .v2-hero__accent {
  color: var(--v2-teal-light);
  display: block;
}

.home-v2 .v2-hero__subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.home-v2 .v2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.home-v2 .v2-trust-panel {
  background: var(--color-white);
  border-radius: var(--v2-radius);
  box-shadow: var(--v2-shadow);
  overflow: hidden;
}

.home-v2 .v2-trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--v2-border);
}

.home-v2 .v2-trust-item:last-child {
  border-bottom: none;
}

.home-v2 .v2-trust-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v2-teal);
}

.home-v2 .v2-trust-item__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.home-v2 .v2-trust-item__title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--v2-navy);
  margin-bottom: var(--space-1);
}

.home-v2 .v2-trust-item__desc {
  font-size: 0.8125rem;
  color: var(--v2-muted);
  line-height: 1.4;
}

/* --- KPI slab --- */
.home-v2 .v2-kpi-wrap {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--space-16));
  padding-bottom: var(--space-12);
}

.home-v2 .v2-kpi {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--color-white);
  border-radius: var(--v2-radius);
  box-shadow: var(--v2-shadow);
  padding: var(--space-8) var(--space-4);
}

.home-v2 .v2-kpi__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-3);
  border-right: 1px solid var(--v2-border);
}

.home-v2 .v2-kpi__item:last-child {
  border-right: none;
}

.home-v2 .v2-kpi__icon {
  color: var(--v2-teal);
  margin-bottom: var(--space-3);
}

.home-v2 .v2-kpi__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.home-v2 .v2-kpi__number {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--v2-navy);
  margin-bottom: var(--space-1);
}

.home-v2 .v2-kpi__label {
  font-size: 0.8125rem;
  color: var(--v2-muted);
  font-weight: 500;
}

/* --- Services V2 --- */
.home-v2 .v2-services {
  padding: var(--space-16) 0 var(--space-20);
  background: var(--color-white);
}

.home-v2 .v2-services__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}

.home-v2 .v2-services__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v2-teal);
  margin-bottom: var(--space-3);
}

.home-v2 .v2-services__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--v2-navy);
  margin-bottom: var(--space-4);
}

.home-v2 .v2-services__desc {
  color: var(--v2-muted);
  line-height: var(--line-height-relaxed);
}

.home-v2 .v2-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.home-v2 .v2-service-card {
  background: var(--color-white);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  padding: var(--space-8);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}

.home-v2 .v2-service-card:hover {
  box-shadow: var(--v2-shadow);
  color: inherit;
}

.home-v2 .v2-service-card__icon {
  color: var(--v2-teal);
  margin-bottom: var(--space-5);
}

.home-v2 .v2-service-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
}

.home-v2 .v2-service-card__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--v2-navy);
  margin-bottom: var(--space-3);
}

.home-v2 .v2-service-card__desc {
  font-size: var(--font-size-sm);
  color: var(--v2-muted);
  line-height: 1.5;
  margin-bottom: var(--space-5);
  flex: 1;
}

.home-v2 .v2-service-card__link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--v2-teal);
}

/* --- Resources grid --- */
.home-v2 {
  --resource-blue: #2563EB;
  --resource-green: #059669;
  --resource-purple: #7C3AED;
  --resource-orange: #D97706;
}

.home-v2 .v2-resources {
  padding: var(--space-16) 0 var(--space-20);
  background: #F8FAFC;
}

.home-v2 .v2-resources__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-12);
}

.home-v2 .v2-resources__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--v2-navy);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.home-v2 .v2-resources__desc {
  color: var(--v2-muted);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
}

.home-v2 .v2-resources__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.home-v2 .v2-resource-card {
  background: var(--color-white);
  border-radius: var(--v2-radius);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  padding: var(--space-8);
  border-top: 4px solid var(--resource-accent, var(--v2-teal));
  display: flex;
  flex-direction: column;
}

.home-v2 .v2-resource-card--blue { --resource-accent: var(--resource-blue); }
.home-v2 .v2-resource-card--green { --resource-accent: var(--resource-green); }
.home-v2 .v2-resource-card--purple { --resource-accent: var(--resource-purple); }
.home-v2 .v2-resource-card--orange { --resource-accent: var(--resource-orange); }

.home-v2 .v2-resource-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--resource-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.home-v2 .v2-resource-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.home-v2 .v2-resource-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--v2-navy);
  margin-bottom: var(--space-2);
}

.home-v2 .v2-resource-card__metric {
  font-size: var(--font-size-sm);
  color: var(--v2-muted);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.home-v2 .v2-resource-card__desc {
  font-size: var(--font-size-sm);
  color: var(--v2-muted);
  line-height: 1.55;
  margin-bottom: var(--space-6);
  flex: 1;
}

.home-v2 .v2-resource-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: var(--space-3) var(--space-5);
  background: var(--resource-accent);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: opacity var(--transition), transform var(--transition);
}

.home-v2 .v2-resource-card__btn:hover {
  color: var(--color-white);
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Back to top FAB */
.home-v2 .v2-back-to-top {
  position: fixed;
  bottom: 88px;
  right: var(--space-6);
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--resource-blue);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.home-v2 .v2-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.home-v2 .v2-back-to-top:hover {
  background: #1D4ED8;
}

.home-v2 .v2-back-to-top svg {
  stroke: currentColor;
}

/* --- Lower sections themed for v2 --- */
.home-v2 .section__label {
  color: var(--v2-teal);
}

.home-v2 .cta-band {
  background: linear-gradient(135deg, var(--v2-navy) 0%, var(--v2-teal-dark) 100%);
}

.home-v2 .btn--primary {
  background: var(--v2-teal);
  border-color: var(--v2-teal);
  color: var(--color-white);
}

.home-v2 .btn--primary:hover {
  background: var(--v2-teal-dark);
  border-color: var(--v2-teal-dark);
  color: var(--color-white);
}

.home-v2 .process-step__num {
  background: var(--v2-teal);
  color: var(--color-white);
}

.home-v2 .testimonial {
  border-left-color: var(--v2-teal);
}

.home-v2 .trust-strip__dot {
  background: var(--v2-teal);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .home-v2 .v2-hero__inner {
    grid-template-columns: 1fr;
  }

  .home-v2 .v2-trust-panel {
    max-width: 480px;
  }

  .home-v2 .v2-kpi {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .home-v2 .v2-kpi__item:nth-child(3) {
    border-right: none;
  }

  .home-v2 .v2-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-v2 .v2-resources__grid {
    grid-template-columns: 1fr;
  }

  .home-v2 .site-header__inner {
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .home-v2 {
    --topbar-h: 36px;
    --nav-h: 64px;
  }

  .home-v2 .v2-topbar__contact {
    display: none;
  }

  .home-v2 .v2-topbar__inner {
    justify-content: flex-end;
  }

  .home-v2 .site-header {
    height: var(--nav-h);
  }

  .home-v2 .site-header__inner {
    height: var(--nav-h);
  }

  .home-v2 .site-nav {
    position: fixed;
    top: calc(var(--topbar-h) + var(--nav-h));
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-6);
    background: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 200;
  }

  .home-v2 .site-nav.is-open {
    transform: translateX(0);
  }

  .home-v2 .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .home-v2 .site-nav__link {
    display: block;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--v2-border);
  }

  .home-v2 .site-nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: var(--space-4);
  }

  .home-v2 .v2-kpi {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-v2 .v2-kpi__item {
    border-right: none;
    border-bottom: 1px solid var(--v2-border);
    padding-bottom: var(--space-4);
  }

  .home-v2 .v2-services__grid {
    grid-template-columns: 1fr;
  }

  .home-v2 .v2-resource-card__btn {
    width: 100%;
    align-self: stretch;
  }

  .home-v2 .v2-back-to-top {
    bottom: 76px;
    right: var(--space-4);
  }

  .home-v2 .v2-hero__actions {
    flex-direction: column;
  }

  .home-v2 .v2-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .home-v2 .v2-kpi {
    grid-template-columns: 1fr;
  }

  .home-v2 .v2-topbar__social span {
    display: none;
  }
}

/* Mobile bar + cookie banner clearance */
.home-v2.has-mobile-bar {
  padding-bottom: 64px;
}

.home-v2 .v2-kpi-wrap {
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   Resources fallback (applies even if .home-v2 scope fails partially)
   ========================================================================== */

.v2-resources {
  padding: 4rem 0 5rem;
  background: #F8FAFC;
}

.v2-resources__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.v2-resources__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.v2-resources__desc {
  color: #64748B;
  line-height: 1.6;
}

.v2-resources__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.v2-resource-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  padding: 2rem;
  border-top: 4px solid var(--resource-accent, #0D9488);
  display: flex;
  flex-direction: column;
}

.v2-resource-card--blue { --resource-accent: #2563EB; }
.v2-resource-card--green { --resource-accent: #059669; }
.v2-resource-card--purple { --resource-accent: #7C3AED; }
.v2-resource-card--orange { --resource-accent: #D97706; }

.v2-resource-card__icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 12px;
  background: var(--resource-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.v2-resource-card__icon svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.v2-resource-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.5rem;
}

.v2-resource-card__metric {
  font-size: 0.875rem;
  color: #64748B;
  font-weight: 500;
  margin-bottom: 1rem;
}

.v2-resource-card__desc {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}

.v2-resource-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.75rem 1.25rem;
  background: var(--resource-accent);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

.v2-resource-card__btn:hover {
  color: #fff !important;
  opacity: 0.92;
}

@media (max-width: 768px) {
  .v2-resources__grid {
    grid-template-columns: 1fr;
  }

  .v2-resource-card__btn {
    width: 100%;
    align-self: stretch;
  }
}
