/*
Theme Name: Asta Project Corporate
Theme URI: https://www.astaproject.com
Author: Asta Project Web Team
Author URI: https://www.astaproject.com
Description: Executive corporate WordPress theme for Asta Project (PT. Abdi Maju Bersama) with full WordPress Customizer editing and Portfolio Custom Post Type.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astaproject
*/

:root {
  --primary: #0f2347;
  --primary-deep: #081326;
  --accent: #1d4ed8;
  --accent-sky: #3b82f6;
  --accent-light: #eff6ff;
  --gold: #c59b27;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 24px 48px rgba(8, 19, 38, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.25s ease; }
ul { list-style: none; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.top-bar { background: var(--primary-deep); color: #cbd5e1; font-size: 0.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 16px; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar span, .top-bar a { color: #e2e8f0; }
.top-bar a:hover { color: #93c5fd; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 84px; }
.brand-logo { display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start; flex-shrink: 0; line-height: 1; }
.brand-logo .custom-logo-link { display: inline-flex; align-items: center; line-height: 1; }
.brand-logo img, .custom-logo { max-height: 44px; width: auto !important; height: auto; object-fit: contain; display: block; }
.brand-title { font-size: 1.38rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; line-height: 1.15; }
.brand-title span { color: var(--accent); }
.brand-sub { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 3px; line-height: 1.1; }

.main-nav { display: flex; align-items: center; height: 100%; }
.main-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav li { display: inline-flex; align-items: center; line-height: 1; }
.main-nav a { display: inline-flex; align-items: center; font-size: 0.92rem; font-weight: 600; color: var(--text-dark); padding: 10px 2px; line-height: 1.2; white-space: nowrap; }
.main-nav a:hover { color: var(--accent); }
.main-nav a.btn-nav, .btn-nav {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #ffffff !important; padding: 10px 20px !important;
  border-radius: 7px; border: 1px solid var(--primary); line-height: 1.2;
}
.main-nav a.btn-nav:hover, .btn-nav:hover { background: var(--accent); border-color: var(--accent); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); padding: 9px 14px; border-radius: 7px; font-size: 1.15rem; line-height: 1; cursor: pointer; color: var(--primary); }

.hero-section { position: relative; color: #ffffff; padding: 108px 0 96px; background-color: var(--primary-deep); background-size: cover; background-position: center; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(8, 19, 38, 0.94) 0%, rgba(15, 35, 71, 0.88) 55%, rgba(15, 35, 71, 0.76) 100%); z-index: 1; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 52px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(197, 155, 39, 0.16); border: 1px solid rgba(234, 179, 8, 0.45); color: #fde68a; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero-title { font-size: 3rem; font-weight: 800; line-height: 1.16; margin-bottom: 20px; letter-spacing: -0.02em; color: #ffffff; }
.hero-desc { font-size: 1.08rem; color: #f1f5f9; margin-bottom: 34px; max-width: 610px; }
.hero-desc strong { color: #ffffff; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-primary { display: inline-block; background: #2563eb; color: #ffffff; padding: 14px 30px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; border: 1px solid #2563eb; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35); }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-2px); }
.btn-outline { display: inline-block; border: 1px solid rgba(255, 255, 255, 0.55); color: #ffffff; background: rgba(255, 255, 255, 0.08); padding: 14px 30px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.18); border-color: #ffffff; }

.hero-visual-panel { display: flex; flex-direction: column; gap: 18px; }
.hero-feature-photo { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: var(--shadow-lg); position: relative; }
.hero-feature-photo img { width: 100%; height: 220px; object-fit: cover; }
.hero-photo-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: linear-gradient(to top, rgba(8, 19, 38, 0.94), transparent); font-size: 0.82rem; color: #ffffff; font-weight: 600; }
.hero-stats-card { background: rgba(8, 19, 38, 0.78); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); border-radius: 14px; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-item { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(148, 163, 184, 0.18); padding: 14px 16px; border-radius: 10px; }
.stat-num { font-size: 1.55rem; font-weight: 800; color: #93c5fd; line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: #f8fafc; margin-top: 3px; }

.section { padding: 92px 0; }
.section-alt { background: var(--bg-light); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag { display: inline-block; color: var(--accent); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: 2.15rem; font-weight: 800; color: var(--primary); line-height: 1.25; margin-bottom: 14px; }
.section-subtitle { color: var(--text-muted); font-size: 1.02rem; }

.about-showcase { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 44px; align-items: center; margin-bottom: 44px; }
.about-image-stack { position: relative; }
.about-main-img { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.about-main-img img { width: 100%; height: 390px; object-fit: cover; }
.about-badge-card { position: absolute; bottom: -20px; right: 20px; background: var(--primary); color: #ffffff; padding: 18px 24px; border-radius: 12px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--gold); }
.about-badge-card strong { display: block; font-size: 1.25rem; color: #fde68a; }
.about-badge-card span { font-size: 0.82rem; color: #ffffff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.card-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.card-box h3 { font-size: 1.32rem; color: var(--primary); margin-bottom: 14px; }
.card-box p { color: var(--text-body); margin-bottom: 14px; font-size: 0.96rem; }
.quote-banner { margin-top: 20px; padding: 18px 20px; background: var(--accent-light); border-left: 4px solid var(--accent); border-radius: 6px; font-style: italic; color: var(--primary); font-weight: 600; font-size: 0.94rem; }

.vm-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: stretch; }
.vm-photo-box { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 320px; box-shadow: var(--shadow-md); }
.vm-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.vm-photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 19, 38, 0.94) 0%, rgba(8, 19, 38, 0.35) 65%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #ffffff; }
.vm-photo-overlay span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fde68a; font-weight: 700; margin-bottom: 6px; }
.vm-photo-overlay h4 { font-size: 1.25rem; line-height: 1.35; color: #ffffff; }
.vm-cards-col { display: flex; flex-direction: column; gap: 24px; }
.vm-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.vm-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.3rem; }
.vm-card p { color: var(--text-body); }
.vm-card.vision { background: linear-gradient(135deg, #0b1933 0%, #162b56 100%); color: #ffffff; border-color: #162b56; }
.vm-card.vision h3 { color: #ffffff; }
.vm-card.vision p { color: #f1f5f9; }
.vm-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(37, 99, 235, 0.12); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.vm-card.vision .vm-icon { background: rgba(253, 230, 138, 0.18); color: #fde68a; }

.values-banner { border-radius: 14px; overflow: hidden; position: relative; margin-bottom: 36px; min-height: 220px; background: #081326; box-shadow: var(--shadow-md); }
.values-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; z-index: 0; }
.values-banner-overlay { position: relative; z-index: 2; min-height: 220px; background: linear-gradient(90deg, rgba(8, 19, 38, 0.94) 0%, rgba(15, 35, 71, 0.84) 65%, rgba(15, 35, 71, 0.65) 100%); display: flex; flex-direction: column; justify-content: center; padding: 32px 42px; color: #ffffff; }
.values-banner-tag { display: inline-block; color: #fde68a; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 8px; }
.values-banner-overlay h3 { font-size: 1.55rem; max-width: 640px; line-height: 1.35; color: #ffffff !important; font-weight: 800; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bfdbfe; }
.value-num { font-size: 0.82rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.value-card h4 { font-size: 1.05rem; color: var(--primary); margin-bottom: 8px; }
.value-card p { font-size: 0.89rem; color: var(--text-body); }

.tabs-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.tab-btn { padding: 13px 26px; border-radius: 8px; border: 1px solid var(--border); background: var(--white); color: var(--text-dark); font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: all 0.2s ease; }
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); }
.tab-panel { display: none; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.tab-panel.active { display: block; }
.tab-panel-top { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 28px; align-items: center; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.tab-panel-header h3 { font-size: 1.38rem; color: var(--primary); margin-bottom: 6px; }
.tab-panel-header p { color: var(--text-muted); font-size: 0.94rem; }
.tab-panel-thumb { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.tab-panel-thumb img { width: 100%; height: 130px; object-fit: cover; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.service-list li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--text-dark); }
.service-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.portfolio-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.portfolio-thumb { width: 100%; height: 210px; overflow: hidden; background: #e2e8f0; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.04); }
.portfolio-body { padding: 24px 26px 28px; }
.portfolio-cat { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); background: var(--accent-light); padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; }
.portfolio-body h4 { font-size: 1.15rem; color: var(--primary); margin-bottom: 8px; }
.portfolio-body p { font-size: 0.9rem; color: var(--text-body); }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.contact-info-list { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.contact-item strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 2px; }
.contact-item span { font-size: 0.98rem; color: var(--text-dark); }
.contact-cta-box { background: linear-gradient(135deg, #0b1933 0%, #162b56 100%); color: #ffffff; padding: 42px; border-radius: 14px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold); }
.contact-cta-box h3 { font-size: 1.55rem; margin-bottom: 12px; color: #ffffff; }
.contact-cta-box p { color: #f1f5f9; margin-bottom: 26px; font-size: 0.96rem; }
.site-footer { background: var(--primary-deep); color: #cbd5e1; padding: 32px 0; font-size: 0.88rem; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer strong { color: #ffffff; }

.wp-content-area { padding: 64px 0; min-height: 60vh; }
.post-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }

@media (max-width: 1120px) { .main-nav ul { gap: 18px; } .main-nav a { font-size: 0.88rem; } }
@media (max-width: 992px) {
  .hero-grid, .about-showcase, .about-grid, .vm-layout, .contact-grid, .tab-panel-top { grid-template-columns: 1fr; }
  .values-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .top-bar { display: none; }
  .header-inner { height: 78px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: auto; background: var(--white); border-bottom: 1px solid var(--border); padding: 24px 32px; box-shadow: var(--shadow-md); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-title { font-size: 2.15rem; }
  .values-grid, .portfolio-grid, .service-list { grid-template-columns: 1fr; }
  .about-badge-card { position: static; margin-top: 14px; }
  .values-banner-overlay { padding: 28px 24px; }
  .values-banner-overlay h3 { font-size: 1.25rem; }
}
