/* ==========================================================================
   Griya Hipnoterapi Malang - Style System (Calming Clinical Modern)
   Aesthetic: iOS Glassmorphism, Light Mode
   ========================================================================== */

/* Token sheets (css/fonts, css/typography, css/colors, css/spacing) are linked
   directly from index.html. @import would chain them behind this file's parse,
   adding a serial round-trip before first paint. */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

input,
button,
textarea,
select {
  font: inherit;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
  margin-top: var(--header-height, 80px); /* Prevents scrollbar from extending behind fixed header */
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border-radius: 6px;
  border: 3px solid var(--color-bg-alt); /* Adds padding around thumb */
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Ambient gradient wash. Painted on a fixed pseudo-element rather than via
   `background-attachment: fixed` on <body>, which forces the browser to
   repaint the gradient on every scroll frame and is a major source of
   scroll jank on mobile. As its own layer the compositor just reuses it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(at 0% 0%, rgba(216, 237, 240, 0.6) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(230, 240, 244, 0.6) 0px, transparent 50%);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Inline sprite icons. Sized in `em` so the inline `font-size` styles that
   used to drive the Font Awesome glyphs keep working unchanged. */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
  flex-shrink: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Animated Underline on Hover */
a:not(.site-logo):not(.nav-cta):not([class*="btn"]):not([class*="button"]):not(.gallery-item):not(.nav-link) {
  position: relative;
  display: inline-block;
}

a:not(.site-logo):not(.nav-cta):not([class*="btn"]):not([class*="button"]):not(.gallery-item):not(.nav-link)::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

a:not(.site-logo):not(.nav-cta):not([class*="btn"]):not([class*="button"]):not(.gallery-item):not(.nav-link):hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.dropdown-menu a::after {
  display: none !important;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
}

h4,
h5,
h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 40px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-title p {
  font-size: 16px;
  color: var(--color-text-light);
  width: 100%;
  margin: 0 auto;
}

/* Glass Card Utility (Made Seamless) */
.glass-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  transition: all 0.4s var(--spring-soft);
}

.glass-card:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  height: 50px;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--spring-bouncy);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background: #112946;
  border-color: #112946;
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--color-primary);
  border: 1px solid #ffffff;
}

.btn-white:hover {
  background: #f1f5f8;
  border-color: #f1f5f8;
  transform: translateY(-2px);
}

/* ---------- Header / Navigation ---------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  /* Named properties instead of `all` so scroll-triggered state changes don't
     animate layout-affecting properties the browser has to re-layout. */
  transition: height 0.4s var(--spring-soft), background 0.4s var(--spring-soft),
    box-shadow 0.4s var(--spring-soft), border-color 0.4s var(--spring-soft);
}

#site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  height: 70px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: var(--font-weight-extrabold);
  font-size: 20px;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-menu a:not(.nav-cta) {
  padding: 8px 16px;
  font-weight: var(--font-weight-semibold);
  color: #ffffff;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

#site-header.scrolled .nav-menu a:not(.nav-cta) {
  color: var(--color-text-light);
  text-shadow: none;
}

.nav-menu a:not(.nav-cta):hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

#site-header.scrolled .nav-menu a:not(.nav-cta):hover {
  color: var(--color-primary);
  background: rgba(43, 92, 119, 0.05);
}

/* Dropdown Menu */
.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 12px 20px !important;
  color: var(--color-text) !important;
  font-size: 14px;
  font-weight: var(--font-weight-semibold) !important;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  border-radius: 0 !important;
}

.dropdown-menu a:hover {
  background: rgba(43, 92, 119, 0.05) !important;
  color: var(--color-primary) !important;
}

.nav-cta {
  padding: 8px 20px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

#site-header.scrolled .menu-toggle span {
  background-color: var(--color-primary);
  box-shadow: none;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- Hero Section ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding-top: 80px;
  background: url('assets/images/other/hero_background.webp') center/cover no-repeat;
}

/* Phones get a narrower crop of the hero — the 1920px file is wasted there. */
@media (max-width: 768px) {
  #hero {
    background-image: url('assets/images/other/hero_background-mobile.webp');
  }
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--color-bg) 100%);
  z-index: 0;
}

#hero .container {
  position: relative;
  z-index: 1;
}

/* SVG Brainwave Background */
.hero-brainwave-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.hero-brainwave-bg svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: var(--font-weight-extrabold);
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 20px;
  color: #f1f5f8;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ---------- The Science (Bento Box) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 24px;
}

.bento-item {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

/* Bento Spans */
.bento-span-2 {
  grid-column: span 2;
}

.bento-span-3 {
  grid-column: span 3;
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-row-2 {
  grid-row: span 2;
}

.bento-item h3 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.bento-item p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- About & Brainwave Grids ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.brainwave-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

/* Brainwave Visualizer in Bento */
.brainwave-visual {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

.brainwave-visual svg {
  width: 100%;
  max-height: 150px;
}

.brainwave-visual path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 4s ease forwards infinite;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Conditions Treated (Tabs & Tags) ---------- */
.tabs-header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-full);
  padding: 6px;
  margin: 0 auto 40px auto;
  width: fit-content;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tab-btn {
  padding: 12px 36px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--color-text-light);
  font-weight: var(--font-weight-semibold);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s var(--spring-soft);
  box-shadow: none;
}

.tab-btn.active {
  background: transparent;
  color: var(--color-primary);
  box-shadow: none;
  transform: translateY(0);
}

.tab-btn:hover:not(.active) {
  color: var(--color-primary);
  transform: translateY(0);
  box-shadow: none;
}

.tab-content {
  display: none;
  opacity: 1;
  transform: translateY(0);
}

.tab-content.active {
  display: block;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tag {
  padding: 14px 24px;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--color-text-dark);
  font-weight: var(--font-weight-semibold);
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.tag:hover {
  background: #fff;
  transform: scale(1.05);
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ---------- Therapy Requirements ---------- */
.req-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.req-card {
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(33.333% - 16px);
  min-width: 300px;
}

.req-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.req-card h4 {
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: var(--font-weight-semibold);
}

.req-card p {
  font-size: 16px;
  color: var(--color-text-light);
}

/* ---------- Profil & Trust ---------- */
.profil-container {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 60px;
  align-items: start;
}

.profil-image {
  position: relative;
}

.profil-image img {
  width: 100%;
  height: auto;
  transform: scale(1.02);
  /* Slight zoom for image depth */
}

.profil-content h3 {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.profil-content .title {
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  font-size: 16px;
  margin-bottom: 24px;
}

.profil-content p {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.trust-logos {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.trust-logos img {
  height: 60px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  mix-blend-mode: multiply;
}

.trust-logos img:hover {
  opacity: 1;
}

/* ---------- Language Toggle ---------- */
.lang-switch-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-bg-alt);
  border: var(--glass-border);
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lang-switch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lang-switch-btn img {
  width: 20px;
  height: auto;
  border-radius: 2px;
}

/* ---------- Map Container ---------- */

/* ---------- Footer ---------- */
footer {
  background: #fff;
  padding: 60px 0 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: var(--color-primary);
  font-size: 24px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--color-text-light);
  max-width: 300px;
}

.footer-col h5 {
  color: var(--color-text-dark);
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ---------- Mind Chart (12% vs 88%) ---------- */
.mind-chart-container {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 40px;
}

.mind-chart-visual {
  flex: 0 0 40%;
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: conic-gradient(var(--color-primary) 0% 12%, var(--color-accent) 12% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mind-chart-visual::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: var(--color-bg);
  border-radius: 50%;
}

.mind-chart-text {
  flex: 1;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin-top: 4px;
  flex-shrink: 0;
}

.legend-color.conscious {
  background: var(--color-primary);
}

.legend-color.subconscious {
  background: var(--color-accent);
}

/* ---------- Comparison Cards (Jenis Hipnoterapi) ---------- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.compare-card {
  padding: 40px;
  border-radius: var(--radius-lg);
}

.compare-card.highlight {
  background: var(--color-primary);
  border: none;
  position: relative;
  box-shadow: 0 16px 40px rgba(23, 55, 94, 0.2);
}

.compare-card.highlight h3 {
  color: var(--color-accent);
}

.compare-card.highlight p,
.compare-card.highlight ul li {
  color: rgba(255, 255, 255, 0.9);
}

.badge-best {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-extrabold);
  font-size: 14px;
  letter-spacing: 1px;
}

.compare-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.compare-card ul {
  list-style: none;
  margin-top: 20px;
}

.compare-card ul li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  color: var(--color-text-light);
}

/* Check mark drawn as a masked SVG so it inherits colour like the old
   Font Awesome glyph did, without pulling in the webfont. */
.compare-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.9em;
  height: 0.9em;
  background-color: var(--color-primary);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}

.compare-card.highlight ul li::before {
  background-color: var(--color-accent);
}

.compare-card.basic h3 {
  color: #e74c3c;
}

.compare-card.basic ul li::before {
  content: '\f00d';
  color: #e74c3c;
}

/* ---------- FAQ Accordion ---------- */
.faq-container {
  width: 100%;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--glass-bg-hover);
  color: var(--color-primary);
}

.faq-question i {
  transition: transform 0.3s var(--spring-bouncy);
}

.faq-item.active .faq-question {
  background: transparent;
  color: var(--color-primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--spring-soft);
  background: var(--color-bg);
}

.faq-answer-inner {
  padding: 24px;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ---------- Pricing Card ---------- */
.pricing-section {
  background: var(--color-primary);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.pricing-section .section-title h2 {
  color: #fff;
}

.pricing-section .section-title p {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 2px solid var(--color-accent);
  padding: 40px;
  position: relative;
}

.pricing-card h3 {
  color: var(--color-primary);
  font-size: 32px;
  margin-bottom: 20px;
}

.pricing-card p {
  color: var(--color-text-dark);
  font-size: 16px;
  margin-bottom: 30px;
}

.price-tag {
  font-size: 48px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.price-tag span {
  font-size: 16px;
  color: var(--color-text-light);
  font-weight: var(--font-weight-semibold);
}

/* ---------- Gallery & Map ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--color-border-subtle);
  padding: 8px 24px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.gallery-item.hide {
  display: none;
}

.gallery-item.fade-out {
  opacity: 0;
  transform: scale(0.8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.gallery-grid.has-mask {
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 150px), transparent 100%);
  mask-image: linear-gradient(to bottom, black calc(100% - 150px), transparent 100%);
}

.gallery-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-fade-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.gallery-fade-overlay.hidden .btn {
  pointer-events: none;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s var(--spring-soft);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  border: var(--glass-border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Side TOC ---------- */
.side-toc {
  position: fixed;
  top: 50%;
  left: calc((100vw - var(--container-max, 1200px)) / 4);
  transform: translate(-50%, -50%);
  z-index: 900;
  display: none; /* Hidden on smaller screens */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-toc.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 1440px) {
  .side-toc {
    display: block;
  }
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toc-link {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.toc-link::after {
  display: none !important;
}

.toc-link:hover,
.toc-link.active {
  opacity: 1;
  color: var(--color-primary);
}

.toc-num {
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  width: 20px;
}

.toc-line {
  height: 1px;
  background-color: var(--color-primary);
  width: 0;
  margin: 0;
  transition: all 0.3s ease;
}

.toc-link.active .toc-line {
  width: 32px;
  margin: 0 12px;
}

.toc-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.toc-link.active .toc-text {
  opacity: 1;
  transform: translateX(0);
}

/* Side TOC Light Theme (for dark backgrounds) */
.side-toc.theme-light .toc-link {
  color: rgba(255, 255, 255, 0.5);
}

.side-toc.theme-light .toc-link:hover,
.side-toc.theme-light .toc-link.active {
  color: #ffffff;
}

.side-toc.theme-light .toc-line {
  background-color: #ffffff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 48px;
  }

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

  .bento-span-3,
  .bento-span-4 {
    grid-column: span 2;
  }

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

  .profil-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }

  .hero-content h1 {
    font-size: 40px;
  }

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

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

  .bento-span-2,
  .bento-span-3,
  .bento-span-4 {
    grid-column: span 1;
  }

  .bento-row-2 {
    grid-row: span 1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .brainwave-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .section {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .mind-chart-container {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    text-align: center;
  }

  .chart-legend {
    text-align: left;
  }

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

  .compare-card {
    padding: 24px;
  }

  .profil-container {
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    align-items: stretch;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  #site-header.menu-open {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
  }

  #site-header.menu-open .nav-menu a:not(.nav-cta) {
    color: var(--color-primary);
  }

  #site-header.menu-open .menu-toggle span {
    background-color: var(--color-primary);
    box-shadow: none;
  }

  .nav-item.dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
    min-width: auto;
  }

  .nav-item.dropdown.open .dropdown-menu {
    max-height: 400px;
    margin-top: 12px;
  }

  .nav-item.dropdown>.nav-link i {
    transition: transform 0.3s ease;
  }

  .nav-item.dropdown.open>.nav-link i {
    transform: rotate(180deg);
  }

  .dropdown-menu a {
    color: var(--color-primary) !important;
    background: transparent !important;
    padding: 12px 16px !important;
  }
}

/* ---------- Modern Carousel ---------- */
.carousel-card {
  background: var(--color-bg-alt);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  height: 100%;
}

@media (max-width: 768px) {
  .carousel-card {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 24px;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-size: 20px;
  color: var(--color-primary);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.carousel-btn.prev-btn {
  left: 0;
}

.carousel-btn.next-btn {
  right: 0;
}

.carousel-dots {
  text-align: center;
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.dot {
  display: inline-block;
  width: 40px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--color-primary);
}

.profil-image img {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-full);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profil-gallery {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.profil-gallery img {
  height: 380px;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

@media (max-width: 768px) {
  .profil-gallery {
    gap: 12px;
  }

  .profil-gallery img {
    height: auto;
    width: calc(50% - 6px);
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
  }
}

.carousel-slide img {
  max-height: 400px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
}

.carousel-slide:hover img {
  transform: translateY(-4px);
}

/* ---------- Conditions List ---------- */
.conditions-list {
  column-count: 3;
  column-gap: 40px;
  text-align: left;
}

.conditions-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.conditions-item i {
  color: var(--color-primary);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .conditions-list {
    column-count: 1;
  }
}

/* ---------- FLIP Floating CTA ---------- */
#hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 175px;
  height: 50px;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-radius 0.4s ease, background 0.3s ease, border-color 0.3s ease;
  will-change: transform, width, height;
  z-index: 1000;
}

#hero-cta .text-original {
  opacity: 1;
  position: absolute;
  transition: opacity 0.2s ease 0.3s;
}

#hero-cta .text-whatsapp {
  opacity: 0;
  position: absolute;
  display: flex !important;
  align-items: center;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

#hero-cta.morph-drop {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s, height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s, border-radius 0.4s ease 0.15s, padding 0.4s ease 0.15s, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

#hero-cta.morph-whatsapp {
  width: 250px;
  height: 54px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  background: #f5a623;
  border-color: #f5a623;
  color: var(--color-text-dark);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s, height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s, border-radius 0.4s ease 0.15s, padding 0.4s ease 0.15s, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

#hero-cta.morph-pricing {
  height: 54px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s, height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s, border-radius 0.4s ease 0.15s, padding 0.4s ease 0.15s, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

#hero-cta.morph-drop .text-original,
#hero-cta.morph-whatsapp .text-original {
  opacity: 0;
  transition: opacity 0.15s ease;
}

#hero-cta .text-whatsapp {
  display: none;
}

#hero-cta.morph-drop .text-whatsapp {
  opacity: 0;
  transition: opacity 0.15s ease;
}

#hero-cta.morph-whatsapp .text-whatsapp {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.2s ease 0.3s;
  pointer-events: auto;
}

#hero-cta.is-floating {
  position: fixed;
  top: auto;
  left: auto;
  bottom: 30px;
  right: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 9999;
}

#hero-cta.is-in-banner {
  position: absolute;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ---------- Go To Top Button ---------- */
.go-top-btn {
  position: fixed;
  bottom: 95px;
  /* Sits above the floating CTA */
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.go-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-top-btn:hover {
  background-color: #112946;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ---------- Child Guidelines Grid ---------- */
.child-guideline-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  background: var(--glass-bg);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.keefektifan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .child-guideline-grid {
    grid-template-columns: 1fr;
  }

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

  .keefektifan-text {
    order: 2;
  }

  .keefektifan-image {
    order: 1;
  }

  .mobile-text-left {
    text-align: left !important;
  }

  .req-card {
    align-items: flex-start;
    text-align: left;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: var(--font-weight-regular);
  cursor: pointer;
  z-index: 100000;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #ccc;
}

/* Enable pointer cursor on all images except the lightbox image */
img:not(#lightbox-img):not(.no-lightbox) {
  cursor: zoom-in;
}

@media (min-width: 769px) {
  .desktop-center-text {
    text-align: center !important;
  }
}