/* ==========================================================
   Swana Loka Dipa — tema "Botanical Spa"
   Warna diambil dari logo: daun hijau, tetes air biru, teks merah
   ========================================================== */
:root {
    --forest: #173f31;
    --forest-2: #1f5c45;
    --leaf: #2f8f4e;
    --leaf-soft: #e7f3ea;
    --water: #2e9bd6;
    --water-soft: #e6f3fb;
    --clay: #c8302c;
    --sand: #f6f3ec;
    --paper: #fbfaf6;
    --ink: #1b2622;
    --muted: #5d6b65;
    --line: #e3dfd4;
    --radius: 18px;
    --shadow: 0 18px 40px -22px rgba(23, 63, 49, .35);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

    --bs-primary: var(--forest-2);
    --bs-primary-rgb: 31, 92, 69;
    --bs-link-color: var(--forest-2);
    --bs-link-hover-color: var(--leaf);
    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--paper);
}

body { font-family: var(--font-body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .display-font { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; color: var(--forest); }
h4, h5, h6 { font-weight: 700; color: var(--forest); }
a { text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--leaf-soft); color: var(--forest); }
.text-muted-2 { color: var(--muted) !important; }
.bg-sand { background: var(--sand); }
.bg-forest { background: var(--forest); color: #e9f1ec; }
.bg-forest h2, .bg-forest h3 { color: #fff; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 767px) { .section { padding: 64px 0; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.light { color: #9fd8b2; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.15; margin: .6rem 0 1rem; }
.lead-muted { color: var(--muted); font-size: 1.06rem; line-height: 1.75; }

/* Buttons */
.btn { border-radius: 999px; padding: .72rem 1.5rem; font-weight: 600; transition: all .2s ease; }
.btn-forest { background: var(--forest-2); color: #fff; border: 1px solid var(--forest-2); }
.btn-forest:hover { background: var(--forest); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline-forest { border: 1.5px solid var(--forest-2); color: var(--forest-2); background: transparent; }
.btn-outline-forest:hover { background: var(--forest-2); color: #fff; }
.btn-wa { background: #25d366; color: #fff; border: 0; }
.btn-wa:hover { background: #1eb457; color: #fff; }
.btn-light-ghost { border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-light-ghost:hover { background: #fff; color: var(--forest); }
.link-arrow { font-weight: 600; color: var(--forest-2); display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* Topbar & Navbar */
.topbar { background: var(--forest); color: #cfe3d7; font-size: .82rem; padding: .45rem 0; }
.topbar a { color: #cfe3d7; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .35; margin: 0 .75rem; }
.site-nav { background: rgba(251, 250, 246, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-nav .navbar-brand img { height: 42px; width: auto; }
@media (max-width: 575px) { .site-nav .navbar-brand img { height: 34px; } }
.site-nav .nav-link { font-weight: 600; color: var(--ink); padding: 1.6rem .95rem !important; position: relative; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--leaf); }
.site-nav .nav-link.active::after {
    content: ""; position: absolute; left: .95rem; right: .95rem; bottom: 1.1rem; height: 2px; background: var(--leaf); border-radius: 2px;
}
.mega { border: 0; border-radius: var(--radius); box-shadow: 0 30px 60px -25px rgba(23, 63, 49, .4); padding: 1.6rem; margin-top: 0 !important; }
@media (min-width: 992px) {
    .mega { width: min(980px, 92vw); left: 50% !important; transform: translateX(-50%); }
    .dropdown-mega:hover > .dropdown-menu { display: block; }
}
.mega h6 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.mega a.mega-link { display: flex; gap: .65rem; align-items: center; padding: .42rem .5rem; border-radius: 10px; color: var(--ink); font-size: .92rem; }
.mega a.mega-link:hover { background: var(--leaf-soft); color: var(--forest); }
.mega a.mega-link img { width: 30px; height: 30px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); padding: 2px; }
.mega a.mega-link i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--water-soft); color: var(--water); }
.mega small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.2; }
.mega .soon { font-size: .62rem; background: var(--sand); color: var(--muted); padding: .1rem .4rem; border-radius: 6px; margin-left: .3rem; }

/* Hero */
.hero { position: relative; padding: 80px 0 140px; overflow: hidden; background:
    radial-gradient(900px 500px at 85% 10%, var(--water-soft), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, var(--leaf-soft), transparent 60%), var(--paper); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.05; margin: 1.1rem 0 1.3rem; }
.hero h1 em { font-style: italic; color: var(--leaf); font-weight: 500; }
.hero-figure { position: relative; max-width: 480px; margin-left: auto; }
.hero-figure .arch { border-radius: 240px 240px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.hero-figure .arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .float-card {
    position: absolute; left: -48px; bottom: 56px; background: #fff; border-radius: 16px; padding: .9rem 1.1rem;
    box-shadow: var(--shadow); display: flex; gap: .8rem; align-items: center; max-width: 250px;
}
.hero-figure .float-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center; font-size: 1.3rem; }
.hero-figure .drop { position: absolute; right: -18px; top: 70px; width: 64px; height: 64px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, #8fd0f3, var(--water)); opacity: .9; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--forest); line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--muted); }
@media (max-width: 991px) { .hero { padding: 48px 0 110px; } .hero-figure { margin: 3rem auto 0; } .hero-figure .float-card { left: 8px; } }

/* Pillars */
.pillars { margin-top: -86px; position: relative; z-index: 2; }
.pillar { background: #fff; border-radius: var(--radius); padding: 1.6rem; height: 100%; border: 1px solid var(--line); transition: .25s; display: block; color: var(--ink); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.pillar .num { font-family: var(--font-display); color: var(--water); font-size: .95rem; }
.pillar h5 { margin: .5rem 0 .4rem; }
.pillar p { color: var(--muted); font-size: .9rem; margin: 0; }

/* About */
.about-media { position: relative; }
.about-media img.main { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about-media .badge-year {
    position: absolute; right: -14px; bottom: -22px; background: var(--forest); color: #fff; border-radius: var(--radius);
    padding: 1.2rem 1.4rem; text-align: center; box-shadow: var(--shadow);
}
.about-media .badge-year strong { font-family: var(--font-display); font-size: 2.2rem; display: block; line-height: 1; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0; }
.check-list li { padding-left: 2rem; position: relative; margin-bottom: .7rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--leaf); font-size: 1.1rem; }

/* Category cards */
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; display: block; aspect-ratio: 1 / 1; color: #fff; isolation: isolate; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 63, 49, 0) 30%, rgba(23, 63, 49, .92)); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; }
.cat-card .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: .8rem; }
.cat-card h5 { color: #fff; margin-bottom: .35rem; }
.cat-card p { font-size: .88rem; opacity: .85; margin: 0; max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.cat-card:hover p, .cat-card:focus p { max-height: 120px; }
@media (hover: none) { .cat-card p { max-height: none; } }

/* Brand cards */
.brand-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; display: flex; flex-direction: column; transition: .25s; color: var(--ink); position: relative; }
.brand-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); color: var(--ink); }
.brand-card .logo-wrap { height: 82px; display: flex; align-items: center; margin-bottom: 1rem; }
.brand-card .logo-wrap img { max-height: 82px; max-width: 150px; object-fit: contain; }
.brand-card h5 { font-size: 1.05rem; margin-bottom: .2rem; }
.brand-card .tag { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--water); }
.brand-card p { color: var(--muted); font-size: .9rem; margin: .7rem 0 1rem; flex-grow: 1; }
.badge-soon { position: absolute; top: 1rem; right: 1rem; background: var(--sand); color: var(--muted); font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }

/* Class / event cards */
.class-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1.4rem; display: flex; gap: 1.2rem; height: 100%; }
.class-card .date { flex: 0 0 72px; height: 80px; border-radius: 14px; background: var(--leaf-soft); color: var(--forest); text-align: center; display: flex; flex-direction: column; justify-content: center; }
.class-card .date strong { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.class-card .date span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.class-card h5 { font-size: 1.05rem; margin-bottom: .3rem; }
.meta { font-size: .83rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.meta i { color: var(--leaf); margin-right: .25rem; }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--water-soft); color: #1f6f9c; }
.chip.green { background: var(--leaf-soft); color: var(--forest-2); }
.chip.red { background: #fbe9e8; color: var(--clay); }

/* News */
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; border: 1px solid var(--line); transition: .25s; display: flex; flex-direction: column; color: var(--ink); }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.news-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { padding: 1.3rem 1.4rem 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.news-card h5 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin: .6rem 0; }
.news-card p { color: var(--muted); font-size: .9rem; flex-grow: 1; }

/* CTA band */
.cta-band { border-radius: 28px; padding: 3.4rem; position: relative; overflow: hidden; background: var(--forest); color: #dbe9e0; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 155, 214, .45), transparent 70%); }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; left: -140px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 143, 78, .55), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
@media (max-width: 767px) { .cta-band { padding: 2.2rem 1.5rem; } }

/* Partners marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a img { height: 64px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: .3s; }
.marquee-track a:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* Inner page hero */
.page-hero { padding: 64px 0 56px; background:
    radial-gradient(600px 300px at 90% 0%, var(--water-soft), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, var(--leaf-soft), transparent 70%), var(--sand);
    border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: .4rem 0 .6rem; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0; font-size: 1.05rem; }
.breadcrumb { font-size: .85rem; margin: 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb-item.active { color: var(--leaf); }

/* Content prose (dari RichEditor) */
.prose { font-size: 1.04rem; line-height: 1.85; color: #33413b; }
.prose h2, .prose h3 { margin: 2rem 0 .8rem; font-size: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose img { border-radius: 14px; height: auto; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Brand detail */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 210px; gap: 12px; }
.gallery-grid a:first-child { grid-row: span 2; }
.gallery-grid a { border-radius: 14px; overflow: hidden; display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.04); }
@media (max-width: 575px) { .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } .gallery-grid a:first-child { grid-column: span 2; grid-row: span 1; } }
.highlight { display: flex; gap: 1rem; padding: 1.2rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); height: 100%; }
.highlight.flex-column { align-items: flex-start; }
.highlight .ic { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center; font-size: 1.2rem; }
.highlight h6 { margin-bottom: .2rem; }
.highlight p { margin: 0; font-size: .88rem; color: var(--muted); }
.svc-group h6 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--water); margin: 1.2rem 0 .6rem; }
.svc-pill { display: inline-block; padding: .45rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); margin: 0 .35rem .5rem 0; font-size: .9rem; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.side-card .list a { display: flex; justify-content: space-between; align-items: center; padding: .6rem .2rem; border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 500; font-size: .94rem; }
.side-card .list a:last-child { border-bottom: 0; }
.side-card .list a:hover, .side-card .list a.active { color: var(--leaf); }
.sticky-side { position: sticky; top: 110px; }

/* Forms */
.form-control, .form-select { border-radius: 12px; padding: .75rem 1rem; border-color: var(--line); background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--leaf); box-shadow: 0 0 0 .2rem rgba(47, 143, 78, .15); }
.form-label { font-weight: 600; font-size: .88rem; }
.contact-tile { display: flex; gap: 1rem; padding: 1.2rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); margin-bottom: 1rem; }
.contact-tile .ic { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--water-soft); color: var(--water); display: grid; place-items: center; font-size: 1.2rem; }
.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }

/* FAQ */
.accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; }
.accordion-button { font-weight: 600; padding: 1.15rem 1.3rem; color: var(--forest); }
.accordion-button:not(.collapsed) { background: var(--leaf-soft); color: var(--forest); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

/* Footer */
.site-footer { background: var(--forest); color: #b9cfc2; padding: 72px 0 0; font-size: .93rem; }
.site-footer h6 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer a { color: #b9cfc2; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-logo { background: #fff; border-radius: 14px; padding: .5rem .8rem; display: inline-block; }
.site-footer .footer-logo img { height: 38px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .08); margin-right: .4rem; transition: .2s; }
.social a:hover { background: var(--leaf); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding: 1.3rem 0; font-size: .82rem; }

/* WhatsApp floating */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 1030; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa-float:hover { color: #fff; transform: scale(1.08); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.pagination { --bs-pagination-color: var(--forest-2); --bs-pagination-active-bg: var(--forest-2); --bs-pagination-active-border-color: var(--forest-2); --bs-pagination-border-radius: 10px; }
.empty-state { text-align: center; padding: 3.5rem 1rem; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state i { font-size: 2.2rem; color: var(--leaf); display: block; margin-bottom: .6rem; }

/* Mobile: gutter g-5 (3rem) lebih lebar dari padding container → cegah scroll horizontal */
@media (max-width: 767px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
    .about-media .badge-year { right: 8px; }
}
html, body { overflow-x: clip; }
.contact-tile > div { min-width: 0; } .contact-tile a { overflow-wrap: anywhere; }
