/* =====================================================================
   STYLE.CSS — Patimban Industrial Estate
   Design tokens: lihat bagian :root di bawah untuk ubah warna/font global
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* --- Warna --- */
    --color-ink:        #142523;   /* teks utama, hampir hitam dengan nuansa teal */
    --color-teal-900:   #0B3D39;   /* header, footer, elemen gelap utama */
    --color-teal-700:   #0F5C54;   /* aksen sedang, hover */
    --color-teal-500:   #1C8377;   /* aksen terang, link */
    --color-gold-600:   #B98B2E;   /* aksen utama - CTA, highlight */
    --color-gold-400:   #D4A94A;   /* aksen terang - hover CTA */
    --color-bg:         #F5F4EF;   /* latar belakang halaman */
    --color-surface:    #FFFFFF;   /* latar kartu/section */
    --color-border:     #E1DED3;

    /* --- Tipografi --- */
    --font-display: 'Archivo', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* --- Layout --- */
    --max-width: 1200px;
    --radius-sm: 3px;
    --radius-md: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--color-teal-700); text-decoration: none; }
a:hover { color: var(--color-gold-600); }

img { max-width: 100%; display: block; }

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

/* --- Skip link untuk aksesibilitas keyboard --- */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--color-gold-600);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
}
.skip-link:focus {
    left: 0;
}

/* --- Fokus keyboard terlihat jelas (aksesibilitas) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-gold-400);
    outline-offset: 2px;
}

/* =====================================================================
   HEADER & NAVIGASI
   ===================================================================== */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    max-width: 1400px;
    gap: 16px;
}

.site-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-teal-900);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.site-logo img { height: 40px; width: auto; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.main-nav a {
    color: var(--color-ink);
    font-weight: 500;
    font-size: 0.92rem;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-gold-600);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* --- Language switcher --- */
.lang-switch {
    position: relative;
}
.lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-ink);
}
.lang-switch-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(11, 61, 57, 0.12);
    overflow: hidden;
}
.lang-switch.open .lang-switch-menu { display: block; }
.lang-switch-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--color-ink);
    font-size: 0.9rem;
}
.lang-switch-menu a:hover { background: var(--color-bg); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* =====================================================================
   TOMBOL
   ===================================================================== */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
}
.btn-primary {
    background: var(--color-gold-600);
    color: #fff;
}
.btn-primary:hover { background: var(--color-gold-400); color: #fff; }

.btn-outline {
    background: transparent;
    border-color: var(--color-surface);
    color: var(--color-surface);
}
.btn-outline:hover { background: var(--color-surface); color: var(--color-teal-900); }

/* =====================================================================
   SECTION UMUM
   ===================================================================== */
.section {
    padding: 64px 0;
}
.section-alt {
    background: var(--color-surface);
}
.section-title {
    max-width: 640px;
    margin-bottom: 2.5rem;
}

/* Kartu dengan aksen garis kiri (bukan shadow generik) */
.info-card {
    background: var(--color-surface);
    border-left: 3px solid var(--color-gold-600);
    padding: 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    background: var(--color-teal-900);
    color: #E9F2F0;
    padding: 56px 0 24px;
}
.site-footer a { color: #E9F2F0; }
.site-footer a:hover { color: var(--color-gold-400); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* =====================================================================
   FORM
   ===================================================================== */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-surface);
    color: var(--color-ink);
}
.form-control:focus {
    border-color: var(--color-teal-500);
    outline: none;
}
textarea.form-control { resize: vertical; min-height: 120px; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.alert-success { background: #E3F3E9; color: #1E5B33; border: 1px solid #B7DFC4; }
.alert-error { background: #FBE9E7; color: #8A2E22; border: 1px solid #F1C4BC; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 16px;
    }
    .main-nav li { border-bottom: 1px solid var(--color-border); }
    .main-nav a { display: block; padding: 14px 0; white-space: normal; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 420px) {
    .site-logo { font-size: 0.95rem; }
}

/* =====================================================================
   PAGE HERO (banner foto di atas setiap halaman)
   ===================================================================== */
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,61,57,0.15) 0%, rgba(11,61,57,0.85) 100%);
}
.page-hero .container {
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}
.page-hero h1 {
    color: #fff;
    margin-bottom: 8px;
}
.page-hero p {
    color: #E9F2F0;
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0;
}
.page-hero .eyebrow {
    display: inline-block;
    background: var(--color-gold-600);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

/* =====================================================================
   STAT BAR (baris angka kunci - dipakai di Home, Location)
   ===================================================================== */
.stat-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    background: var(--color-teal-900);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 32px 0;
}
.stat-bar .stat-item {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.12);
    color: #fff;
}
.stat-bar .stat-item:last-child { border-right: none; }
.stat-bar .stat-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--color-gold-400);
    display: block;
    margin-bottom: 4px;
}
.stat-bar .stat-number svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-gold-400);
}
.stat-bar .stat-label {
    font-size: 0.82rem;
    opacity: 0.9;
    line-height: 1.3;
}

/* =====================================================================
   FEATURE GRID (icon + judul + teks, 2 atau 3 kolom)
   ===================================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 28px 0;
}
.feature-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.feature-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-gold-600);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-600);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-item h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 4px;
    color: var(--color-teal-900);
}
.feature-item p {
    font-size: 0.92rem;
    color: #4A5450;
    margin: 0;
}

/* =====================================================================
   SECTOR CARDS
   ===================================================================== */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 28px 0;
}
.sector-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-gold-600);
    border-radius: var(--radius-md);
    padding: 26px;
}
.sector-card .sector-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-teal-900);
    color: var(--color-gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.sector-card .sector-icon svg { width: 28px; height: 28px; }
.sector-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--color-teal-900); }
.sector-card p { font-size: 0.92rem; color: #4A5450; margin: 0; }

/* =====================================================================
   TIMELINE / ROADMAP (dipakai di Location - kapasitas pelabuhan)
   ===================================================================== */
.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.roadmap-list li {
    flex: 1;
    min-width: 160px;
    background: var(--color-bg);
    border-left: 3px solid var(--color-teal-500);
    padding: 16px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.roadmap-list .roadmap-year {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--color-teal-900);
    display: block;
    font-size: 1.1rem;
}
.roadmap-list .roadmap-value {
    font-size: 0.88rem;
    color: #4A5450;
}

/* =====================================================================
   DISTANCE TABLE (dipakai di Location)
   ===================================================================== */
.distance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
.distance-table tr {
    border-bottom: 1px solid var(--color-border);
}
.distance-table td {
    padding: 14px 8px;
    font-size: 0.95rem;
}
.distance-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--color-teal-900);
    white-space: nowrap;
}

/* =====================================================================
   TAG LIST (dipakai di Facilities - daftar fasilitas master plan)
   ===================================================================== */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}
.tag-list li {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.88rem;
    color: var(--color-ink);
}

/* =====================================================================
   CTA BANNER
   ===================================================================== */
.cta-banner {
    background: var(--color-teal-900);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    margin: 40px 0 0;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #E9F2F0; max-width: 520px; margin: 0 auto 20px; }

/* =====================================================================
   FIGURE (gambar dengan caption di dalam konten halaman)
   ===================================================================== */
.content-figure {
    margin: 28px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.content-figure img { width: 100%; }
.content-figure figcaption {
    padding: 10px 16px;
    font-size: 0.82rem;
    color: #666;
    background: var(--color-bg);
}

/* =====================================================================
   BADGE (label kecil, misal PSN No. 115)
   ===================================================================== */
.badge-pill {
    display: inline-block;
    background: var(--color-bg);
    border: 1px solid var(--color-gold-600);
    color: var(--color-teal-900);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

@media (max-width: 700px) {
    .stat-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-bar .stat-item:nth-child(2n) { border-right: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

/* =====================================================================
   PAGE CONTENT (hasil rich text editor dari admin panel)
   ===================================================================== */
.page-content {
    max-width: 820px;
    margin: 0 auto;
}
.page-content h2 { font-size: 1.5rem; margin-top: 1.4em; }
.page-content h3 { font-size: 1.2rem; margin-top: 1.2em; }
.page-content p { margin-bottom: 1em; }
.page-content ul, .page-content ol { margin-bottom: 1em; padding-left: 1.4em; }
.page-content a { text-decoration: underline; }
.page-content img { border-radius: var(--radius-sm); margin: 1em 0; }

/* =====================================================================
   GALLERY GRID (halaman publik Galeri)
   ===================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.gallery-item {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.gallery-item figcaption {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #4A5450;
}

/* =====================================================================
   NEWS LIST (halaman publik Berita)
   ===================================================================== */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.news-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    color: var(--color-ink);
}
.news-card:hover { border-color: var(--color-gold-600); }
.news-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.news-card-body { padding: 18px; }
.news-card-date { font-size: 0.78rem; color: #888; }
.news-card h3 { font-size: 1.05rem; margin: 6px 0 8px; color: var(--color-teal-900); }
.news-card p { font-size: 0.88rem; color: #4A5450; margin: 0; }

/* =====================================================================
   CONTACT PAGE
   ===================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact-form-wrap { position: relative; }
@media (max-width: 800px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* =====================================================================
   WHATSAPP FLOATING BUTTON
   ===================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    z-index: 999;
    color: #fff;
}
.whatsapp-float:hover {
    background: #1EBE5A;
    color: #fff;
}
.whatsapp-float svg {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1;
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: whatsapp-pulse 2.2s infinite;
    z-index: 0;
}
@keyframes whatsapp-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(1.9); opacity: 0; }
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::before { animation: none; }
}
