/*
Theme Name: Restu Fattah
Description: Block theme company profile furniture dan interior. Semua bagian bisa diedit lewat Appearance > Editor. Produk dikelola lewat menu Produk, tombol CTA mengarah ke WhatsApp.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: restu-fattah
*/

:root {
	--rf-gold: #b9812f;
	--rf-gold-dark: #a06f25;
	--rf-dark: #3e2a1a;
	--rf-line: #ece6dc;
	--rf-muted: #6f6f6f;
}

body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }
.rf-section, .wp-block-cover.alignfull, .rf-footer { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* ---------- Header ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
body.admin-bar header.wp-block-template-part { top: 32px; }
.rf-header { background: #fff; border-bottom: 1px solid var(--rf-line); padding: 14px 20px; }
.rf-brand, .rf-brand a { color: var(--rf-gold); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; font-size: 1.25rem; margin: 0; }
.rf-nav a { font-weight: 600; font-size: .82rem; color: var(--rf-dark); text-decoration: none; padding-bottom: 4px; }
.rf-nav .current-menu-item > a,
.rf-nav a[aria-current="page"],
.rf-nav a:hover { color: var(--rf-gold); border-bottom: 2px solid var(--rf-gold); }
.rf-header-right { gap: 28px; }
.rf-btn-sm .wp-block-button__link { font-size: .75rem; padding: 8px 16px; }

/* ---------- Tombol & WhatsApp ---------- */
.rf-wa .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; }
.rf-wa .wp-block-button__link::before {
	content: ""; width: 18px; height: 18px; flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.2 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.2-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.8s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.4.6c-.1.2-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.1 1 2.1 1.3 2.4 1.5.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.8-.1 1.3z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.rf-wa-light .wp-block-button__link { background: #fff; color: var(--rf-dark); }
.rf-wa-light .wp-block-button__link:hover { background: #f6efe4; color: var(--rf-dark); }
.rf-wa-light .wp-block-button__link::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325d366'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.2 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.2-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.8s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.4.6c-.1.2-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.1 1 2.1 1.3 2.4 1.5.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.8-.1 1.3z'/%3E%3C/svg%3E");
}
.is-style-outline .wp-block-button__link { background: transparent; border: 1px solid currentColor; color: var(--rf-gold); }
.rf-hero .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.8); }
.rf-hero .is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.12); }

/* ---------- Hero ---------- */
.rf-hero { color: #fff; }
.rf-hero .wp-block-cover__inner-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 40px 20px; box-sizing: border-box; }
.rf-hero .rf-hero-title, .rf-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; font-weight: 600; margin: .2em 0 .4em; }
.rf-hero-sm .rf-hero-title, .rf-hero-sm h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.rf-hero-text { max-width: 520px; color: #f1e9dc; font-size: .95rem; }
.rf-kicker { color: #e3b66b; font-weight: 500; margin: 0; }

/* ---------- Section ---------- */
.rf-section { padding: 56px 20px; }
.rf-soft { background: #f5f5f5; }
.rf-title { font-size: 1.5rem; font-weight: 600; margin: 0; color: var(--rf-dark); }
.rf-center { text-align: center; margin-bottom: 28px; }
.rf-center::after { content: ""; display: block; width: 44px; height: 3px; background: var(--rf-gold); margin: 10px auto 0; border-radius: 2px; }
.rf-sub { color: #7a7a7a; font-size: .88rem; margin: .3em 0 0; }
.rf-head { margin-bottom: 26px; align-items: flex-end; }
.rf-more, .rf-more a { color: var(--rf-gold); font-size: .85rem; font-weight: 500; text-decoration: none; margin: 0; }

/* ---------- Kartu ---------- */
.rf-card { background: #fff; border: 1px solid var(--rf-line); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(62,42,26,.05); height: 100%; }
.rf-card figure { margin: 0; }
.rf-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rf-card-body { padding: 16px 18px 18px; }
.rf-card-body h3, .rf-card-body h4 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.rf-card-body p { font-size: .8rem; color: var(--rf-muted); margin: 0 0 6px; }
.rf-card-body p.rf-card-price { color: var(--rf-gold); font-weight: 600; font-size: .9rem; }
.rf-card-body p.rf-more { color: var(--rf-gold); }
.rf-card-pad { padding: 22px 18px; }
.rf-card-row { align-items: center; }
.rf-arrow, .rf-arrow a { margin: 0; width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--rf-dark); }

.rf-icon-circle { width: 52px; height: 52px; border-radius: 50%; background: #fbf6ee; border: 1px solid var(--rf-line); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 10px; }
.rf-icon-ring { background: #fff; border-color: var(--rf-gold); width: 60px; height: 60px; }
.rf-feature, .rf-step, .rf-cat, .rf-stat { text-align: center; }
.rf-feature-title { font-size: .92rem; font-weight: 600; margin: 0 0 4px; }
.rf-feature-text { font-size: .78rem; color: var(--rf-muted); margin: 0; }
.rf-step-num { color: var(--rf-gold); font-weight: 600; text-decoration: underline; margin: 0; font-size: .85rem; }
.rf-card-pad .rf-feature-title, .rf-card-pad .rf-feature-text { text-align: center; }

.rf-cats { gap: 14px 30px; margin-top: 20px; }
.rf-cat { min-width: 84px; }
.rf-cat-label, .rf-cat-label a { font-size: .78rem; font-weight: 500; color: var(--rf-dark); text-decoration: none; margin: 0; }

.rf-port-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.rf-port-title { font-weight: 600; font-size: .88rem; margin: 8px 0 0; color: var(--rf-dark); }
.rf-port-city { font-size: .78rem; color: var(--rf-muted); margin: 0; }

.rf-testi { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid var(--rf-line); height: 100%; }
.rf-quote { font-style: italic; color: #555; font-size: .9rem; }
.rf-client-row { align-items: center; gap: 12px; margin-top: 12px; }
.rf-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.rf-client { font-weight: 600; font-size: .85rem; margin: 0; }
.rf-client-sub { font-size: .75rem; color: var(--rf-muted); margin: 0; }

.rf-stat-num { font-size: 2rem; font-weight: 700; color: var(--rf-gold); margin: 0; line-height: 1.1; }
.rf-stat-label { font-size: .85rem; color: var(--rf-muted); margin: 4px 0 0; }

/* ---------- Produk ---------- */
.rf-product-card { background: #fff; border: 1px solid var(--rf-line); border-radius: 10px; overflow: hidden; height: 100%; }
.rf-product-card .wp-block-post-featured-image { margin: 0; background: #cfa98c; }
.rf-product-card .wp-block-post-featured-image img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s; }
.rf-product-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.rf-product-info { padding: 10px 14px 14px; }
.rf-product-title { font-size: .84rem; font-weight: 600; margin: 0 0 3px; line-height: 1.35; }
.rf-product-title a { color: var(--rf-dark); text-decoration: none; }
.rf-price { color: var(--rf-gold); font-weight: 600; margin: 0; font-size: .88rem; }
.rf-products .wp-block-post-template { gap: 18px; }
.rf-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wp-block-query-pagination { margin-top: 32px; gap: 14px; font-size: .85rem; }
.wp-block-query-pagination-numbers .page-numbers { padding: 3px 9px; border-radius: 6px; text-decoration: none; color: var(--rf-dark); }
.wp-block-query-pagination-numbers .page-numbers.current { background: var(--rf-gold); color: #fff; }
.wp-block-query-pagination a { color: var(--rf-dark); text-decoration: none; }

.rf-sidebar h4 { font-size: .95rem; font-weight: 600; margin: 0 0 10px; }
.rf-cat-list { list-style: none; margin: 0; padding: 0; }
.rf-cat-list li { margin: 0 0 4px; }
.rf-cat-list a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .84rem; font-weight: 500; color: var(--rf-dark); text-decoration: none; }
.rf-cat-list .is-active a, .rf-cat-list a:hover { background: #f8efe1; color: var(--rf-gold); }

/* ---------- Detail produk ---------- */
.rf-gallery-main { border-radius: 14px; overflow: hidden; background: #cfa98c; }
.rf-gallery-main img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rf-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.rf-gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; width: 72px; height: 56px; background: none; }
.rf-gallery-thumbs button.is-active { border-color: var(--rf-gold); }
.rf-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-single-title { font-size: 1.7rem; margin: 0 0 6px; }
.rf-single-price { color: var(--rf-gold); font-size: 1.5rem; font-weight: 700; margin: 0 0 14px; }
.rf-excerpt { font-size: .88rem; color: #555; margin-bottom: 20px; }
.rf-box { background: #f8f3ec; border-radius: 12px; padding: 24px 28px; height: 100%; box-sizing: border-box; }
.rf-box h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 16px; }
.rf-box p { font-size: .88rem; }
.rf-check ul { list-style: none; padding: 0; margin: 0; }
.rf-check li { position: relative; padding-left: 30px; margin: 0 0 14px; font-size: .85rem; color: #555; }
.rf-check li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--rf-gold); color: #fff; font-size: .62rem; display: flex; align-items: center; justify-content: center; }
.rf-specs { width: 100%; border-collapse: collapse; }
.rf-specs td { padding: 5px 0; font-size: .82rem; vertical-align: top; color: #555; border: 0; }
.rf-specs td:first-child { width: 36%; }
.rf-map img { width: 100%; border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; display: block; }

/* ---------- CTA ---------- */
.rf-cta { color: #fff; }
.rf-cta .wp-block-cover__inner-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 30px 20px; box-sizing: border-box; }
.rf-cta h2 { color: #fff; font-size: 1.5rem; margin: 0 0 6px; }
.rf-cta p { color: #eadfce; margin: 0; font-size: .9rem; }
.rf-cta-cols { align-items: center; margin: 0; }

/* ---------- Footer ---------- */
.rf-footer { background: #fff; border-top: 1px solid var(--rf-line); padding-top: 48px; }
.rf-footer-main { padding: 0 20px 36px; }
.rf-footer h4 { font-size: 1rem; font-weight: 600; margin: 0 0 12px; }
.rf-footer p { font-size: .8rem; color: var(--rf-muted); margin: 0 0 6px; }
.rf-footer a { color: var(--rf-muted); text-decoration: none; }
.rf-footer a:hover { color: var(--rf-gold); }
.rf-flink { margin: 0 0 6px; }
.rf-social { margin-top: 12px; }
.rf-copyright { background: var(--rf-gold); text-align: center; padding: 10px 20px; }
.rf-copyright p { margin: 0; color: #fff; font-size: .75rem; }

/* ---------- Halaman umum ---------- */
.rf-main > .wp-block-post-content > :not(.alignfull) { padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.rf-gutter { padding: 48px 20px; }

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
	.rf-related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 781px) {
	.rf-section { padding: 40px 16px; }
	.rf-header { padding: 12px 16px; }
	.rf-header-right .wp-block-buttons { display: none; }
	.rf-hero .wp-block-cover__inner-container { padding: 32px 16px; }
	.rf-cta-cols .wp-block-buttons { justify-content: flex-start; }
	body.admin-bar header.wp-block-template-part { top: 46px; }
}
