/* * Project: PT Bus Pariwisata Lombok
 * Theme: Modern Tropical Luxury
 * Author: Pejuang di Balik Layar 
 * Description: Core styling for high-value corporate aesthetics.
 */

/* =========================================
   1. CSS VARIABLES & SETUP
   ========================================= */
:root {
    /* Brand Colors */
    --primary-color: #0F2C40;       /* Deep Ocean Blue - Trust & Corporate */
    --secondary-color: #00B4D8;     /* Lombok Turquoise - Vibrancy & Tourism */
    --accent-color: #FFA500;        /* Subtle accent for highlights */
    
    /* Neutrals */
    --text-dark: #1A1A1A;           /* Main body text */
    --text-muted: #6C757D;          /* Secondary text */
    --bg-light: #F8F9FA;            /* Section background */
    --bg-white: #FFFFFF;            /* Card background */
    --white: #FFFFFF;
    --border-color: rgba(0,0,0,0.08);

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-md: 12px;
    --radius-sm: 6px;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(15, 44, 64, 0.08);
    --shadow-hover: 0 15px 35px rgba(15, 44, 64, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-blur: blur(12px);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary {
    background-color: var(--primary-color);
}

/* =========================================
   3. HEADER & NAVIGATION (Glassmorphism)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur); /* Safari support */
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

/* Nav List Styles */
.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* =========================================
   4. BUTTONS & INTERACTIVE ELEMENTS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px; /* Modern pill shape */
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(15, 44, 64, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
}

.btn-secondary:hover {
    background-color: #009bc4;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: scale(1.05);
}

.btn-block {
    width: 100%;
    display: flex;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 90vh; /* Almost full screen */
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Fallback image in CSS if needed, but mainly overlay */
    background: url('../img/ui/hero-bg.webp') center/cover no-repeat;
    margin-top: var(--header-height); /* Offset fixed header */
    
    /* FIX LAPTOP ALIGNMENT: */
    /* padding-bottom menjaga jarak dari form booking */
    /* padding-top menyeimbangkan layout agar konten tidak naik tertutup header */
    padding-bottom: 120px; 
    padding-top: 80px; 
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 44, 64, 0.9) 0%, rgba(15, 44, 64, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--secondary-color);
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

/* FIX: Tombol outline di Hero Section menjadi putih agar kontras */
.hero-actions .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.hero-actions .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =========================================
   6. BOOKING BAR
   ========================================= */
.booking-bar-section {
    margin-top: -50px; /* Overlap hero */
    position: relative;
    z-index: 10;
    margin-bottom: 30px;
}

.glass-panel {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.booking-form {
    width: 100%;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #f9f9f9;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

/* =========================================
   7. ARMADA / PRODUCT CARDS
   ========================================= */
.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.badge-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 44, 64, 0.85);
    color: var(--white);
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
}

.highlight-card .badge-category {
    background: var(--secondary-color);
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-list {
    margin-bottom: 25px;
    flex-grow: 1;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-check {
    color: var(--secondary-color);
    font-weight: bold;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* =========================================
   8. WHY CHOOSE US SECTION
   ========================================= */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.align-center {
    align-items: center;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.feature-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.feature-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.feature-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.image-stack {
    position: relative;
}

.img-main {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* =========================================
   9. FOOTER
   ========================================= */
.main-footer {
    background-color: #0a1e2b; /* Darker shade of Primary */
    color: #b0b8bf;
    padding-top: 70px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    filter: brightness(0) invert(1); /* Make logo white */
    opacity: 0.9;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-col address {
    font-style: normal;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Back to Top Button */
.back-to-top {
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 30px;
    left: 30px; /* Requested: Left Bottom */
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

* {
            -webkit-user-select: none; /* Safari */
            -moz-user-select: none; /* Firefox */
            -ms-user-select: none; /* IE10+/Edge */
            user-select: none; /* Standard */
        }
        
        img {
            pointer-events: none; /* Mencegah drag/klik pada gambar */
        }