/*
Theme Name:   Blocksy Child Prima
Description:  Tampilan katalog Prima Springbed di atas Blocksy. Data produk dikelola plugin Prima Katalog.
Template:     blocksy
Version:      1.1.3
Author:       Thrivelab Digital
Text Domain:  blocksy-child-prima
License:      GPL-2.0-or-later
*/

/* Font: DM Sans, served locally (SIL OFL, see assets/fonts). */
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url("assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url("assets/fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Design tokens (design.md v1.0). The palette is a starting proposal from the product photos,
 * not an official brand colour: change these values if the owner supplies brand colours.
 * Doubled :root beats Blocksy's customizer output, which is printed later in <head>.
 */
:root:root {
	--prima-canvas: #f7f4ee;
	--prima-surface: #ffffff;
	--prima-surface-warm: #eee7db;
	--prima-image-bg: #f4eee5;
	--prima-text: #282723;
	--prima-text-2: #625f58;
	--prima-line: #dcd5ca;
	--prima-line-strong: #b9b0a3;
	--prima-accent: #684e3b;
	--prima-accent-hover: #503a2b;
	--prima-focus: #684e3b;
	--prima-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--prima-max: 1240px;
	--prima-gutter: 24px;
	--prima-radius: 6px;
	--prima-radius-btn: 6px;
	--prima-section: 96px;

	/* Blocksy palette mapped to the tokens so Blocksy parts (header, menus, forms) match. */
	--theme-palette-color-1: var(--prima-accent);
	--theme-palette-color-2: var(--prima-accent-hover);
	--theme-palette-color-3: var(--prima-text-2);
	--theme-palette-color-4: var(--prima-text);
	--theme-palette-color-5: var(--prima-line);
	--theme-palette-color-6: var(--prima-surface-warm);
	--theme-palette-color-7: var(--prima-canvas);
	--theme-palette-color-8: var(--prima-surface);
	--theme-text-color: var(--prima-text);
	--theme-headings-color: var(--prima-text);
	--theme-heading-color: var(--prima-text);
	--theme-link-initial-color: var(--prima-accent);
	--theme-link-hover-color: var(--prima-accent-hover);
	--theme-border-color: var(--prima-line);
	--theme-button-background-initial-color: var(--prima-accent);
	--theme-button-background-hover-color: var(--prima-accent-hover);
	--theme-button-border-radius: var(--prima-radius-btn);
	--theme-button-min-height: 48px;
	--theme-font-family: var(--prima-font);
	--theme-normal-container-max-width: var(--prima-max);
	--theme-form-field-border-radius: var(--prima-radius-btn);
	/* Blocksy container edges follow the same side gutter as the catalog and Elementor sections. */
	--theme-container-edge-spacing: calc(100vw - 2 * var(--prima-gutter));
}
@media (max-width: 999px) { :root:root { --prima-gutter: 20px; --prima-section: 72px; } }
@media (max-width: 689px) { :root:root { --prima-gutter: 16px; --prima-section: 56px; } }

body {
	background-color: var(--prima-canvas);
	color: var(--prima-text);
	font-family: var(--prima-font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
/* Elementor's global kit may paint the body white; keep the canvas colour. */
body[class*="elementor-kit-"] { background-color: var(--prima-canvas); }
h1, h2, h3, h4, h5, h6 { font-family: var(--prima-font); color: var(--prima-text); letter-spacing: -0.01em; }
:where(a):focus-visible, :where(button):focus-visible, :where(input, select, textarea):focus-visible {
	outline: 3px solid var(--prima-focus);
	outline-offset: 2px;
}
::selection { background: var(--prima-surface-warm); }

/* Header: a hairline instead of a shadow. Menu type and colours follow the tokens, whatever the Customizer holds. */
#header [data-id^="menu"], #header .site-branding, #offcanvas {
	--theme-font-family: var(--prima-font);
	--theme-link-initial-color: var(--prima-text);
	--theme-link-hover-color: var(--prima-accent);
	--theme-link-active-color: var(--prima-accent);
}
#header .menu > li > a, #header .site-title, #offcanvas .menu a { font-family: var(--prima-font) !important; }
#header .menu > li:not(.prima-menu-cta) > a { color: var(--prima-text); }
#header .menu > li:not(.prima-menu-cta).current-menu-item > a,
#header .menu > li:not(.prima-menu-cta) > a:hover { color: var(--prima-accent); }
#header .menu > li.current-menu-item:not(.prima-menu-cta) > a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
#header .site-branding[data-logo="top"] { display: flex; flex-direction: row; align-items: center; gap: 12px; }
#header .site-logo-container img { height: 52px !important; width: auto !important; max-height: none; }
#header .site-title { font-weight: 700; letter-spacing: -0.01em; color: var(--prima-text); }
@media (max-width: 689px) { #header .site-logo-container img { height: 40px !important; } #header .site-title { font-size: 18px; } }
#header [data-row] { border-bottom: 1px solid var(--prima-line); }
#header .menu > li > a { font-weight: 500; font-size: 15px; text-transform: none; letter-spacing: 0; }
#header .ct-menu-link { text-transform: none; }

/* Menu item with the CSS class "prima-menu-cta" (link: /wa/) renders as the header WhatsApp button. */
#header .menu > li.prima-menu-cta > a {
	background: var(--prima-accent); color: #fff; border-radius: var(--prima-radius-btn);
	padding-inline: 16px; height: 44px; margin-inline-start: 8px; align-self: center;
}
#header .menu > li.prima-menu-cta > a:hover { background: var(--prima-accent-hover); color: #fff; }
#offcanvas .menu > li.prima-menu-cta > a { font-weight: 600; color: var(--prima-accent); }

/* ---------- Catalog page shells (archive, category, search, detail) ---------- */
.prima-page { padding-block: 48px var(--prima-section); }
.prima-page__head { margin-bottom: 28px; max-width: 760px; }
.prima-page__eyebrow { margin: 0 0 8px; font-size: 14px; color: var(--prima-text-2); }
.prima-page__eyebrow a { color: inherit; }
.prima-page__title { margin: 0; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; font-weight: 600; }
.prima-page__intro { margin: 12px 0 0; font-size: 18px; color: var(--prima-text-2); }
.prima-breadcrumb { font-size: 14px; color: var(--prima-text-2); margin: 0 0 24px; }
.prima-breadcrumb a { color: var(--prima-text-2); }
.prima-breadcrumb span[aria-hidden] { margin-inline: 6px; }
.prima-pagination { margin-top: 48px; }
.prima-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.prima-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--prima-line); border-radius: 6px; background: var(--prima-surface); color: var(--prima-text); text-decoration: none; padding: 0 12px; }
.prima-pagination .page-numbers.current { background: var(--prima-text); color: #fff; border-color: var(--prima-text); }

/* ---------- Home and content pages built with Elementor (CSS classes set on containers) ---------- */
.elementor .prima-section { padding-block: var(--prima-section) !important; padding-inline: var(--prima-gutter) !important; }
.elementor .prima-section--warm { background: var(--prima-surface-warm); }
.elementor .prima-section--tight { padding-block: 56px !important; }

.prima-hero { padding-block: 56px 72px !important; }
.prima-hero .prima-hero__eyebrow .elementor-heading-title { font-size: 15px; font-weight: 600; color: var(--prima-accent); letter-spacing: .02em; }
.prima-hero .prima-hero__title .elementor-heading-title { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.06; font-weight: 600; letter-spacing: -0.02em; color: var(--prima-text); }
.prima-hero .prima-hero__lead { font-size: 19px; line-height: 1.6; color: var(--prima-text-2); max-width: 34em; }
.prima-hero .prima-hero__lead p { margin: 0; }
.prima-hero__media img { display: block; width: 100%; height: auto; border-radius: 8px; }
.prima-hero__media .elementor-shortcode > p { margin: 0; }
.prima-hero__actions .elementor-shortcode { display: flex; flex-wrap: wrap; gap: 12px; }
.prima-hero__actions .elementor-shortcode p { display: contents; margin: 0; }

.prima-h2 .elementor-heading-title { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; font-weight: 600; color: var(--prima-text); }
.prima-lead { font-size: 18px; color: var(--prima-text-2); }
.prima-lead p:last-child { margin-bottom: 0; }
.prima-textlink a { font-weight: 600; color: var(--prima-accent); text-decoration: underline; text-underline-offset: 4px; }

.elementor .elementor-widget-shortcode .elementor-shortcode > p:empty { display: none; }

/* Text pages without Elementor (Tentang Kami, Kontak, Kebijakan): a readable 760px column. */
body.page:not(.elementor-page) .entry-content.is-layout-constrained { --theme-block-width: min(760px, calc(100% - 2 * var(--prima-gutter))); }
body.page:not(.elementor-page) .hero-section .entry-header { max-width: 760px; margin-inline: auto; }
body.page:not(.elementor-page) .entry-content > p > a.prima-btn { margin-top: 8px; }

/* Blocksy footer tone */
#footer { border-top: 1px solid var(--prima-line); }
