﻿/* DAMKAR Parepare - Government Grade Official Website */
/* Color Palette: Maroon/Deep Red, Black, White */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #8B0000;
    --dark-red: #5C0000;
    --maroon: #6B1010;
    --black: #1a1a1a;
    --dark-gray: #2a2a2a;
    --medium-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --gold: #FFD700;
    --emergency-red: #CC0000;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    font-weight: 600;
    color: var(--black);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header Styles */
.header {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    gap: var(--spacing-lg);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-placeholder {
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin: 0;
    line-height: 1.2;
}

.site-subtitle {
    font-size: 0.75rem;
    color: var(--medium-gray);
    font-weight: 400;
    margin: 0;
    font-family: var(--font-main);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-red);
    transition: all 0.3s ease;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    align-items: center;
}

.main-nav a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black);
    border-radius: 4px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-red);
    background-color: rgba(139, 0, 0, 0.05);
}

.nav-emergency {
    background-color: var(--emergency-red);
    color: var(--white) !important;
    padding: var(--spacing-xs) var(--spacing-md) !important;
    font-weight: 600;
}

.nav-emergency:hover {
    background-color: var(--dark-red) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 50%, var(--maroon) 100%);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-red);
}

/* Emergency Contact Section */
.emergency-contact {
    background-color: var(--light-gray);
    padding: var(--spacing-xl) 0;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.emergency-item {
    background-color: var(--white);
    padding: var(--spacing-xl);
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.emergency-item.urgent {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    border: none;
}

.emergency-icon {
    margin-bottom: var(--spacing-md);
    color: var(--primary-red);
}

.emergency-item.urgent .emergency-icon {
    color: var(--white);
}

.emergency-item h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.emergency-item.urgent h3 {
    color: var(--white);
}

.emergency-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
    margin: var(--spacing-sm) 0;
}

.emergency-item.urgent .emergency-number {
    color: var(--gold);
}

.emergency-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Section Styles */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--medium-gray);
}

/* Services Grid */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-icon {
    color: var(--primary-red);
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--black);
}

.service-card p {
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.service-link {
    color: var(--primary-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    text-decoration: underline;
}

/* Prevention Section */
.prevention {
    background-color: var(--light-gray);
}

.prevention-content {
    display: grid;
    gap: var(--spacing-lg);
}

.prevention-card {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
    box-shadow: var(--shadow-sm);
}

.prevention-card h3 {
    font-size: 1.4rem;
    color: var(--primary-red);
    margin-bottom: var(--spacing-md);
}

.prevention-card ul,
.prevention-card ol {
    padding-left: var(--spacing-xl);
}

.prevention-card li {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    color: var(--black);
}

.prevention-card strong {
    color: var(--black);
    font-weight: 600;
}

/* Statistics Section */
.statistics {
    background-color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    padding: var(--spacing-xl);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin: var(--spacing-md) 0;
}

.stat-card > p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.stat-details {
    list-style: none;
    padding: 0;
    text-align: left;
}

.stat-details li {
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* News Section */
.news {
    background-color: var(--light-gray);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.news-category {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-date {
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.news-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-sm);
    color: var(--black);
    line-height: 1.4;
}

.news-card p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.news-link {
    color: var(--primary-red);
    font-weight: 600;
}

.news-link:hover {
    text-decoration: underline;
}

/* Profile Section */
.profile {
    background-color: var(--white);
}

.profile-content {
    display: grid;
    gap: var(--spacing-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.profile-item h2 {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: var(--spacing-md);
}

.profile-item h3 {
    font-size: 1.3rem;
    color: var(--black);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.profile-item p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.profile-item ul {
    padding-left: var(--spacing-xl);
}

.profile-item li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    color: var(--medium-gray);
}

/* Contact Section */
.contact-section {
    background-color: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.contact-card {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-red);
}

.contact-card h3 {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.contact-card p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.contact-card strong {
    color: var(--black);
    display: block;
    margin-top: var(--spacing-md);
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.footer-address {
    margin-top: var(--spacing-md);
}

.footer-emergency {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold) !important;
    margin: var(--spacing-sm) 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 4;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--light-gray);
    }

    .hero {
        padding: var(--spacing-2xl) 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

    .services-grid,
    .stats-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .emergency-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .site-subtitle {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .logo-section {
        gap: var(--spacing-sm);
    }

    .logo-placeholder svg {
        width: 50px;
        height: 50px;
    }

    .site-title {
        font-size: 1rem;
    }

    .site-subtitle {
        font-size: 0.65rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-cta,
    .mobile-menu-toggle,
    .nav-emergency {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
/* === LOGO AREA FIX (AUTHORITATIVE SCALE) === */
.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 300px; /* Biar gak keteken */
}

/* Logo image diperbesar */
.logo-image img {
    height: 60px;          /* NAIK DARI 48 / 60 */
    width: auto;
    display: block;
}

/* Judul utama DAMKAR */
.site-title {
    margin: 0;
    font-size: 22px;       /* INI YANG BIKIN NORMAL */
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #8B0000;
    line-height: 1.2;
}

/* Subjudul instansi */
.site-subtitle {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
    max-width: 360px;
}

.banner-slider {
    padding: 40px 0;
    background: #f5f5f5;
}

.banner-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
}

.banner-slide img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

/* tombol navigasi */
.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 0, 0, 0.8);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
}

.banner-btn.prev { left: 16px; }
.banner-btn.next { right: 16px; }

.banner-btn:hover {
    background: #8B0000;
}

/* Responsive untuk Profil Page */
@media (max-width: 768px) {
    .vm-grid {
        grid-template-columns: 1fr !important;
    }
    
    .func-grid {
        grid-template-columns: 1fr !important;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .org-level2 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr !important;
    }
    
    .page-header h1 {
        font-size: 32px !important;
    }
}

/* Breadcrumb Style */
.breadcrumb {
    background: #f9fafb;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb ol {
    display: flex;
    gap: 12px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li:not(:last-child)::after {
    content: "â€º";
    margin-left: 12px;
    color: #9ca3af;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #DC143C;
}

.breadcrumb li:last-child {
    color: #1a1a1a;
    font-weight: 600;
}

/* Responsive Tugas Fungsi Page */
@media (max-width: 992px) {
    .legal-grid {
        grid-template-columns: 1fr !important;
    }
    
    .duties-detail {
        grid-template-columns: 1fr !important;
    }
    
    .func-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stages-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .func-grid-3 {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive Pencegahan Edukasi Page */
@media (max-width: 992px) {
    .prevention-grid {
        grid-template-columns: 1fr !important;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .programs-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive Data Statistik Page */
@media (max-width: 1200px) {
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .fleet-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .stats-grid-4 {
        grid-template-columns: 1fr !important;
    }
    
    .region-grid {
        grid-template-columns: 1fr !important;
    }
    
    .fleet-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stat-number {
        font-size: 36px !important;
    }
}

/* Responsive Kontak Page */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .emergency-number {
        font-size: 42px !important;
    }
}
/* Responsive Layanan Page */
@media (max-width: 992px) {
    .service-content-flex {
        flex-direction: column !important;
    }
    
    .service-icon-large {
        margin: 0 auto 24px !important;
    }
}

@media (max-width: 640px) {
    .service-main-card {
        margin-bottom: 20px;
    }
}

/* Responsive Penanggulangan Kebakaran Page */
@media (max-width: 992px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .equipment-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stat-value {
        font-size: 36px !important;
    }
}
