html {
  scroll-behavior: smooth;
}

:root {

  /* HEADER THEME */
  --header-bg: #0f2e26;          /* deep green luxury */
  --header-border: rgba(201,168,106,0.25);

  --header-link: #e6dcc6;        /* soft gold */
  --header-link-hover: #c9a86a;  /* gold logo */

  --header-bg-scrolled: rgba(15, 46, 38, 0.92);
  

  --bg-main: #faf7f2;
  --bg-section: #f1f5f1;
  --bg-card: #ffffff;

  --accent-gold: #c9a86a;
  --accent-green: #3f7f6b;

  --text-main: #1f2a2a;
  --text-muted: #6f7c7a;

  --border-soft: #e6e1da;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
  --text-dark: #1f2a2a;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-hero: 96px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 6px rgba(0,0,0,0.04);
  --shadow-sm: 0 8px 20px rgba(0,0,0,0.06);
  --shadow-md: 0 16px 40px rgba(0,0,0,0.08);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-radial-gradient(circle, rgba(0,0,0,0.02) 0, rgba(0,0,0,0.02) 1px, transparent 1px, transparent 2px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 9998;
  animation: noiseMove 0.8s steps(2) infinite;
  mix-blend-mode: overlay;
}

@keyframes noiseMove {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1px,1px); }
  50% { transform: translate(1px,-1px); }
  75% { transform: translate(-1px,-1px); }
  100% { transform: translate(0,0); }
}


body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: "Inter", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

h1 { font-size: 48px; line-height: 1.2; font-weight: 600; }
h2 { font-size: 36px; line-height: 1.3; font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }

p  { font-size: 16px; line-height: 1.7; }
small { font-size: 13px; color: var(--text-muted); }


.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.card, .doctor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}



/* HEADER */
.header {
  position: sticky;
  isolation: isolate; /* 🔑 pisahkan dari body noise */
  top: 0;
  z-index: 1000;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);

  transition: 
    background 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
}

.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    transparent
  );
  pointer-events: none;
}

.header-wrapper {
  transition: padding 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  transition: padding 0.35s ease;
}

.header.scrolled {
  background: rgba(15, 46, 38, 0.92);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.45);
}

.header.scrolled .header-wrapper {
  padding: 14px 0;
}

/* ================================
   HERO — TOMORROW HEALTH STYLE
================================ */

.hero-new {
  padding: 56px 0 64px; /* ⬅️ lebih rapat & proporsional */
  background: linear-gradient(
    180deg,
    #f4faf7 0%,
    #ffffff 100%
  );
}

.hero-shell {
  max-width: 1320px;
  margin: 0 auto;

  padding: 64px 0;
  border-radius: 40px;

  position: relative;
  background:
    radial-gradient(circle at top left,
      rgba(201,168,106,0.18),
      transparent 45%),
    radial-gradient(circle at bottom right,
      rgba(63,127,107,0.18),
      transparent 45%),
    linear-gradient(
      180deg,
      #f9fbfc 0%,
      #eef3f6 100%
    );

  border-radius: 36px;
  overflow: hidden;
  padding: 56px 0;

  box-shadow:
    0 40px 120px rgba(0,0,0,0.08),
    0 12px 32px rgba(0,0,0,0.04);
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.35) 45%,
    transparent 60%
  );

  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
}

/* layout */
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  position: relative;
  z-index: 2;
  align-items: flex-start; /* ⬅️ dari center ke top */
  padding-top: 40px;       /* kontrol jarak dari atas hero */
}

/* ================= TEXT ================= */

.hero-heading {
  font-family: "Inter", sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #1f2a2a; /* solid, clean */
  margin-bottom: 24px;

  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.9s ease forwards;
}

.hero-gradient {
  background: linear-gradient(
    90deg,
    var(--accent-gold),
    var(--accent-green)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;          /* ⬅️ turun dari biasanya 18–20 */
  line-height: 1.65;
  color: #5f6f73;           /* softer gray */
  max-width: 460px;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.hero-actions {

  display: flex;
  gap: 16px;
  margin-bottom: 12px;

  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.9s ease forwards;
  animation-delay: 0.3s;
}

.btn-icon::after {
  content: "→";
  margin-left: 10px;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-icon-outline::after {
  content: "📅";
  margin-left: 10px;
  font-size: 15px;
}

.btn:hover::after {
  transform: translateX(4px);
}


/* ================= IMAGE ================= */

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-image-wrap {
  width: 100%;
  max-width: 520px;

  border-radius: 24px; /* 🔥 boxy tapi tetap soft */
  overflow: hidden;

  box-shadow:
    0 32px 80px rgba(0,0,0,0.12),
    0 10px 26px rgba(0,0,0,0.08);

  animation: heroFloat 7s ease-in-out infinite;

  border: 1px solid rgba(255,255,255,0.6);
  background: #fff;
}

.hero-image-wrap img {
  width: 100%;
  height: 660px;
  object-fit: cover;
  display: block;
}

/* ================= DECORATIVE GLOWS ================= */

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow.gold {
  background: var(--accent-gold);
  top: -120px;
  left: -120px;
}

.hero-glow.green {
  background: var(--accent-green);
  bottom: -140px;
  right: -140px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.9s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}


/* ================= ANIMATIONS ================= */

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

@keyframes shimmer {
  0%   { transform: translateX(-120%); }
  50%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}


/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-heading {
    font-size: 48px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-shell {
    margin-left: 40px;
    margin-right: 40px;
  }
}

@media (max-width: 768px) {
  .hero-new {
    padding: 36px 0 48px;
  }

  .hero-shell {
    margin: 0 16px;
    padding: 48px 0;
    border-radius: 26px;
  }
}


/* Background shimmer */

@keyframes shimmer {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}



/* Hero Title */
.hero-title {
  font-family: "Tomorrow", sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  color: #1f2a2a;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.9s ease-out forwards;
  animation-delay: 0.3s;
}

/* Gradient text highlight */
.gradient-text {
  background: linear-gradient(
    90deg,
    #c9a86a,
    #72a68f,
    #c9a86a
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Subtitle */
.hero-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  color: #555;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.9s ease-out forwards;
  animation-delay: 0.5s;
}
.hero-content-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 2; /* ⬅️ ini kuncinya */
}

/* CTA Buttons */
.hero-cta .btn {
  font-size: 16px;
  min-width: 180px;
  padding: 14px 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.9s ease-out forwards;
}
.hero-cta .btn:first-child { animation-delay: 0.7s; }
.hero-cta .btn:last-child  { animation-delay: 0.9s; }

/* Image */
.hero-image {
  animation-delay: 1s;

  width: 100%;
  max-width: 520px;
  height: 660px;

  object-fit: cover;
  object-position: center;

  border-radius: 260px 260px 56px 56px;

  opacity: 0;
  transform: scale(1.05);

  animation:
    imageReveal 0.9s ease forwards;,
    floatSoft 7s ease-in-out infinite;

  animation-delay: 1s;

  box-shadow:
    0 36px 80px rgba(0,0,0,0.12),
    0 12px 28px rgba(0,0,0,0.06);

  z-index: 2;
}



/* Reveal Animations */
@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes imageReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* RESPONSIVE */
.hero-img-wrapper {
  animation: floatSoft 7s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-img-wrapper::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(
    circle at top,
    rgba(201,168,106,0.25),
    transparent 60%
  );
  z-index: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 52px;
  padding: 0 28px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;   /* ❌ underline hilang */

  border-radius: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* PRIMARY */
.btn-primary {
  background: linear-gradient(
    135deg,
    #c8a85d,
    #b8964a
  );
  color: #fff;
  border: none;

  box-shadow:
    0 12px 28px rgba(200,168,93,0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 48px rgba(200,168,93,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.35);
}

/* SECONDARY */
.btn-secondary {
  background: rgba(255,255,255,0.8);
  color: #2f3a3a;

  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.12);
}

/* OUTLINE */
.btn-outline {
  background: transparent;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: white;
}

.btn-outline {
  border-width: 1.5px;
  position: relative;
}

#doctors .btn-outline::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(63,127,107,0.35), transparent 60%);
  opacity: 0;
  transition: 0.3s;
  z-index: -1;
}

#doctors .btn-outline:hover::after {
  opacity: 1;
}


/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 18px; /* ✨ sweet spot: tidak nempel, tidak renggang */
}

.brand-logo {
  height: 72px; /* 🔥 lebih besar */
  width: auto;
  filter:
    drop-shadow(0 2px 6px rgba(0,0,0,0.35))
    drop-shadow(0 0 12px rgba(201,168,106,0.35));
  
  transition:
    height 0.35s ease,
    transform 0.35s ease;
}

.header.scrolled .brand-logo {
  height: 60px;
  transform: translateY(-2px); /* optical align */
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-text {
  
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  color: #e7d7a3; /* gold lebih terang */
  text-shadow:
    0 1px 2px rgba(0,0,0,0.4);

  transition:
    font-size 0.35s ease,
    letter-spacing 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

.brand-text strong {
  font-weight: 600;
}

.brand-text .thin {
  font-weight: 400;
}

.header.scrolled .brand-text {
  font-size: 20px;
  letter-spacing: 0.02em; /* tighten */
  opacity: 0.85;
  transform: translateY(-1px);
  color: #f0e2b6;
}


/* NAV DESKTOP */
.nav {
  display: flex;
  gap: 36px; /* jarak menu lebih lega */
}

.nav a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;

  color: #e6dcc6;
  opacity: 0.85;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.nav a.active {
  color: #c9a86a;
  opacity: 1;
}

.nav a.active::after {
  transform: scaleX(1);
}

/* Hover underline premium */
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: #c9a86a;
  transform: translateX(-50%);
  transition: width 0.35s ease;
  display: none;
}

.nav a:hover {
  color: #c9a86a;
  opacity: 1;}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 2px;
  background: #f5f1e8;
  transition: 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* MOBILE */
@media (max-width: 768px) {

  .nav {
    position: fixed;
    top: 88px; /* tinggi header kira-kira */
    left: 0;
    width: 100%;

    background: #f4f8f6; /* hijau sangat lembut */
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 32px; /* jarak antar menu lebih lega */

    display: none;

    z-index: 3000;
    border-top: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  }

  .nav a {
    color: #1f3d32; /* hijau tua, kebaca jelas */
    font-weight: 500; /* naik sedikit dari normal */
    font-size: 16px;  /* nyaman dibaca di HP */
    line-height: 1.2;
  }

  .nav a.active {
    color: #c9a86a; /* gold brand */
  }

  .nav.active {
    display: flex;
  }

  .burger {
    display: flex;
  }
  
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 48px;
  }
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    gap: 14px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* SECTION GENERAL */
section {
  background: var(--bg-section);
  padding: var(--space-hero) 0;
  scroll-margin-top: 120px; /* tinggi header */
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.6), transparent 40%);
}

.section-soft {
  background: linear-gradient(
    180deg,
    #fff3ed 0%,
    #ffffff 100%
  );
}


h2 {
  text-align: center;
  margin-bottom: 40px;
}

@media (max-width: 768px) {

  .hero-cta {
    justify-content: center;
  }
}


@keyframes floatSoft {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
  100% {
    transform: translateY(0);
  }
}

.services {
  padding: 96px 0;
  background: #fafafa;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
  margin-bottom: 60px;
}

.services .section-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-green);
  background: rgba(72,139,73,0.08);
  font-size: 12px;

  margin-bottom: 14px;
  padding: 6px 16px;

  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;

  color: var(--accent-green);
  background: rgba(72, 139, 73, 0.08);
  border-radius: 999px;

  border-radius: var(--radius-pill);
  letter-spacing: 1.6px;
}

.section-header h2 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}


/* FEATURED CARD */
.service-card.featured {
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.08),
    inset 0 0 0 1px rgba(212,175,55,0.15);
}

/* BADGE */
.featured-badge {
  position: absolute;
  top: 18px;
  right: 18px;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;

  background: linear-gradient(135deg, #d4af37, #f2d27a);
  color: #1a1a1a;

  padding: 6px 10px;
  border-radius: 999px;
}

.service-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #4f4f4f;
}

.service-card.featured .service-price {
  font-size: 17px;
  font-weight: 700;
  color: #7a5c1e;
}
.service-card.featured:hover {
  transform: translateY(-6px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.services-grid.elite {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 28px;
  position: relative;

  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 32px rgba(0,0,0,0.04);

  transition:
    transform .45s ease,
    box-shadow .45s ease,
    opacity .6s ease;

  /* scroll animation base */
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}

.service-card.show {
  opacity: 1;
  transform: translateY(0);
}

.service-card.featured {
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.08),
    inset 0 0 0 1px rgba(212,175,55,0.15);
}

.service-card.show .service-icon.soft {
  animation: popIn .45s ease-out forwards;
}

@keyframes popIn {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(201,168,106,0.18),
    transparent 60%
  );
  opacity: 0;
  transition: .4s ease;
}



.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.service-card:hover::before {
  opacity: 1;
}

/* ICON */
.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;
  background: rgba(0,0,0,0.04);

  opacity: 0;
  transform: scale(0.92);
  transition: .45s ease;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 14px;
}

.service-price {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #2e7d32;
  margin-bottom: 18px;
}

.service-price::before {
  content: "Mulai dari";
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 2px;
}


/* BUTTON */
.service-btn {
  width: 100%;
  padding: 12px 16px;

  border-radius: 999px;
  border: none;
  cursor: pointer;

  background: #111;
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;

  opacity: 0;
  transform: translateY(6px);
  transition: .45s ease;
}

.service-btn:hover {
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 12px 30px rgba(63,127,107,0.35);
}

.service-modal {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;

  z-index: 1000;
  padding: 24px;
  background: rgba(0,0,0,0.35);
}

.service-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.service-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}

.service-badge.popular {
  background: rgba(212,175,55,0.18);
  color: #b9962e;
}

.service-badge.recommended {
  background: rgba(46,125,50,0.14);
  color: #2e7d32;
}
.service-icon.soft {
  width: 54px;
  height: 54px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(212, 175, 55, 0.14); /* soft gold */
  color: var(--accent-gold);

  margin-bottom: 16px;
}
/* Apply SVG path as mask */
.service-icon.soft svg path,
.service-icon.soft svg circle,
.service-icon.soft svg line {
  stroke: #2f6b5b;
}

.service-icon.soft svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.8;
}
.service-card:hover .service-icon.soft {
  background: rgba(212, 175, 55, 0.22);
}

.service-card:hover .service-icon.soft svg {
  transform: scale(1.08);
}

.service-card.featured {
  background: linear-gradient(
    135deg,
    #fcfaf5,
    #f4ead6,
    #ead8b2
  );
  box-shadow: 0 10px 28px rgba(201, 168, 106, 0.18);
  border: 1px solid rgba(201, 168, 106, 0.45);
}

.service-card.featured:hover {
  transform: translateY(-4px);
}

.modal-card {
  background: #fff;
  padding: 32px;
  width: 100%;
  max-width: 520px;
  transform: translateY(24px) scale(.96);
  opacity: 0;
  transition: .4s cubic-bezier(.22,.61,.36,1);
  max-height: 85vh; /* 🔥 kunci utama */
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* penting */
  position: relative;
}

.service-modal.show .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto; /* 🔥 scroll aktif */
  -webkit-overflow-scrolling: touch;
}

.modal-card .modal-close {
  font-size: 22px;
  background: none;
  cursor: pointer;
  opacity: .6;
  transition: .2s;

  /*------------*/
  position: absolute;
  top: 16px;
  right: 16px;

  width: 40px;
  height: 40px;

  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: #f1f5f3; /* hijau muda lembut */
  color: #1f3d32;      /* hijau tua */

  font-size: 20px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background .25s ease, transform .25s ease;
}

.modal-card .modal-close:hover {
  opacity: 1;
  background: #e6efe9;
  transform: scale(1.05);
}
#modalCta {
  width: 100%;
  justify-content: center;
}

.modal-price {
  font-weight: 600;
  color: var(--accent-green);
  white-space: nowrap;
  margin-left: 12px;
}

.modal-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);

  position: sticky;
  bottom: 0;
  background: #fff;
}

.modal-footer .btn {
  width: 100%;
  justify-content: center;
}

.modal-note {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #888;
}

#modalList {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#modalList li {
  background: #f9faf9;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 14px 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 14px;
  line-height: 1.4;

  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp .35s ease forwards;
}

#modalList li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-green);
}

.modal-subtitle {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

#modalList li:nth-child(n) {
  animation-delay: calc(var(--i) * 60ms);
}

.modal-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  margin-right: 8px;
  white-space: nowrap;
}

.modal-badge.popular {
  background: rgba(212,175,55,0.15);
  color: #b9962e;
}

.modal-badge.recommended {
  background: rgba(46,125,50,0.12);
  color: #2e7d32;
}


@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .modal-card {
    height: 100%;
    max-width: 100%;
    padding: 24px;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
  }

  .service-modal {
    align-items: flex-end; /* modal naik dari bawah */
    padding: 0;
  }

  .modal-body {
    padding-bottom: 32px; /* ruang jempol */
  }
}


@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE — 1 CARD PER BARIS ✅ */
@media (max-width: 768px) {
  .services {
    padding: 72px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 24px;
  }

  .service-btn {
    font-size: 12px;
  }
}

.services-cta {
  margin-top: 56px;
  text-align: center;
}

.doctors {
  background: #fff;
}

.doctor-grid {
  margin-top: 56px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.doctor-card {
  text-align: center;
  transition: transform 0.35s ease;
}

.doctor-card:hover {
  transform: translateY(-6px);
}

.doctor-card::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #d6ba73;
  margin: 18px auto 0;
  border-radius: 2px;
}


.doctor-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;

  background: #f4f4f4;
}

.doctor-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.15),
    transparent 40%
  );
}


.doctor-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.doctor-info {
  margin-top: 20px;
}

.doctor-role {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}


.doctor-info h3 {
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  margin-top: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #222;
}

.doctor-image {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(214,186,115,0.25),
    rgba(72,139,73,0.25)
  );
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.doctor-info p {
  font-size: 14px;
  color: rgba(72,139,73,0.75); /* hijau brand */
}

.doctor-card:hover .doctor-photo img {
  transform: scale(1.03);
}

.doctor-photo img {
  transition: transform 0.6s ease;
}


@media (max-width: 768px) {
  .doctor-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .doctor-photo img {
    height: 360px;
  }
}

.doctor-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(214,186,115,0.18),
    transparent 60%
  );
  pointer-events: none;
}
.doctor-photo {
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.08),
    0 8px 16px rgba(0,0,0,0.04);
}

.doctor-cta {
  margin-top: 72px;
  text-align: center;
}

.doctor-cta p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 18px;
}

.doctor-cta .btn {
  padding: 12px 26px;
  font-size: 0.9rem;
  border-radius: 999px; /* pill = friendly */
}


.doctor-cta::before {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 0 auto 28px;
}

@media (max-width: 768px) {
  .doctor-cta {
    margin-top: 56px;
    padding: 0 20px;
  }

  .doctor-cta p {
    font-size: 0.9rem;
  }
}

/* Floating CTA Section */
.doctor-floating-cta {
  padding: 6rem 1.5rem;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Glass Card */
.cta-glass-card {
  max-width: 720px;
  width: 100%;
  padding: 2.8rem 2.5rem;
  text-align: center;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transform: translateY(0);
  transition: 0.4s ease;
}

/* Floating hover */
.cta-glass-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.12);
}

/* Typography */
.cta-glass-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.cta-glass-card p {
  font-size: 1rem;
  color: #5f6f6a;
  margin-bottom: 1.8rem;
}

/* CTA Button */
.cta-glass-btn {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 999px;
  background: var(--accent-green);
  color: white;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;

  box-shadow: 0 12px 30px rgba(63,127,107,0.35);
  transition: all 0.3s ease;
}

.cta-glass-btn:hover {
  background: #2f6b5b;
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(63,127,107,0.45);
}
.doctor-floating-cta::before,
.doctor-floating-cta::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
}

.doctor-floating-cta::before {
  background: rgba(63,127,107,0.18);
  top: 10%;
  left: 15%;
}

.doctor-floating-cta::after {
  background: rgba(212,182,138,0.18);
  bottom: 0;
  right: 15%;
}

/* Shimmer Border Wrapper */
.cta-glass-border {
  position: relative;
  padding: 1px;
  border-radius: 30px;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.2),
    rgba(212,182,138,0.6),
    rgba(63,127,107,0.6),
    rgba(255,255,255,0.2)
  );
  background-size: 300% 300%;
  animation: shimmerBorder 10s ease infinite;
}

/* Put glass card inside */
.cta-glass-border .cta-glass-card {
  border-radius: 28px;
  background: rgba(255,255,255,0.6);
}

/* Shimmer animation */
@keyframes shimmerBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-glass-border::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-radial-gradient(circle at 0 0,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 3px);
  pointer-events: none;
  opacity: 0.25;
}


.mini-testimonial {
  max-width: 520px;
  margin: 48px auto 0;
  text-align: center;
  padding: 32px 34px;

  background: rgba(72, 139, 73, 0.06);
  border-radius: 20px;

  box-shadow:
    0 18px 40px rgba(0,0,0,0.04),
    inset 0 0 0 1px rgba(72,139,73,0.08);
}

.mini-testimonial .quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3f3f3f;
  margin-bottom: 18px;
}

.mini-testimonial .quote::before {
  content: "“";
  font-size: 2.2rem;
  color: rgba(72,139,73,0.35);
  display: block;
  margin-bottom: 8px;
}

.mini-testimonial .author .name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #2f2f2f;
}

.mini-testimonial .author .detail {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .mini-testimonial {
    margin-top: 36px;
    padding: 24px;
  }

  .mini-testimonial .quote {
    font-size: 0.9rem;
  }
}

.section-divider {
  position: relative;
  overflow: hidden;
  width: 100px;
  height: 2px;
  background: var(--accent-gold);
  margin: 16px auto;
}

.section-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}
.faq::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
  margin: 0 auto 24px;
}

/* ================= FAQ ================= */
.faq {
  background: var(--bg-main);
}

.faq::before {
  content: "";
  display: block;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff3ed);
}

.faq-list {
  max-width: 820px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
}

.faq-icon {
  width: 18px;
  height: 18px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent-green);
  transition: .3s ease;
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-muted);
  display: none;
}

/* Active state */
.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon::after {
  opacity: 0;
}

.faq-item.featured {
  border-left: 4px solid var(--accent-gold);
}
.faq-cta {
  text-align: center;
  margin-top: 40px;
  font-size: 15px;
}

.faq-cta a {
  color: var(--accent-green);
  font-weight: 500;
}

/* ================= FOOTER ================= */
/* Ensure footer content above pattern */
.footer * {
  position: relative;
  z-index: 1;
}

@keyframes luxuryFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-40px);
  }
}

.footer {
  padding: 80px 0 40px;
  background: linear-gradient(180deg, #f4faf5 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
}

.footer h4 {
  color: var(--text-main);
}
.footer p {
  color: var(--text-muted);
}

.footer::before {
  content: "";
  display: block;
  margin: 0 auto 40px;
  border-radius: 2px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* FLOATING LUXURY PATTERN */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(72,139,73,0.08), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(214,186,115,0.08), transparent 35%);
  animation: luxuryFloat 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.footer-cta {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

/* SOCIAL ICONS */
.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: #777;
}

.footer-socials a:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(72,139,73,0.35);
}

.footer-socials a:hover svg {
  fill: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 60px;
}

/* BRAND */
.footer-brand h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* LINKS */
.footer-links h4,
.footer-contact h4,
.footer-cta h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-links a {
  display: block;
  text-decoration: none;
  color: #444;
  font-size: 14px;
  margin-bottom: 10px;
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-green);
}

/* CONTACT */
.footer-contact p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

/* CTA BOX */
.footer-cta {
  background: #fff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.footer-cta p {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

/* BOTTOM */
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 50px;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 20px;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    text-align: center;
  }

  .footer-links a {
    display: inline-block;
    margin: 6px 12px;
  }

  .footer-cta {
    max-width: 360px;
    margin: auto;
  }
}

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: var(--accent-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 12px 30px rgba(72,139,73,0.4);
  z-index: 9999;
}


/* FORCE Doctor CTA button visible */
.doctor-cta .btn-outline {
  background: var(--accent-green) !important;
  color: white !important;
  border: none !important;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(63,127,107,0.28);
}

.doctor-cta .btn-outline:hover {
  background: #2f6b5b !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(63,127,107,0.4);
}

.hero-accordion {
  display: flex;
  gap: 14px;
  height: 560px;
  width: 100%;
  max-width: 600px;
}

/* NON ACTIVE — SUPER TIPIS */
.hero-panel {
  flex: 0.28; /* 🔥 lebih tipis lagi */
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  position: relative;

  transition:
    flex 0.9s cubic-bezier(.4,0,.2,1),
    transform 0.6s ease,
    filter 0.4s ease;

  filter: saturate(0.6) brightness(0.85);
  transform: scale(0.94);
}

/* ACTIVE — DOMINAN */
.hero-panel.active {
  flex: 4.8; /* 🚀 LEBAR BANGET */
  transform: scale(1);
  filter: none;

  box-shadow:
    0 48px 120px rgba(0,0,0,0.22);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hero-panel:not(.active)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.15)
  );
}

/* subtle overlay */
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.25),
    transparent 40%
  );
  opacity: 0;
  transition: 0.4s ease;
}

.hero-panel.active::after {
  opacity: 1;
}


.hero-panel.active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.35);
  pointer-events: none;
}

.hero-testimonial {
  margin-top: 36px;
  max-width: 420px;

  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);

  border-radius: 18px;
  padding: 18px 22px;

  box-shadow:
    0 14px 36px rgba(0,0,0,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.6);

  animation: revealUp 0.9s ease forwards;
  animation-delay: 0.45s;
}

.hero-testimonial .stars {
  color: #f2c94c; /* gold star */
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero-testimonial p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 6px;
}

.hero-testimonial .author {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

/* ===== GRID-AWARE STAGGER BASE ===== */
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.service-card {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}

.service-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* icon muncul setelah card */
.service-card .service-icon.soft {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  transition-delay: 120ms;
}

.service-card.show .service-icon {
  opacity: 1;
  transform: scale(1);
}

/* CTA button animation */
.service-card.show .service-btn {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(0,0,0,0.12);
  }
}

.service-card.show .service-btn {
  opacity: 1;
  transform: translateY(0);
}

/* ===== GALLERY SECTION ===== */

.gallery-section {
  padding: 96px 0;
  background: #fafafa;
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.section-header p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

/* GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 4 / 3;   /* 🔑 INI YANG BIKIN GAMBAR TAMPIL */
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #eee;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
  border-radius: 14px;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Tablet */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {

  .gallery-wrapper {
    overflow: hidden;
  }

  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 16px 8px;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-grid img {
    min-width: 100%;
    scroll-snap-align: center;

    flex: 0 0 85%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;

    box-shadow: 
      0 12px 30px rgba(0, 0, 0, 0.12);

    transition: 
      transform 0.35s ease,
      box-shadow 0.35s ease;

    transform: scale(0.95);
  }
  .gallery-grid img:focus,
  .gallery-grid img:active {
    transform: scale(1);
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.18);
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    aspect-ratio: 4 / 3;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 🔥 ini yang bikin TIDAK KEPOTONG */
    background: #f5f5f5;
  }
}


/* ===== LIGHTBOX ===== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9999;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ===== LIGHTBOX NAV ===== */

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .3s ease;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

@media (max-width: 600px) {
  .lightbox-nav {
    display: none; /* mobile pakai swipe */
  }
}
/* =========================
   FLOATING PROMO FINAL
========================= */

.floating-promo-wrap {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 999;
  display: none; /* dikontrol JS */
}

.floating-promo {
  display: flex;
  align-items: center;
  gap: 16px;

  padding: 20px 22px 20px 20px;
  border-radius: 22px;

  background: linear-gradient(135deg, #c9a86a, #f1d48f);
  color: #1f1f1f;
  text-decoration: none;

  box-shadow: 0 22px 55px rgba(0,0,0,0.28);
  transition: transform .25s ease, box-shadow .25s ease;
}

.floating-promo:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 65px rgba(0,0,0,0.35);
}

/* Instagram Icon */
.promo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* Text */
.promo-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-badge {
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}

.promo-text {
  font-size: 16px;
  font-weight: 600;
}

.promo-sub {
  font-size: 12px;
  opacity: .85;
}

/* Close button */
.promo-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* ===============================
   FLOATING PROMO – MOBILE MINIMAL
=============================== */

@media (max-width: 768px) {
  .floating-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    width: calc(100% - 24px);
    left: 12px;
    right: 12px;
    bottom: 14px;
    gap: 10px;
  }

  .promo-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .promo-content h4 {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
  }

  .promo-content p {
    display: none;
  }

  .promo a {
    border-radius: 999px;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 5px 10px;
  }
  .promo-badge {
    font-size: 9px;
  }

  .promo-icon {
    display: none;
  }

  .promo-close {
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    font-size: 14px;
  }
}




/* ===== GALLERY STAGGER REVEAL ===== */

.gallery-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}

.gallery-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE SWIPE GALLERY ===== */

@media (max-width: 600px) {
  gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 12px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }


  .gallery-item {
    min-width: 70%;
    scroll-snap-align: center;
    flex-shrink: 0;
    margin-right: 8px;
  }

  .gallery-item:last-child {
    margin-right: 20px;
  }
}

/* ===== GALLERY CAPTION ===== */

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0)
  );
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ===== GALLERY IMAGE LOADING ===== */

.gallery-item {
  background: #f1f1f1; /* skeleton base */
  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.gallery-item img {
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity .6s ease,
    transform .8s ease;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
}

.gallery-item img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* ===== Gallery Pagination ===== */
.gallery-pagination {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-pagination .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a86a;
  opacity: 0.35;
  transition: 0.3s;
}

.gallery-pagination .dot.active {
  opacity: 1;
  transform: scale(1.2);
}

/* MOBILE ONLY */
@media (max-width: 768px) {
  .gallery-pagination {
    display: flex;
  }
}



@media (hover: hover) {
  .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow:
      0 12px 28px rgba(0,0,0,0.12);
  }
}
@media (hover: none) {
  .gallery-item:active {
    transform: scale(0.98);
  }
}

/* ===== DOCTORS POLISH (SIMPLE) ===== */

.doctors-section {
  padding: 88px 0;
}

.doctors-section .section-header {
  max-width: 560px;
  margin-bottom: 48px;
}

.doctors-grid {
  gap: 28px;
}

/* card */
.doctor-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

/* subtle hover */
@media (hover: hover) {
  .doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  }
}

/* photo */
.doctor-photo {
  aspect-ratio: 4 / 4;
  background: #f3f3f3;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* info */
.doctor-info {
  padding: 20px;
}

.doctor-info h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.doctor-info span {
  font-size: 13px;
  color: #888;
  display: block;
  margin-bottom: 10px;
}

.doctor-info p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}


/* ===== ABOUT US SECTION ===== */

.about-section {
  padding: 96px 0;
  background: #fafafa;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* text */
.about-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 16px;
}

/* image */
.about-image {
  border-radius: 16px;
  overflow: hidden;
  background: #f1f1f1;
}

.about-image img {
  width: 100%;
  display: block;
  object-fit: contain;
}

/* responsive */
@media (max-width: 900px) {
  .about-wrapper {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 420px;
  }
}

/* ===== ABOUT SOFT DIVIDER ===== */

.about-section {
  position: relative;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    #c9a44c,
    transparent
  );
}

/* ===== ABOUT BADGE ===== */

.about-badge {
  display: inline-block;
  font-size: 12px;
  padding: 6px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(201, 164, 76, 0.12);
  color: #9e7f2c;
  font-weight: 500;
}
.about-content p:first-of-type {
  font-size: 16px;
  color: #444;
}
.about-image {
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}


/* ======================================
   MOBILE PERFORMANCE MODE (LIGHT)
   ====================================== */
   @media (max-width: 768px) {

    /* 1️⃣ MATIKAN NOISE OVERLAY (PALING BERAT) */
    body::after {
      display: none !important;
    }
  
    /* 2️⃣ MATIKAN SEMUA BACKDROP BLUR */
    * {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
  
    /* 3️⃣ STOP INFINITE ANIMATION */
    .hero-shell::after,
    .hero-image-wrap,
    .hero-panel,
    .cta-glass-border,
    .doctor-floating-cta::before,
    .doctor-floating-cta::after,
    .footer::after {
      animation: none !important;
    }
  
    /* 4️⃣ SEDERHANAKAN SHADOW (GPU FRIENDLY) */
    .service-card,
    .doctor-card,
    .gallery-item,
    .cta-glass-card {
      box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
    }
  
    /* 5️⃣ HAPUS WILL-CHANGE (HEMAT MEMORY) */
    .service-card,
    .gallery-item,
    .reveal,
    .hero-panel {
      will-change: auto !important;
    }
  
    /* 6️⃣ MATIKAN HOVER EFFECT (MOBILE GAK PERLU) */
    .service-card:hover,
    .doctor-card:hover,
    .gallery-item:hover {
      transform: none !important;
    }
  
    /* 7️⃣ KURANGI BLUR BESAR */
    .hero-glow,
    .doctor-floating-cta::before,
    .doctor-floating-cta::after {
      filter: blur(60px) !important;
      opacity: 0.18 !important;
    }
  
    /* 8️⃣ HEADER LEBIH RINGAN */
    .header {
      backdrop-filter: none !important;
      background: var(--header-bg) !important;
    }
  
    /* 9️⃣ HERO IMAGE LEBIH RINGAN */
    .hero-image-wrap img {
      height: auto !important;
      max-height: 420px;
    }
  
    /* 🔟 MODAL SCROLL LEBIH HALUS */
    .modal-body {
      -webkit-overflow-scrolling: auto;
    }
  
  }
