/* ==========================================================================
   RAMOJI STUDIO — STAGES PAGE STYLESHEET
   ========================================================================== */

/* 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-stages-hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4.5vh;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  filter: grayscale(1) brightness(1.3);
}

.sd-stages-hero-bg img {
  width: 100%;
  min-width: 100%;
  max-width: none;
  height: auto;
  max-height: 48vh;
  object-fit: cover;
  object-position: bottom center;
  display: block;
  transform: translateY(2vh);
}

#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 {
  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: 860px;
}

.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;
}

/* Section: Sound Stages Grid (#sd-stages) */
#sd-stages {
  position: relative;
  z-index: 7;
  background: #f1efea;
  color: var(--primary-clr);
  box-sizing: border-box;
  width: 100%;
  padding: var(--comm-spc);
}

#sd-stages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.8vw;
  row-gap: 2vw;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Sound Stage Card (White flat card, no borders, no radius, no shadow, on #F1EFEA section) */
.sd-stage-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: clamp(24px, 2.2vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  box-sizing: border-box;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sd-stage-card:hover {
  box-shadow: none;
}

/* Stage Card Indicator Toggle (Plus to Cross on Hover) */
.sd-stage-toggle {
  position: absolute;
  top: clamp(24px, 2.2vw, 36px);
  right: clamp(24px, 2.2vw, 36px);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    background-color 0.4s ease;
}

.sd-stage-toggle::before,
.sd-stage-toggle::after {
  content: "";
  position: absolute;
  background-color: var(--primary-clr, #111111);
  border-radius: 1px;
  transition: background-color 0.4s ease;
}

/* Horizontal bar of plus */
.sd-stage-toggle::before {
  width: 14px;
  height: 2px;
}

/* Vertical bar of plus */
.sd-stage-toggle::after {
  width: 2px;
  height: 14px;
}

/* On hover / focus / active card: rotate 45deg (smoothly morphs plus to cross) & switch to white */
.sd-stage-card:hover .sd-stage-toggle,
.sd-stage-card:focus-within .sd-stage-toggle,
.sd-stage-card.is-active .sd-stage-toggle {
  transform: rotate(45deg);
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.12);
}

.sd-stage-card:hover .sd-stage-toggle::before,
.sd-stage-card:hover .sd-stage-toggle::after,
.sd-stage-card:focus-within .sd-stage-toggle::before,
.sd-stage-card:focus-within .sd-stage-toggle::after,
.sd-stage-card.is-active .sd-stage-toggle::before,
.sd-stage-card.is-active .sd-stage-toggle::after {
  background-color: #ffffff;
}

.sd-stage-top {
  display: flex;
  flex-direction: column;
  padding-right: 40px;
}

.sd-stage-tag {
  font-family:
    "Geist",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: clamp(10.5px, 0.72vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0px;
  color: var(--grey);
  font-weight: 600;
  margin-bottom: 8px;
}

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

.sd-stage-subtitle {
  font-family: Anton, sans-serif;
  font-size: clamp(16px, 0.85vw, 14px);
  font-weight: 400;
  color: #7a766f;
  margin-top: 4px;
  margin-bottom: 14px;
}

.sd-stage-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0 0 14px 0;
  width: 100%;
}

/* Bottom Aligned Specs (Divider + 2x2 Grid with 20px typography) */
.sd-stage-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.sd-stage-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 12px;
  column-gap: 16px;
  align-items: center;
}

.sd-spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 500;
  color: var(--primary-clr);
}

.sd-spec-item i {
  font-size: 1.1em;
  color: var(--primary-clr);
  flex-shrink: 0;
}

/* Slide-Up Detail Panel on Hover */
.sd-stage-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: 100%;
  background: var(--primary-clr);
  color: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 2.2vw, 36px);
  transform: translateY(102%);
  transition: transform 0.5s var(--ease-custom);
  pointer-events: none;
}

.sd-stage-card:hover .sd-stage-panel,
.sd-stage-card:focus-within .sd-stage-panel,
.sd-stage-card.is-active .sd-stage-panel {
  transform: translateY(0);
  pointer-events: auto;
}

.sd-stage-panel-top {
  display: flex;
  flex-direction: column;
}

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



/* Responsive Grid */
@media (max-width: 1024px) {
  #sd-stages {
    padding: 6vh 4vw 10vh;
  }

  #sd-stages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5vw;
    row-gap: 2.5vw;

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

  #sd-fiveb {
    height: 70vh;
    min-height: 520px;
    padding: 12vh 4vw 0;
  }


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

@media (max-width: 680px) {
  #sd-stages-grid {
    grid-template-columns: 1fr;
    row-gap: 2vh;

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

  #sd-fiveb {
    height: auto;
    min-height: 480px;
    padding: 14vh 5vw 4vh;
  }

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

  .sd-stages-hero-bg {
    bottom: 0;
    transform: scale(1.4);
  }

  .sd-stage-panel-desc {
    font-size: 18px;
  }
}