/* ===========================
   Landing Page CSS
   Only truly custom styles - use utilities for everything else
   =========================== */

/* =========================
   Section Styles
   ========================= */

.section {
  padding-block: clamp(4rem, 10vh, 6rem);
}

.section__header {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  margin-block-end: clamp(2rem, 5vh, 4rem);
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-green);
  margin-block-end: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink-dark);
  margin: 0 0 1rem 0;
}

.section__description {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--color-ink-body);
  margin: 0;
}

.section-element-header {
  font-size: var(--font-medium-responsive) !important;
}

/* =========================
   Button Modifiers
   ========================= */

.btn--large {
  padding: var(--space-s) var(--space-l) !important;
  font-size: 1.05rem !important;
}

.btn--xl {
  padding: 1rem 2rem !important;
  font-size: 1.125rem !important;
  border-radius: 0.75rem !important;
}

/* =========================
   Trust Bar
   ========================= */

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
}

.trust-logo {
  height: 2.5rem;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;

  html[data-theme="dark"] & {
    filter: grayscale(100%) invert(1);
    mix-blend-mode: lighten;
  }

  @media (prefers-color-scheme: dark) {
    html:not([data-theme]) & {
      filter: grayscale(100%) invert(1);
      mix-blend-mode: lighten;
    }
  }
}

/* =========================
   Landing Card (hover effect)
   ========================= */

.landing-card {
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.landing-card:hover {
  box-shadow:
    0 0 0 1px oklch(var(--lch-always-black) / 0.02),
    0 0.3em 1.2em -0.5em oklch(var(--lch-always-black) / 0.15),
    0 0.5em 1.8em -0.8em oklch(var(--lch-always-black) / 0.2);
  transform: translateY(-3px);
  border-color: var(--color-green-light);
}

/* =========================
   Pain Card Icon Colors
   ========================= */

.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-icon svg {
  width: 24px;
  height: 24px;
}

.pain-icon--red {
  background: #fef2f2;
  color: #dc2626;
}
.pain-icon--orange {
  background: #fff7ed;
  color: #ea580c;
}
.pain-icon--yellow {
  background: #fefce8;
  color: #ca8a04;
}
.pain-icon--purple {
  background: #faf5ff;
  color: #9333ea;
}
.pain-icon--blue {
  background: #eff6ff;
  color: #2563eb;
}
.pain-icon--teal {
  background: #f0fdfa;
  color: #0d9488;
}
.pain-icon--green {
  background: var(--color-green-light);
  color: var(--color-green);
}

/* =========================
   Step Number Badge
   ========================= */

.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background-color: var(--color-green-light);
  color: var(--color-green);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
}

/* =========================
   Quote Styling
   ========================= */

.quote {
  font-style: italic;
  line-height: 1.7;
  color: var(--color-ink-body);
  margin: 0;
  padding: 0;
  border: none;
}

/* =========================
   Back to Top Button
   ========================= */

.website-body .back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 2.4rem;
  z-index: 99;
}

/* =========================
   Responsive - Grid adjustments
   ========================= */

@media (max-width: 900px) {
  .grid.grid-3.testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .pain-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .pain-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================
   Contact Form
   ========================= */

/* Contact form - minimal overrides for landing page context */
.contact-form textarea.form__input {
  min-block-size: 5lh;
}

/* Hide element when grid stacks (below 50rem, same as grid-2 breakpoint) */
@media (max-width: 50rem) {
  .hide-when-stacked {
    display: none !important;
  }
}

/* Page layout with sidebar */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 70rem) {
  .page-layout {
    grid-template-columns: 1fr 24rem;
    gap: 4rem;
  }
}
