/* Override Anchor design tokens with Sedra brand */
:root {
  /* Typography */
  --_typography---heading: 'Lora', serif;
  --_typography---body: 'Inter Tight', sans-serif;

  /* Text — shifted from warm black to slate (matches product) */
  --_colors---black: #1e293b;              /* slate-800 (was #1e1e1e) */
  --_colors---black-60: #64748b;           /* slate-500 (was #1e1e1e at 60%) */

  /* Surfaces — shifted from warm browns to cool stone (matches product) */
  --_colors---light-brown: #f5f5f4;        /* stone-100 (was #f5f2f0) */
  --_colors---medium-brown: #e7e5e4;       /* stone-200 (was #f0eae5) */
  --_colors---brown: #d6d3d1;              /* stone-300 (was #e3d7cd) */
  --_colors---background: #fafaf9;         /* stone-50  (was #fbfbf9) */

  /* Accent — deep green replaces orange */
  --_colors---orange: #183e2e;
}

/* Green CTA buttons: white text + lighter hover */
.btn:where(.w-variant-f079fb08-76d2-4e02-e2c2-906b5d89e92f) {
  color: #fff;
}
.btn:hover:where(.w-variant-f079fb08-76d2-4e02-e2c2-906b5d89e92f) {
  background-color: #245a42;
}
.nav-menu-trigger:where(.w-variant-f079fb08-76d2-4e02-e2c2-906b5d89e92f) {
  color: #fff;
}
.nav-menu-trigger:hover:where(.w-variant-f079fb08-76d2-4e02-e2c2-906b5d89e92f) {
  background-color: #245a42;
}

body {
  opacity: 0;
  font-family: var(--_typography---body);
}

/* Navbar Scroll */
.navbar {
  transition: transform 0.3s ease;
}

.navbar.navbar--hidden {
  transform: translateY(-7rem);
}

.faq--question {
  transition: background-color 0.3s ease;
}

.faq--icon {
  transition: transform 0.3s ease;
}

.faq--question.open .faq--icon {
  transform: rotate(180deg);
}

.faq--question.open {
  background-color: var(--_colors---brown);
}

[data-wf--slot-item-faq--variant="security"] .faq--question.open {
  background-color: var(--_colors---light-dark-grey);
}

.faq--response {
  height: 0;
  overflow: hidden;
}

/* Pricing Slider */
@media (max-width: 991px) {
  .pricing-slider-wrapper {
    position: relative;
  }

  .pricing-slider {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
  }

  .pricing--slide {
    flex-shrink: 0;
  }

  .pricing--slide-titles {
    transition: opacity 0.3s ease;
  }
}

/* ==============================
   SEDRA CUSTOMIZATIONS
   ============================== */

/* Credibility marquee logos: monochrome + 25% smaller */
.icon--marquee {
  filter: grayscale(1) contrast(2);
  mix-blend-mode: multiply;
  transform: scale(0.75);
}

/* Hide Lottie animation (no Sedra equivalent yet) */
.lottie-file {
  display: none;
}

/* Sedra wordmark (replaces Anchor SVG logo) */
.sedra-wordmark {
  font-family: var(--_typography---heading), 'Lora', serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: currentColor;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sedra-logo-mark {
  width: 1.25rem;
  height: 1.25rem;
}

.sedra-wordmark.is--footer {
  font-size: 1.75rem;
}

/* Change-statement band (replaces logo marquee) */
.change-statement {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Narrative section (replaces testimonials carousel) */
.narrative-content {
  max-width: 760px;
  margin: 0 auto;
}

.narrative-body {
  margin-top: 2rem;
}

.pull-quote {
  font-style: italic;
  border-left: 2px solid currentColor;
  padding-left: 1.5rem;
  margin-top: 3rem;
}

/* Hero image: bleed-right container with floating screenshot */
.section.is--home-hero > .container--1264 {
  overflow: visible;
}
.section.is--home-hero .grid--2els {
  overflow: visible;
}
.relative.is--home-hero {
  width: calc(100% + ((100vw - 79rem) / 2) * 0.85);
  overflow: hidden;
}
.home-hero-img-wrapper {
  width: 100% !important;
  border-radius: 0.75rem 0 0 0.75rem !important;
  background: #02403D;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.75rem 1.5rem 1.5rem;
}
.home-hero-img-wrapper .img--100.is--absolute {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 0.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* ==============================
   VISUAL FIXES
   ============================== */

/* Fix 1: Bigger CTA buttons */
.btn:where(.w-variant-f079fb08-76d2-4e02-e2c2-906b5d89e92f) {
  padding: 0.75rem 1.75rem;
  font-size: 1.0625rem;
}

/* Fix 2: Hero H1 descenders clipped — SplitText sets overflow:hidden on each line */
.heading-style-h1 {
  line-height: 1.15;
}
.heading-style-h1 .gsap_split_line {
  overflow: visible !important;
  line-height: 1.15;
  margin-top: -0.1em;
}

/* Fix 3: Section 4 H2 wrapping */
.section.is--home-ai-native .heading-style-h2 {
  font-size: 2.85rem;
}

/* Fix 4: 3 tabs filling full width (was hardcoded 4-col grid) */
.anchor--tabs-menu {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Fix 5: Block header/subtitle sizing + consistent tab image sizes */
.heading-style-h4 {
  font-size: 2.125rem;
}
h2.heading-style-h4 {
  font-weight: 600;
}
.anchor--tab-content .img--anchor-tab {
  max-width: 40rem;
}

/* Fix 6: Tab content — stable skeleton so tabs don't jump */
.w-tab-content {
  overflow: visible;
}
.anchor--tab-content {
  aspect-ratio: auto;
}
/* 6a: Increase gap between image and text (1 line of spacing) */
.anchor--tab-content-inner {
  gap: 1.5rem;
}
/* 6b: Reserve 3 lines of text height, pinned to bottom */
.anchor--tab-content-inner .max--532 {
  min-height: 4.5rem;
  margin-top: auto;
  display: flex;
  align-items: flex-end;
}
/* 6c: Fixed image height per block */
.anchor--tab-content .img--anchor-tab {
  flex: none;
  object-fit: contain;
}
#clients .img--anchor-tab {
  height: 27.75rem;
}
#pricing .img--anchor-tab {
  height: 30.25rem;
}
#zero-effort .img--anchor-tab {
  height: 29rem;
}

/* Fix 7: Section spacing — match 128px block-to-block reference gap */
.section.is--home-features {
  padding-bottom: 0 !important;
}
.section.is--home-testimonials {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.section.is--home-security {
  padding-top: 9.3125rem !important;
  padding-bottom: 9.375rem !important;
}
.section.is--cta {
  padding-top: 5rem !important;
}

/* Fix 8: Legal bar inside CTA section */
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 5rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile: Stop marquee scrolling and wrap logos */
@media (max-width: 767px) {
  .marquee-advanced {
    overflow: visible;
  }

  .marquee-advanced__scroll {
    animation: none !important;
    overflow: visible;
  }

  .marquee-advanced__collection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    animation: none !important;
  }

  .marquee-advanced__item-width {
    flex: 0 0 auto;
  }

  /* Hide gradient overlays on mobile */
  .marquee-advanced .gradient {
    display: none;
  }

  /* Hide hero image on mobile */
  .home-hero-img-wrapper {
    display: none;
  }

  /* Remove aspect ratio from section4-home image */
  .img--100.is--bigger {
    aspect-ratio: auto;
  }

  /* Reduce clients tab image height */
  #clients .img--anchor-tab {
    height: 17.75rem;
  }
}
