/* ============================================================
   B•Chemistry — About Page Styles
   ============================================================ */

/* Override hero background image */
.hero-wrap--about {
  background-image: url('../images/about_web_image.jpeg');
  background-position: center top;
}

@media (max-width: 768px) {
  .hero-wrap--about {
    background-image: url('../images/about_mobile_image.png');
  }
}

/* ============================================================
   ABOUT US SECTION
   ============================================================ */
.about-section {
  background-color: #ffffff;
  padding: 80px 24px 90px;
}

.about-inner {
  max-width: 80vw;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-title {
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #2E2E2E;
  text-align: center;
}

.about-body {
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 1.8rem, 2.3rem);
  font-weight: 300;
  color: #2E2E2E;
  line-height: 2.2;
  letter-spacing: 0.01em;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.fade-line {
  display: block;
}

/* Each word wrapper — opacity driven directly by scroll JS, no CSS delay */
.char {
  display: inline-block;
  opacity: 0;
  word-break: normal;
  overflow-wrap: normal;
}

/* ============================================================
   OUR SPACE SECTION — commented out
   ============================================================ */
/*
.space-section {
  background-color: #ffffff;
  padding: 80px 0 0;
}

.space-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.space-title {
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #2E2E2E;
  text-align: center;
}

.space-pin-wrap {
  position: relative;
  margin-top: 35px;
}

.space-image-wrap {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  line-height: 0;
  clip-path: inset(50% 50%);
  z-index: 0;
}

.space-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.space-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.space-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.space-slide--active {
  opacity: 1;
}

.space-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}

.space-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: #fff;
}

.space-arrow--prev { left: 20px; }
.space-arrow--next { right: 20px; }

.space-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
}

.space-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.space-dot--active {
  background: #fff;
  transform: scale(1.25);
}
*/

/* ============================================================
   STEP IN. GLOW OUT. SECTION
   ============================================================ */

.glow-scroll-wrap {
  position: relative;
  height: 200vh;
}

.glow-section {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  /* height: 100dvh; */
  padding-top: 110px;
  padding-bottom: 110px;
  box-sizing: border-box;
}

/* @media (max-width: 768px) {
  .glow-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
} */

.glow-text {
  display: block;
  width: 100%;
  position: relative;
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 6.5vw, 8rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.glow-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 6.5vw, 8rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  background: radial-gradient(
    circle 180px at var(--spotlight-x, -200%) 50%,
    rgba(0, 0, 0, 1)   0%,
    rgba(0, 0, 0, 0.9) 35%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent        100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .about-section {
    padding: 56px 20px 64px;
  }

  .about-inner {
    max-width: 100%;
  }

  .about-title {
    font-weight: 500;
  }

  .about-body {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    line-height: 1.9;
    /* flow as inline text — no forced line-per-span */
    display: block;
  }

  /* hide the span line-breaks — text flows naturally */
  .fade-line {
    display: inline;
  }
}

/* ============================================================
   WHAT WE PROMISE SECTION
   ============================================================ */
.promise-section {
    position: relative;
    margin: 0px 95px 95px;
    padding: 80px 40px;
    background-image: url(../images/promise_frame.png);
    background-size: cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px); /* tall enough to fill screen minus margins */
  box-sizing: border-box;
}

/* Dark overlay so text stays readable over the image */
.promise-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 3, 3, 0.72);
  z-index: 0;
}

.promise-inner {
  position: relative;
  z-index: 1;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.promise-title {
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.10em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.promise-diamond {
  color: #c9a96e;
  font-size: 0.65em;
  display: inline-block;
  opacity: 0.9;
  position: relative;
}

/* Ghost diamond that shoots outward and fades — left diamond goes left, right goes right */
.promise-diamond::after {
  content: '✦';
  position: absolute;
  top: 0;
  left: 0;
  color: #c9a96e;
  opacity: 0;
  animation: diamondShootLeft 1.6s ease-out infinite;
  pointer-events: none;
}

.promise-title .promise-diamond:last-child::after {
  animation: diamondShootRight 1.6s ease-out infinite;
}

@keyframes diamondShootLeft {
  0%   { opacity: 0.8; transform: translateX(0)      scale(1);    }
  100% { opacity: 0;   transform: translateX(-3.5em) scale(0.35); }
}

@keyframes diamondShootRight {
  0%   { opacity: 0.8; transform: translateX(0)     scale(1);    }
  100% { opacity: 0;   transform: translateX(3.5em) scale(0.35); }
}

.promise-sub {
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(0.82rem, 1vw, 1.05rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-top: 4px;
}

.promise-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  margin-top: 24px;
}

.promise-card {
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.promise-card:hover {
  border-color: rgba(201, 169, 110, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

/* Icon rounded box — matches the image */
.promise-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.promise-icon {
  width: 47px;
  height: 47px;
  object-fit: contain;
  opacity: 0.92;
  will-change: transform;
}

/* Continuous gentle float — runs forever, staggered per card */
@keyframes promiseIconFloat {
  0%   { transform: translateY(0);    }
  50%  { transform: translateY(-7px); }
  100% { transform: translateY(0);    }
}

.promise-card-title {
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(0.92rem, 1.1vw, 1.15rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin-bottom: 14px;
}

.promise-card-body {
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(0.78rem, 0.88vw, 0.95rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .promise-diamond {
    font-size: 0.9em;
  }
  .promise-section {
    margin:0px;
  }
}

@media (max-width: 700px) {
  .promise-cards {
    grid-template-columns: 1fr;
  }

  .promise-diamond {
    font-size: 0.9em;
  }
  .promise-section {
    margin:0px;
  }
}

/* ============================================================
   WHAT PEOPLE SAY — CIRCULAR-GALLERY-STYLE ARC CAROUSEL
   ============================================================ */
.reviews-section {
  background-color: #ffffff;
  /* top padding + generous bottom so the arc dip (MAX_DIP=80px)
     plus card rotation is never clipped by this boundary */
  padding: 80px 0 200px;
  overflow: hidden;
}

.reviews-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  width: 100%;
}

/* ── Title — scroll-reveal (JS adds --hidden then --visible) ── */
.reviews-title {
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #2E2E2E;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reviews-title--hidden {
  opacity: 0;
  transform: translateY(32px);
}

.reviews-title--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Track viewport — no overflow or mask.
   Horizontal clipping is handled by .reviews-section above.
   Vertical space lets the arc dip render freely.             */
.reviews-track-wrap {
  width: 100%;
  overflow: visible;
  padding-top: 20px;
  padding-bottom: 10px;
}

/* Scrolling strip — JS drives translateX for seamless loop.
   No padding-inline so edge mask works against the true viewport edge. */
.reviews-track {
  display: flex;
  gap: 28px;
  padding: 0 40px;
  will-change: transform;
  /* JS sets transform per-frame — no CSS transition on transform */
  cursor: grab;
}

.reviews-track:active {
  cursor: grabbing;
}

/* ── Individual card ── */
.review-card {
  flex: 0 0 420px;
  min-height: 360px;
  background: #F8F8F8;
  background-image: url('../images/quotation-mark.svg');
  background-repeat: no-repeat;
  background-position: right 20px top 20px;
  background-size: 110px 110px;
  border-radius: 16px;
  padding: 32px 28px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  /* Center-based transform-origin so arc rotation looks natural */
  transform-origin: center center;
  /* JS drives transform — only shadow transitions via CSS */
  transition: box-shadow 0.3s ease;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

/* Lift + subtle glow on hover */
.review-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* ── Review text ── */
.review-text {
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 300;
  color: #2E2E2E;
  line-height: 1.85;
  flex: 1;
}

/* ── Footer ── */
.review-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d0d0d0;
  flex-shrink: 0;
}

.review-name {
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #2E2E2E;
  flex: 1;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 1rem;
  color: #d0d0d0;
}

.star--fill {
  color: #f5a623;
}

.star--half {
  position: relative;
  color: #d0d0d0;
}

.star--half::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #f5a623;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .reviews-track-wrap {
    padding-bottom: 55px;
  }

  .review-card {
    flex: 0 0 260px;
    min-height: 320px;
    padding: 24px 20px 20px;
  }
}

@media (max-width: 480px) {
  .review-card {
    flex: 0 0 220px;
    min-height: 300px;
  }
}
