/* ==========================================================================
   RAMOJI STUDIO — ON-PRODUCTION FACILITIES PAGE STYLESHEET
   Matching Hospitality, Stages, Locations & Custom Sets Design System
   ========================================================================== */

/* Hero Header (#sd-fiveb) */
#sd-fiveb {
  position: relative;
  z-index: 10;
  background: var(--primary-clr);
  color: #ffffff;
  box-sizing: border-box;
  width: 100%;
  height: 85vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 13vh 2.3vw 0;
}

.sd-fac-hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  filter: grayscale(1) brightness(1.5);
}

.sd-fac-hero-bg img {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 52vh;
  object-fit: cover;
  object-position: bottom center;
  display: block;
}

#sd-fiveb .sd-fmt-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1300px;
  width: 100%;
}

#sd-fiveb .sd-fmt-header h1 {
  /* font-family: Anton, sans-serif;
  font-size: clamp(34px, min(5.2vw, 10.5vh), 92px);
  font-weight: 400; */
  line-height: 1.0;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 1.2vh 0 2vh;
  text-wrap: balance;
}

#sd-fiveb .sd-fmt-header p {
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 400;
  line-height: 1.28;
  color: #f1efea;
  margin: 0 auto;
  max-width: 920px;
}

.sd-breadcrumbs {
  font-family:
    "Geist",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.8vh;
}

.sd-breadcrumbs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.sd-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.sd-breadcrumbs .sd-bc-sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.35);
}

.sd-breadcrumbs .sd-bc-current,
.sd-breadcrumbs span:last-child {
  color: #ffffff;
  font-weight: 400;
}

/* ==========================================================================
   GLOBAL SECTION SPACING & HEADERS
   ========================================================================== */
.sd-fac-section {
  position: relative;
  z-index: 7;
  background: #ffffff;
  color: var(--primary-clr);
  box-sizing: border-box;
  width: 100%;
  padding: clamp(90px, 12vh, 160px) 2.3vw clamp(100px, 14vh, 180px);
}

.sd-fac-section.sd-fac-alt {
  background: #f8f7f4;
}

.sd-fac-container {
  width: 100%;
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
}

.sd-fac-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(48px, 6vw, 76px);
  max-width: 1080px;
}

.sd-mini-title,
.sd-fac-eyebrow {
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 400;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 4px;
  display: block;
}

.sd-fac-title {
  font-family: Anton, sans-serif;
  font-size: clamp(34px, 4.4vw, 68px);
  font-weight: 400;
  letter-spacing: 0px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--primary-clr);
  margin: 0 0 14px 0;
}

.sd-fac-desc {
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-size: clamp(20px, 1.5vw, 25px);
  font-weight: 400;
  line-height: 1.55;
  color: #4a4742;
  margin: 0;
}

/* ==========================================================================
   FACILITY ACCORDION SECTION (#sd-fac-hub) — REPLICATING CUSTOM SETS DESIGN
   ========================================================================== */
#sd-fac-hub {
  position: relative;
  z-index: 7;
  background: #ffffff;
  color: var(--primary-clr);
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh 2.3vw 12vh;
  overflow: visible;
}

.sd-vr-title-wrap {
  background: #fff;
  padding: 10vh 2.3vw 0;
}

.sd-vr-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
  width: 100%;

  margin-left: auto;
  margin-right: auto;
}

.sd-vr-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.sd-vr-main-title {
  font-family: Anton, sans-serif;
  font-size: clamp(28px, min(4.2vw, 8.5vh), 78px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0px;
  text-align: left;
  text-transform: uppercase;
  color: var(--primary-clr);
  text-wrap: balance;
  margin-bottom: 24px;
}

.sd-vr-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  width: 100%;
}

.sd-vr-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 22px 0;
  cursor: pointer;
  outline: none;
  transition: border-color 0.4s ease;
}

.sd-vr-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sd-vr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sd-vr-title {
  margin: 0;
  font-family: Anton, sans-serif;
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 400;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0px;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

.sd-vr-num {
  font-family: Anton, sans-serif;
  font-size: 0.85em;
  opacity: 0.7;
  font-weight: 400;
}

.sd-vr-toggle {
  font-family:
    "Geist",
    -apple-system,
    sans-serif;
  font-size: 32px;
  font-weight: 200;
  line-height: 1;
  color: var(--grey);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.4s ease;
  user-select: none;
  flex-shrink: 0;
}

.sd-vr-toggle::before {
  content: "+";
  font-weight: 200;
}

/* Butter-Smooth CSS Grid Accordion Expansion */
.sd-vr-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.sd-vr-content-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.sd-vr-content p {
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.55;
  color: var(--primary-clr);
  margin: 18px 0 0 0;
  max-width: 95%;
  font-weight: 400;
}

/* Action Button */
.sd-vr-content .sd-btn {
  background: #e31e24;
  color: #ffffff;
  border: 1px solid #e31e24;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-main, "Geist", sans-serif);
  font-size: clamp(16px, 1.25vw, 21px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.sd-vr-content .sd-btn:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  transform: translateY(-2px);
}

/* Active Accordion Item Styles */
.sd-vr-item.active {
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.sd-vr-item.active .sd-vr-title {
  color: #000000;
}

.sd-vr-item.active .sd-vr-toggle {
  color: #000000;
}

.sd-vr-item.active .sd-vr-toggle::before {
  content: "−";
  font-weight: 200;
}

.sd-vr-item.active .sd-vr-content {
  grid-template-rows: 1fr;
}

.sd-vr-item.active .sd-vr-content-inner {
  opacity: 1;
  transform: translateY(0);
}

/* Visual Viewport on the Right (4:3 Aspect Ratio) */
.sd-vr-viewport {
  position: relative;
  background: #f1efea;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-vr-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.sd-vr-img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* ==========================================================================
   AN INTEGRATED PRODUCTION ECOSYSTEM (#sd-five HOMEPAGE SERVICES REPLICATION)
   ========================================================================== */
#sd-five {
  position: relative;
  z-index: 10;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vh, 60px);
  padding: clamp(90px, 12vh, 150px) 2.3vw;
  box-sizing: border-box;
  width: 100%;
  min-height: 85vh;
  height: auto;
  overflow: visible;
}

#sd-five h2 {
  font-family: Anton, sans-serif;
  font-size: clamp(28px, min(4.5vw, 8vh), 80px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0px;
  text-align: center;
  margin: 0;
  max-width: 80vw;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--primary-clr);
}

#sd-svcs {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  gap: clamp(16px, 1.2vw, 24px);
  height: auto;
  overflow: visible;
  flex-shrink: 0;
}

.sd-svc {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
  text-decoration: none;
  transition:
    flex 0.55s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.35s ease;
  will-change: flex, transform;
}

#sd-svcs:hover .sd-svc {
  flex: 0.82 1 0;
}

#sd-svcs .sd-svc:hover {
  flex: 1.88 1 0;
  transform: translateY(-4px);
}

.sd-svc-bg {
  position: relative;
  width: 100%;
  height: clamp(300px, 44vh, 480px);
  overflow: hidden;
  border-radius: 0;
  background: var(--primary-clr);
  flex-shrink: 0;
}

.sd-svc h3 {
  margin: 16px 0 0 0;
  padding: 0;
  height: auto;
  display: block;
  font-family: var(--font-main, 'Geist', sans-serif);
  font-weight: 600;
  font-size: clamp(15px, 1.2vw, 22px);
  line-height: 1.2;
  letter-spacing: 0px;
  color: #111111;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  transition: color 0.3s ease;
}

.sd-svc:hover h3 {
  color: #e31e24;
}

.sd-svc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  opacity: 1 !important;
  filter: grayscale(100%);
  mix-blend-mode: normal;
  transition:
    filter 0.45s ease,
    transform 0.45s ease;
  pointer-events: none;
}

.sd-svc:hover .sd-svc-img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

#sd-five-cta {
  background: #e31e24;
  color: #ffffff;
  border: 1px solid #e31e24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(38px, 2.9vw, 52px);
  padding: 0 clamp(14px, 1.5vw, 30px);
  font-family: var(--font-main, "Geist", sans-serif);
  font-size: clamp(16px, 1.25vw, 21px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  box-sizing: border-box;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
  margin-top: clamp(28px, 4vh, 52px);
  flex-shrink: 0;
}

#sd-five-cta:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  opacity: 1 !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   WIDE SHOWCASE BANNER ("FOCUS ON THE STORY. WE'LL HANDLE THE REST.")
   ========================================================================== */
.sd-fac-showcase-box {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: clamp(340px, 48vh, 600px);
  overflow: hidden;
  margin-top: clamp(40px, 5vh, 64px);
  background: var(--primary-clr);
}

.sd-fac-showcase-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.sd-fac-showcase-box:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .sd-fac-ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .sd-vr-container {
    grid-template-columns: 1fr;
    gap: 40px;

    margin-left: auto;
    margin-right: auto;
  }

  .sd-vr-viewport {
    aspect-ratio: 16 / 10;
    min-height: 360px;
  }

  .sd-fac-showcase-box {
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   FACILITIES BENTO SECTIONS (SPLIT HEADER + 4 FEATURE CARDS + BENTO GRID)
   ========================================================================== */
#sd-fac-props,
#sd-fac-powerhouse,
#sd-fac-virtual,
#sd-fac-mocap {
  background: #fbf9f4;
  padding: clamp(40px, 10vh, 140px) 4vw;
  position: relative;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sd-props-container {
  width: 100%;
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
}

/* 2-Column Split Header matching ramojistudio.com/facilities */
.sd-fac-split-header {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
  margin-bottom: clamp(36px, 4.5vh, 56px);
}

.sd-fac-split-left {
  max-width: 780px;
}

.sd-fac-split-left .sd-mini-title {
  font-weight: 400;
  margin-bottom: 8px;
}

.sd-fac-section-title {
  font-family: Anton, sans-serif;
  font-size: clamp(26px, 3.8vw, 60px);
  font-weight: 400;
  letter-spacing: 0px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--primary-clr);
  margin: 0 0 20px 0;
  text-wrap: balance;
}

.sd-props-desc-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sd-props-desc {
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0;
  font-weight: 400;
}

/* Right Column: 4 Feature Cards Grid (No Hover Effects, Clean Palette) */
.sd-fac-split-right {
  width: 100%;
}

.sd-fac-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.sd-fac-feat-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: clamp(18px, 1.8vw, 24px);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sd-fac-feat-icon {
  font-size: 26px;
  color: var(--primary-clr);
  line-height: 1;
}

.sd-fac-feat-title {
  font-family: Anton, sans-serif;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 400;
  color: var(--primary-clr);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0px;
}

.sd-fac-feat-desc {
  font-family: "Geist", sans-serif;
  font-size: clamp(17px, 1.15vw, 20px);
  line-height: 1.45;
  color: #666666;
  margin: 0;
}

/* Full-Width Bento Grid of Clean Images (No Radius, No Hover Zoom) */
.sd-props-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
  width: 100%;
}

.sd-props-card {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 0;
  min-height: 380px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.sd-props-card-lg {
  grid-column: span 7;
  min-height: clamp(380px, 48vh, 520px);
}

.sd-props-card-md {
  grid-column: span 5;
  min-height: clamp(380px, 48vh, 520px);
}

.sd-props-card-sm {
  grid-column: span 4;
  min-height: clamp(300px, 38vh, 420px);
}

.sd-props-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.sd-props-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1120px) {
  .sd-fac-split-header {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 1024px) {

  .sd-props-card-lg,
  .sd-props-card-md {
    grid-column: span 6;
    min-height: 360px;
  }

  .sd-props-card-sm {
    grid-column: span 6;
    min-height: 320px;
  }

  .sd-props-card-sm:last-child {
    grid-column: span 12;
  }
}

@media (max-width: 680px) {
  #sd-fiveb {
    height: auto;
    min-height: 480px;
    padding: 14vh 5vw 4vh;
  }

  #sd-fiveb .sd-fmt-header p {
    font-size: 20px;
  }



  .sd-fac-feat-grid {
    grid-template-columns: 1fr;
  }

  .sd-fac-ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .sd-vr-main-title {
    font-size: clamp(26px, 6.5vw, 40px);
  }

  .sd-vr-title {
    font-size: 18px;
  }

  .sd-vr-content p {
    font-size: 16px;
  }

  .sd-props-card-lg,
  .sd-props-card-md,
  .sd-props-card-sm,
  .sd-props-card-sm:last-child {
    grid-column: span 12;
    min-height: 260px;
  }

  #sd-fac-props,
  #sd-fac-powerhouse,
  #sd-fac-virtual,
  #sd-fac-mocap,
  .sd-fac-section,
  #sd-fac-hub,
  #sd-hospitality-testimonials {
    padding: 50px 5vw;
  }

}