/**
 * Nusantara Traisser - Global Styles
 * app.css - CSS yang digunakan di seluruh halaman
 */

/* ==========================================================================
   CSS Variables / KV (Key Visual)
   ========================================================================== */
:root {
    --nt-primary: #34634f;
    --nt-primary-dark: #2a5040;
    --nt-primary-light: #4a7d66;
    --nt-secondary: #fbb63d;
    --nt-secondary-light: #fcc96a;
    --nt-secondary-dark: #e5a331;
    --nt-dark: #102319;
    --nt-light: #f8faf9;
    --nt-gray: #6b7280;
    --nt-gray-light: #e5e7eb;
    --nt-white: #ffffff;
    --nt-success: #10b981;
    --nt-warning: #f59e0b;
    --nt-danger: #ef4444;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1f2933;
    line-height: 1.6;
    background-color: var(--nt-white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--nt-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--nt-primary-dark);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--nt-dark);
    position: relative;
}

.section-title-center {
    text-align: center;
}

.section-title-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--nt-secondary);
    margin: 0.75rem auto 0;
    border-radius: var(--radius-full);
}

.section-subtitle {
    color: var(--nt-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top Info Bar */
.nt-topbar {
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--nt-primary) 0%, var(--nt-primary-dark) 100%);
    color: #f9fafb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nt-topbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.nt-topbar a {
    color: var(--nt-secondary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nt-topbar a:hover {
    color: var(--nt-secondary);
    text-decoration: underline;
}

.nt-topbar .topbar-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    opacity: 0.9;
}

/* Main Navbar */
.nt-navbar {
    background-color: var(--nt-white);
    border-bottom: 1px solid var(--nt-gray-light);
    transition: top var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.nt-navbar.topbar-visible {
    top: 42px;
}

.nt-navbar.topbar-hidden {
    top: 0;
    box-shadow: var(--shadow-md);
}

.nt-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nt-navbar .navbar-brand img {
    height: 36px;
    width: auto;
}

.nt-navbar .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    position: relative;
}

.nt-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--nt-secondary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nt-navbar .nav-link:hover::after,
.nt-navbar .nav-link.active::after {
    width: 60%;
}

.nt-navbar .nav-link.active,
.nt-navbar .nav-link:hover {
    color: var(--nt-primary);
}

.nt-navbar .btn-contact {
    background: var(--nt-primary);
    color: var(--nt-white);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.nt-navbar .btn-contact:hover {
    background: var(--nt-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Main Content Area */
main {
    padding-top: 110px;
    min-height: 60vh;
}

body.topbar-visible main {
    padding-top: 110px;
}

body.topbar-hidden main {
    padding-top: 68px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-nt-primary {
    background: var(--nt-primary);
    border-color: var(--nt-primary);
    color: var(--nt-white);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.btn-nt-primary:hover {
    background: var(--nt-primary-dark);
    border-color: var(--nt-primary-dark);
    color: var(--nt-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-nt-secondary {
    background: var(--nt-secondary);
    border-color: var(--nt-secondary);
    color: var(--nt-dark);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.btn-nt-secondary:hover {
    background: var(--nt-secondary-dark);
    border-color: var(--nt-secondary-dark);
    color: var(--nt-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-nt-outline {
    background: transparent;
    border: 2px solid var(--nt-white);
    color: var(--nt-white);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.btn-nt-outline:hover {
    background: var(--nt-white);
    color: var(--nt-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.nt-card {
    background: var(--nt-white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    overflow: hidden;
}

.nt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.nt-card .card-body {
    padding: 1.5rem;
}

.nt-card .card-title {
    font-weight: 600;
    color: var(--nt-dark);
    margin-bottom: 0.75rem;
}

/* Service Cards */
.service-card {
    background: var(--nt-white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--nt-secondary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.service-card .service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--nt-primary-light) 0%, var(--nt-primary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nt-white);
    font-size: 1.75rem;
}

.service-card h5 {
    font-weight: 700;
    color: var(--nt-dark);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.service-card p {
    color: var(--nt-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.nt-footer {
    background: linear-gradient(180deg, #0d1f17 0%, #0b1720 100%);
    color: #cbd5e1;
    padding-top: 4rem;
    margin-top: 0;
    font-size: 0.9rem;
}

.nt-footer h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--nt-white);
    position: relative;
    padding-bottom: 0.75rem;
}

.nt-footer h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--nt-secondary);
}

.nt-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nt-footer a:hover {
    color: var(--nt-secondary);
    padding-left: 4px;
}

.nt-footer ul li {
    margin-bottom: 0.5rem;
}

.nt-footer .footer-brand {
    margin-bottom: 1.5rem;
}

.nt-footer .footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.nt-footer .tagline {
    color: var(--nt-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
}

.nt-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #9ca3af;
}

.nt-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--nt-white);
    margin-right: 0.5rem;
    transition: all var(--transition-fast);
}

.nt-footer .social-links a:hover {
    background: var(--nt-secondary);
    color: var(--nt-dark);
    transform: translateY(-2px);
    padding-left: 0;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-wa-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
}

.floating-wa-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: #25d366;
    border: none;
    color: var(--nt-white);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.floating-wa-btn:hover {
    background: #128c7e;
    transform: scale(1.08);
}

.floating-wa-btn .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: #25d366;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.wa-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    background: var(--nt-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all var(--transition-base);
}

.wa-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-popup-header {
    background: linear-gradient(135deg, var(--nt-primary) 0%, var(--nt-primary-dark) 100%);
    color: var(--nt-white);
    padding: 1rem 1.25rem;
}

.wa-popup-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.wa-popup-header p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.wa-popup-body {
    padding: 1rem;
}

.wa-contact-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--nt-light);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: var(--nt-dark);
    transition: all var(--transition-fast);
}

.wa-contact-item:last-child {
    margin-bottom: 0;
}

.wa-contact-item:hover {
    background: var(--nt-primary);
    color: var(--nt-white);
    transform: translateX(4px);
    padding-left: 1rem;
}

.wa-contact-item .wa-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: #25d366;
    color: var(--nt-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.wa-contact-item .wa-info h6 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.wa-contact-item .wa-info p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.bg-nt-light {
    background-color: var(--nt-light);
}

.bg-nt-primary {
    background-color: var(--nt-primary);
}

.text-nt-primary {
    color: var(--nt-primary);
}

.text-nt-secondary {
    color: var(--nt-secondary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
    .nt-navbar .navbar-collapse {
        background: var(--nt-white);
        padding: 1rem;
        border-radius: var(--radius-lg);
        margin-top: 0.5rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nt-navbar .nav-link::after {
        display: none;
    }
    
    .nt-navbar .nav-link {
        padding: 0.75rem 1rem;
        border-radius: var(--radius);
    }
    
    .nt-navbar .nav-link:hover,
    .nt-navbar .nav-link.active {
        background: var(--nt-light);
    }
}

@media (max-width: 767.98px) {
    main {
        padding-top: 100px;
    }
    
    body.topbar-visible main {
        padding-top: 100px;
    }
    
    body.topbar-hidden main {
        padding-top: 60px;
    }
    
    .nt-topbar {
        font-size: 0.8rem;
    }
    
    .floating-wa-container {
        bottom: 16px;
        right: 16px;
    }
    
    .floating-wa-btn {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
    
    .wa-popup {
        width: 260px;
        right: 0;
    }
    
    .nt-footer {
        padding-top: 3rem;
    }
    
    .nt-footer h6::after {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .nt-navbar .navbar-brand img {
        height: 28px;
    }
    
    .wa-popup {
        position: fixed;
        bottom: 80px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

