﻿/* Critical CSS Inline - Extracted to external for all pages */
:root {
    --primary-color: #052146; /* Navy Blue from Logo */
    --secondary-color: #114D89; /* Bright Blue from Logo */
    --accent-color: #ffb703; /* Striking Gold / Yellow */
    --text-color: #222222;
    --light-bg: #fff9ef; /* Off-white from Logo */
    --success: #2d6a4f;
    --danger: #9d0208;
    --warning: #ffb703;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    border-radius: 4px;
    vertical-align: middle;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 5px solid var(--accent-color);
    background-image: url('../img/tank-farm-marunda-berkapasitas-besar.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    background-color: var(--accent-color);
    color: #111; /* Darker text for yellow btn */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn:hover {
    background-color: #ffd166;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background-color: var(--white);
    position: relative;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background-color: #ddd; /* fallback */
}

.map-container img.bg-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tank Markers */
.tank-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.8), 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.tank-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 0 6px rgba(255,255,255,0.9), 0 6px 15px rgba(0,0,0,0.4);
}

.tank-marker.available { background-color: var(--success); }
.tank-marker.occupied { background-color: var(--danger); }
.tank-marker.maintenance { background-color: var(--warning); color: #333; text-shadow: none; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}
.status-badge.available { background-color: var(--success); }
.status-badge.occupied { background-color: var(--danger); }
.status-badge.maintenance { background-color: var(--warning); color: #333; }

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.content-section p {
    margin-bottom: 1.2rem;
    text-align: justify;
    font-size: 1.05rem;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-img {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 1.5rem auto;
    display: block;
}

.content-video {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 1.5rem auto;
    display: block;
}

/* Internal Links grid */
.internal-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.internal-links a {
    display: block;
    padding: 0.8rem;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.internal-links a:hover {
    background: var(--light-bg);
    border-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-wrap { flex-wrap: wrap; position: relative; }
    .burger-menu { display: block; }
    nav#navMenu { 
        display: none; 
        width: 100%; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        background-color: var(--primary-color); 
        z-index: 1001; 
        padding: 1rem; 
        box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
    }
    nav#navMenu.active { display: block; }
    nav#navMenu ul { flex-direction: column; gap: 0.5rem; }
    nav#navMenu a { display: block; padding: 0.8rem; background: rgba(255,255,255,0.05); border-radius: 4px; }
    .hero h1 { font-size: 2rem; }
    .tank-marker { width: 30px; height: 30px; font-size: 0.7rem; }
}
