/* ==========================================================================
   RESET & CORE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0082c8;
    --secondary: #f47b20;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #030712;
    --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html.scroll-smooth {
    scroll-behavior: smooth;
}

body.site-body {
    background-color: var(--gray-50);
    color: var(--gray-600);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

.container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Helper Text Classes */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

/* ==========================================================================
   NAVBAR COMPONENT
   ========================================================================== */
.navbar {
    position: fixed;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.brand-text {
    font-size: 1rem;
    color: orange;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.nav-menu-desktop {
    display: none;
    gap: 2rem;
    font-weight: 500;
}

.nav-menu-desktop a {
    text-decoration: none;
    color: var(--gray-700);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--gray-700);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-btn:focus {
    outline: none;
}

.nav-menu-mobile {
    display: none;
    background-color: #ffffff;
    border-top: 1px solid var(--gray-100);
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-menu-mobile a {
    text-decoration: none;
    color: var(--gray-700);
    padding: 0.25rem 0;
}

.nav-menu-mobile a:hover, .nav-menu-desktop a:hover {
    color: var(--primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #fff7ed 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    background-color: #eff6ff;
    color: var(--primary);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-top: 1rem;
    line-height: 1.25;
}

.hero-desc {
    color: var(--gray-600);
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.625;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-filled {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 130, 200, 0.3);
}

.btn-filled:hover {
    background-color: #1d4ed8;
    transform: translateY(-4px);
}

.btn-outline {
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background-color: var(--gray-100);
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--gray-100);
}

.badge-icon-box {
    background-color: #fff7ed;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: var(--secondary);
}

.badge-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.badge-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
    padding: 4rem 0;
    background-color: #ffffff;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.features-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-text {
    font-weight: 700;
    color: var(--gray-900);
}

/* 
   SECTION HEADER COMMON STYLES
   */
.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
}

.section-divider {
    width: 5rem;
    height: 0.25rem;
    background-color: var(--secondary);
    margin: 1rem auto 0 auto;
    border-radius: 0.25rem;
}

.section-subtitle {
    color: var(--gray-500);
    margin-top: 1rem;
}

.header-white .section-title { color: #ffffff; }
.header-white .section-subtitle { color: var(--gray-400); }

/* 
   ABOUT SECTION
    */
.about-section {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-100);
}

.profile-img-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.profile-badge-icon {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: var(--secondary);
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.profile-role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.profile-quote {
    color: var(--gray-600);
    margin-top: 1rem;
    line-height: 1.625;
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.about-desc {
    color: var(--gray-600);
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.checklist-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.check-icon {
    color: #22c55e;
    margin-top: 0.25rem;
}

.checklist-text {
    color: var(--gray-700);
    font-weight: 500;
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.galeri-card {
    position: relative;
    height: 18rem;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.galeri-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeri-card:hover .galeri-img {
    transform: scale(1.05);
}

.galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.galeri-card:hover .galeri-overlay {
    opacity: 1;
}

.overlay-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.125rem;
}

/* ==========================================================================
   LEGALITY SECTION (FIXED: Kartu Rata, Simetris & Presisi)
   ========================================================================== */
.legality-section {
    padding: 5rem 0;
    background-color: var(--gray-900);
    color: #ffffff;
}

.legality-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch; /* Memaksa semua tinggi kartu sejajar sama rata */
}

.legalitas-card {
    background-color: #1f2937;
    padding: 2.5rem 2rem;
    border-radius: 0.75rem;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Konten dimulai dari atas secara konsisten */
    height: 100%;
}

.legalitas-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 20px -5px rgba(0, 130, 200, 0.3);
}

.legal-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.icon-orange { color: #fb923c; }
.icon-blue { color: #60a5fa; }
.icon-green { color: #4ade80; }

.legal-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    min-height: 2.5rem; /* Menjaga teks judul yang panjangnya berbeda agar tidak merusak layout */
}

.legal-card-desc {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ==========================================================================
   CONTACT SECTION (FIXED: Maps Sejajar Sempurna dengan Info Card)
   ========================================================================== */
.contact-section {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch; /* Tinggi maps otomatis mengunci tinggi info card */
}

.contact-info-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Melempar Tombol WA ke dasar card */
    height: 100%;
}

.contact-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.75rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem; /* Ruang pisah sebelum tombol WA */
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.icon-marker { color: var(--secondary); font-size: 1.5rem !important; }
.icon-phone { color: var(--primary); }
.icon-email { color: #ef4444; }

.info-label {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 1rem;
}

.info-detail {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    line-height: 1.5;
}

.wa-btn-container {
    width: 100%;
    margin-top: auto; /* Memastikan container selalu nempel di bawah */
}

.wa-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    background-color: #22c55e;
    color: #ffffff;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.wa-btn:hover {
    background-color: #16a34a;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -3px rgba(34, 197, 94, 0.3);
}

/* Wrapper Map Sempurna */
.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.map-iframe {
    width: 100%;
    flex: 1;
    border: 0;
    display: block;
    min-height: 380px;
}

.map-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.map-open-btn:hover {
    background-color: #1d4ed8;
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */
.site-footer {
    background-color: var(--gray-950);
    color: var(--gray-400);
    padding: 3rem 0;
    border-top: 1px solid var(--gray-800);
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.footer-logo {
    height: 3.5rem;
    width: auto;
    margin: 0 auto 0.5rem auto;
}

.footer-brand-name {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.875rem;
    max-width: 28rem;
    margin: 0 auto;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: var(--gray-800);
    margin: 1.5rem 0;
}

.footer-copyright {
    font-size: 0.75rem;
}

.footer-logo {
    width: 3.5rem;          /* Kunci lebar */
    height: 3.5rem;         /* Kunci tinggi (harus sama dengan width) */
    object-fit: cover;      /* Biar gambar di dalam lingkaran gak gepeng */
    border-radius: 50%;     /* Bikin bulat sempurna */
    margin: 0 auto 0.5rem auto;
}

nav img {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    max-width: 100%;
}

nav a:hover img {
    transform: scale(1.05); 
}

.nav-link {
    transition: color 0.3s ease, transform 0.2s ease;
}

[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE BREAKPOINTS)
   ========================================================================== */

/* BREAKPOINT SM (>= 640px) */
@media (min-width: 640px) {
    .brand-text {
        font-size: 1.125rem;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .legality-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* BREAKPOINT MD (>= 768px) */
@media (min-width: 768px) {
    .brand-text {
        font-size: 1.25rem;
    }
    .nav-menu-desktop {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
    .hero-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-img {
        height: 400px;
    }
    .features-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .profile-card {
        text-align: left;
        align-items: flex-start;
    }
    .profile-img-wrapper {
        align-self: center;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .col-span-2-md {
        grid-column: span 2 / span 2;
    }
    .legality-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    /* Layout Desktop 12 Kolom Untuk Kontak */
    .contact-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .contact-info-card {
        grid-column: span 5 / span 5;
    }
    .map-wrapper {
        grid-column: span 7 / span 7;
        min-height: auto; /* Mengikuti tinggi fleksibel dari info card */
    }
    .section-title {
        font-size: 2.25rem;
    }
}

/* BREAKPOINT LG (>= 1024px) */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}