/*
Theme Name: Rafting Telaga Waja
Theme URI: https://raftingsungaitelagawaja.com
Author: Rafting Sungai Telaga Waja
Author URI: https://raftingsungaitelagawaja.com
Description: Theme block Gutenberg ringan untuk Rafting Sungai Telaga Waja – arung jeram, ATV dan fly fox di Rendang, Karangasem, Bali. SEO, schema JSON-LD, llms.txt (AIO), tracking Google Ads dan tombol WhatsApp sudah built-in tanpa plugin. EN: Lightweight Gutenberg block theme (Full Site Editing) for Rafting Sungai Telaga Waja – white water rafting, ATV ride and fly fox in Rendang, Karangasem, Bali. Built-in SEO (meta, Open Graph, JSON-LD schema), AIO/GEO (llms.txt, answer-first patterns, FAQ schema), Google Ads conversion tracking and WhatsApp booking – no plugins required.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rafting-telaga-waja
Tags: full-site-editing, block-patterns, block-styles, one-column, wide-blocks, custom-colors, editor-style, translation-ready
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; max-width: 100%; }
:where(a) { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.screen-reader-text { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
.skip-link:focus { position:fixed; top:8px; left:8px; z-index:100000; width:auto; height:auto; clip:auto; background:#fff; color:#000; padding:10px 16px; border-radius:6px; }

/* ---------- Header ---------- */
.rtw-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
.rtw-header .wp-block-site-title a { text-decoration: none; }
.rtw-header .wp-block-navigation a { font-weight: 600; letter-spacing: .02em; }
.rtw-topbar a { color: inherit; text-decoration: none; }
.admin-bar .rtw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rtw-header { top: 46px; } .rtw-hide-mobile { display:none !important; } }

/* ---------- Eyebrow / kicker ---------- */
.rtw-eyebrow { display:inline-flex; align-items:center; gap:.6em; text-transform:uppercase; letter-spacing:.18em; font-size:.8rem; font-weight:700; }
.rtw-eyebrow::before { content:""; width:28px; height:2px; background: currentColor; display:inline-block; }

/* ---------- Hero ---------- */
.rtw-hero h1 { text-wrap: balance; }
.rtw-hero .wp-block-cover__inner-container { max-width: var(--wp--style--global--wide-size); }
.rtw-hero-badges p { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- Stat bar ---------- */
.rtw-stats .wp-block-column { border-left: 2px solid rgba(255,255,255,.18); padding-left: 1.25rem; }
.rtw-stats .wp-block-column:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 781px) {
  .rtw-stats.wp-block-columns { flex-wrap: wrap !important; }
  .wp-block-columns.rtw-stats > .wp-block-column.wp-block-column { border-left:0; padding-left:0; flex-basis: calc(50% - 1rem) !important; }
}

/* ---------- Product cards ---------- */
.rtw-card { position: relative; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.rtw-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(8,47,73,.4); }
.rtw-card .wp-block-cover { transition: transform .6s ease; }
.rtw-card:hover .wp-block-cover__image-background { transform: scale(1.06); }
.rtw-card .wp-block-cover__image-background { transition: transform .8s ease; }
.rtw-tag { display:inline-block; }

/* ---------- Feature list ---------- */
.rtw-check-list { list-style: none; padding-left: 0; }
.rtw-check-list li { position: relative; padding-left: 1.9em; margin-bottom: .55em; }
.rtw-check-list li::before { content:""; position:absolute; left:0; top:.2em; width:1.2em; height:1.2em; border-radius:50%; background: var(--wp--preset--color--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/62% no-repeat; }

/* ---------- Steps / timeline ---------- */
.rtw-step-num { font-family: var(--wp--preset--font-family--heading); line-height: 1; }

/* ---------- FAQ (core/details) ---------- */
.rtw-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1.1rem 0; }
.rtw-faq .wp-block-details summary { font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; position: relative; padding-right: 2.5rem; }
.rtw-faq .wp-block-details summary::-webkit-details-marker { display:none; }
.rtw-faq .wp-block-details summary::after { content:"+"; position:absolute; right:0; top:50%; transform: translateY(-50%); width:1.8rem; height:1.8rem; border-radius:50%; background: var(--wp--preset--color--primary); color:#fff; display:grid; place-items:center; font-weight:400; transition: transform .25s ease; }
.rtw-faq .wp-block-details[open] summary::after { content:"–"; background: var(--wp--preset--color--water); }
.rtw-faq .wp-block-details > *:not(summary) { margin-top: .75rem; color: var(--wp--preset--color--muted); }

/* ---------- Pricing ---------- */
.rtw-price-card.is-featured { outline: 3px solid var(--wp--preset--color--accent); }
.rtw-price { font-family: var(--wp--preset--font-family--heading); }

/* ---------- Testimonials ---------- */
.rtw-stars { color: #FFB400; letter-spacing: .12em; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,.45); }
.is-style-rtw-whatsapp .wp-block-button__link { background:#25D366 !important; color:#0b2a1a !important; }

/* ---------- Floating WhatsApp + mobile sticky bar ---------- */
.rtw-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 25px -6px rgba(0,0,0,.4); transition: transform .2s ease; }
.rtw-wa-float:hover { transform: scale(1.07); }
.rtw-wa-float svg { width: 32px; height: 32px; fill: #fff; }
.rtw-wa-float::after { content:""; position:absolute; inset:0; border-radius:50%; box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: rtwPulse 2.4s infinite; }
@keyframes rtwPulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.55)} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }
.rtw-mobile-bar { display: none; }
@media (max-width: 781px) {
  .rtw-wa-float { display: none; }
  .rtw-mobile-bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--wp--preset--color--dark); box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
  .rtw-mobile-bar a { display:flex; align-items:center; justify-content:center; gap:8px; padding: 13px 10px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .95rem; }
  .rtw-mobile-bar .rtw-call { background: rgba(255,255,255,.12); color:#fff; }
  .rtw-mobile-bar .rtw-wa { background:#25D366; color:#0b2a1a; }
  .rtw-mobile-bar svg { width:18px; height:18px; fill: currentColor; }
  body { padding-bottom: 76px; }
}

/* ---------- Breadcrumbs ---------- */
.rtw-breadcrumbs { font-size: .875rem; }
.rtw-breadcrumbs ol { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.4em; }
.rtw-breadcrumbs li:not(:last-child)::after { content:"/"; margin-left:.4em; opacity:.5; }
.rtw-breadcrumbs a { color: inherit; }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Links on dark/coloured surfaces inherit text colour */
.has-base-color a:not(.wp-element-button), .wp-block-cover a:not(.wp-element-button) { color: inherit; }
.rtw-card h3 a { text-decoration: none; }
.rtw-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.rtw-card .wp-block-buttons { position: relative; z-index: 2; }

/* Section flow: no gaps between full-width sections / template parts */
.wp-site-blocks > main, .wp-site-blocks > footer, .wp-site-blocks > .wp-block-group { margin-block-start: 0; }
.rtw-flush > * { margin-block-start: 0 !important; }
.rtw-eyebrow.has-text-align-center { display: flex; justify-content: center; }

/* Footer lists */
footer.wp-block-template-part ul { list-style: none; padding-left: 0; }
footer.wp-block-template-part li { margin-bottom: .45em; }
footer.wp-block-template-part a { text-decoration: none; }
footer.wp-block-template-part a:hover { text-decoration: underline; color: var(--wp--preset--color--accent); }

.rtw-btn-full, .rtw-btn-full .wp-block-button__link { width: 100%; }
.rtw-btn-sm .wp-block-button__link { font-size: .85rem; padding: .7rem 1.3rem; }

/* Nuansa air: garis ombak halus di bawah section biru */
.rtw-wave { position: relative; }
.rtw-wave::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 C150 28 300 0 450 14 S750 28 900 14 1050 0 1200 14 V28 H0Z' fill='%23ffffff'/%3E%3C/svg%3E") center/100% 100% no-repeat; pointer-events:none; }
.rtw-wave.rtw-wave-sand::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 C150 28 300 0 450 14 S750 28 900 14 1050 0 1200 14 V28 H0Z' fill='%23EFF8FC'/%3E%3C/svg%3E"); }
.rtw-price-note { opacity: .8; }

.rtw-save { display:inline-block; background: var(--wp--preset--color--leaf); color:#fff; padding: 4px 12px; border-radius: 999px; font-weight: 700; margin-top: -.4rem !important; }
.has-sand-background-color .rtw-save { color:#fff; }
