@charset "UTF-8";
/* Residential Options Cards */
/* Dynamic colors via custom properties set inline on .ro-section:
   --ro-bg  = section background  → used as card text / button bg
   --ro-fg  = section foreground  → used as card background / button text */
.ro-section {
  font-family: var(--sans-serif);
}

.ro-hr {
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.3;
  margin: 0 0 32px;
}

/* ─── Card Grid ─── */
.ro-cards {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

/* ─── Individual Card ─── */
.ro-card {
  position: relative;
  flex: 0 0 280px;
  perspective: 800px;
}
.ro-card:last-child {
  padding-right: 40px;
  flex-basis: calc(280px + 40px);
}

/* ─── Front Face ─── */
.ro-card-front {
  position: relative;
  background: var(--ro-fg);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  height: 100%;
}
.ro-card.is-flipped .ro-card-front {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ro-card-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 769px) {
  .ro-card-front {
    cursor: pointer;
  }
  .ro-card-desc {
    cursor: default;
  }
}
.ro-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ro-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.ro-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 17px 10px 17px 13px;
  gap: 17px;
}

.ro-card-desc {
  font-size: 16px;
  line-height: 1.3;
  color: var(--ro-bg);
  margin: 0;
}

.ro-card-title {
  font-family: var(--sans-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--ro-bg);
  margin: 0;
}

/* ─── Card Actions (shared) ─── */
.ro-card-actions {
  display: flex;
  align-items: center;
  margin-top: auto;
}
.ro-card-actions .ro-explore-btn {
  margin-left: auto;
}

.ro-flip-btn {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--ro-bg);
  color: var(--ro-fg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.ro-flip-btn svg {
  display: block;
}
.ro-flip-btn:hover, .ro-flip-btn:focus-visible {
  opacity: 0.85;
}

.ro-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border: 1.5px solid var(--ro-bg);
  border-radius: 4px;
  font-family: var(--sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ro-bg);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.ro-explore-btn:hover, .ro-explore-btn:focus-visible {
  background: var(--ro-bg);
  color: var(--ro-fg);
}

/* ─── Back Face ─── */
.ro-card-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ro-fg);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-left: 13px;
  padding-right: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ro-card.is-flipped .ro-card-back {
  opacity: 1;
  pointer-events: auto;
}

.ro-card-back-content {
  flex: 1;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ro-bg);
  overflow-y: auto;
  scrollbar-width: none;
  padding-top: 17px;
  padding-bottom: 40px;
}
.ro-card-back-content::-webkit-scrollbar {
  display: none;
}
.ro-card-back-content p {
  margin: 0 0 12px;
}
.ro-card-back-content p:last-child {
  margin-bottom: 0;
}

.ro-card-back .ro-card-actions {
  position: relative;
  flex-shrink: 0;
  padding-bottom: 17px;
}
.ro-card-back .ro-card-actions::before {
  content: "";
  position: absolute;
  left: -13px;
  right: -10px;
  bottom: 100%;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--ro-fg));
  pointer-events: none;
}

/* ─── Mobile Expanded (hidden on desktop via size, visible to crawlers) ─── */
.ro-card-expanded {
  position: absolute;
  left: 0;
  right: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .ro-cards {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
    width: auto;
    min-width: 0;
    gap: 8px;
  }
  .ro-card {
    flex: none;
    width: 100%;
    height: auto;
    perspective: none;
    position: relative;
  }
  .ro-card:last-child {
    padding-right: 0;
    flex-basis: auto;
  }
  /* Mobile: front becomes a banner */
  .ro-card-front {
    aspect-ratio: 5/2;
    height: auto;
    border-radius: 4px;
    flex-direction: row;
    transition: height 0.4s ease;
    position: relative;
  }
  .ro-card.is-flipped .ro-card-front {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .ro-card.is-expanded .ro-card-front {
    aspect-ratio: unset;
    height: 277px;
    border-radius: 4px 4px 0 0;
  }
  .ro-card-front .ro-card-image {
    height: 100%;
  }
  .ro-card-info {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    pointer-events: none;
  }
  /* Show title centered over image on mobile for post-based cards only */
  .ro-card--titled .ro-card-info {
    position: absolute;
    inset: 0;
    max-height: none;
    opacity: 1;
    overflow: visible;
    padding: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }
  .ro-card--titled .ro-card-title {
    font-family: var(--serif);
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-size: clamp(30px, 4.6vw + 13px, 48px);
    padding: 0 16px;
  }
  .ro-card--titled .ro-card-desc,
  .ro-card--titled .ro-card-info .ro-card-actions {
    display: none;
  }
  /* Desktop back face hidden on mobile */
  .ro-card-back {
    opacity: 0;
    pointer-events: none;
  }
  /* Mobile expanded view */
  .ro-card-expanded {
    position: relative;
    background: var(--ro-fg);
    border-radius: 0 0 4px 4px;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }
  .ro-card.is-expanded .ro-card-expanded {
    opacity: 1;
    pointer-events: auto;
  }
  .ro-card-expanded .ro-card-image {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }
  .ro-card-expanded-body {
    padding: 17px 13px 17px 13px;
    display: flex;
    flex-direction: column;
  }
  .ro-card-expanded .ro-flip-back svg {
    transform: rotate(90deg);
  }
}

/*# sourceMappingURL=residential-options.css.map */
