/* ==========================================================================
   PT LMA One Page — main.css (v1.1)
   Warna & font dapat diubah dari Appearance > Customize > Warna dan Font;
   variabel di bawah hanyalah nilai cadangan.
   ========================================================================== */

:root {
	--clr-navy: #0b2545;
	--clr-navy-dark: #071a33;
	--clr-orange: #f5820c;
	--clr-orange-dark: #d96f00;
	--clr-on-orange: #0f1720;
	--clr-white: #ffffff;
	--clr-light: #f4f6f9;
	--clr-gray: #6b7280;
	--clr-text: #1f2937;
	--radius: 12px;
	--shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
	--header-h: 76px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Dasar ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--ptlma-offset, 90px); -webkit-text-size-adjust: 100%; }
html.ptlma-lock { overflow: hidden; }
body { margin: 0; font-family: var(--font); color: var(--clr-text); background: var(--clr-white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--clr-orange); outline-offset: 3px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(60px, 8vw, 96px) 0; }
.section-alt { background: var(--clr-light); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; padding: 12px 16px; background: var(--clr-navy); color: #fff; font-weight: 600; }
.skip-link:focus { left: 8px; top: 8px; }

.section-title { text-align: center; margin-bottom: clamp(32px, 5vw, 52px); }
.section-title h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--clr-navy); margin-bottom: 10px; display: inline-block; letter-spacing: -0.01em; }
.section-title h2::after { content: ""; display: block; width: 60px; height: 4px; background: var(--clr-orange); margin: 14px auto 0; border-radius: 2px; }
.section-title p { color: var(--clr-gray); max-width: 640px; margin: 0 auto; }

.empty-note { text-align: center; color: var(--clr-gray); }
.empty-note a { color: var(--clr-orange-dark); font-weight: 600; text-decoration: underline; }

/* Tombol ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; border-radius: 8px; font-weight: 700; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn-primary { background: var(--clr-orange); color: var(--clr-on-orange); }
.btn-primary:hover { background: var(--clr-orange-dark); }
.btn-outline { border-color: var(--clr-white); color: var(--clr-white); }
.btn-outline:hover { background: var(--clr-white); color: var(--clr-navy); }
.btn-cta { background: var(--clr-navy); color: #fff; margin-top: 20px; }
.btn-cta:hover { background: var(--clr-orange); color: var(--clr-on-orange); }

/* Header ----------------------------------------------------------------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: var(--clr-navy); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); transition: background-color .25s, box-shadow .25s; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.site-header.is-scrolled { background: var(--clr-navy-dark); box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.site-logo { display: flex; align-items: center; gap: 10px; color: var(--clr-white); font-weight: 700; font-size: 1.25rem; }
.site-logo img { height: 42px; width: auto; }

.main-nav .nav-list { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a { display: block; color: var(--clr-white); font-weight: 500; padding: 8px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
@media (hover: hover) {
	.main-nav a:hover { color: var(--clr-orange); border-color: var(--clr-orange); }
}
.main-nav a[aria-current="true"] { color: var(--clr-orange); border-color: var(--clr-orange); }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; background: none; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: #fff; content: ""; transition: transform .2s, opacity .2s; }
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -6px; left: 0; margin-left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; margin-left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
	.main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--clr-navy-dark); display: none; }
	.main-nav.open { display: block; }
	.main-nav .nav-list { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
	.main-nav li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.main-nav a { padding: 14px 0; border-bottom: 0; }
	.nav-toggle { display: block; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: var(--clr-white); background-color: var(--clr-navy); background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(7, 26, 51, .93) 0%, rgba(11, 37, 69, .72) 55%, rgba(11, 37, 69, .35) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 740px; padding: calc(var(--header-h) + 30px) 0 60px; }
.hero-content .eyebrow { display: inline-block; color: var(--clr-orange); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: .85rem; }
.hero-content h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin: 14px 0 20px; line-height: 1.15; letter-spacing: -0.02em; }
.hero-content p { font-size: 1.15rem; color: #e5e9f0; margin-bottom: 30px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Tentang ---------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.about-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.about-lead { font-size: 1.1rem; }
.about-list { list-style: none; padding: 0; margin: 20px 0 0; }
.about-list li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid #e5e7eb; }
.about-list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 3px solid var(--clr-orange); border-bottom: 3px solid var(--clr-orange); transform: rotate(-45deg); }

/* Statistik -------------------------------------------------------------- */
.stats { background: var(--clr-navy); color: var(--clr-white); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; text-align: center; }
.stat-item .num { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; color: var(--clr-orange); line-height: 1.1; }
.stat-item .label { margin-top: 6px; color: #cbd5e1; }

/* Progress: terbaru + timeline -------------------------------------------- */
.latest { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: var(--clr-white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(16px, 3vw, 28px); margin-bottom: 56px; }
.latest-photo img { width: 100%; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.latest .tag { display: inline-block; background: var(--clr-orange); color: var(--clr-on-orange); font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.latest .date, .timeline-item .date { color: var(--clr-orange-dark); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; }
.latest h3 { color: var(--clr-navy); font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 6px 0 8px; }
.latest-excerpt { color: #4b5563; margin: 14px 0 0; }
.history-title { color: var(--clr-navy); font-size: 1.4rem; margin-bottom: 26px; }

.timeline { position: relative; padding-left: 30px; border-left: 3px solid var(--clr-orange); }
.timeline-item { position: relative; background: var(--clr-white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); margin: 0 0 32px 20px; }
.timeline-item::before { content: ""; position: absolute; left: -49px; top: 26px; width: 18px; height: 18px; border-radius: 50%; background: var(--clr-orange); border: 4px solid var(--clr-light); box-shadow: 0 0 0 2px var(--clr-orange); }
.timeline-item h4, .progress-title { color: var(--clr-navy); font-size: 1.25rem; margin: 6px 0; }
.progress-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.timeline-sta { margin: 4px 0 10px; color: var(--clr-gray); font-size: .95rem; }
.timeline-thumb { margin: 14px 0; border-radius: 10px; overflow: hidden; }
.timeline-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.progress-bar-wrap { background: #e5e7eb; border-radius: 20px; overflow: hidden; height: 12px; margin-top: 10px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--clr-orange), var(--clr-orange-dark)); border-radius: 20px; transition: width 1s ease; }
.ptlma-js .reveal:not(.is-in) .progress-bar { width: 0 !important; }
.timeline-meta { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 14px; }
.progress-percent-text { font-weight: 700; color: var(--clr-navy); }
.badge { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: .8rem; font-weight: 700; color: #fff; }
.badge-gray { background: #6b7280; }
.badge-orange { background: #b45309; }
.badge-green { background: #15803d; }
.timeline-desc { color: #4b5563; margin-bottom: 16px; }
.timeline-desc > :last-child { margin-bottom: 0; }
.timeline-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 16px; }
.timeline-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; transition: opacity .2s, transform .2s; }
.timeline-gallery a:hover img { opacity: .85; transform: scale(1.02); }
.video-fallback { margin: 8px 0 0; font-size: .88rem; color: var(--clr-gray); }
.video-fallback a { text-decoration: underline; }
.timeline-more-wrap { text-align: center; }

.ptlma-js:not(.ptlma-fallback) .timeline-item.is-extra { display: none; }
.timeline.show-all .timeline-item.is-extra { display: block !important; }
.single-progress .timeline-item { margin-left: 0; }
.single-progress .timeline-item::before { display: none; }

/* Video, peta -------------------------------------------------------------- */
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wide { max-width: 960px; margin: 0 auto; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Galeri ------------------------------------------------------------------ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--clr-light); display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-grid[data-count="1"] { grid-template-columns: minmax(0, 720px); justify-content: center; }
.gallery-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }

/* Kontak ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-grid.single { grid-template-columns: minmax(0, 640px); justify-content: center; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-info-item .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--clr-orange); color: var(--clr-on-orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item a { color: var(--clr-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.contact-form { background: var(--clr-white); padding: clamp(18px, 3vw, 30px); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { width: 100%; padding: 14px; border: 1px solid #d1d5db; border-radius: 8px; margin-bottom: 16px; font-family: inherit; font-size: 1rem; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--clr-orange); outline: 0; box-shadow: 0 0 0 3px rgba(245, 130, 12, .2); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.form-notice-success { background: #dcfce7; color: #14532d; }
.form-notice-error { background: #fee2e2; color: #7f1d1d; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--clr-navy-dark); color: #cbd5e1; padding: 56px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; margin-bottom: 30px; }
.footer-grid:has(.footer-widgets) { grid-template-columns: 2fr 1fr 1.4fr 1fr; }
.site-footer h4 { color: var(--clr-white); margin-bottom: 16px; font-size: 1.05rem; }
.site-footer a:hover { color: var(--clr-orange); }
.footer-logo { height: 46px; width: auto; margin-bottom: 14px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; text-align: center; font-size: .9rem; }
.social-links { display: flex; gap: 12px; margin-top: 14px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s; }
.social-links a:hover { background: var(--clr-orange); color: var(--clr-on-orange); }

.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; background: var(--clr-orange); color: var(--clr-on-orange); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Lightbox ---------------------------------------------------------------- */
.ptlma-lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .92); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.ptlma-lightbox[hidden] { display: none; }
.ptlma-lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 0 40px rgba(0, 0, 0, .5); }
.ptlma-lightbox-close, .ptlma-lightbox-prev, .ptlma-lightbox-next { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; font-size: 2rem; cursor: pointer; border-radius: 50%; width: 50px; height: 50px; line-height: 1; }
.ptlma-lightbox-close { top: 20px; right: 20px; }
.ptlma-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.ptlma-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.ptlma-lightbox-close:hover, .ptlma-lightbox-prev:hover, .ptlma-lightbox-next:hover { background: var(--clr-orange); color: var(--clr-on-orange); }

/* Halaman umum ------------------------------------------------------------ */
.page-main { padding-top: var(--header-h); min-height: 60vh; }
.page-title, .entry-title { color: var(--clr-navy); margin-bottom: 20px; }
.entry { margin-bottom: 40px; }
.entry-content img { border-radius: 8px; }

/* Muncul halus sekali ------------------------------------------------------ */
.ptlma-js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.ptlma-js .reveal.is-in, .ptlma-fallback .reveal { opacity: 1; transform: none; }

/* Responsif ---------------------------------------------------------------- */
@media (max-width: 900px) {
	.about-grid, .contact-grid { grid-template-columns: 1fr; }
	.latest { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid, .footer-grid:has(.footer-widgets) { grid-template-columns: 1fr; }
	.hero { min-height: 84vh; }
}
@media (max-width: 600px) {
	.timeline { padding-left: 18px; }
	.timeline-item { margin-left: 12px; }
	.timeline-item::before { left: -37px; }
	.map-wrap iframe { height: 320px; }
	.ptlma-lightbox-prev, .ptlma-lightbox-next { width: 40px; height: 40px; font-size: 1.5rem; }
	.hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.ptlma-js .reveal { opacity: 1; transform: none; }
}