/*
Theme Name:   Terapi Wicara Bandung
Description:  Tema ringan untuk Terapi Wicara Bandung, dibuat untuk Elementor: company profile, e-course (Tutor LMS), toko (WooCommerce), dan area member laporan terapi mingguan untuk klien anak dan dewasa. Semua halaman, logo, foto, dan teks bisa diubah lewat Elementor.
Version:      1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Author:       Terapi Wicara Bandung
License:      GNU General Public License v2 or later
Text Domain:  terapiwicara
*/

:root {
	--tw-primary: var(--e-global-color-primary, #1f9e9a);
	--tw-secondary: var(--e-global-color-secondary, #22343c);
	--tw-text: var(--e-global-color-text, #3b4a52);
	--tw-accent: var(--e-global-color-accent, #f5a623);
	--tw-soft: #eef7f6;
	--tw-line: #e3eaee;
	--tw-radius: 16px;
	--tw-wrap: 1140px;
	--tw-font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--tw-font); color: var(--tw-text); background: #fff; line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--tw-primary); }
h1, h2, h3, h4, h5, h6 { color: var(--tw-secondary); line-height: 1.25; font-weight: 800; margin: 0 0 .6em; }
.tw-wrap { width: 100%; max-width: var(--tw-wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 14px; clip: auto; width: auto; height: auto; }

/* Tombol */
.tw-btn, .wp-block-button__link, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	display: inline-block; background: var(--tw-primary); color: #fff !important; border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 700; text-decoration: none; line-height: 1.2; cursor: pointer; transition: filter .15s, transform .15s;
}
.tw-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { filter: brightness(.94); transform: translateY(-1px); background: var(--tw-primary); }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--tw-accent); }
.tw-btn-ghost { background: transparent; color: var(--tw-primary) !important; box-shadow: inset 0 0 0 2px var(--tw-primary); }

/* Header */
.tw-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tw-line); }
.admin-bar .tw-header { top: 32px; }
.tw-header .tw-wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.tw-brand { flex-shrink: 0; white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tw-secondary); font-weight: 800; font-size: 1.2em; margin-right: auto; }
.tw-brand img { max-height: 52px; width: auto; display: block; }
.tw-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.tw-nav li { position: relative; }
.tw-nav a { white-space: nowrap; display: block; padding: 8px 12px; color: var(--tw-secondary); text-decoration: none; font-weight: 700; border-radius: 10px; }
.tw-nav a:hover, .tw-nav .current-menu-item > a { color: var(--tw-primary); background: var(--tw-soft); }
.tw-nav ul ul { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--tw-line); border-radius: 12px; padding: 6px; flex-direction: column; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.tw-nav li:hover > ul, .tw-nav li:focus-within > ul { display: flex; }
.tw-actions { display: flex; align-items: center; gap: 10px; }
.tw-cart { position: relative; color: var(--tw-secondary); display: inline-flex; padding: 6px; }
.tw-cart-count { position: absolute; top: -2px; right: -4px; background: var(--tw-accent); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.tw-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--tw-secondary); }

@media (max-width: 1080px) {
	.tw-toggle { display: inline-flex; }
	.tw-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--tw-line); padding: 10px 20px 18px; }
	.tw-nav.is-open { display: block; }
	.tw-nav ul { flex-direction: column; }
	.tw-nav ul ul { display: flex; position: static; box-shadow: none; border: 0; padding-left: 14px; }
	.tw-actions .tw-btn { padding: 9px 14px; font-size: .9em; }
}
@media (max-width: 782px) { .admin-bar .tw-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tw-header { top: 0; } }

/* Konten bawaan (halaman non-Elementor, blog, WooCommerce) */
.tw-main { min-height: 50vh; }
.tw-content { padding: 56px 0 72px; }
.tw-page-title { padding: 54px 0 34px; background: var(--tw-soft); }
.tw-page-title h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.tw-entry > * { max-width: 100%; }
.tw-posts { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tw-card { border: 1px solid var(--tw-line); border-radius: var(--tw-radius); overflow: hidden; background: #fff; }
.tw-card-body { padding: 20px 22px; }
.tw-card h2 { font-size: 1.25em; }
.tw-card h2 a { color: inherit; text-decoration: none; }
.tw-meta { color: #7b8a92; font-size: .9em; }
.tw-pagination { margin-top: 32px; }

/* Footer */
.tw-footer { background: var(--tw-secondary); color: #d5e1e5; padding: 64px 0 0; margin-top: 0; }
.tw-footer a { color: #fff; text-decoration: none; }
.tw-footer a:hover { text-decoration: underline; }
.tw-footer h4 { color: #fff; font-size: 1.05em; margin-bottom: 14px; }
.tw-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.tw-footer ul { list-style: none; margin: 0; padding: 0; }
.tw-footer li { margin-bottom: 8px; }
.tw-footer .tw-brand { color: #fff; margin-bottom: 14px; }
.tw-footer .tw-brand img { max-height: 56px; filter: none; }
.tw-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding: 20px 0; font-size: .9em; color: #a9bcc3; }
@media (max-width: 800px) { .tw-footer-grid { grid-template-columns: 1fr; } }

/* Tombol WhatsApp melayang */
.tw-wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(37, 211, 102, .4); transition: transform .15s; }
.tw-wa:hover { transform: scale(1.07); }

/* WooCommerce */
.woocommerce ul.products li.product { border: 1px solid var(--tw-line); border-radius: var(--tw-radius); padding: 14px; text-align: center; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--tw-secondary); font-weight: 800; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--tw-primary); font-weight: 800; }
.woocommerce span.onsale { background: var(--tw-accent); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border: 1px solid var(--tw-line); border-radius: var(--tw-radius); overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; text-decoration: none; color: var(--tw-secondary); font-weight: 700; border-bottom: 1px solid var(--tw-line); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--tw-primary); color: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid var(--tw-line); border-radius: 10px; padding: 10px 12px; }

/* Konten cadangan (tampil jika Elementor belum aktif) */
.tw-fb-section { padding: 64px 0; }
.tw-fb-section:nth-child(even) { background: var(--tw-soft); }
.tw-fb-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: center; }
.tw-fb-box { background: #fff; border: 1px solid var(--tw-line); border-radius: var(--tw-radius); padding: 22px; height: 100%; }
.tw-fb-section img { border-radius: var(--tw-radius); }

.tw-actions .tw-btn { white-space: nowrap; }
@media (max-width: 600px) {
	.tw-header .tw-wrap { gap: 10px; min-height: 64px; padding: 0 16px; }
	.tw-brand { white-space: normal; font-size: 1em; flex-shrink: 1; min-width: 0; }
	.tw-brand img { max-height: 42px; }
	.tw-actions { gap: 4px; }
	.tw-actions .tw-btn { padding: 8px 12px; font-size: .82em; }
	.tw-wrap { padding: 0 16px; }
}
