/*
Theme Name: DIPHP IT
Theme URI: https://diphp.com
Author: DIPHP IT
Author URI: https://diphp.com
Description: Modern Professional IT Company WordPress Theme. Dirancang untuk perusahaan Software Development, Cloud Computing, Cyber Security, IT Consultant, dan Digital Transformation kelas enterprise.
Version: 1.0.0
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diphp-it
Tags: business, e-commerce, blog, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready, accessibility-ready

DIPHP IT WordPress Theme. Copyright DIPHP IT.
DIPHP IT is distributed under the terms of the GNU GPL v2 or later.
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
	/* Colors */
	--diphp-color-primary: #0066FF;
	--diphp-color-primary-rgb: 0, 102, 255;
	--diphp-color-secondary: #0F172A;
	--diphp-color-accent: #3B82F6;
	--diphp-color-success: #10B981;
	--diphp-color-warning: #F59E0B;
	--diphp-color-danger: #EF4444;
	--diphp-color-light: #F8FAFC;
	--diphp-color-dark: #0F172A;
	--diphp-color-text: #334155;
	--diphp-color-white: #FFFFFF;

	/* Gradients */
	--diphp-gradient-primary: linear-gradient(135deg, var(--diphp-color-primary) 0%, var(--diphp-color-accent) 100%);
	--diphp-gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);

	/* Typography */
	--diphp-font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
	--diphp-font-body: 'Inter', system-ui, -apple-system, sans-serif;

	/* Radius & Shadow */
	--diphp-radius-sm: 8px;
	--diphp-radius-md: 16px;
	--diphp-radius-lg: 24px;
	--diphp-radius-full: 9999px;
	--diphp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
	--diphp-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
	--diphp-shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
	--diphp-glass-bg: rgba(255, 255, 255, 0.7);
	--diphp-glass-border: rgba(255, 255, 255, 0.3);

	/* Layout */
	--diphp-container-width: 1280px;
	--diphp-header-height: 84px;
	--diphp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--diphp-font-body);
	color: var(--diphp-color-text);
	background: var(--diphp-color-white);
	line-height: 1.7;
	font-size: 16px;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--diphp-font-heading);
	color: var(--diphp-color-secondary);
	line-height: 1.25;
	margin: 0 0 1rem;
	font-weight: 600;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--diphp-color-primary); text-decoration: none; transition: color var(--diphp-transition); }
ul, ol { padding-left: 1.25rem; }

.diphp-container {
	max-width: var(--diphp-container-width);
	margin-inline: auto;
	padding-inline: 24px;
}

/* Skip link (accessibility) */
.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--diphp-color-primary);
	color: #fff;
	padding: 12px 20px;
	z-index: 100000;
	border-radius: 0 0 8px 0;
	transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* Focus visibility (WCAG) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--diphp-color-accent);
	outline-offset: 2px;
}

/* Screen-reader only helper */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
	width: 1px; word-wrap: normal !important;
}

/* Buttons */
.diphp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--diphp-font-body);
	font-weight: 600;
	font-size: 15px;
	padding: 14px 28px;
	border-radius: var(--diphp-radius-full);
	border: none;
	cursor: pointer;
	transition: transform var(--diphp-transition), box-shadow var(--diphp-transition), background var(--diphp-transition), color var(--diphp-transition);
}
.diphp-btn-primary { background: var(--diphp-gradient-primary); color: #fff; box-shadow: 0 8px 20px rgba(var(--diphp-color-primary-rgb), 0.35); }
.diphp-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(var(--diphp-color-primary-rgb), 0.45); color: #fff; }
.diphp-btn-outline { background: transparent; color: var(--diphp-color-secondary); border: 2px solid rgba(15,23,42,0.15); }
.diphp-btn-outline:hover { border-color: var(--diphp-color-primary); color: var(--diphp-color-primary); }
.diphp-btn-white { background: #fff; color: var(--diphp-color-primary); }
.diphp-btn-whatsapp { background: #25D366; color: #fff; }
.diphp-btn-whatsapp:hover { background: #1ebe5b; color: #fff; transform: translateY(-3px); }

/* Section spacing */
.diphp-section { padding: 100px 0; }
.diphp-section--sm { padding: 60px 0; }
.diphp-section--light { background: var(--diphp-color-light); }
.diphp-section--dark { background: var(--diphp-gradient-dark); color: rgba(255,255,255,0.85); }
.diphp-section--dark h1, .diphp-section--dark h2, .diphp-section--dark h3 { color: #fff; }

.diphp-section-header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.diphp-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--diphp-color-primary);
	background: rgba(var(--diphp-color-primary-rgb), 0.08);
	padding: 6px 16px;
	border-radius: var(--diphp-radius-full);
	margin-bottom: 16px;
}

/* Cards */
.diphp-card {
	background: #fff;
	border-radius: var(--diphp-radius-md);
	box-shadow: var(--diphp-shadow-sm);
	border: 1px solid rgba(15,23,42,0.06);
	transition: transform var(--diphp-transition), box-shadow var(--diphp-transition);
}
.diphp-card:hover { transform: translateY(-6px); box-shadow: var(--diphp-shadow-lg); }

/* Glassmorphism */
.diphp-glass {
	background: var(--diphp-glass-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--diphp-glass-border);
}

/* Scroll reveal base state (JS toggles .is-visible) */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Grid utilities */
.diphp-grid { display: grid; gap: 32px; }
.diphp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.diphp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.diphp-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.diphp-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.diphp-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.diphp-section { padding: 64px 0; }
	.diphp-grid--2, .diphp-grid--3, .diphp-grid--4 { grid-template-columns: 1fr; }
	:root { --diphp-header-height: 68px; }
}

/* =========================================================
   HEADER (sticky / transparent, driven by Customizer data-attrs)
   ========================================================= */
.diphp-header {
	position: relative;
	z-index: 999;
	background: #fff;
	box-shadow: var(--diphp-shadow-sm);
}
.diphp-header[data-sticky="true"] { position: sticky; top: 0; }
.diphp-header[data-transparent="true"] {
	position: absolute;
	top: 0; left: 0; right: 0;
	background: transparent;
	box-shadow: none;
}
.diphp-header[data-transparent="true"] .diphp-menu-link,
.diphp-header[data-transparent="true"] .diphp-header__site-title { color: #fff; }
.diphp-header[data-transparent="true"][data-scrolled="true"] {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	box-shadow: var(--diphp-shadow-sm);
}
.diphp-header[data-transparent="true"][data-scrolled="true"] .diphp-menu-link,
.diphp-header[data-transparent="true"][data-scrolled="true"] .diphp-header__site-title { color: var(--diphp-color-secondary); }

.diphp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--diphp-header-height); }
.diphp-menu { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.diphp-menu-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 16px; font-weight: 500; color: var(--diphp-color-secondary); border-radius: var(--diphp-radius-full); transition: background var(--diphp-transition), color var(--diphp-transition); }
.diphp-menu-link:hover { background: rgba(var(--diphp-color-primary-rgb), 0.08); color: var(--diphp-color-primary); }
.diphp-menu-item--has-children { position: relative; }
.diphp-dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: var(--diphp-radius-md); box-shadow: var(--diphp-shadow-lg); padding: 12px; list-style: none; margin: 12px 0 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--diphp-transition); }
.diphp-menu-item--has-children:hover > .diphp-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.diphp-header__actions { display: flex; align-items: center; gap: 12px; }
.diphp-icon-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(15,23,42,0.1); background: transparent; cursor: pointer; color: inherit; }
.diphp-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.diphp-hamburger span { width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.diphp-mobile-menu { position: fixed; inset: 0; z-index: 1000; background: #fff; padding: 100px 24px 24px; overflow-y: auto; }

@media (max-width: 1024px) {
	.diphp-nav { display: none; }
	.diphp-header__cta { display: none; }
	.diphp-hamburger { display: flex; }
}

/* Preloader */
.diphp-preloader { position: fixed; inset: 0; z-index: 100000; background: var(--diphp-color-white); display: flex; align-items: center; justify-content: center; transition: opacity 0.4s ease, visibility 0.4s ease; }
.diphp-preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.diphp-preloader__spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(var(--diphp-color-primary-rgb), 0.15); border-top-color: var(--diphp-color-primary); animation: diphp-spin 0.8s linear infinite; }
@keyframes diphp-spin { to { transform: rotate(360deg); } }

/* Breadcrumb */
.diphp-breadcrumb-wrap { background: var(--diphp-color-light); padding: 14px 0; }
.diphp-breadcrumb__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.diphp-breadcrumb__item:not(:last-child)::after { content: '/'; margin-left: 6px; color: rgba(51,65,85,0.4); }
.diphp-breadcrumb__item a { color: var(--diphp-color-text); }
.diphp-breadcrumb__item a:hover { color: var(--diphp-color-primary); }
.diphp-breadcrumb__item [aria-current="page"] { color: var(--diphp-color-secondary); font-weight: 600; }

/* Back to top */
.diphp-back-to-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--diphp-gradient-primary); color: #fff; border: none; cursor: pointer; box-shadow: var(--diphp-shadow-md); z-index: 900; display: flex; align-items: center; justify-content: center; }
.diphp-whatsapp-float { position: fixed; right: 24px; bottom: 84px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--diphp-shadow-md); z-index: 900; }

/* Dark mode (toggled via [data-theme="dark"] on <html>) */
[data-theme="dark"] body { background: #0B1220; color: #CBD5E1; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: #F8FAFC; }
[data-theme="dark"] .diphp-card { background: #111A2E; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .diphp-section--light { background: #0B1220; }
