/* ============================================
   STYLESHEET UNTUK ANDALAN WIRE SEJAHTERA
   ============================================ */

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root{
    /* Fluid typography and spacing */
    --fs-base: clamp(14px, 0.9vw + 12px, 18px);
    --fs-lg: clamp(20px, 2.2vw + 12px, 36px);
    --fs-xl: clamp(28px, 4vw + 16px, 56px);
    --container-padding-x: 5vw; /* sides follow viewport */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding-top: 54px;
    font-size: var(--fs-base);
}

/* ============================================
   HEADER SECTION
   ============================================ */
header {
    background: url('nvbg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

header h1, header p {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: var(--fs-xl);
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 0.8s ease-out;
    color: white;
}

header p {
    font-size: clamp(1rem, 0.8vw + 0.6rem, 1.25rem);
    font-weight: 300;
    opacity: 0.95;
}

/* ============================================
   NAVIGATION SECTION
   ============================================ */
nav {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* topbar removed - site uses single nav bar */

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px var(--container-padding-x);
}

.logo {
    font-size: clamp(1rem, 1.6vw + 0.4rem, 1.5rem);
    font-weight: 800;
    color: #3d5a80;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}
.nav-menu li a {
    color: #333;
    text-decoration: none;
    font-size: clamp(0.9rem, 0.8vw + 0.7rem, 1.05rem);
    font-weight: 600;
    padding: 6px 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    margin: 4px 0;
    transition: all 0.25s ease;
}

.nav-menu.mobile-active {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 10px 20px 20px 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu { display: none; }
}

/* ============================================
   MAIN CONTENT SECTION (full-width layout)
   ============================================ */
main {
    width: 100%;
    margin: 0;
    padding: 60px 0; /* vertical spacing, content uses .container */
    background-color: transparent;
    min-height: calc(100vh - 300px);
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    margin-bottom: 60px;
    padding: 40px;
    background: white;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #2c3e50;
    font-size: clamp(1.4rem, 2.2vw + 1rem, 2.5rem);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
    border-radius: 2px;
}

section p {
    font-size: clamp(0.95rem, 0.8vw + 0.6rem, 1.05rem);
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    font-size: clamp(0.85rem, 0.6vw + 0.6rem, 1rem);
}

footer p {
    margin: 5px 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
/* Heading sizes responsive */
h1 {
    color: #2c3e50;
    font-weight: 800;
    margin-bottom: 15px;
    font-size: var(--fs-xl);
}

h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: clamp(1.4rem, 2.2vw + 1rem, 2.5rem);
}

h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: clamp(1.05rem, 1.6vw + 0.6rem, 1.5rem);
}

h4, h5, h6 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
/* Tablet & Medium Screens */
@media screen and (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    header {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    header p {
        font-size: 0.95rem;
    }

    nav ul {
        gap: 20px;
        flex-wrap: wrap;
    }

    nav a {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    main {
        padding: 40px 15px;
        min-height: auto;
    }

    section {
        padding: 30px 20px;
        margin-bottom: 40px;
        border-left-width: 3px;
    }

    section h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    section p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    footer {
        padding: 25px 15px;
        font-size: 0.9rem;
    }
}

/* Mobile Screens */
@media screen and (max-width: 480px) {
    body {
        padding-top: 55px;
    }

    header {
        padding: 20px 10px;
    }

    header h1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    header p {
        font-size: 0.85rem;
        opacity: 0.95;
    }

    nav {
        padding: 12px 0;
    }

    nav ul {
        gap: 15px;
        padding: 0 10px;
    }

    nav a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    main {
        padding: 25px 10px;
    }

    section {
        padding: 20px 15px;
        margin-bottom: 25px;
        border-left-width: 3px;
        border-radius: 6px;
    }

    section h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    section h2::after {
        width: 40px;
        height: 2px;
    }

    section p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    footer {
        padding: 20px 10px;
        font-size: 0.8rem;
        margin-top: 40px;
    }

    footer p {
        margin: 4px 0;
    }
}

/* Extra Small Screens */
@media screen and (max-width: 360px) {
    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.8rem;
    }

    nav a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    section {
        padding: 15px 12px;
    }

    section h2 {
        font-size: 1.1rem;
    }

    section p {
        font-size: 0.85rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    border-radius: 50%;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 20px;
    }
    
    .whatsapp-float img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 15px;
    }
}

@media (max-width: 360px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 12px;
    }
}

    /* ============================================
       PRODUCT GALLERY (main image + thumbnails)
       ============================================ */
    .product-gallery {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .gallery-main {
        width: 100%;
        position: relative;
        padding-top: 62%; /* 16:10-ish aspect ratio */
        overflow: hidden;
        border-radius: 8px;
        background: #f6f6f6;
    }
    .gallery-main img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .gallery-thumbs {
        display: flex;
        gap: 8px;
        justify-content: center;
        align-items: center;
    }
    .gallery-thumbs img {
        width: 64px;
        height: 44px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: transform 0.12s ease, border-color 0.12s ease;
    }
    .gallery-thumbs img:hover {
        transform: scale(1.03);
    }
    .gallery-thumbs img.thumb-active {
        border-color: #3498db;
        transform: scale(1.05);
    }

    @media (max-width: 768px) {
        .gallery-thumbs img {
            width: 52px;
            height: 36px;
        }
    }

    @media (max-width: 480px) {
        .gallery-thumbs img {
            width: 44px;
            height: 32px;
        }
    }

    /* Grid-style gallery for product cards */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 8px;
    }
    .gallery-tile {
        aspect-ratio: 4 / 3;
        overflow: hidden;
        border-radius: 8px;
        background: #fafafa;
        display: block;
    }
    .gallery-tile img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* keep full image visible and proportional */
        display: block;
    }

    @media (max-width: 768px) {
        .gallery-grid img {
            height: auto;
        }
    }

    @media (max-width: 480px) {
        .gallery-grid img {
            height: auto;
        }
    }

