/* Founders Home */
.founders-home {
  position: relative;
  width: 100%;
  /* Kept from the old ±60px column reveal (now replaced by the theme-wide one in
     assets/scroll-reveal.css). `clip`, not `hidden`, so position: sticky still works. */
  overflow-x: clip;
}

.founders-home-inner {
  position: relative;
  width: 100%;
}

/* Grid Layout */
.founders-home-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: stretch;
  width: 100%;
}

@media (min-width: 768px) {
  .founders-home-grid {
    flex-direction: row;
    gap: var(--space-xl);
  }
  
  .founders-home-grid--flipped {
    flex-direction: row-reverse;
  }
}

@media (min-width: 1024px) {
  .founders-home-grid {
    gap: var(--space-2xl);
  }
}

/* Image Column */
.founders-home-image-column {
  width: 100%;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .founders-home-image-column {
    width: 50%;
    max-width: 500px;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .founders-home-image-column {
    max-width: 616px;
  }
}

/* Image Wrapper / Carousel Container */
.founders-home-image-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

@media (min-width: 1024px) {
  .founders-home-image-wrapper {
    height: 100% !important;
  }
}

/* Carousel Slides */
.founders-home-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.founders-home-slide--active {
  opacity: 1;
  z-index: 2;
}

.founders-home-slide:first-child {
  position: relative;
}

.founders-home-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.founders-home-image--fit {
  object-fit: contain;
  object-position: center;
}

.founders-home-image--fill {
  object-fit: cover;
  object-position: center;
}

.founders-home-image-placeholder {
  width: 100%;
  height: 100%;
  background-color: #E5E5E5;
  display: block;
}

/* Carousel Navigation Dots */
.founders-home-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 10;
}

.founders-home-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
  position: relative;
}

/* Touch target 24x44px = one dot pitch (10px dot + 14px gap), so neighbouring targets never
   overlap. A 44px-wide target let dot 2 cover dot 1 (QA Y-39). */
.founders-home-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 44px;
  border-radius: 0;
}

.founders-home-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.founders-home-dot--active {
  background: rgba(255, 255, 255, 0.9);
}

/* Content Column */
.founders-home-content-column {
  width: 100%;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .founders-home-content-column {
    width: 50%;
    flex: 1;
    min-width: 0;
  }
  
  .founders-home-content-column--no-image {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .founders-home-content-column {
    max-width: 616px;
    flex-shrink: 0;
  }
  
  .founders-home-content-column--no-image {
    max-width: none;
    width: 100%;
  }
}

/* Heading */
.founders-home-heading-wrapper {
  width: 100%;
  min-width: 0;
}

.founders-home-heading {
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
  line-height: 1.5;
}

/* The heading rich-text frequently contains nested elements like
   `<h3><span style="font-size: 36px;">...</span></h3>` that override the
   section's font-size utility classes via inline style. At mobile/tablet
   that reads as massively too big — especially since the "heading" is often
   a full multi-sentence paragraph. Force the heading and every descendant
   element type to a sensible size at smaller breakpoints. Uses two class
   selectors + element targeting for very high specificity, hardcoded
   pixel values (no var() dependency), and !important to beat inline styles.
   Desktop (≥1024px) is untouched so the design-intended size still works. */
@media (max-width: 767px) {
  .founders-home-content-column .founders-home-heading,
  .founders-home-content-column .founders-home-heading h1,
  .founders-home-content-column .founders-home-heading h2,
  .founders-home-content-column .founders-home-heading h3,
  .founders-home-content-column .founders-home-heading h4,
  .founders-home-content-column .founders-home-heading h5,
  .founders-home-content-column .founders-home-heading h6,
  .founders-home-content-column .founders-home-heading p,
  .founders-home-content-column .founders-home-heading span,
  .founders-home-content-column .founders-home-heading strong,
  .founders-home-content-column .founders-home-heading em,
  .founders-home-content-column .founders-home-heading div {
    font-size: 18px !important;
    line-height: 1.45 !important;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .founders-home-content-column .founders-home-heading,
  .founders-home-content-column .founders-home-heading h1,
  .founders-home-content-column .founders-home-heading h2,
  .founders-home-content-column .founders-home-heading h3,
  .founders-home-content-column .founders-home-heading h4,
  .founders-home-content-column .founders-home-heading h5,
  .founders-home-content-column .founders-home-heading h6,
  .founders-home-content-column .founders-home-heading p,
  .founders-home-content-column .founders-home-heading span,
  .founders-home-content-column .founders-home-heading strong,
  .founders-home-content-column .founders-home-heading em,
  .founders-home-content-column .founders-home-heading div {
    font-size: 22px !important;
    line-height: 1.4 !important;
  }
}

/* Body Text */
.founders-home-body-wrapper {
  width: 100%;
  min-width: 0;
}

.founders-home-body {
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
}

/* CTA Button */
.founders-home-cta-wrapper {
  width: 100%;
  margin-top: var(--space-lg);
}

.founders-home-cta-wrapper .btn {
  cursor: pointer;
}

/* Background Image Handling */
.founders-home[data-bg] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.founders-home-inner[data-bg] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  .founders-home-grid {
    flex-direction: column;
  }
  
  .founders-home-image-column,
  .founders-home-content-column {
    width: 100%;
    max-width: 100%;
  }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .founders-home-image-wrapper {
    max-height: 400px;
  }
  
  .founders-home-image {
    height: 100%;
    object-fit: cover;
  }
}

/* Heading/body are richtext blocks rendered into a .rte wrapper. Typography
   lives on the WRAPPER (editor-safe — the WYSIWYG editor cannot strip the
   wrapper's classes). The inner <h2>/<p> inherits font + color from the
   wrapper so typography survives even after the editor rewrites the inner
   tag to a bare element on alignment/format edits. */
.founders-home-heading > *,
.founders-home-body > * {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0 !important;
}
