/*
Theme Name: KCS Theme
Theme URI: https://kharisma-catur-sejahtera.com
Author: PT Kharisma Catur Sejahtera Abadi
Author URI: https://kharisma-catur-sejahtera.com
Description: Theme resmi PT Kharisma Catur Sejahtera Abadi — Engineering, Mechanical, Electrical, Plumbing & Construction. Mendukung Elementor, WPForms, Yoast SEO, dan fitur admin lengkap: update berita, kelola layanan, ganti foto, edit profil perusahaan.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kcs-theme
Tags: business, corporate, construction, engineering, company-profile, elementor, one-page, full-width-template
*/

/* ===================================================
   KCS THEME v2.0 — Full Elementor Ready
   Navy #0A192F | Gold #D4AF37
   =================================================== */

:root {
    --kcs-navy:       #1a202c;
    --kcs-navy-light: #2d3748;
    --kcs-gold:       #D4AF37;
    --kcs-gold-light: #F3E5AB;
    --kcs-gray:       #8892B0;
    --kcs-light:      #ebf8ff;
    --kcs-white:      #1a202c;
    --kcs-bg:         #0f172a;
    --kcs-panel:      #1e293b;
    --kcs-text:       #e2e8f0;
    --kcs-muted:      #94a3b8;
    --kcs-border:     #334155;
    --kcs-shadow:     0 4px 24px rgba(0,0,0,0.4);
    --kcs-shadow-lg:  0 16px 48px rgba(0,0,0,0.6);
    --kcs-radius:     8px;
    --kcs-radius-lg:  12px;
    --kcs-transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --kcs-ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ======= RESET ======= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--kcs-text);
    background: var(--kcs-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kcs-gold); text-decoration: none; transition: var(--kcs-transition); }
a:hover { color: var(--kcs-navy); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--kcs-gold); border-radius: 3px; }
::selection { background: var(--kcs-gold); color: white; }

/* ======= REDUCED MOTION & OPTIMIZATION ======= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.gsap-reveal, .gsap-stagger, .layanan-card, .berita-card {
    will-change: transform, opacity;
    transform: translateZ(0); /* GPU Acceleration */
}

/* ======= Cursors Disabled ======= */

/* ======= LOADER ======= */
.kcs-loader {
    position: fixed; inset: 0; z-index: 999999;
    background: var(--kcs-bg);
    display: flex; align-items: center; justify-content: center;
    transform-origin: top;
}
.kcs-loader-text {
    font-size: 48px; font-weight: 900; color: var(--kcs-text);
    overflow: hidden; display: flex;
}
.kcs-loader-text span { color: var(--kcs-gold); display: inline-block; }

/* ======= ACCESSIBILITY — Skip Link ======= */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--kcs-gold);
    color: var(--kcs-navy);
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 0 0 6px 6px;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }
.screen-reader-text {
    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;
}

/* ======= NAVBAR ======= */
#navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 24px 0;
    transition: background 0.35s ease, padding 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
#navbar.scrolled {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(241,245,249,1) 100%);
    padding: 10px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (min-width: 768px) {
    .nav-container { padding: 0 80px; }
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-badge {
    width: 42px; height: 42px;
    background: var(--kcs-gold);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700; color: var(--kcs-navy); font-size: 17px;
    box-shadow: 0 4px 12px rgba(212,175,55,0.35);
    flex-shrink: 0; transition: transform 0.2s;
}
.nav-logo:hover .nav-logo-badge { transform: scale(1.05); }
.nav-logo-name {
    font-family: 'Playfair Display', serif; font-weight: 700;
    font-size: 11px; color: var(--kcs-navy); letter-spacing: 0.04em;
    display: block; line-height: 1.2; max-width: 120px; white-space: normal;
}
@media (min-width: 640px) { .nav-logo-name { font-size: 17px; max-width: none; } }
.nav-logo-img {
    height: 44px !important; width: auto !important; max-width: 60vw !important;
    object-fit: contain; transition: transform 0.2s;
}
.nav-menu { display: none; align-items: center; gap: 32px; list-style: none; }
@media (min-width: 900px) { .nav-menu { display: flex; } }
.nav-menu a {
    color: var(--kcs-navy); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none;
    transition: color 0.2s; padding: 4px 0; position: relative;
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--kcs-gold); transition: width 0.25s;
}
.nav-menu a:hover { color: var(--kcs-gold); }
.nav-menu a:hover::after { width: 100%; }
.nav-menu .btn-contact {
    padding: 10px 24px; border: 2px solid var(--kcs-gold);
    color: var(--kcs-gold) !important; border-radius: 4px; font-weight: 700;
    white-space: nowrap; transition: 0.3s;
}
.nav-menu .btn-contact::after { display: none; }
.nav-menu .btn-contact:hover { background: var(--kcs-gold); color: white !important; }
.nav-search-form {
    display: flex; align-items: center; border: 1px solid rgba(10,25,47,0.15);
    border-radius: 50px; padding: 4px; background: rgba(10,25,47,0.03); transition: border-color 0.3s, background 0.3s;
}
.nav-search-form:focus-within { border-color: var(--kcs-gold); background: transparent; }
.nav-search-form input {
    background: transparent; border: none; color: var(--kcs-navy); width: 140px; padding: 0 12px 0 8px; opacity: 1;
    outline: none; font-size: 13px; font-family: inherit; font-weight: 500; transition: width 0.3s, background 0.3s;
}
.nav-search-form input::placeholder { color: #94a3b8; }
.nav-search-form button {
    background: none; border: none; color: var(--kcs-navy); font-size: 14px;
    cursor: pointer; padding: 6px 10px; transition: color 0.2s; border-radius: 50px;
}
.nav-search-form button:hover { color: var(--kcs-gold); }

/* MOBILE SEARCH OVERLAY */
.mobile-search-bar {
    position: absolute; top: 100%; left: 0; width: 100%; background: white;
    padding: 12px 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none; border-top: 1px solid rgba(10,25,47,0.05); z-index: 1000;
}
.mobile-search-bar.active { display: block; }
.mobile-search-bar form { display: flex; gap: 8px; }
.mobile-search-bar input { flex:1; padding: 10px 14px; border: 1px solid rgba(10,25,47,0.15); border-radius: 4px; outline:none; font-family:inherit; color:var(--kcs-navy); }
.mobile-search-bar button { padding: 8px 16px; background: var(--kcs-gold); color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; }

@media (min-width: 900px) { .mobile-only { display: none !important; } }
.dark-mode-toggle { background: transparent; border: none; color: var(--kcs-navy); font-size: 16px; cursor: pointer; transition: 0.2s; padding: 4px; }
.dark-mode-toggle:hover { color: var(--kcs-gold); }
.nav-hamburger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px; z-index: 1001;
}
@media (min-width: 900px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
    display: block; width: 26px; height: 3px; background: var(--kcs-navy);
    border-radius: 2px; transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile {
    display: none; background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.08);
    position: absolute; width: 100%; left: 0; top: 100%;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.nav-mobile.open { display: block; animation: slideDown 0.3s ease-out forwards; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.nav-mobile a {
    display: flex; align-items: center; padding: 18px 28px;
    color: #f1f5f9; text-decoration: none; font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s ease;
}
.nav-mobile a:hover { color: var(--kcs-gold); padding-left: 36px; background: rgba(255,255,255,0.03); }
.nav-mobile a:last-child { color: var(--kcs-gold); }

.header-lang-wrapper { position: relative; height: 38px; width: 140px; }
.header-lang-wrapper > * { position: absolute; top: -5px; right: 0; z-index: 9999; transform: scale(0.85) translateY(0); transform-origin: top right; }
.mobile-lang-wrapper { display: flex; justify-content: center; }
.mobile-lang-wrapper > * { transform: scale(0.95); transform-origin: center top; }

@media (max-width: 991px) {
    .desktop-only { display: none !important; }
}

/* DECORATIVE ELEMENTS */
.hero-glow { position: absolute; width: 60vh; height: 60vh; background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, rgba(10,25,47,0) 70%); top: -10vh; left: -10vw; z-index: 1; pointer-events: none; mix-blend-mode: screen; border-radius: 50%; }
.hero-glow-alt { position: absolute; width: 50vh; height: 50vh; background: radial-gradient(circle, rgba(30,58,138,0.25) 0%, rgba(10,25,47,0) 70%); bottom: -5vh; right: -5vw; z-index: 1; pointer-events: none; mix-blend-mode: screen; border-radius: 50%; }
.hero-grid { position: absolute; top:0; left:0; width:100%; height:100%; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 50px 50px; z-index: 1; pointer-events: none; }


/* ======= HERO SECTION ======= */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; position: relative;
    background: linear-gradient(rgba(10,25,47,0.78), rgba(10,25,47,0.92)),
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2071&auto=format&fit=crop') center/cover no-repeat fixed;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(10,25,47,0.4); }
.hero-inner {
    max-width: 1280px; margin: 0 auto; padding: 100px 24px 60px;
    position: relative; z-index: 2; width: 100%;
}
.hero-content { max-width: 720px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 18px; margin-bottom: 28px;
    border: 1px solid rgba(212,175,55,0.45); border-radius: 100px;
    color: var(--kcs-gold); font-size: 11px; letter-spacing: 0.2em;
    text-transform: uppercase; font-weight: 600;
    background: rgba(10,25,47,0.4); backdrop-filter: blur(6px);
}
.hero-logo-img { max-height: 90px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 24px; animation: slideDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) ease forwards; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--kcs-gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }
.hero-title {
    font-family: 'Playfair Display', serif; font-size: clamp(26px, 4vw, 48px);
    font-weight: 700; color: white; line-height: 1.25; margin-bottom: 12px;
}
.hero-title.pt-name { margin-bottom: 8px; letter-spacing: -0.01em; }
.hero-title .highlight-main { color: white; }
.hero-title .highlight { color: var(--kcs-gold); }
.hero-motto {
    font-size: clamp(15px, 2.5vw, 24px); font-weight: 500;
    color: var(--kcs-gold); margin-bottom: 24px;
    letter-spacing: 0.05em; line-height: 1.4;
}
.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 20px); color: #94a3b8; margin-bottom: 44px;
    max-width: 620px; line-height: 1.75; font-weight: 300;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 40px; background: var(--kcs-gold); color: var(--kcs-navy);
    font-weight: 800; font-size: 14px; text-transform: uppercase;
    letter-spacing: 0.1em; text-decoration: none; border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); border: 2px solid var(--kcs-gold);
    box-shadow: 0 8px 24px rgba(212,175,55,0.25);
}
.btn-primary:hover { background: #e6c547; border-color: #e6c547; color: var(--kcs-navy); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(212,175,55,0.45); }
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 40px; border: 2px solid rgba(255,255,255,0.7);
    color: white; font-weight: 800; font-size: 14px;
    text-transform: uppercase; letter-spacing: 0.1em; background: transparent;
    text-decoration: none; border-radius: 50px; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; transform: translateY(-4px); }
.hero-scroll {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    text-decoration: none; color: rgba(255,255,255,0.4);
    transition: color 0.2s; animation: bounce 2.5s infinite;
}
.hero-scroll:hover { color: var(--kcs-gold); }
.hero-scroll i { font-size: 22px; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-10px)} }

/* ======= SECTION UTILITIES ======= */
.section-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-py { padding: 72px 0; }
.section-label { display: flex; align-items: center; margin-bottom: 24px; }
.section-label-center { justify-content: center; margin-bottom: 32px; }
.section-line { height: 2px; width: 40px; background: var(--kcs-gold); flex-shrink: 0; }
.section-tag {
    color: var(--kcs-gold); font-weight: 800; font-size: clamp(12px, 2vw, 15px);
    letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 8px;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 6.5vw, 64px); font-weight: 700;
    color: var(--kcs-text); margin-bottom: 28px; line-height: 1.15;
}
.section-title-white { color: white; margin-bottom: 28px; }
.section-desc { color: var(--kcs-muted); max-width: 560px; line-height: 1.8; }
.section-desc-center { margin: 0 auto; text-align: center; }

/* ======= HERO STATS ======= */
.hero-stats {
    display: flex; gap: 40px; margin-top: 48px; padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.2); flex-wrap: wrap;
}
.hero-stat-item { display: flex; flex-direction: column; }
.hero-stat-item .stat-icon { font-size: 22px; color: var(--kcs-gold); margin-bottom: 12px; }
.hero-stat-item .stat-icon svg { width: 24px; height: 24px; fill: currentColor; }
.hero-stat-item .stat-num { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 700; color: white; line-height: 1; }
.hero-stat-item .stat-plus { font-size: 24px; color: var(--kcs-gold); font-weight: 700; vertical-align: top; line-height: 1; margin-left: 2px; }
.hero-stat-item .stat-text { font-size: 13px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.4; margin-top: 6px; font-weight: 600; }

/* ======= TENTANG ======= */
.tentang-section { padding: 72px 0; background: var(--kcs-bg); }
.tentang-grid {
    display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center;
}
@media (min-width: 1024px) { .tentang-grid { grid-template-columns: 1fr 1fr; } }
.tentang-img-wrap { position: relative; }
.tentang-img-decor {
    position: absolute; top: -16px; left: -16px; width: 88px; height: 88px;
    background: var(--kcs-gold-light); border-radius: 20px 0 0 0; z-index: 0;
}
.tentang-slider {
    position: relative; width: 100%; height: 460px;
    border-radius: var(--kcs-radius); overflow: hidden;
    box-shadow: var(--kcs-shadow-lg); z-index: 1; background: var(--kcs-border);
}
.tentang-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 0.8s ease-in-out;
}
.tentang-img.active { opacity: 1; z-index: 2; }
.tentang-badge {
    position: absolute; bottom: -32px; right: -28px;
    background: var(--kcs-navy); color: white; padding: 24px 28px;
    border-radius: var(--kcs-radius); z-index: 2; border-left: 4px solid var(--kcs-gold);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25); display: none;
}
@media (min-width: 768px) { .tentang-badge { display: block; } }
.tentang-badge-num {
    font-family: 'Playfair Display', serif; font-size: 40px;
    font-weight: 700; color: var(--kcs-gold); line-height: 1;
}
.tentang-badge-text { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; margin-top: 4px; line-height: 1.4; }
.tentang-body p { color: var(--kcs-muted); line-height: 1.85; margin-bottom: 20px; }
.tab-nav { border-bottom: 2px solid var(--kcs-border); display: flex; gap: 0; margin-bottom: 28px; margin-top: 32px; }
.tab-btn {
    padding: 14px 4px; margin-right: 28px; margin-bottom: -2px;
    border: none; border-bottom: 3px solid transparent;
    background: none; font-family: 'Playfair Display', serif;
    font-size: 17px; font-weight: 600; color: var(--kcs-muted); cursor: pointer; transition: all 0.2s;
}
.tab-btn.active { color: var(--kcs-text); border-bottom-color: var(--kcs-gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
.visi-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.visi-list li { display: flex; gap: 14px; align-items: flex-start; }
.visi-list .icon { color: var(--kcs-gold); flex-shrink: 0; margin-top: 3px; }
.visi-list span { color: var(--kcs-muted); line-height: 1.7; }

/* ======= LAYANAN ======= */
.layanan-section {
    padding: 72px 0;
    background-color: var(--kcs-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.layanan-grid {
    display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 768px)  { .layanan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .layanan-grid { grid-template-columns: repeat(3, 1fr); } }
.layanan-card {
    background: var(--kcs-panel); border-radius: var(--kcs-radius-lg); overflow: hidden;
    box-shadow: var(--kcs-shadow); border-bottom: 4px solid var(--kcs-gold);
    transition: var(--kcs-transition); position: relative;
}
.layanan-card:hover { transform: translateY(-8px); box-shadow: var(--kcs-shadow-lg); }
.layanan-card-link-overlay { position: absolute; inset: 0; z-index: 5; }
.layanan-card-img { height: 200px; overflow: hidden; background: var(--kcs-border); }
.layanan-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.layanan-card:hover .layanan-card-img img { transform: scale(1.08); }
.layanan-card-body { padding: 28px 28px 28px; }
.layanan-icon {
    width: 48px; height: 48px; background: var(--kcs-navy); color: var(--kcs-gold);
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--kcs-radius); font-size: 20px; margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(10,25,47,0.2);
}
.layanan-icon svg { width: 24px; height: 24px; fill: currentColor; }
.layanan-card h3 {
    font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.35;
}
.layanan-card h3 a { color: var(--kcs-text); text-decoration: none; }
.layanan-card h3 a:hover { color: var(--kcs-gold); }
.layanan-card p { color: var(--kcs-muted); font-size: 14px; line-height: 1.75; margin-bottom: 18px; }
.layanan-readmore { color: var(--kcs-gold); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.layanan-card:hover .layanan-readmore { gap: 12px; }

/* ======= PORTFOLIO / KLIEN ======= */
.portfolio-section { padding: 72px 0; background: var(--kcs-navy); position: relative; }
.portfolio-section::before { content:''; position:absolute; inset:0; background:rgba(0,0,0,0.25); pointer-events:none; }
.portfolio-inner { position: relative; z-index: 1; }
.klien-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 768px) { .klien-grid { grid-template-columns: repeat(4, 1fr); } }
.klien-card {
    padding: 32px 20px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: var(--kcs-radius);
    text-align: center; transition: border-color 0.3s;
}
.klien-card:hover { border-color: var(--kcs-gold); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.2); }
.klien-card i { font-size: 26px; color: var(--kcs-gold); display: block; margin-bottom: 14px; }
.klien-logo-img { height: 50px; width: 100%; object-fit: contain; margin-bottom: 14px; filter: grayscale(100%) opacity(0.85) brightness(1.5); transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.klien-card:hover .klien-logo-img { filter: grayscale(0%) opacity(1) brightness(1); transform: scale(1.05); }
.klien-card-name { font-weight: 700; font-size: 12px; color: #e2e8f0; margin-bottom: 4px; line-height: 1.4; }
.klien-card-loc { font-size: 11px; color: #64748b; }
.klien-add {
    padding: 22px 16px; background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(212,175,55,0.3); border-radius: var(--kcs-radius);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: border-color 0.3s;
}
.klien-add:hover { border-color: var(--kcs-gold); }
.klien-add span { font-size: 12px; font-weight: 700; color: var(--kcs-gold); text-transform: uppercase; letter-spacing: 0.1em; text-align: center; line-height: 1.4; }
.cta-box {
    margin-top: 64px; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15); padding: 36px 40px;
    border-radius: var(--kcs-radius-lg); display: flex;
    flex-direction: column; gap: 24px; backdrop-filter: blur(6px);
}
@media (min-width: 768px) { .cta-box { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-box h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: white; margin-bottom: 6px; }
.cta-box p { color: #94a3b8; font-size: 15px; }

/* ======= TESTIMONI ======= */
.testimoni-section { padding: 72px 0; background: var(--kcs-bg); }
.testimoni-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .testimoni-grid { grid-template-columns: repeat(3, 1fr); } }
.testimoni-card { background: var(--kcs-panel); padding: 36px; border-radius: var(--kcs-radius-lg); box-shadow: var(--kcs-shadow); position: relative; }
.testimoni-quote { position: absolute; top: -16px; left: 36px; width: 40px; height: 40px; background: var(--kcs-gold); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 4px 12px rgba(212,175,55,0.3); }
.testimoni-content { color: var(--kcs-text); font-style: italic; font-size: 15px; line-height: 1.8; margin-bottom: 24px; margin-top: 10px; }
.testimoni-author { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--kcs-border); padding-top: 20px; }
.testimoni-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testimoni-author h4 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px; color: var(--kcs-text); margin-bottom: 2px; }
.testimoni-author span { font-size: 12px; color: var(--kcs-muted); }

/* ======= FAQ ======= */
.faq-section { padding: 72px 0 96px; background: var(--kcs-navy); border-bottom: 2px solid rgba(255,255,255,0.05); }
.faq-section .section-title, .faq-section .section-desc,
.portfolio-section .section-title, .portfolio-section .section-desc { color: white !important; }
.faq-wrap { display: flex; flex-direction: column; gap: 48px; }
@media (min-width: 1024px) { .faq-wrap { flex-direction: row; align-items: flex-start; gap: 80px; } .faq-left { width: 40%; flex-shrink: 0; position: sticky; top: 100px; } }
.faq-left .section-title { margin-bottom: 24px; line-height: 1.25; }
.faq-right { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.faq-item { background: var(--kcs-panel); border-radius: var(--kcs-radius-lg); border: 1px solid var(--kcs-border); box-shadow: 0 4px 16px rgba(0,0,0,0.03); overflow: hidden; }
.faq-btn { width: 100%; text-align: left; padding: 26px 32px; background: none; border: none; font-size: 16px; font-weight: 600; color: var(--kcs-text); font-family: 'Inter', sans-serif; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-btn::after { content: '+'; font-size: 24px; color: var(--kcs-gold); transition: transform 0.3s; font-weight: 400; line-height: 1; }
.faq-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-content { padding: 0 32px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-btn[aria-expanded="true"] + .faq-content { padding: 0 32px 28px; max-height: 400px; }

/* ======= BERITA ======= */
.berita-section { padding: 72px 0; background: var(--kcs-bg); }
.berita-header {
    display: flex; flex-direction: column; gap: 20px;
    justify-content: space-between; align-items: flex-start; margin-bottom: 56px;
}
@media (min-width: 768px) { .berita-header { flex-direction: row; align-items: flex-end; } }
.berita-header .lihat-semua {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--kcs-navy); font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.08em;
    border-bottom: 2px solid var(--kcs-navy); padding-bottom: 3px;
    transition: var(--kcs-transition); white-space: nowrap; text-decoration: none;
}
.berita-header .lihat-semua:hover { color: var(--kcs-gold); border-bottom-color: var(--kcs-gold); }

/* Featured Slider */
.berita-featured-wrap { position: relative; width: 100%; border-radius: var(--kcs-radius-lg); overflow: hidden; height: 400px; margin-bottom: 24px; box-shadow: var(--kcs-shadow-lg); }
@media (min-width: 768px) { .berita-featured-wrap { height: 500px; } }
.berita-featured-slider { position: relative; width: 100%; height: 100%; }
.berita-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; z-index: 1; pointer-events: none; }
.berita-slide.active { opacity: 1; z-index: 2; pointer-events: auto; }
.berita-slide-bg { width: 100%; height: 100%; object-fit: cover; }
.berita-slide-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,25,47,0.1) 0%, rgba(10,25,47,0.9) 100%); }
.berita-slide-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; z-index: 3; }
@media (min-width: 768px) { .berita-slide-content { padding: 48px; max-width: 70%; } }
.berita-slide-title { font-family: 'Playfair Display', serif; font-size: clamp(24px, 4vw, 36px); font-weight: 700; color: white; margin: 12px 0; line-height: 1.3; }
.berita-slide-title a { color: white; text-decoration: none; transition: color 0.2s; }
.berita-slide-title a:hover { color: var(--kcs-gold); }
.berita-slider-nav { position: absolute; top: 50%; right: 24px; transform: translateY(-50%); display: flex; gap: 8px; z-index: 10; flex-direction: column; }
@media (max-width: 767px) { .berita-slider-nav { top: auto; bottom: 24px; right: 24px; transform: none; flex-direction: row; } }
.berita-btn-prev, .berita-btn-next { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--kcs-transition); font-size: 14px; }
.berita-btn-prev:hover, .berita-btn-next:hover { background: var(--kcs-gold); color: var(--kcs-navy); border-color: var(--kcs-gold); }
.berita-slider-dots { position: absolute; bottom: 32px; right: 32px; display: flex; gap: 8px; z-index: 10; }
@media (max-width: 767px) { .berita-slider-dots { display: none; } }
.berita-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; }
.berita-dot.active { background: var(--kcs-gold); width: 24px; border-radius: 4px; }

/* Grid Bawah */
.berita-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .berita-grid { grid-template-columns: repeat(3, 1fr); } }
.berita-card {
    background: #f8fafc; border-radius: var(--kcs-radius-lg); overflow: hidden;
    border: 1px solid #f1f5f9; transition: box-shadow 0.3s;
}
.berita-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.berita-img { height: 220px; overflow: hidden; position: relative; }
.berita-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.berita-card:hover .berita-img img { transform: scale(1.06); }
.berita-cat {
    position: absolute; top: 14px; left: 14px; z-index: 1;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; padding: 4px 12px; border-radius: 4px;
}
.berita-cat.berita  { background: var(--kcs-gold); color: var(--kcs-navy); }
.berita-cat.galeri  { background: var(--kcs-navy); color: white; }
.berita-cat.edukasi { background: white; color: var(--kcs-navy); }
.berita-cat.default { background: var(--kcs-gold); color: var(--kcs-navy); }
.berita-body { padding: 22px 22px 24px; }
.berita-meta { display: flex; gap: 14px; font-size: 11px; color: #94a3b8; margin-bottom: 10px; }
.berita-body h3 {
    font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700;
    color: var(--kcs-navy); margin-bottom: 10px; line-height: 1.4;
}
.berita-body h3 a { color: var(--kcs-navy); text-decoration: none; transition: color 0.2s; }
.berita-body h3 a:hover { color: var(--kcs-gold); }
.berita-excerpt { color: var(--kcs-muted); font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.berita-link { color: var(--kcs-gold); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; transition: color 0.2s; }
.berita-link:hover { color: var(--kcs-navy); }

/* ======= KONTAK SECTION ======= */
.kontak-section { background: white; }
.kontak-map { height: 420px; }
.kontak-map iframe { width: 100%; height: 100%; border: none; display: block; }
.kontak-card-outer {
    max-width: 1280px; margin: -140px auto 0; padding: 0 24px 96px;
    position: relative; z-index: 10;
}
.kontak-card {
    background: white; border-radius: var(--kcs-radius-lg);
    box-shadow: 0 24px 64px rgba(0,0,0,0.14); overflow: hidden;
    border-top: 4px solid var(--kcs-gold); display: flex; flex-direction: column;
}
@media (min-width: 1024px) { .kontak-card { flex-direction: row; } }
.kontak-left { background: var(--kcs-navy); padding: 44px; color: white; }
@media (min-width: 1024px) { .kontak-left { width: 34%; flex-shrink: 0; } }
.kontak-left h3 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--kcs-gold); margin-bottom: 16px; }
.kontak-left .intro { color: #94a3b8; margin-bottom: 32px; line-height: 1.7; font-size: 14px; }
.kontak-info { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.kontak-info-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.09); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--kcs-gold); font-size: 14px; }
.kontak-info-label { font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: white; margin-bottom: 4px; }
.kontak-info-val { color: #94a3b8; font-size: 13px; line-height: 1.6; }
.kontak-right { padding: 44px; flex: 1; }
.kontak-right h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--kcs-navy); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-field input,
.form-field textarea {
    width: 100%; padding: 11px 16px; background: #f8fafc;
    border: 1.5px solid var(--kcs-border); border-radius: 6px;
    font-family: 'Inter', sans-serif; font-size: 14px; color: var(--kcs-text);
    outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--kcs-gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.12); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-alert { display:none; padding:12px 16px; border-radius:6px; margin-bottom:18px; font-size:13px; line-height:1.5; }
.form-alert.success { background:#f0fdf4; border:1px solid #bbf7d0; color:#166534; }
.form-alert.error   { background:#fef2f2; border:1px solid #fecaca; color:#dc2626; }
.btn-submit {
    padding: 14px 40px; background: var(--kcs-navy); color: white;
    font-weight: 700; font-size: 14px; border: none; border-radius: 6px;
    cursor: pointer; transition: var(--kcs-transition); letter-spacing: 0.04em;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-submit:hover { background: var(--kcs-gold); color: var(--kcs-navy); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ======= FOOTER ======= */
.site-footer { background: var(--kcs-navy); color: white; padding: 80px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer-brand p { color: #64748b; font-size: 14px; line-height: 1.85; margin: 18px 0 22px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
    width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; text-decoration: none; font-size: 13px; transition: var(--kcs-transition);
}
.footer-social:hover { background: var(--kcs-gold); color: var(--kcs-navy); }
.footer-heading {
    font-weight: 700; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.12em; color: white; margin-bottom: 18px;
    padding-bottom: 10px; border-bottom: 2px solid rgba(212,175,55,0.25);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
    color: #64748b; font-size: 14px; text-decoration: none;
    display: flex; align-items: center; gap: 6px; transition: color 0.2s;
}
.footer-links a::before { content: '›'; color: var(--kcs-gold); font-size: 16px; line-height: 1; }
.footer-links a:hover { color: var(--kcs-gold); }
.footer-contact-row { display: flex; gap: 10px; margin-bottom: 14px; }
.footer-contact-row i { color: var(--kcs-gold); margin-top: 2px; font-size: 13px; width: 14px; flex-shrink: 0; }
.footer-contact-row span { color: #64748b; font-size: 13px; line-height: 1.6; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07); padding: 22px 24px;
    max-width: 1280px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 8px;
    align-items: center; text-align: center;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p, .footer-bottom a { color: #475569; font-size: 12px; text-decoration: none; }
.footer-bottom a:hover { color: var(--kcs-gold); }

/* ======= WA FLOATING BUTTON ======= */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 998;
    width: 56px; height: 56px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 26px; text-decoration: none;
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
    transition: var(--kcs-transition);
}
.wa-float:hover { transform: scale(1.1); background: #1fb855; color: white; }
.wa-float-tooltip {
    position: absolute; right: 68px; background: #333; color: white;
    font-size: 12px; padding: 5px 10px; border-radius: 4px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.wa-float:hover .wa-float-tooltip { opacity: 1; }

/* ======= SINGLE POST ======= */
.single-hero { padding: 140px 0 80px; background: var(--kcs-navy); }
.single-hero-inner { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.single-cat-pill {
    display: inline-block; background: var(--kcs-gold); color: var(--kcs-navy);
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; padding: 5px 14px; border-radius: 4px;
    margin-bottom: 18px; text-decoration: none;
}
.single-title { font-family: 'Playfair Display', serif; font-size: clamp(26px, 5vw, 48px); font-weight: 700; color: white; margin-bottom: 18px; line-height: 1.2; }
.single-meta { color: #94a3b8; font-size: 13px; display: flex; gap: 20px; flex-wrap: wrap; }
.single-thumbnail { max-width: 900px; margin: 0 auto; padding: 48px 24px 0; }
.single-thumbnail img { width: 100%; border-radius: var(--kcs-radius-lg); box-shadow: var(--kcs-shadow-lg); }
.single-content { max-width: 900px; margin: 0 auto; padding: 56px 24px 80px; }
.single-content h2, .single-content h3 { font-family: 'Playfair Display', serif; color: var(--kcs-navy); margin: 32px 0 14px; }
.single-content p { color: #374151; line-height: 1.85; margin-bottom: 20px; }
.single-content a { color: var(--kcs-gold); }
.single-content img { max-width: 100%; border-radius: 8px; margin: 24px 0; }
.single-content ul, .single-content ol { margin: 16px 0 20px 24px; color: #374151; line-height: 1.8; }
blockquote { border-left: 4px solid var(--kcs-gold); padding: 16px 24px; margin: 24px 0; background: #f8fafc; border-radius: 0 8px 8px 0; color: var(--kcs-muted); font-style: italic; }
.single-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 32px; border-top: 1px solid var(--kcs-border); }

/* ======= ARCHIVE / SEARCH ======= */
.archive-hero { padding: 140px 0 64px; background: var(--kcs-navy); text-align: center; }
.archive-title { font-family: 'Playfair Display', serif; font-size: clamp(30px, 5vw, 52px); font-weight: 700; color: white; margin-top: 12px; }
.archive-content { max-width: 1280px; margin: 0 auto; padding: 64px 24px; }
.search-form-wrap { max-width: 560px; margin: 0 auto; }
.search-form { display: flex; gap: 0; }
.search-form input {
    flex: 1; padding: 14px 20px; background: white; border: 2px solid var(--kcs-border);
    border-right: none; border-radius: 6px 0 0 6px; font-size: 15px;
    outline: none; font-family: 'Inter', sans-serif; color: var(--kcs-text);
}
.search-form input:focus { border-color: var(--kcs-gold); }
.search-form button {
    padding: 14px 24px; background: var(--kcs-navy); color: white; border: none;
    border-radius: 0 6px 6px 0; font-size: 15px; cursor: pointer; transition: background 0.2s;
}
.search-form button:hover { background: var(--kcs-gold); color: var(--kcs-navy); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; transition: var(--kcs-transition); background: white; color: var(--kcs-navy); box-shadow: var(--kcs-shadow); border: 1px solid var(--kcs-border); }
.pagination .current, .pagination a:hover { background: var(--kcs-navy); color: white; border-color: var(--kcs-navy); }

/* ======= SIDEBAR & WIDGETS ======= */
.widget { margin-bottom: 32px; background: white; border-radius: var(--kcs-radius-lg); padding: 24px; box-shadow: var(--kcs-shadow); }
.widget-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--kcs-navy); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--kcs-gold-light); }
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; color: var(--kcs-muted); font-size: 14px; }
.widget ul li a { color: var(--kcs-muted); text-decoration: none; }
.widget ul li a:hover { color: var(--kcs-gold); }

/* ======= COMMENTS ======= */
.comments-area { max-width: 900px; margin: 0 auto; padding: 0 24px 64px; }
.comments-title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--kcs-navy); margin-bottom: 32px; }
.comment-list { list-style: none; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--kcs-border); }
.comment-author { font-weight: 700; color: var(--kcs-navy); margin-bottom: 6px; }
.comment-metadata { font-size: 12px; color: #94a3b8; margin-bottom: 10px; }
.comment-content p { color: var(--kcs-muted); line-height: 1.7; }
.comment-form-wrap { margin-top: 48px; }
.comment-form-wrap h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--kcs-navy); margin-bottom: 24px; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 11px 14px; background: #f8fafc; border: 1.5px solid var(--kcs-border); border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 14px; outline: none; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--kcs-gold); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input[type="submit"] { padding: 12px 32px; background: var(--kcs-navy); color: white; font-weight: 700; font-size: 14px; border: none; border-radius: 6px; cursor: pointer; transition: background 0.2s; }
.comment-form input[type="submit"]:hover { background: var(--kcs-gold); color: var(--kcs-navy); }

/* ======= PAGE ======= */
.page-hero { padding: 140px 0 64px; background: var(--kcs-navy); text-align: center; }
.page-title { font-family: 'Playfair Display', serif; font-size: clamp(30px, 5vw, 52px); font-weight: 700; color: white; margin-top: 10px; }
.page-content { max-width: 900px; margin: 0 auto; padding: 64px 24px; }
.page-content p { color: #374151; line-height: 1.85; margin-bottom: 20px; }
.page-content h2, .page-content h3 { font-family: 'Playfair Display', serif; color: var(--kcs-navy); margin: 28px 0 14px; }
.page-content ul, .page-content ol { margin: 16px 0 20px 24px; color: #374151; line-height: 1.8; }
.page-content a { color: var(--kcs-gold); }

/* ======= 404 ======= */
.not-found { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 80px; }
.not-found .num { font-family: 'Playfair Display', serif; font-size: 96px; font-weight: 700; color: var(--kcs-gold); line-height: 1; }
.not-found h1 { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--kcs-navy); margin: 14px 0 12px; }
.not-found p { color: var(--kcs-muted); max-width: 400px; margin-bottom: 32px; line-height: 1.7; }

/* ======= ELEMENTOR OVERRIDES ======= */
.elementor-page #navbar { background: rgba(10,25,47,0.95) !important; }
.elementor-page .hero-section { min-height: auto; }
.e-con, .elementor-section { max-width: 100% !important; }
.elementor-widget-text-editor p { line-height: 1.8; }

/* ======= CANVAS TEMPLATE (Elementor full-screen) ======= */
.page-template-elementor-canvas #navbar,
.page-template-elementor-canvas .wa-float,
.page-template-elementor-canvas .site-footer { display: none !important; }

/* ======= FULL WIDTH TEMPLATE ======= */
.page-template-full-width .page-hero,
.page-template-full-width .page-content { max-width: 100%; padding: 0; }

/* ======= WORDPRESS CORE COMPATIBILITY ======= */
.wp-block-image img { max-width: 100%; height: auto; border-radius: 6px; }
.aligncenter { text-align: center; margin: 0 auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #94a3b8; text-align: center; margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; }

/* ======= SINGLE LAYANAN ======= */
.layanan-hero { padding: 160px 0 80px; position: relative; background-size: cover; background-position: center; border-bottom: 4px solid var(--kcs-gold); }
.layanan-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; text-align: center; }
.layanan-hero-icon { width: 80px; height: 80px; background: var(--kcs-gold); color: var(--kcs-navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 24px; box-shadow: 0 8px 32px rgba(212,175,55,0.4); }
.layanan-hero-icon svg { width: 40px; height: 40px; fill: currentColor; }
.layanan-title { font-family: 'Playfair Display', serif; font-size: clamp(32px, 5vw, 56px); font-weight: 700; color: white; margin-bottom: 24px; line-height: 1.15; }
.layanan-meta-top a { color: #cbd5e1; font-size: 14px; text-decoration: none; font-weight: 600; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.layanan-meta-top a:hover { color: var(--kcs-gold); }
.layanan-content-grid { display: grid; grid-template-columns: 1fr; gap: 48px; padding: 64px 0 96px; }
@media (min-width: 1024px) { .layanan-content-grid { grid-template-columns: 2fr 1fr; } }
.layanan-text-body { font-size: 16px; line-height: 1.85; color: var(--kcs-text); }
.layanan-text-body h2, .layanan-text-body h3 { font-family: 'Playfair Display', serif; color: var(--kcs-text); margin: 40px 0 20px; font-weight: 700; }
.layanan-text-body ul { list-style: none; margin-bottom: 24px; }
.layanan-text-body ul li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.layanan-text-body ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--kcs-gold); font-size: 14px; top: 4px; }
.layanan-sidebar { position: sticky; top: 120px; }
.layanan-sidebar-widget { background: var(--kcs-panel); border-radius: var(--kcs-radius-lg); padding: 32px; box-shadow: var(--kcs-shadow); border: 1px solid var(--kcs-border); margin-bottom: 32px; }
.layanan-sidebar-widget h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--kcs-text); font-weight: 700; margin-bottom: 24px; border-bottom: 2px solid var(--kcs-border); padding-bottom: 16px; }
.layanan-info-list { display: flex; flex-direction: column; gap: 20px; }
.layanan-info-list li { display: flex; gap: 16px; }
.info-icon { width: 44px; height: 44px; background: rgba(212,175,55,0.1); color: var(--kcs-gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.info-text { display: flex; flex-direction: column; gap: 4px; }
.info-text strong { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--kcs-muted); }
.info-text span { font-size: 15px; font-weight: 600; color: var(--kcs-text); }
.layanan-sidebar-cta { background: var(--kcs-navy); border-radius: var(--kcs-radius-lg); padding: 32px; color: white; text-align: center; }
.layanan-sidebar-cta h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--kcs-gold); margin-bottom: 12px; font-weight: 700; }
.layanan-sidebar-cta p { color: #cbd5e1; font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
.btn-wa-outline { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border: 2px solid #25D366; color: #25D366; padding: 12px 24px; border-radius: 6px; font-weight: 700; width: 100%; transition: var(--kcs-transition); text-decoration: none; }
.btn-wa-outline:hover { background: #25D366; color: white; }

/* ======= QUOTE POPUP ======= */
.quote-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; padding: 24px; }
.quote-popup.show { opacity: 1; pointer-events: auto; }
.quote-popup-overlay { position: absolute; inset: 0; background: rgba(10,25,47,0.8); backdrop-filter: blur(8px); }
.quote-popup-content { position: relative; background: var(--kcs-panel); width: 100%; max-width: 600px; border-radius: var(--kcs-radius-lg); box-shadow: 0 24px 64px rgba(0,0,0,0.4); border-top: 4px solid var(--kcs-gold); z-index: 2; padding: 40px; transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-height: 90vh; overflow-y: auto; }
.quote-popup.show .quote-popup-content { transform: translateY(0); }
.quote-popup-close { position: absolute; top: 24px; right: 24px; background: none; border: none; font-size: 24px; color: var(--kcs-muted); cursor: pointer; transition: color 0.2s; }
.quote-popup-close:hover { color: var(--kcs-gold); }
.quote-popup-header { text-align: center; margin-bottom: 32px; }
.quote-popup-header h3 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--kcs-text); margin-bottom: 8px; }
.quote-popup-header p { color: var(--kcs-muted); font-size: 14px; line-height: 1.6; }

/* ======= REVEAL ANIMATIONS ======= */
.reveal-up { opacity: 0; transform: translateY(35px); transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-up.reveal-active { opacity: 1; transform: translateY(0); }


/* ======= SAMPLE PRODUCT ======= */
.sample-product-section { padding: 72px 0; background: white; }
.sample-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px; margin-top: 40px;
}
.sample-card { position: relative; border-radius: var(--kcs-radius-lg); overflow: hidden; height: 260px; box-shadow: var(--kcs-shadow); }
.sample-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.sample-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,25,47,0.85), transparent); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 24px; }
.sample-card:hover .sample-card-overlay { opacity: 1; }
.sample-card:hover img { transform: scale(1.08); }
.sample-card-overlay h3 { color: white; font-size: 16px; font-weight: 600; font-family: 'Playfair Display', serif; }

/* =========================================================
   HIGH-END MICRO-INTERACTIONS & AWWWARDS STYLING
   ========================================================= */

/* 1. Elastic Button Physics */
.btn-primary, .btn-secondary, .btn-submit, button, .hero-btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Hardware accel */
    transition: transform 0.4s var(--kcs-ease), box-shadow 0.4s var(--kcs-ease), background 0.4s var(--kcs-ease), color 0.4s var(--kcs-ease) !important;
}
.btn-primary:hover, .btn-submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 20px 40px rgba(212,175,55,0.15) !important;
}
.btn-primary:active, .btn-submit:active, .btn-secondary:active, .hero-btn:active {
    transform: translateY(2px) scale(0.96) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important; /* Snappy active */
}

/* 2. Magnetic Ghosting Effect */
.magnetic-btn { display: inline-flex; justify-content: center; align-items: center; }

/* 3. Link Underline Animation (Left to Right) */
.berita-link, .layanan-readmore, .lihat-semua {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
}
.berita-link::after, .layanan-readmore::after, .lihat-semua::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: right;
    transition: transform 0.6s var(--kcs-ease);
}
.berita-link:hover::after, .layanan-readmore:hover::after, .lihat-semua:hover::after {
    transform: scaleX(1); transform-origin: left;
}
.berita-link i, .layanan-readmore i, .lihat-semua i {
    transition: transform 0.4s var(--kcs-ease);
}
.berita-link:hover i, .layanan-readmore:hover i, .lihat-semua:hover i {
    transform: translateX(6px);
}

/* 4. Deep Shadow Layers for Cards */
.layanan-card, .berita-card, .testimoni-card, .klien-card {
    transition: transform 0.6s var(--kcs-ease), box-shadow 0.6s var(--kcs-ease), border-color 0.6s var(--kcs-ease) !important;
    will-change: transform, box-shadow;
}
.layanan-card:hover, .berita-card:hover, .testimoni-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 30px 60px rgba(0,0,0,0.6) !important;
    z-index: 10;
}

/* 5. Typography Motion States */
.word-anim { display: inline-block; overflow: hidden; padding-bottom: 4px; }
.word-anim .word { transform: translateY(110%); display: inline-block; will-change: transform; transition: transform 0.8s var(--kcs-ease); }
.word-anim.is-visible .word { transform: translateY(0); }

/* 6. Parallax Container bounds */
.parallax-bg {
    will-change: transform; transform: scale(1.1); transform-origin: top center;
}

/* ═══════════════════════════════════════
   GSAP ENGINE CSS SUPPORT
   ═══════════════════════════════════════ */

/* 7. FLIP Card Expansion (Feature #6) */
.layanan-card {
    transition: box-shadow 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    will-change: transform;
}
.layanan-card.card-expanded {
    z-index: 15;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,175,55,0.15);
}
.layanan-card.card-expanded .layanan-card-img img {
    transform: scale(1.08);
}
.layanan-card.card-expanded .layanan-icon {
    color: var(--kcs-gold);
    transform: scale(1.15) rotate(5deg);
}
.layanan-card.card-expanded .layanan-readmore {
    color: var(--kcs-gold);
    letter-spacing: 1px;
}

/* 8. Layanan Icon animation origin (Feature #9) */
.layanan-icon {
    will-change: transform, opacity;
    transform-origin: center center;
}

/* 9. CSS Fallback Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal-up.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* 10. SplitType word container (Feature #2) */
.word { display: inline-block; will-change: transform, opacity; }

/* 11. Testimoni quote float (Feature #9) */
.testimoni-quote { will-change: transform; }

/* 12. Prefers Reduced Motion — Kill ALL animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .parallax-bg { transform: none !important; }
    .reveal-up { opacity: 1 !important; transform: none !important; }
    .kcs-loader { display: none !important; }
}

/* 13. Link sweep animation refined */
.nav-menu a, .footer-links a {
    position: relative; display: inline-block;
}
.nav-menu a::after, .footer-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 1.5px;
    background: var(--kcs-gold);
    transition: width 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.nav-menu a:hover::after, .footer-links a:hover::after { width: 100%; }

/* 14. Parallax Decorative Shapes */
.parallax-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}
.shape-orb {
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.06), transparent 70%);
}
.shape-dots {
    background-image: radial-gradient(rgba(212,175,55,0.6) 2px, transparent 2px);
    background-size: 24px 24px;
    opacity: 0.15;
}
.shape-ring {
    border: 2px solid rgba(212,175,55,0.1);
    border-radius: 50%;
}
.shape-square {
    border: 2px solid rgba(212,175,55,0.1);
}
.shape-blue-orb {
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15,23,42,0.04), transparent 70%);
}

