/*
Theme Name: Jasapetir Modern v3
Theme URI: https://jasapetir.com/
Author: Jasapetir.com
Description: Tema WordPress modern Jasapetir.com Versi 3 dengan Dashboard Admin Interaktif (Banner, Layanan, Portfolio, Klien, Artikel, Menu, Kontak/WhatsApp).
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jasapetir-modern-v3
*/

:root {
    --navy: #082b50;
    --navy2: #0c3d6c;
    --blue: #087fc5;
    --orange: #ff9417;
    --orange-hover: #e07f0a;
    --ink: #102b49;
    --muted: #60738a;
    --pale: #f1f6fc;
    --line: #d9e5f1;
    --white: #ffffff;
    --shadow: 0 3px 12px rgba(13, 49, 82, 0.10);
    --shadow-lg: 0 10px 25px rgba(8, 43, 80, 0.15);
    --radius: 6px;
    --transition: all 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1160px, calc(100% - 42px)); margin: auto; }

/* Top Header Bar */
.topline { background: #08294b; color: #eaf4ff; font-size: 11px; }
.topline .wrap { height: 32px; display: flex; align-items: center; justify-content: space-between; }
.topleft { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.topright { display: flex; gap: 20px; align-items: center; }
.topright span { display: flex; align-items: center; gap: 5px; }

/* Main Header */
.header { height: 64px; background: #fff; position: sticky; top: 0; z-index: 99; box-shadow: 0 1px 6px rgba(16, 43, 73, 0.08); }
.headrow { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 900; font-size: 22px; letter-spacing: -0.8px; line-height: 1; }
.logo-img { height: 42px; width: auto; max-width: 220px; object-fit: contain; }
.logoicon { width: 35px; height: 38px; background: var(--orange); color: white; display: grid; place-items: center; clip-path: polygon(50% 0, 95% 18%, 86% 75%, 50% 100%, 14% 75%, 5% 18%); font-size: 22px; }
.logo strong { color: var(--orange); }
.logo small { display: block; font-size: 8px; letter-spacing: 0; color: #53677e; font-weight: 600; margin-top: 3px; }
.head-right { display: flex; align-items: center; gap: 10px; }

/* Navigation */
.nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav a { font-size: 12px; font-weight: 700; color: var(--navy); }
.nav a:hover, .nav .current-menu-item > a { color: var(--orange); }
.nav-cta { background: var(--orange); color: #fff !important; padding: 10px 20px; border-radius: 30px; font-size: 12px !important; font-weight: 800; box-shadow: 0 3px 10px rgba(255,148,23,0.3); display: inline-block; white-space: nowrap; }
.nav-cta:hover { background: var(--orange-hover); transform: translateY(-1px); }
.mobile-cta { display: none; }
.toggle { display: none; border: 0; background: none; font-size: 24px; color: var(--navy); padding: 5px; }

/* Hero Section */
.hero {
    min-height: 380px;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center 53%;
    background-repeat: no-repeat;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 34, 64, 0.98) 0%, rgba(5, 42, 77, 0.88) 48%, rgba(5, 42, 77, 0.3) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding: 42px 0; }
.hero-copy { max-width: 600px; }
.kicker { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; color: var(--orange); background: rgba(255, 148, 23, 0.12); padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 8px; }
.hero h1 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -1.5px; margin: 10px 0 14px; color: #fff; font-weight: 900; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 15px; line-height: 1.6; max-width: 530px; color: #e1ecf7; margin: 0 0 22px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 30px; font-size: 12px; font-weight: 800; border: 1px solid transparent; transition: var(--transition); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 4px 12px rgba(255, 148, 23, 0.35); }
.btn-orange:hover { background: var(--orange-hover); color: #fff; transform: translateY(-2px); }
.btn-light { border-color: rgba(255, 255, 255, 0.8); color: #fff; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255, 255, 255, 0.25); border-color: #fff; color: #fff; transform: translateY(-2px); }
.trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; font-size: 11px; font-weight: 700; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; }
.trust span { display: flex; align-items: center; gap: 7px; }
.trust b { font-size: 16px; color: var(--orange); }

/* Section Styling */
.section { padding: 36px 0; }
.section.gray { background: var(--pale); }
.section-title { margin: 0 0 20px; }
.section-title .mini { font-size: 10px; font-weight: 900; text-transform: uppercase; color: var(--navy); display: flex; align-items: center; gap: 8px; letter-spacing: 1px; }
.section-title .mini:before { content: ""; width: 28px; height: 3px; background: var(--orange); border-radius: 2px; }
.section-title h2 { font-size: 26px; line-height: 1.2; color: var(--navy); margin: 6px 0 6px; letter-spacing: -0.5px; font-weight: 800; }
.section-title p { font-size: 12px; color: #536a83; margin: 0; }

/* Services Cards */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.service-photo { height: 110px; background-size: cover; background-position: center; position: relative; }
.service-photo:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 43, 80, 0.4), transparent); }
.service-icon { position: relative; margin: -20px 0 0 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: white; display: grid; place-items: center; font-size: 20px; z-index: 2; border: 3px solid white; box-shadow: 0 3px 6px rgba(0,0,0,0.15); }
.service-body { padding: 8px 16px 16px; }
.service h3 { font-size: 14px; line-height: 1.3; margin: 4px 0 8px; color: var(--navy); font-weight: 800; }
.service p { font-size: 11px; line-height: 1.5; color: #526982; margin: 0 0 12px; min-height: 48px; }
.more { font-size: 10px; font-weight: 800; color: var(--navy); display: inline-flex; align-items: center; gap: 4px; }
.more b { color: var(--orange); font-size: 14px; transition: var(--transition); }
.service:hover .more b { transform: translateX(3px); }

/* About Section */
.about-grid { display: grid; grid-template-columns: 44% 56%; min-height: 220px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.about-photo { background-size: cover; background-position: center; min-height: 220px; }
.about-text { padding: 28px 36px; background: var(--pale); }
.about-text h2 { font-size: 25px; line-height: 1.15; color: var(--navy); margin: 6px 0 10px; font-weight: 800; }
.about-text p { font-size: 12px; color: #536a83; margin: 0 0 16px; line-height: 1.6; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; list-style: none; padding: 0; margin: 0; }
.features li { font-size: 11px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.features i { font-style: normal; background: #0c69ad; color: white; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; flex-shrink: 0; }

/* Portfolio Projects */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.project { height: 120px; border-radius: 8px; position: relative; overflow: hidden; background-size: cover; background-position: center; box-shadow: var(--shadow); transition: var(--transition); }
.project:hover { transform: scale(1.02); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 30, 57, 0.9) 0%, rgba(6, 30, 57, 0.2) 60%, transparent 100%); }
.project-label { position: absolute; z-index: 2; bottom: 10px; left: 12px; right: 12px; color: #fff; font-size: 11px; font-weight: 800; line-height: 1.3; }
.project-label small { font-size: 9px; font-weight: 400; opacity: 0.85; display: block; }

/* Proof & Clients */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 20px 0; }
.testimonial { border-right: 1px solid var(--line); padding-right: 28px; }
.testimonial h3, .clients h3 { font-size: 16px; color: var(--navy); margin: 0 0 10px; font-weight: 800; }
.quote { font-size: 12px; font-style: italic; color: #536a83; margin: 0 0 12px; line-height: 1.6; }
.person { font-size: 11px; font-weight: 800; color: var(--navy); }
.person small { display: block; font-size: 9px; color: #667d92; font-weight: 400; }
.clientrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.client { font-size: 14px; font-weight: 900; color: #1479bd; background: #fff; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 2px 5px rgba(0,0,0,0.04); display: flex; align-items: center; gap: 6px; }
.client img { max-height: 28px; width: auto; object-fit: contain; }

/* Educational Posts */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.post { display: grid; grid-template-columns: 80px 1fr; gap: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px; border-radius: 8px; background: #fff; transition: var(--transition); }
.post:hover { border-color: var(--blue); transform: translateY(-2px); }
.post-thumb { background: linear-gradient(135deg, #087fc5, #082b50); height: 70px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 24px; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post h3 { font-size: 11px; line-height: 1.35; margin: 2px 0 4px; color: var(--navy); font-weight: 800; }
.post h3 a:hover { color: var(--orange); }
.post small { font-size: 9px; color: #71859a; }

/* Footer */
.footer { background: #06284a; color: #d8e8f7; padding: 32px 0 14px; position: relative; overflow: hidden; }
.footgrid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 30px; }
.footlogo { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.footlogo span { color: var(--orange); }
.footer p, .footer li { font-size: 10px; color: #c3d5e5; line-height: 1.6; }
.footer h4 { font-size: 12px; color: #fff; margin: 3px 0 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.footer a:hover { color: var(--orange); }
.copyright { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 24px; padding-top: 12px; display: flex; justify-content: space-between; font-size: 9px; color: #b7cadd; }

/* Floating WhatsApp Button */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; background: #16bf62; color: white; border-radius: 30px; padding: 12px 18px; font-size: 12px; font-weight: 900; box-shadow: 0 6px 22px rgba(0, 27, 52, 0.3); display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.wa:hover { background: #13a855; color: white; transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 25px rgba(22, 191, 98, 0.4); }

/* Content / Page Area */
.content-area { padding: 48px 0; min-height: 55vh; }
.content-area h1, .content-area h2 { color: var(--navy); margin-top: 0; }
.content-area article { max-width: 850px; }
.content-area p { color: #536a83; line-height: 1.7; }
.bloggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blogcard { border: 1px solid var(--line); padding: 20px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }

/* Media Queries */
@media(max-width:850px){
    .nav ul{gap:12px}
    .nav a{font-size:11px}
    .desktop-cta{display:none !important}
    .mobile-cta{display:inline-block !important; margin-top:12px; width:100%; text-align:center}
    .services, .projects{grid-template-columns:repeat(2,1fr)}
    .posts{grid-template-columns:repeat(2,1fr)}
    .footgrid{grid-template-columns:1fr 1fr}
}
@media(max-width:650px){
    .wrap{width:calc(100% - 28px)}
    .topline .wrap{justify-content:center}
    .topright{display:none}
    .header{height:60px}
    .logo-img{height:34px; max-width:170px}
    .toggle{display:block}
    .nav{display:none;position:absolute;left:0;right:0;top:60px;background:white;padding:15px 20px;box-shadow:var(--shadow-lg);border-bottom:2px solid var(--orange)}
    .nav.open{display:block}
    .nav ul{display:block}
    .nav li{padding:10px 0;border-bottom:1px solid var(--line)}
    .hero{min-height:440px}
    .hero .wrap{padding:40px 0}
    .hero h1{font-size:36px}
    .hero p{font-size:13px}
    .trust{gap:10px 15px}
    .trust span{width:calc(50% - 10px)}
    .section{padding:28px 0}
    .section-title h2{font-size:22px}
    .about-grid{grid-template-columns:1fr}
    .about-photo{min-height:200px}
    .about-text{padding:22px 18px}
    .proof{grid-template-columns:1fr;gap:20px}
    .testimonial{border-right:0;border-bottom:1px solid var(--line);padding:0 0 20px}
    .posts{grid-template-columns:1fr 1fr}
    .footgrid{grid-template-columns:1fr 1fr;gap:20px}
    .footgrid > div:first-child{grid-column:1/-1}
    .copyright{flex-direction:column;gap:6px;text-align:center}
    .wa{right:12px;bottom:12px;padding:10px 14px;font-size:11px}
}
@media(max-width:400px){
    .services, .projects, .posts{grid-template-columns:1fr}
    .features{grid-template-columns:1fr}
}
