/* Minimal glue styles for Home V2 only. */

/* Light-only: stops Android Chrome "Auto dark theme" from remapping colors
   (it was turning amber buttons reddish on some phones). */
:root {
  color-scheme: light;
}

.storefront-v2 {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.storefront-v2 .font-display {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* The new main introduced a global underline for all <a>. Home V2 wants a cleaner look. */
.storefront-v2 a {
  text-decoration: none;
  text-underline-offset: initial;
  text-decoration-color: initial;
}

/* Home V2 hero height: define explicitly in CSS to avoid Tailwind build/purge issues. */
.sfv2-hero-slide {
  /* Mobile hero needs enough vertical room for 2-line title + subtitle + 2 CTAs. */
  height: 200px;
}

@media (min-width: 640px) {
  .sfv2-hero-slide {
    height: 260px;
  }
}

@media (min-width: 768px) {
  .sfv2-hero-slide {
    height: 440px;
  }
}

/* Home V2 hero (mobile) copy box: avoid Tailwind build/purge surprises. */
@media (max-width: 639.98px) {
  .sfv2-hero-copy {
    max-width: 340px;
    width: 100%;
    /* Avoid the "card inside the hero" look on mobile. */
    border-radius: 0;
    padding: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    box-sizing: border-box;
    /* Don't clip CTAs; text is clamped via -webkit-line-clamp. */
    overflow: visible;
    /* Ensure readable default text color even if other stylesheets override h1/p. */
    color: rgba(255, 255, 255, 0.98);
  }

  .sfv2-hero-title {
    font-size: 16px;
    line-height: 20px;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    text-shadow: 0 1px 10px rgba(2, 6, 23, 0.65);
  }

  .sfv2-hero-subtitle {
    margin: 4px 0 0 0;
    font-size: 11px;
    line-height: 14px;
    color: rgba(255, 255, 255, 0.90);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    text-shadow: 0 1px 10px rgba(2, 6, 23, 0.65);
  }

  /* Higher-specificity guardrails: some pages ship legacy h1/p color rules. */
  .storefront-v2 .sfv2-hero-copy .sfv2-hero-title {
    color: #ffffff;
  }

  .storefront-v2 .sfv2-hero-copy .sfv2-hero-subtitle {
    color: rgba(255, 255, 255, 0.90);
  }

  .sfv2-hero-ctas {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .sfv2-hero-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    display: flex;
    gap: 8px;
    z-index: 20;
    pointer-events: auto;
  }

  .sfv2-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.28);
  }

  .sfv2-hero-dot.is-active,
  .sfv2-hero-dot[aria-current="true"] {
    background: rgba(255, 255, 255, 0.60);
  }
}

/* Swiper pagination bullets for the Home V2 hero. */
.storefront-v2 .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

.storefront-v2 .swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 0.60);
}

/* Storefront V2 mobile bottom nav (enabled per-company via data-sfv2-bottom-nav). */
@media (max-width: 767.98px) {
  body[data-sfv2-bottom-nav="true"] {
    /* Include safe-area inset so content doesn't sit under the fixed bar on iOS. */
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

.sfv2-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  body[data-sfv2-bottom-nav="true"] .sfv2-bottom-nav {
    display: block !important;
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
  }
}

.sfv2-bottom-nav__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
}

.sfv2-bottom-nav__bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 8px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.sfv2-bottom-nav__item {
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 10px;
  line-height: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 12px;
}

.sfv2-bottom-nav__item:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.sfv2-bottom-nav__item:hover {
  color: #0f172a;
}

.sfv2-bottom-nav__icon {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sfv2-bottom-nav__icon--active {
  background: #fde68a;
  color: #0f172a;
}

.sfv2-bottom-nav__svg {
  width: 16px;
  height: 16px;
}

.sfv2-header-nav {
  padding: 4px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.95);
}

.sfv2-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: min(17rem, 42vw);
  padding: 0.25rem 0.25rem 0.25rem 0;
  border-radius: 1.125rem;
  text-decoration: none;
}

.sfv2-header-brand__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 3rem;
  max-width: 4.75rem;
}

.sfv2-header-brand__logo {
  display: block;
  width: auto;
  max-width: 4.75rem;
  max-height: 2.75rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.12));
}

.sfv2-header-brand__name {
  min-width: 0;
  color: #0f172a;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
}

.sfv2-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #334155;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.sfv2-header-link:hover {
  background: #ffffff;
  color: var(--v2-primary);
}

@media (max-width: 639px) {
  .sfv2-header-brand {
    gap: 0.5rem;
    max-width: min(13rem, 48vw);
  }

  .sfv2-header-brand__logo-wrap {
    min-width: 3.5rem;
    max-width: 4.5rem;
  }

  .sfv2-header-brand__logo {
    max-width: 4.5rem;
    max-height: 2.75rem;
  }

  .sfv2-header-brand__name {
    display: none;
  }
}

.sfv2-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--v2-primary);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: gap 160ms ease, color 160ms ease, opacity 160ms ease;
}

.sfv2-section-link:hover {
  gap: 11px;
  color: #1d4ed8;
}

.sfv2-card-media {
  object-position: center 38%;
}

.group:hover .sfv2-card-media-hover {
  transform: scale(1.02);
}

.sfv2-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sfv2-card-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 32px;
  padding: 0 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.sfv2-card-meta--inverse .sfv2-card-meta-pill--inverse {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.sfv2-card-cta {
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.18);
  font-size: 0.95rem;
}

.sfv2-card-cta--mobile {
  min-height: 46px;
  padding-inline: 1.5rem;
}

.sfv2-card-cta--desktop {
  min-height: 44px;
  padding-inline: 1.5rem;
}

.sfv2-rotating-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: width 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.sfv2-rotating-dot--active {
  width: 18px;
  background: var(--v2-primary);
}

.sfv2-rotating-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background-color 160ms ease;
}

.sfv2-rotating-arrow svg {
  width: 18px;
  height: 18px;
}

.sfv2-rotating-arrow:hover {
  color: var(--v2-primary);
  border-color: rgba(37, 99, 235, 0.25);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
  transform: translateY(-1px);
}

.sfv2-rotating-arrow--overlay {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.45);
  color: #1e293b;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.sfv2-rotating-arrow--overlay:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--v2-primary);
}

.sfv2-rotation-pause {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.sfv2-rotation-pause svg {
  width: 13px;
  height: 13px;
}

.sfv2-rotation-pause:hover {
  background: #ffffff;
  color: var(--v2-primary);
}

.sfv2-rotation-pause[aria-pressed="true"] {
  color: var(--v2-primary);
  border-color: rgba(37, 99, 235, 0.25);
}

/* Pause/play icon toggle driven by aria-pressed state. */
.sfv2-rotation-pause .sfv2-icon-play {
  display: none;
}

.sfv2-rotation-pause[aria-pressed="true"] .sfv2-icon-pause {
  display: none;
}

.sfv2-rotation-pause[aria-pressed="true"] .sfv2-icon-play {
  display: block;
}

.sfv2-footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sfv2-footer-social {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 1);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sfv2-footer-social:hover {
  color: var(--v2-primary);
  border-color: rgba(96, 165, 250, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.sfv2-footer {
  position: relative;
}

.sfv2-footer__grid {
  display: grid;
  gap: 2rem;
}

.sfv2-footer__kicker {
  margin: 0;
  color: #64748b;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sfv2-footer__title {
  margin: 0;
  color: #334155;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sfv2-footer__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.sfv2-footer__item {
  min-width: 0;
}

.sfv2-footer__label {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sfv2-footer__value {
  display: block;
  margin-top: 0.22rem;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.65;
  word-break: break-word;
}

.sfv2-footer__value--link,
.sfv2-footer__external-link {
  color: var(--v2-primary);
  font-weight: 700;
}

.sfv2-footer__value--link:hover,
.sfv2-footer__external-link:hover {
  color: #1d4ed8;
}

.sfv2-footer__about-copy {
  margin-top: 1rem;
  max-width: 38rem;
  color: #334155;
  font-size: 15px;
  line-height: 1.9;
}

.sfv2-footer__about-copy p,
.sfv2-footer__about-copy ul,
.sfv2-footer__about-copy ol,
.sfv2-footer__about-copy blockquote {
  margin: 0;
}

.sfv2-footer__about-copy p + p,
.sfv2-footer__about-copy p + ul,
.sfv2-footer__about-copy p + ol,
.sfv2-footer__about-copy ul + p,
.sfv2-footer__about-copy ol + p,
.sfv2-footer__about-copy blockquote + p,
.sfv2-footer__about-copy p + blockquote,
.sfv2-footer__about-copy ul + ul,
.sfv2-footer__about-copy ol + ol {
  margin-top: 0.75rem;
}

.sfv2-footer__about-copy ul,
.sfv2-footer__about-copy ol {
  padding-left: 1.25rem;
}

.sfv2-footer__about-copy li + li {
  margin-top: 0.25rem;
}

.sfv2-footer__about-copy strong,
.sfv2-footer__about-copy b {
  color: #0f172a;
  font-weight: 700;
}

.sfv2-footer__about-copy a {
  color: var(--v2-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sfv2-footer__about-copy a:hover {
  color: #1d4ed8;
}

.sfv2-footer__external-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.sfv2-footer__external-list {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.sfv2-footer__external-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.sfv2-footer__external-link:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

@media (min-width: 768px) {
  .sfv2-footer__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

.sfv2-no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.sfv2-no-scrollbar::-webkit-scrollbar { display: none; }
