/**
 * Novartech International - Custom Styles
 * Website Company Profile & E-Commerce
 *
 * Framework: Bootstrap 5.3.3
 * Bahasa: Indonesia
 */

/* ============================================
   CSS Variables / Custom Properties
   ============================================ */
:root {
    --nt-primary: #0d6efd;
    --nt-secondary: #6c757d;
    --nt-success: #198754;
    --nt-danger: #dc3545;
    --nt-warning: #ffc107;
    --nt-info: #0dcaf0;
    --nt-dark: #212529;
    --nt-light: #f8f9fa;
    --nt-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --nt-border-radius: 0.375rem;
    --nt-transition: all 0.3s ease;
}

/* ============================================
   Global Styles
   ============================================ */
body {
    font-family: var(--nt-font-family);
    color: var(--nt-dark);
    line-height: 1.6;
}

a {
    transition: var(--nt-transition);
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background-color: var(--nt-dark);
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.top-bar a:hover {
    color: var(--nt-info);
}

@media (max-width: 767.98px) {
    .top-bar {
        padding: 0.375rem 0;
        font-size: 0.8125rem;
    }

    .top-bar a {
        min-height: 44px;
        padding: 0.25rem 0.5rem;
    }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
}

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

.navbar-nav .nav-link.active {
    font-weight: 600;
}

.navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
        margin-top: 0.75rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
}

/* ============================================
   Hero Section / Banner Slider
   ============================================ */
.hero-section .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .hero-section .carousel-item img {
        height: 300px;
    }
}

@media (max-width: 767.98px) {
    .hero-section .carousel-item img {
        height: 200px;
    }
}

/* ============================================
   Section Styles
   ============================================ */
.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--nt-primary);
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    transition: var(--nt-transition);
    border: 1px solid #e9ecef;
    border-radius: var(--nt-border-radius);
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-price {
    font-weight: 700;
    color: var(--nt-primary);
    font-size: 1.1rem;
}

.product-price-original {
    text-decoration: line-through;
    color: var(--nt-secondary);
    font-size: 0.9rem;
}

.product-price-discount {
    color: var(--nt-danger);
    font-weight: 700;
    font-size: 1.1rem;
}

.badge-discount {
    background-color: var(--nt-danger);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--nt-border-radius);
}

.badge-out-of-stock {
    background-color: var(--nt-secondary);
    color: #fff;
}

/* ============================================
   Category Cards
   ============================================ */
.category-card {
    transition: var(--nt-transition);
    border-radius: var(--nt-border-radius);
    overflow: hidden;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* ============================================
   Floating WhatsApp Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: var(--nt-transition);
    text-decoration: none;
    /* Minimum touch target 44x44px - exceeded at 60x60px */
    min-width: 44px;
    min-height: 44px;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
}

.whatsapp-float:focus {
    outline: 3px solid #128c7e;
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--nt-dark);
    color: #adb5bd;
    padding: 3rem 0 1rem;
}

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

.footer a:hover {
    color: #fff;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-nav li a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
}

/* Social Media Icons */
.social-links .social-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 1.25rem;
    transition: var(--nt-transition);
}

.social-links .social-icon:hover {
    background-color: var(--nt-primary);
    color: #fff;
}

/* ============================================
   Accessibility - Minimum Touch Target 44x44px
   ============================================ */
.btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb-section {
    background-color: var(--nt-light);
    padding: 1rem 0;
}

/* ============================================
   Client Carousel
   ============================================ */
.client-logo {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--nt-transition);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   Article Cards
   ============================================ */
.article-card {
    transition: var(--nt-transition);
    border: 1px solid #e9ecef;
    border-radius: var(--nt-border-radius);
    overflow: hidden;
    height: 100%;
}

.article-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.article-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.25rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}

/* ============================================
   Form Styles
   ============================================ */
.form-control:focus,
.form-select:focus {
    border-color: var(--nt-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ============================================
   Alert Styles
   ============================================ */
.alert {
    border-radius: var(--nt-border-radius);
}

/* ============================================
   Brand Logos Section
   ============================================ */
.brand-logo {
    max-height: 60px;
    width: auto;
    transition: var(--nt-transition);
}

.brand-logo:hover {
    transform: scale(1.05);
}
