/*
Theme Name: Vinsolusindo
Theme URI: https://vinsolusindo.co.id
Author: Vinsolusindo
Author URI: https://vinsolusindo.co.id
Description: Company profile dark theme—solusi teknologi terintegrasi, nuansa dark, list profesional.
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vinsolusindo
Tags: one-column, custom-colors, custom-menu, full-site-editing, block-patterns, dark, business
*/

/* ========== DARK THEME ROOT ========== */
:root {
	--vinsolusindo-bg: #0d0d0d;
	--vinsolusindo-surface: #161616;
	--vinsolusindo-surface-elevated: #1e1e1e;
	--vinsolusindo-text: #f0f0f0;
	--vinsolusindo-muted: #a1a1aa;
	--vinsolusindo-accent: #60a5fa;
	--vinsolusindo-cta: #fbbf24;
	--vinsolusindo-border: rgba(255, 255, 255, 0.08);
	--vinsolusindo-list-marker: #60a5fa;
}

/* header logo sizing */
.wp-block-site-logo img {
	max-width: 120px;
	height: auto;
}

/* also target any direct logo image in header pattern */
.wp-block-group.vinsol-header-logo img,
.wp-block-image img {
	max-width: 120px;
	height: auto;
}

/* sticky header background or shadow? optional */
.vinsol-sticky-header {
	background: var(--vinsolusindo-bg);
	z-index: 999;
}

html,
body,
.wp-site-blocks,
main.wp-block-group,
.editor-styles-wrapper .wp-block-post-content,
.wp-block-post-content,
.entry-content {
	background-color: var(--vinsolusindo-bg) !important;
	color: var(--vinsolusindo-text);
}

/* Area main konten halaman (Tentang Kami, dll): wajib gelap */
main,
main .wp-block-group {
	background-color: var(--vinsolusindo-bg) !important;
}

/* Section groups that had light gray → dark surface */
.wp-block-group.alignfull.has-background[style*="background-color:#f8f9fa"],
.wp-block-group.alignfull.has-background[style*="background-color: rgb(248, 249, 250)"] {
	background-color: var(--vinsolusindo-surface) !important;
}

/* Constrained content area */
.wp-block-group.alignfull .wp-block-group:not(.alignwide):not(.alignfull) {
	max-width: var(--wp--style--global--wide-size, 1340px);
	margin-left: auto;
	margin-right: auto;
}

/* ========== BATAS ANTAR SECTION ========== */
.wp-block-group.alignfull + .wp-block-group.alignfull {
	border-top: 1px solid var(--vinsolusindo-border);
}

/* ========== TYPOGRAPHY ON DARK ========== */
.wp-block-post-content,
.entry-content,
.wp-block-group {
	color: var(--vinsolusindo-text);
}

.wp-block-heading,
h1, h2, h3, h4, h5, h6 {
	color: var(--vinsolusindo-text);
	font-weight: 600;
	letter-spacing: -0.02em;
}

/* Judul halaman "Beranda" di atas hero: disembunyikan (hilangkan) */
.page main .wp-block-post-title,
.home main .wp-block-post-title {
	display: none !important;
}

.wp-block-paragraph.has-text-align-center {
	color: var(--vinsolusindo-text);
}

/* Muted text for subtitles */
.wp-block-paragraph.has-small-font-size {
	color: var(--vinsolusindo-muted);
}

a {
	color: var(--vinsolusindo-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}
a:hover {
	color: var(--vinsolusindo-cta);
}

/* ========== PROFESSIONAL LISTS ========== */
/* Unordered lists – left border + spacing */
.wp-block-post-content ul,
.entry-content ul,
.wp-block-group ul,
.wp-block-list,
.wp-block-list ul {
	list-style: none;
	padding-left: 0;
	margin: 0.75em 0 1.25em;
}

/* ========== STRUCTURAL HELPERS ========== */
/* Sections and containers to give clear boundaries for each part of the page. */
.vinsol-section {
	position: relative;
	/* default vertical padding; individual sections may override */
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.vinsol-container {
	max-width: var(--wp--style--global--wide-size, 1340px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--wp--preset--spacing--50);
	padding-right: var(--wp--preset--spacing--50);
}

/* helper for full‑width groups that still need an inner container */
.wp-block-group.alignfull > .vinsol-container {
	/* nothing extra, just makes markup explicit */
}

.wp-block-post-content ul li,
.entry-content ul li,
.wp-block-group ul li,
.wp-block-list li,
.wp-block-list ul li {
	position: relative;
	padding: 0.4em 0 0.4em 1.25em;
	margin: 0;
	line-height: 1.5;
	color: var(--vinsolusindo-text);
	border-left: 2px solid var(--vinsolusindo-list-marker);
	padding-left: 1rem;
	margin-left: 0;
}

.wp-block-post-content ul li::before,
.entry-content ul li::before,
.wp-block-group ul li::before,
.wp-block-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 6px;
	height: 6px;
	background: var(--vinsolusindo-accent);
	border-radius: 50%;
	transform: translateX(-4px);
}

.wp-block-post-content ul li + li,
.entry-content ul li + li,
.wp-block-group ul li + li,
.wp-block-list li + li {
	margin-top: 0.15em;
}

/* Nested ul */
.wp-block-post-content ul ul,
.entry-content ul ul,
.wp-block-group ul ul,
.wp-block-list ul ul {
	margin: 0.5em 0 0.5em 1em;
}

.wp-block-post-content ul ul li,
.entry-content ul ul li,
.wp-block-group ul ul li,
.wp-block-list ul ul li {
	border-left-color: var(--vinsolusindo-muted);
	padding-left: 0.9rem;
}

.wp-block-post-content ul ul li::before,
.entry-content ul ul li::before,
.wp-block-group ul ul li::before,
.wp-block-list ul ul li::before {
	background: var(--vinsolusindo-muted);
	width: 4px;
	height: 4px;
	top: 0.7em;
}

/* Ordered lists – clean numbers */
.wp-block-post-content ol,
.entry-content ol,
.wp-block-group ol,
.wp-block-list ol {
	list-style: none;
	counter-reset: vinsol-list;
	padding-left: 0;
	margin: 0.75em 0 1.25em;
}

.wp-block-post-content ol li,
.entry-content ol li,
.wp-block-group ol li,
.wp-block-list ol li {
	position: relative;
	padding: 0.45em 0 0.45em 2.5em;
	margin: 0;
	line-height: 1.5;
	color: var(--vinsolusindo-text);
	counter-increment: vinsol-list;
}

.wp-block-post-content ol li::before,
.entry-content ol li::before,
.wp-block-group ol li::before,
.wp-block-list ol li::before {
	content: counter(vinsol-list);
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 1.6em;
	height: 1.6em;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--vinsolusindo-surface-elevated);
	color: var(--vinsolusindo-accent);
	font-size: 0.85em;
	font-weight: 600;
	border-radius: 4px;
	border: 1px solid var(--vinsolusindo-border);
}

.wp-block-post-content ol li + li,
.entry-content ol li + li,
.wp-block-group ol li + li,
.wp-block-list ol li + li {
	margin-top: 0.2em;
}

/* List inside columns – keep compact */
.wp-block-column ul,
.wp-block-column ol {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

/* ========== BUTTONS ON DARK ========== */
.wp-block-button__link {
	border-radius: 6px;
	font-weight: 600;
	padding: 0.7em 1.4em;
	transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover {
	opacity: 0.95;
	transform: translateY(-1px);
}

/* Accent / primary button */
.has-accent-1-background-color,
.wp-block-button__link.has-background {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Outline button on dark */
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid var(--vinsolusindo-border);
	color: var(--vinsolusindo-text);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--vinsolusindo-surface-elevated);
	border-color: var(--vinsolusindo-accent);
	color: var(--vinsolusindo-text);
}

/* ========== QUOTES / TESTIMONIALS ========== */
.wp-block-quote {
	border-left: 4px solid var(--vinsolusindo-accent);
	background: var(--vinsolusindo-surface);
	padding: 1rem 1.25rem;
	border-radius: 0 6px 6px 0;
	color: var(--vinsolusindo-text);
}

.wp-block-quote cite {
	color: var(--vinsolusindo-muted);
	font-size: 0.9em;
	margin-top: 0.5em;
	display: block;
}

/* ========== SEPARATOR ========== */
.wp-block-separator {
	border-color: var(--vinsolusindo-border);
	opacity: 1;
}

/* ========== HERO (keep contrast) ========== */
.has-contrast-background-color.has-base-color {
	background-color: #111 !important;
	color: #fff;
}

.has-contrast-background-color .wp-block-heading,
.has-contrast-background-color .wp-block-paragraph,
.has-contrast-background-color .wp-block-button__link.has-base-color {
	color: #fff;
}

/* ========== CTA SECTION (dark blue) ========== */
.wp-block-group.has-background[style*="background-color:#0d47a1"],
.wp-block-group.has-background[style*="background-color: rgb(13, 71, 161)"] {
	background-color: #0f172a !important;
}

/* ========== HALAMAN DALAM PENGERJAAN (kosong / belum berisi) ========== */
.vinsol-under-construction {
	background: var(--vinsolusindo-surface);
	border: 1px solid var(--vinsolusindo-border);
	border-radius: 12px;
	padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
	text-align: center;
	max-width: 480px;
	margin: 0 auto 2rem;
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vinsol-uc-inner {
	width: 100%;
}

.vinsol-uc-logo-wrap {
	margin-bottom: 1.25rem;
}

.vinsol-uc-logo {
	width: 100px;
	height: auto;
	animation: vinsol-uc-pulse 2s ease-in-out infinite;
}

@keyframes vinsol-uc-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(0.97); }
}

.vinsol-uc-title {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--vinsolusindo-text);
	margin: 0 0 0.5rem;
	letter-spacing: -0.02em;
}

.vinsol-uc-desc {
	color: var(--vinsolusindo-muted);
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0 0 1.25rem;
}

.vinsol-uc-progress {
	height: 4px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 99px;
	overflow: hidden;
	margin: 0 auto 1.25rem;
	max-width: 200px;
}

.vinsol-uc-progress-bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--vinsolusindo-accent), var(--vinsolusindo-cta));
	border-radius: 99px;
	animation: vinsol-uc-progress 2s ease-in-out infinite;
}

@keyframes vinsol-uc-progress {
	0% { width: 0; margin-left: 0; }
	50% { width: 70%; margin-left: 0; }
	100% { width: 70%; margin-left: 30%; }
}

.vinsol-uc-hint {
	font-size: 0.8rem;
	color: var(--vinsolusindo-muted);
	margin: 0 0 1.5rem;
}

.vinsol-uc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.vinsol-uc-btn {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vinsol-uc-btn-primary {
	background: var(--vinsolusindo-accent);
	color: #0d0d0d;
	border: 1px solid var(--vinsolusindo-accent);
}

.vinsol-uc-btn-primary:hover {
	background: #93c5fd;
	color: #0d0d0d;
}

.vinsol-uc-btn-outline {
	background: transparent;
	color: var(--vinsolusindo-text);
	border: 1px solid var(--vinsolusindo-border);
}

.vinsol-uc-btn-outline:hover {
	border-color: var(--vinsolusindo-accent);
	color: var(--vinsolusindo-accent);
}

/* ========== HEADER & NAVIGATION (DARK) — STICKY MENU ========== */
/* Sticky: header + menu tetap di atas saat scroll */
.wp-block-template-part.has-header-area,
header.wp-block-template-part,
[data-block-name="core/template-part"][data-title="Header"],
.vinsol-sticky-header {
	position: sticky !important;
	top: 0 !important;
	z-index: 1000;
	background-color: var(--vinsolusindo-bg) !important;
	border-bottom: 1px solid var(--vinsolusindo-border);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	box-shadow: 0 1px 0 var(--vinsolusindo-border);
}

/* Pastikan wrapper template-part header juga sticky */
header .vinsol-sticky-header,
.wp-block-template-part .vinsol-sticky-header {
	position: sticky !important;
	top: 0 !important;
	z-index: 1000;
}

/* Admin bar: geser sticky ke bawah toolbar WordPress */
body.admin-bar .wp-block-template-part.has-header-area,
body.admin-bar header.wp-block-template-part,
body.admin-bar [data-block-name="core/template-part"][data-title="Header"],
body.admin-bar .vinsol-sticky-header {
	top: 32px !important;
}

.wp-block-template-part.has-header-area .wp-block-navigation a,
header .wp-block-navigation a {
	color: var(--vinsolusindo-text);
}

.wp-block-template-part.has-header-area .wp-block-navigation a:hover,
header .wp-block-navigation a:hover {
	color: var(--vinsolusindo-accent);
}

.wp-block-site-title a {
	color: var(--vinsolusindo-text);
}

.wp-block-site-title a:hover {
	color: var(--vinsolusindo-accent);
}

/* ========== SLIDER (VINSOL) ========== */
.vinsol-slider {
	position: relative;
	overflow: hidden;
}

.vinsol-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.vinsol-slider__track::-webkit-scrollbar {
	display: none;
}

.vinsol-slider__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	min-height: 140px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 1rem;
	box-sizing: border-box;
}

.vinsol-slider__slide .wp-block-group {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
}

.vinsol-slider__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

.vinsol-slider__nav button {
	width: 44px;
	height: 44px;
	border: 1px solid var(--vinsolusindo-border);
	background: var(--vinsolusindo-surface-elevated);
	color: var(--vinsolusindo-text);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.vinsol-slider__nav button:hover {
	background: var(--vinsolusindo-accent);
	border-color: var(--vinsolusindo-accent);
	color: #fff;
}

.vinsol-slider__nav button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.vinsol-slider__dots {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.vinsol-slider__dots button {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: var(--vinsolusindo-border);
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease;
}

.vinsol-slider__dots button.is-active {
	background: var(--vinsolusindo-accent);
	transform: scale(1.2);
}

/* ========== PLACEHOLDER GAMBAR ========== */
.vinsol-img-placeholder {
	position: relative;
	aspect-ratio: 16 / 10;
	min-height: 160px;
	background: linear-gradient(135deg, var(--vinsolusindo-surface-elevated) 0%, var(--vinsolusindo-surface) 100%);
	border: 2px dashed var(--vinsolusindo-border);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.vinsol-img-placeholder::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 50%;
	background: linear-gradient(105deg, transparent 0%, rgba(96, 165, 250, 0.12) 50%, transparent 100%);
	animation: vinsol-shimmer 2.5s ease-in-out infinite;
}

.vinsol-img-placeholder .vinsol-placeholder-text {
	font-size: 0.875rem;
	color: var(--vinsolusindo-muted);
	letter-spacing: 0.05em;
	position: relative;
	z-index: 1;
}

.vinsol-img-placeholder.vinsol-placeholder-square {
	aspect-ratio: 1;
}

.vinsol-img-placeholder.vinsol-placeholder-wide {
	aspect-ratio: 21 / 9;
}

@keyframes vinsol-shimmer {
	0%, 100% { opacity: 0; transform: translateX(-100%); }
	50% { opacity: 1; transform: translateX(100%); }
}

/* ========== EFEK CAHAYA & ANIMASI ========== */
/* Hero: cahaya lembut di belakang */
.has-contrast-background-color.has-base-color {
	position: relative;
	overflow: hidden;
}

.has-contrast-background-color.has-base-color::after {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
	pointer-events: none;
	animation: vinsol-glow-pulse 8s ease-in-out infinite;
}

@keyframes vinsol-glow-pulse {
	0%, 100% { opacity: 0.6; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.05); }
}

/* ========== ANIMASI SCROLL PER SECTION ========== */
.vinsol-animate {
	opacity: 0;
	transform: translateY(56px) scale(0.98);
	transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.vinsol-animate.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* Stagger: kolom di dalam section muncul berurutan */
.vinsol-animate .wp-block-columns .wp-block-column {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vinsol-animate.is-visible .wp-block-columns .wp-block-column:nth-child(1) {
	transition-delay: 0.1s;
	opacity: 1;
	transform: translateY(0);
}

.vinsol-animate.is-visible .wp-block-columns .wp-block-column:nth-child(2) {
	transition-delay: 0.22s;
	opacity: 1;
	transform: translateY(0);
}

.vinsol-animate.is-visible .wp-block-columns .wp-block-column:nth-child(3) {
	transition-delay: 0.34s;
	opacity: 1;
	transform: translateY(0);
}

.vinsol-animate.is-visible .wp-block-columns .wp-block-column:nth-child(4) {
	transition-delay: 0.46s;
	opacity: 1;
	transform: translateY(0);
}

/* Konten utama section (heading pertama + paragraf): muncul halus setelah section */
.vinsol-animate > .wp-block-group > .wp-block-heading:first-of-type,
.vinsol-animate > .wp-block-group > .wp-block-paragraph:first-of-type {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.vinsol-animate.is-visible > .wp-block-group > .wp-block-heading:first-of-type {
	transition-delay: 0.08s;
	opacity: 1;
	transform: translateY(0);
}

.vinsol-animate.is-visible > .wp-block-group > .wp-block-paragraph:first-of-type {
	transition-delay: 0.15s;
	opacity: 1;
	transform: translateY(0);
}

/* Kartu/column: hover glow */
.wp-block-group.alignfull .wp-block-columns .wp-block-column {
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* ensure columns with image placeholders or three items stay level */
/* top‑align the flex items so each image box begins at the same vertical position */
.wp-block-group.alignfull .wp-block-columns.alignwide {
	align-items: flex-start;
	/* add a little breathing room between columns so adjacent boxes
	   don’t crowd one another */
	column-gap: var(--wp--preset--spacing--50);
}

/* make sure placeholder inside a column never forces the column to shrink
   below the image size; keeps three squares from overlapping when the
   browser window gets narrow */
.wp-block-columns.alignwide .vinsol-img-placeholder {
	flex-shrink: 0;
}

/* smaller placeholders in the "bukti kepercayaan" section so they
   don’t crowd each other; now fixed at 200px wide */
.vinsol-section-bukti .wp-block-columns.alignwide {
	/* extra gap between the three columns so they aren’t cramped */
	column-gap: var(--wp--preset--spacing--40);
}

.vinsol-section-bukti .wp-block-columns.alignwide .vinsol-img-placeholder {
	max-width: 200px;
	width: 100%;
	/* add internal spacing so placeholder contents don’t touch column edges */
	padding: var(--wp--preset--spacing--20);
	box-sizing: border-box;
}

.vinsol-section-bukti .wp-block-columns.alignwide .wp-block-column {
	flex: 0 1 200px;
	/* ensure columns themselves do not collapse when padding added above */
	padding: var(--wp--preset--spacing--10);
}



.wp-block-group.alignfull .wp-block-columns .wp-block-column:hover {
	transform: translateY(-4px);
}

.wp-block-group.alignfull .wp-block-columns .wp-block-column:hover .vinsol-img-placeholder {
	box-shadow: 0 12px 40px rgba(96, 165, 250, 0.12);
}

/* Placeholder: subtle glow on hover */
.vinsol-img-placeholder {
	transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.vinsol-img-placeholder:hover {
	border-color: rgba(96, 165, 250, 0.3);
	box-shadow: 0 0 30px rgba(96, 165, 250, 0.08);
}

/* Tombol CTA: ringan glow */
.wp-block-button__link.has-accent-1-background-color:hover {
	box-shadow: 0 4px 20px rgba(255, 193, 7, 0.35);
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link:hover,
	a {
		transition: none;
	}
	.vinsol-img-placeholder::before,
	.has-contrast-background-color.has-base-color::after {
		animation: none;
	}
	.vinsol-animate,
	.vinsol-animate .wp-block-columns .wp-block-column,
	.vinsol-animate > .wp-block-group > .wp-block-heading:first-of-type,
	.vinsol-animate > .wp-block-group > .wp-block-paragraph:first-of-type {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
