:root {
  --primary-gold: #e5b567;
  --primary-gold-hover: #f3c87a;
  --dark-main: #0b0b0b;
  --dark-secondary: #f8f6f3;
  --dark-card: rgba(15, 15, 15, 0.85);
  --text-white: #ffffff;
  --text-light: #e0e0e0;
  --text-muted: #cfcfcf;
  --text-dim: #888888;
  --border-gold: rgba(229, 181, 103, 0.4);
  --border-soft: rgba(229, 181, 103, 0.2);
  --gold-gradient: linear-gradient(90deg, #e5b567, #f3c87a);
  --dark-gradient: linear-gradient(135deg, #0b0b0b, #111111);
  --gold-glow: 0 0 20px rgba(229, 181, 103, 0.4);
  --soft-glow: 0 0 40px rgba(229, 181, 103, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Poppins, sans-serif;
  background-color: var(--dark-main);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ════════════════════════════════
     HERO
    ════════════════════════════════ */

.hero {
  position: relative;

  width: 100%;
  min-height: 100vh;

  display: flex;
  align-items: center;

  /* RESPONSIVE BACKGROUND IMAGE */
  background-image: url("image/pain-rel-hero-image.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-position: center 20%;

  padding: clamp(80px, 10vw, 140px) clamp(20px, 8vw, 120px);
  color: white;
}

.overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.35) 35%,
      rgba(0, 0, 0, 0.1) 65%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.15) 30%,
      rgba(0, 0, 0, 0) 60%
    );
}

.hero-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
}

.hero-content {
  max-width: 600px;
}

.tagline {
  font-size: 14px;
  color: #d0d0d0;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.hero-content h1 {
  font-size: clamp(28px, 6vw, 60px);
  line-height: 1.2;
  font-weight: 700;
}

.hero-content span {
  color: #e5b567;
}

.hero-desc {
  margin: 20px 0;
  color: #e0e0e0;
  font-size: clamp(13px, 2vw, 17px);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.btn-primary {
  background: #e5b567;
  color: #000;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.btn-primary:hover {
  /* background: #f3c87a; */
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(196, 107, 45, 0.15);
}

.btn-outline {
  border: 2px solid #e5b567;
  color: #e5b567;
font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
}

.btn-outline:hover {
  background: #e5b567;
	color: #000;
 transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(196, 107, 45, 0.15);
}

/* Section and container common */
.section-label {
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1px;
  /* color: #8b8b8b; */
	color: #e5b567;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: black;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title-in-dark {
  color: white !important;
}

.section-title span {
  color: var(--primary-gold);
}

.section-desc {
  font-size: 16px;
  letter-spacing: 1px;
  color: #8b8b8b;
  margin-bottom: 10px;
}

/* ── SECTION WRAPPER ── */
section {
  padding: 40px 0;
}

.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- About sec ----------- */
.about-section {
  background: var(--dark-secondary);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 60px 0;
}

/* MAIN FLEX */
.about-flex {
  display: flex;
  gap: 60px;
  align-items: stretch;
}

/* LEFT IMAGE */
.about-img-wrap {
  flex: 1;
  position: relative;
  display: flex;
}

.about-img-placeholder {
  width: 100%;
  height: 100%;
}

.about-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--primary-gold);
}

/* BADGE */
.about-badge {
  position: absolute;
  bottom: -40px;
  right: -20px;
  background: var(--dark-card);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 1rem 1.4rem;
  box-shadow: var(--gold-glow);
  text-align: center;
}

.about-badge strong {
  display: block;
  font-size: 2rem;
  color: var(--primary-gold);
}

.about-badge span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* RIGHT CONTENT */
.about-content {
  flex: 1.3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* BENEFITS FLEX */
.benefits-flex {
  display: flex;
  flex-wrap: wrap;
  /* IMPORTANT */
  gap: 14px;
  margin-top: 24px;
}

/* CARD */
.benefit-card {
  flex: 1 1 calc(50% - 10px);
  /* 2 per row */
  min-width: 240px;
  /* prevents shrink issue */

  display: flex;
  gap: 12px;
  padding: 16px;

  background: var(--dark-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;

  transition: 0.3s;
}

.benefit-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--soft-glow);
}

/* ICON */
.benefit-icon {
  font-size: 20px;
  color: var(--primary-gold);
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(229, 181, 103, 0.1);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}

/* TEXT */
.benefit-card strong {
  display: block;
  font-size: 14px;
  color: var(--text-white);
}

.benefit-card span {
  font-size: 12px;
  color: var(--text-dim);
}

/* ════════════════════════════════
   CONDITIONS — FLIP CARDS (FIXED)
════════════════════════════════ */
.conditions-section {
  background: var(--dark-main);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ─────────────────────────────────────
   CARD WRAPPER (3D SPACE)
───────────────────────────────────── */
.condition-card-wrapper {
  background-color: transparent;

  perspective: 1000px;
  -webkit-perspective: 1000px;

  cursor: pointer;
  height: 260px;

  position: relative;
}

/* ─────────────────────────────────────
   ROTATING INNER
───────────────────────────────────── */
.condition-card-inner {
  position: relative;
  width: 100%;
  height: 100%;

  text-align: center;

  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);

  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;

  will-change: transform;
}

/* DESKTOP HOVER */
.condition-card-wrapper:hover .condition-card-inner {
  transform: rotateY(180deg);
}

/* MOBILE / JS SUPPORT */
.condition-card-wrapper.flipped .condition-card-inner {
  transform: rotateY(180deg);
}

/* ─────────────────────────────────────
   SHARED FACE STYLES
───────────────────────────────────── */
.condition-card-front,
.condition-card-back {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border-radius: 12px;
  border: 1px solid var(--border-soft);

  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;

  will-change: transform;
}

/* ─────────────────────────────────────
   FRONT FACE
───────────────────────────────────── */
.condition-card-front {
  background: var(--dark-card);
  color: var(--text-white);

  justify-content: flex-end;

  /* iOS Safari Fix */
  transform: rotateY(0deg) translateZ(1px);
}

/* Image wrapper */
.condition-card-front .condition-img {
  position: absolute;
  inset: 0 0 44px 0;

  width: 100%;
  height: auto;

  margin: 0;
  display: block;

  overflow: hidden;
}

/* Image */
.condition-card-front .condition-img img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 12px 12px 0 0;

  display: block;
}

/* Bottom title */
.condition-card-front h4 {
  position: relative;
  z-index: 2;

  width: 100%;
  min-height: 44px;

  padding: 0.4rem 0.6rem;

  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;

  color: var(--text-white);
  background: var(--dark-card);

  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}


/* Hide front title when card flips */
.condition-card-wrapper:hover .condition-card-front h4,
.condition-card-wrapper.flipped .condition-card-front h4 {
  opacity: 0;
  visibility: hidden;
}

/* Smooth transition */
.condition-card-front h4 {
  transition: opacity 0.2s ease;
}

/* ─────────────────────────────────────
   BACK FACE
───────────────────────────────────── */
.condition-card-back {
  background: var(--dark-card);
  color: var(--text-white);

  border-color: var(--primary-gold);
  box-shadow: var(--soft-glow);

  justify-content: center;

  padding: 1.2rem 1rem;
  gap: 0.5rem;

  /* iOS Safari Fix */
  transform: rotateY(180deg) translateZ(1px);
}

/* Back title */
.condition-card-back .back-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);

  margin: 0 0 0.3rem;
}

/* Back text */
.condition-card-back p {
  font-size: 0.82rem;
  line-height: 1.65;

  color: var(--text-muted);

  margin: 0;
}

/* ════ RESPONSIVE ════ */

@media (min-width: 1025px) {
  .conditions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .conditions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .condition-card-wrapper {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .condition-card-wrapper {
    height: 220px;
  }
  .condition-card-back p {
    font-size: 0.78rem;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  .conditions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .condition-card-wrapper {
    height: 200px;
  }
  .condition-card-front h4 {
    font-size: 0.75rem;
    min-height: 40px;
    padding: 0.35rem 0.4rem;
  }
  .condition-card-front .condition-img {
    inset: 0 0 40px 0; /* match the smaller h4 height */
  }
  .condition-card-back p {
    font-size: 0.74rem;
  }
}

/* ════════════════════════════════
     MODALITIES
  ════════════════════════════════ */
.modalities-section {
  background: var(--dark-secondary);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.modalities-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.modalities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.modality-card {
  background: var(--dark-card);
  border: 1px solid var(--primary-gold);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.modality-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--soft-glow);
}

.modality-img {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.72rem;
  border-radius: 12px;
}

.modality-img img {
  width: 100%;
  height: 100%;
}

.modality-body {
  padding: 1.2rem;
}

.modality-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

/* ════════════════════════════════
     TREATMENT APPROACH
  ════════════════════════════════ */
.approach-section {
  background: var(--dark-main);
}

.steps-track {
  display: flex;
  gap: 0;
  margin-top: 3rem;
  position: relative;
}

.steps-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(10% + 20px);
  right: calc(10% + 20px);
  height: 1px;
  background: var(--border-soft);
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 0 0.5rem;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark-card);
  border: 1.5px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-gold);
  box-shadow: var(--gold-glow);
  transition: all 0.3s;
  isolation: isolate;
}

.step-item:hover .step-num {
  background: var(--dark-card);

  box-shadow: 0 0 30px rgba(229, 181, 103, 0.5);
}

.section-title-approach {
  color: #cfcfcf;
}

.step-icon {
  font-size: 20px;
  color: var(--primary-gold);
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(229, 181, 103, 0.1);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  margin: 0 auto 0.75rem;
}

.step-item h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ════════════════════════════════
     BEYOND RELIEF
  ════════════════════════════════ */
.beyond-section {
  background: var(--dark-secondary);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.beyond-card {
  background: var(--dark-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s;
}

.beyond-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--soft-glow);
  transform: translateY(-3px);
}

.beyond-icon {
  font-size: 20px;
  color: var(--primary-gold);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(229, 181, 103, 0.1);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  margin: 0 auto 0.8rem;
}

.beyond-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.3rem;
}

.beyond-card p {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ════════════════════════════════
     FAQ
  ════════════════════════════════ */
.faq-section {
  background: var(--dark-main);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.faq-list {
  margin-top: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--primary-gold);
}

.faq-question.active {
  color: var(--primary-gold);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(229, 181, 103, 0.08);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.faq-question.active .faq-chevron {
  background: rgba(229, 181, 103, 0.15);
  border-color: var(--border-gold);
  transform: rotate(180deg);
}

.faq-chevron svg {
  width: 12px;
  height: 12px;
  color: var(--primary-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}

.faq-answer.open {
  max-height: 200px;
  padding-bottom: 1.2rem;
}

.faq-answer p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.faq-img-wrap {
  position: relative;
}

.faq-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.faq-img-placeholder img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* ════════════════════════════════
     RESPONSIVE (media queris)
  ════════════════════════════════ */

@media (max-width: 1024px) {
  /* .conditions-grid {
        grid-template-columns: repeat(3, 1fr);
    } */

  .hero {
    background-position: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.95) 30%,
      rgba(0, 0, 0, 0.65) 55%,
      rgba(0, 0, 0, 0.2)
    );
  }

  .beyond-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modalities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-flex {
    gap: 30px;
  }

  .benefit-card {
    flex: 1 1 100%;
    /* full width if space less */
  }
}

@media (max-width: 768px) {
  /* .conditions-grid {
        grid-template-columns: repeat(2, 1fr);
    } */
  .modality-img {
    height: 250px;
  }
  section {
    padding: 40px 0;
  }

  .hero {
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-orb {
    display: none;
  }

  .hero-image-wrap {
    order: -1;
  }

  .hero-img-placeholder {
    width: min(280px, 80vw);
    aspect-ratio: 4/3;
  }

  .about-flex {
    flex-direction: column;
  }

  .about-img-wrap {
    display: none;
    /* hide image */
  }

  .benefits-flex {
    flex-direction: column;
  }

  .benefit-card {
    width: 100%;
  }

  .beyond-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modalities-grid {
    grid-template-columns: 1fr;
  }

  .modalities-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .steps-track {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .steps-track::before {
    display: none;
    /* remove horizontal line */
  }

  .step-item {
    width: 100%;
    max-width: 600px;
    /* prevents stretching */

    display: grid;
    grid-template-columns: 60px 50px 1fr;
    align-items: center;
    gap: 16px;

    text-align: left;
  }

  .step-num {
    width: 48px;
    height: 48px;
    font-size: 16px;
    flex-shrink: 0;
  }

  .step-item h4 {
    font-size: 16px;
  }

  .step-item p {
    font-size: 13px;
    max-width: 420px;
    /* stops long stretching */
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-img-wrap {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 100dvh;
    padding: 120px 20px 80px;
    background-size: cover;
    background-position: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-outline {
    width: 300px;
  }

  .overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.95),
      rgba(0, 0, 0, 0.75)
    );
  }
}

@media (max-width: 480px) {
  .modality-img {
    height: 275px;
  }
  /* .conditions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    } */

  .beyond-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Scroll fade-in ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
