/**
 * RNH Interiors brand overrides (logo, video picker, BA, footer).
 * Hero height stays at Elevated/Orchid 88vh via ogi-hero.css — do not force 100vh.
 */

.ehd-google-pill--studio {
  gap: 0.75rem;
  justify-content: center;
  text-align: center;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.ehd-google-pill--studio .ehd-google-pill__copy {
  flex: 1;
  align-items: center;
  text-align: center;
}

.ehd-google-pill--studio .ehd-google-pill__copy strong {
  display: block;
  text-align: center;
}

.ehd-google-pill--studio .ehd-google-pill__copy span {
  text-align: center;
}

.ehd-google-pill--studio .ehd-google-pill__cta {
  margin-left: 0;
}

/* Pull RNH + Interiors closer (stacked hero brand) */
.ogi-hero__copy .ogi-hero__brand-line h1 {
  margin-bottom: 0 !important;
  line-height: 0.78em !important;
}

.ogi-hero__copy .ogi-hero__brand-line--end {
  margin-top: -0.32em;
}

.ogi-hero__copy .ogi-hero__brand-line--end h1 {
  margin-bottom: 0.7rem !important;
}

/* Header logo: official RNH mark, transparent PNG, same Elevated sizing */
.ehd-brand-lockup .logo-main,
.ehd-brand-lockup .logo-scroll,
.ehd-brand-lockup .logo-mobile {
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

header.transparent:not(.smaller) .ehd-brand-lockup .logo-main,
header.transparent:not(.smaller) .ehd-brand-lockup .logo-mobile {
  content: unset;
  filter: none;
}

header #logo .ehd-brand-lockup img.logo-main,
header #logo .ehd-brand-lockup img.logo-scroll,
header #logo .ehd-brand-lockup img.logo-mobile,
.ehd-brand-lockup img.logo-main,
.ehd-brand-lockup img.logo-scroll,
.ehd-brand-lockup img.logo-mobile {
  max-height: 72px !important;
  height: 72px !important;
  width: auto !important;
  max-width: min(280px, 42vw) !important;
}

@media (max-width: 991px) {
  header #logo .ehd-brand-lockup img.logo-main,
  header #logo .ehd-brand-lockup img.logo-scroll,
  header #logo .ehd-brand-lockup img.logo-mobile,
  .ehd-brand-lockup img.logo-main,
  .ehd-brand-lockup img.logo-scroll,
  .ehd-brand-lockup img.logo-mobile {
    max-height: 56px !important;
    height: 56px !important;
  }
}

/* Footer uses the white logo mark instead of text wordmark */
.ogi-footer-brand .ehd-footer-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  margin: 0 0 1rem;
}

.ogi-footer-brand .ehd-footer-wordmark .ehd-wordmark {
  display: none !important;
}

.ogi-footer-brand .ehd-footer-logo {
  display: block !important;
  height: 72px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  background: transparent;
}

/* Logo-only lockup: drop the old 200px text-wordmark min width */
header #logo {
  min-width: 0;
}

/* One logo visible at a time (overrides any display:block blanket) */
header #logo .ehd-brand-lockup img.logo-scroll,
header #logo .ehd-brand-lockup img.logo-mobile {
  display: none !important;
}

header #logo .ehd-brand-lockup img.logo-main {
  display: block !important;
}

/* Scrolled header is dark (rgba 13,13,13) — keep the white mark, never the black scroll logo */
header.smaller #logo .ehd-brand-lockup img.logo-main {
  display: block !important;
}

header.smaller #logo .ehd-brand-lockup img.logo-scroll {
  display: none !important;
}

@media (max-width: 767px) {
  header #logo .ehd-brand-lockup img.logo-main,
  header #logo .ehd-brand-lockup img.logo-scroll {
    display: none !important;
  }

  header #logo .ehd-brand-lockup img.logo-mobile {
    display: block !important;
  }
}

/* Mellodia video picker — near-fullscreen modal (clips are square, not 9:16) */
.ehd-video-modal {
  padding: 0.65rem !important;
  align-items: center;
}

.ehd-video-modal__panel.rnh-video-modal__panel,
.rnh-video-modal__panel {
  width: min(96vw, 1180px) !important;
  max-width: min(96vw, 1180px) !important;
  max-height: 96vh !important;
  padding: 2.85rem 1.1rem 1rem !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rnh-video-modal__panel .ehd-video-modal__player {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  max-height: min(78vh, 900px) !important;
  height: auto !important;
  flex: 0 1 auto;
  margin: 0 auto;
}

.rnh-video-modal__panel .ehd-video-modal__video,
.ehd-video-modal__player .ehd-video-modal__video {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #000;
}

.rnh-video-picker {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0.85rem 0.15rem 0.35rem;
  margin-top: 0.5rem;
  scrollbar-width: thin;
  flex: 0 0 auto;
}

.rnh-video-picker__btn {
  flex: 0 0 auto;
  width: 6.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f5;
  border-radius: 0.55rem;
  padding: 0.35rem;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rnh-video-picker__btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.35rem;
  display: block;
  margin-bottom: 0.35rem;
}

.rnh-video-picker__btn span {
  display: block;
  font-size: 0.68rem;
  line-height: 1.25;
  opacity: 0.85;
}

.rnh-video-picker__btn.is-active,
.rnh-video-picker__btn[aria-pressed="true"] {
  border-color: rgba(245, 245, 245, 0.85);
  background: rgba(255, 255, 255, 0.14);
}

.rnh-video-picker__btn:hover,
.rnh-video-picker__btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

@media (min-width: 1100px) {
  .ehd-video-modal__panel.rnh-video-modal__panel,
  .rnh-video-modal__panel {
    width: min(94vw, 1320px) !important;
    max-width: min(94vw, 1320px) !important;
  }

  .rnh-video-modal__panel .ehd-video-modal__player {
    max-height: min(82vh, 980px) !important;
  }
}

@media (max-width: 767px) {
  .ehd-video-modal__panel.rnh-video-modal__panel,
  .rnh-video-modal__panel {
    width: min(100vw - 0.5rem, 100%) !important;
    max-width: 100% !important;
    max-height: 98vh !important;
    padding: 2.5rem 0.55rem 0.65rem !important;
  }

  .rnh-video-modal__panel .ehd-video-modal__player {
    max-height: min(62vh, 520px) !important;
  }
}

/* Before/after: full travel + mobile */
.ehd-ba__stage {
  touch-action: none;
  user-select: none;
}

.ehd-ba__range {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: 44px;
}

@media (max-width: 767px) {
  .ehd-ba__thumbs {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }

  .ehd-ba__thumb {
    flex: 0 0 auto;
    min-width: 9.5rem;
  }

  .ehd-ba__tag {
    font-size: 0.7rem;
  }
}

/* Homepage jarallax / about photo containment (fix “giant image” glitch) */
.ogi-testimonials.jarallax {
  min-height: 420px;
  max-height: 620px;
  overflow: hidden;
}

.ogi-testimonials .jarallax-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.ehd-home-about .ehd-about-photo,
.ehd-home-about img.w-100 {
  max-height: 420px;
  width: 100%;
  object-fit: cover;
}

.ehd-card-hover__media img,
.ehd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No hover tip bars on service cards (title below is enough) */
.ehd-card-hover__tip {
  display: none !important;
}

/* Footer: copyright flush left, legal centered, credit right */
.ogi-subfooter-row {
  align-items: center;
}

.ogi-subfooter-copy {
  text-align: left !important;
  margin: 0;
  padding-left: 0;
}

.ogi-subfooter-legal {
  text-align: center !important;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.ogi-designed-by {
  display: inline-flex;
  justify-content: flex-end;
  width: 100%;
}

@media (max-width: 991px) {
  .ogi-subfooter-copy,
  .ogi-subfooter-legal,
  .ogi-designed-by {
    text-align: center !important;
    justify-content: center;
  }
}

/* Page heroes: force real RNH gallery cover when jarallax uses generic bg */
.rnh-page-hero .jarallax-img {
  object-fit: cover;
  object-position: center;
}

/* Blog: light journal (never full-page dark mode) */
.ehd-blog-page,
.ehd-blog-section.ehd-blog-page {
  background: #f7f1e8 !important;
  color: #1a1714;
}

.ehd-blog-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 991px) {
  .ehd-blog-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ehd-blog-grid--3 {
    grid-template-columns: 1fr;
  }
}

.ehd-blog-page .ehd-blog-card__title a,
.ehd-blog-page .ehd-blog-card__excerpt,
.ehd-blog-page .ehd-post-body,
.ehd-blog-page .ehd-post-deck,
.ehd-blog-page .ehd-blog-body {
  color: #1a1714 !important;
}

.ehd-blog-page .ehd-blog-body a,
.ehd-blog-page .ehd-post-body a {
  color: #8a6a3a !important;
}

.ehd-post-panel {
  max-width: 760px;
  margin: 0 auto;
}

.ehd-post-deck {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #5c5348 !important;
}

.ehd-post-feature {
  max-height: 420px;
  object-fit: cover;
}

