/* ==================== LINUS CARGO - PROFESSIONAL PREMIUM STYLE ==================== */
/* ==================== VARIABLES & RESET ==================== */
:root {
    --primary-dark: #0a2540;
    --primary-light: #0077b6;
    --secondary-red: #c8102e;
    --accent-orange: #f5a623;
    --gray-bg: #f8fafc;
    --gray-border: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #475569;
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3 {
    font-weight: 700;
    color: var(--primary-dark);
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    background: #081c30;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled .nav-container {
    padding: 12px 40px;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.navbar.scrolled .logo-img {
    height: 55px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.btn-login {
    background: var(--accent-orange);
    color: var(--primary-dark) !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.btn-login:hover {
    background: #ffb84d;
    transform: translateY(-2px);
}

.btn-logout {
    border: 1px solid var(--white);
    padding: 8px 20px;
    border-radius: 30px;
}

.btn-logout:hover {
    background: var(--secondary-red);
    border-color: var(--secondary-red);
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* ==================== MAIN CONTENT ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.page {
    display: none;
    padding: 48px 0;
    min-height: 60vh;
}

.page.active {
    display: block;
}

/* ==================== HERO SECTION ==================== */
.hero-premium {
    background-size: cover;
    background-position: center 25%;
    padding: 160px 80px;
    text-align: center;
    color: var(--white);
    border-radius: 24px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-bottom: 60px;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* FIX: biar tidak nempel ke header */
    margin-top: 40px;
}

.hero-premium .hero-content {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.35);
    padding: 30px 40px;
    border-radius: 24px;
    backdrop-filter: blur(2px);
}

.hero-premium .hero-badge {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--accent-orange);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 40px;
    display: inline-block;
}

.hero-premium h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin: 20px 0 16px;
    letter-spacing: -0.02em;
    color: var(--white);
}

.hero-premium .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 36px;
}

.hero-premium .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 36px;
}

.hero-premium .btn-primary {
    background: var(--accent-orange);
    color: var(--primary-dark);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.hero-premium .btn-primary:hover {
    background: #e69500;
    transform: translateY(-3px);
}

.hero-premium .btn-outline-light {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.hero-premium .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.hero-premium .hero-welcome {
    font-size: 1rem;
    opacity: 0.9;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 28px;
    display: inline-block;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    margin: 80px 0;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==================== ABOUT PAGE ==================== */
.about-header-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-dark);
    padding: 160px 20px;
    border-radius: 24px;
    margin-bottom: 60px;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* FIX: biar tidak nempel ke header */
    margin-top: 40px;
}

.about-header-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.55);
    padding: 30px 24px;
    border-radius: 20px;
}

.about-header-content h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
}

.about-header-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.about-cards-wrapper {
    padding: 0 0 40px;
    margin-top: 30px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.about-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.about-card i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==================== FORMS & INPUTS ==================== */
form {
    max-width: 550px;
    margin: 24px auto;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow-sm);
}

input, select {
    width: 100%;
    padding: 12px 14px;
    margin: 8px 0;
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
}

.dimension-group {
    display: flex;
    gap: 10px;
    margin: 8px 0;
}

.dimension-group input {
    flex: 1;
    margin: 0;
}

button {
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 12px;
}

button:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.result {
    background: var(--gray-bg);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-light);
    margin-top: 20px;
    font-size: 0.9rem;
}

.form-toggle {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
}

.toggle-link {
    color: var(--primary-light);
    cursor: pointer;
    font-weight: 500;
}

/* ==================== AUTOCOMPLETE ==================== */
.autocomplete-container {
    position: relative;
    margin-bottom: 4px;
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 200;
    border-radius: 0 0 10px 10px;
    display: none;
}

.suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.85rem;
}

.suggestion-item:hover {
    background: var(--gray-bg);
}

/* ==================== FOOTER ==================== */
.footer-premium {
    background: #0b2b3b;
    color: #e2e8f0;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-red), var(--accent-orange), var(--secondary-red));
}

.footer-premium-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-premium-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-premium-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--secondary-red);
    border-radius: 2px;
}

.footer-premium-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-premium-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.footer-premium-contact span {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-premium-contact i {
    width: 24px;
    color: var(--secondary-red);
}

.footer-premium-links a,
.footer-premium-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-premium-links a:hover,
.footer-premium-col ul li a:hover {
    color: var(--accent-orange);
    padding-left: 4px;
}

.footer-premium-col ul {
    list-style: none;
}

.footer-premium-col ul li {
    margin-bottom: 10px;
}

/* FIX: Icon sosial media lebih turun ke footer */
.footer-premium-social {
    display: flex;
    gap: 14px;
    margin: 50px 0 30px 0;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon.fb:hover { background: #1877f2; transform: translateY(-3px); }
.social-icon.ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); transform: translateY(-3px); }
.social-icon.tw:hover { background: #1da1f2; transform: translateY(-3px); }
.social-icon.li:hover { background: #0077b5; transform: translateY(-3px); }
.social-icon.tt:hover { background: #000000; transform: translateY(-3px); box-shadow: 0 0 8px #69c9d0; }

.social-icon.tt i {
    font-size: 1.4rem;
}

/* FIX: App buttons lebih turun ke footer */
.footer-premium-apps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 25px;
}

.app-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 40px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    width: fit-content;
}

.app-btn i {
    font-size: 1.2rem;
}

.app-btn:hover {
    background: var(--secondary-red);
    border-color: var(--secondary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

/* FIX: Copyright lebih berjarak */
.footer-premium-bottom {
    text-align: center;
    padding-top: 45px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ==================== WHATSAPP FLOAT ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background-color: #25d366;
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    background-color: #128c7e;
}

.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ==================== CHATBOT ==================== */
#chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chatbot-button {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-red));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.chatbot-button:hover {
    transform: scale(1.08);
}

.chatbot-button i {
    color: var(--white);
    font-size: 26px;
}

.chatbot-label {
    font-size: 9px;
    font-weight: 600;
    margin-top: 2px;
    color: var(--white);
}

.chat-bubble {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--gray-border);
}

.bubble-header {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.bubble-header button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    width: auto;
    padding: 0;
    margin: 0;
}

.bubble-body {
    padding: 12px;
    height: 200px;
    overflow-y: auto;
    background: #fef9f0;
    font-size: 0.85rem;
}

.bubble-footer {
    display: flex;
    border-top: 1px solid var(--gray-border);
}

.bubble-footer input {
    flex: 1;
    border: none;
    padding: 12px;
    margin: 0;
    border-radius: 0;
}

.bubble-footer button {
    width: auto;
    background: var(--secondary-red);
    border-radius: 0;
    padding: 0 16px;
    margin: 0;
}

/* ==================== MAPS ==================== */
#orderMap {
    border-radius: 16px;
    border: 1px solid var(--gray-border);
    margin-top: 20px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
/* Tablet */
@media (max-width: 992px) {
    .hero-premium {
        padding: 120px 40px;
        min-height: 550px;
        margin-top: 35px;
    }
    
    .hero-premium h1 {
        font-size: 2.8rem;
    }
    
    .hero-premium .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-header-bg {
        margin-top: 35px;
    }
    
    /* Tablet footer spacing */
    .footer-premium-social {
        margin-top: 45px !important;
    }
    
    .footer-premium-apps {
        margin-top: 35px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navbar */
    .nav-container {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
    }
    
    .navbar.scrolled .nav-container {
        padding: 10px 20px;
    }
    
    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .btn-login, .btn-logout {
        padding: 6px 16px;
        font-size: 14px;
    }
    
    /* Container */
    .container {
        padding: 0 20px;
    }
    
    /* Hero */
    .hero-premium {
        padding: 80px 20px;
        min-height: 480px;
        margin-top: 30px;
    }
    
    .hero-premium .hero-content {
        padding: 20px;
    }
    
    .hero-premium h1 {
        font-size: 2rem;
    }
    
    .hero-premium .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-premium .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-premium .btn-primary,
    .hero-premium .btn-outline-light {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    /* Services */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* About */
    .about-header-bg {
        padding: 100px 20px;
        min-height: 450px;
        margin-top: 30px;
    }
    
    .about-header-content h1 {
        font-size: 1.5rem;
    }
    
    .about-cards-wrapper {
        margin-top: 20px;
    }
    
    /* Forms */
    .dimension-group {
        flex-direction: column;
        gap: 0;
    }
    
    /* Footer */
    .footer-premium-container {
        padding: 0 20px;
    }
    
    .footer-premium-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 50px;
    }
    
    .footer-premium-social {
        justify-content: flex-start;
        margin-top: 55px !important;
        margin-bottom: 35px !important;
    }
    
    .footer-premium-apps {
        margin-top: 45px !important;
        margin-bottom: 30px !important;
    }
    
    .app-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-premium-bottom {
        padding-top: 40px !important;
        margin-top: 25px !important;
    }
    
    /* Float buttons */
    .whatsapp-float,
    .chatbot-button {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        left: 58px;
        font-size: 10px;
    }
    
    .chat-bubble {
        width: 280px;
        right: -10px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .nav-links {
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
    
    .btn-login, .btn-logout {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    .hero-premium {
        margin-top: 25px;
    }
    
    .hero-premium h1 {
        font-size: 1.6rem;
    }
    
    .service-card, .about-card {
        padding: 20px 16px;
    }
    
    form {
        padding: 20px;
    }
    
    .about-header-bg {
        margin-top: 25px;
    }
}