/* ═══════════════════════════════════════════════════════
   BekasiLaptop – Frontend Styles
   Matching existing bekasilaptop.com design
   ═══════════════════════════════════════════════════════ */

:root {
    --primary: #1a1a2e;
    --accent: #25d366;
    --accent-dark: #128c7e;
    --icon-gradient-1: #6372ff;
    --icon-gradient-2: #5ca9fb;
    --surface: #f6f6f6;
    --text-dark: #333;
    --text-muted: #777;
    --text-light: #999;
    --heading-color: #333;
    --font-body: 'Open Sans', sans-serif;
    --font-heading: 'Raleway', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }
a { text-decoration: none; }

/* ── Navbar ─────────────────────────────────── */
#mainNav {
    padding: .5rem 0;
    background: #fff;
    transition: all .3s ease;
    box-shadow: none;
    border-bottom: none;
}
#mainNav.scrolled {
    background: rgba(255,255,255,.97);
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
#mainNav .navbar-brand img { height: 60px; }
#mainNav .nav-link {
    font-family: var(--font-heading);
    font-weight: 400;
    color: #555;
    padding: .5rem 1rem !important;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color .2s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--icon-gradient-1); }

.btn-wa {
    background: var(--accent);
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: .55rem 1.5rem;
    font-weight: 700;
    font-size: 15px;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-wa:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ── Hero / Header ──────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('/img/intro-bg.jpg') center center no-repeat;
    background-size: cover;
    padding-top: 80px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 48px);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: .5rem;
}
.hero .typing-text {
    font-family: var(--font-heading);
    font-size: clamp(24px, 7.5vw, 62px);
    font-weight: 700;
    color: var(--icon-gradient-2);
    text-transform: uppercase;
    line-height: 1.2;
}
.hero .lead {
    color: rgba(255,255,255,.75);
    font-size: 18px;
    max-width: 640px;
    margin: 1rem auto;
    line-height: 1.8;
    font-style: italic;
}

/* ── Section Titles ─────────────────────────── */
.section-title-wrap {
    text-align: center;
    margin-bottom: 50px;
}
.section-title-wrap h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--heading-color);
    margin-bottom: 15px;
}
.section-title-wrap .title-line {
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--icon-gradient-1), var(--icon-gradient-2));
    margin: 0 auto;
    border-radius: 2px;
}
.section-title-wrap p {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 15px;
}
.section-dark .section-title-wrap h2 { color: #fff; }
.section-dark .section-title-wrap p { color: rgba(255,255,255,.7); }

/* ── Circular Icon ──────────────────────────── */
.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--icon-gradient-1), var(--icon-gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 36px;
    transition: all .3s;
    box-shadow: 0 6px 20px rgba(99,114,255,.3);
}

/* ── Highlight Items ────────────────────────── */
section.section-highlights { padding: 80px 0; background: #fff; }
.highlight-item {
    text-align: center;
    padding: 0 15px;
    margin-bottom: 30px;
}
.highlight-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 10px;
}
.highlight-item p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ── About Section ──────────────────────────── */
section.section-about { padding: 80px 0; background: #f6f6f6; }
.about-img img { width: 100%; }
.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--icon-gradient-1), var(--icon-gradient-2));
    margin-top: 15px;
    border-radius: 2px;
}
.about-text p { color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.about-text h3 { font-size: 22px; font-weight: 600; margin: 20px 0 10px; }
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li { font-size: 14px; color: var(--text-muted); padding: 4px 0; }
.about-list li i { color: var(--icon-gradient-2); margin-right: 8px; }

/* ── Services Section (Dark BG with parallax) ─ */
section.section-services {
    padding: 80px 0;
    background: url('/img/intro-bg.jpg') center center no-repeat fixed;
    background-size: cover;
    position: relative;
    color: #fff;
}
section.section-services::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
}
section.section-services .container { position: relative; z-index: 2; }
.service-item { text-align: center; padding: 0 15px; margin-bottom: 40px; }
.service-item h3 { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.service-item p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; }

/* ── Find Us Section ────────────────────────── */
section.section-findus { padding: 80px 0; background: #fff; }
.findus-item { text-align: center; margin-bottom: 30px; }
.findus-item a { display: block; text-decoration: none; color: inherit; transition: all .3s; }
.findus-item a:hover { transform: translateY(-4px); }
.findus-item h4 { font-size: 16px; font-weight: 600; color: var(--heading-color); margin-top: 10px; }

/* ── Gallery Section ────────────────────────── */
section.section-gallery { padding: 80px 0; background: #f6f6f6; }
.gallery-item { position: relative; overflow: hidden; margin-bottom: 0; }
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(99,114,255,0) 0%, rgba(99,114,255,.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: #fff; font-size: 16px; font-weight: 600; margin: 0; }

/* ── Testimonials Section (Dark) ────────────── */
section.section-testimonials {
    padding: 80px 0;
    background: #1a1a2e;
    color: #fff;
}
.testimonial-item { padding: 0 15px; margin-bottom: 30px; }
.testimonial-text {
    font-size: 14px;
    color: rgba(255,255,255,.75);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 15px;
}
.testimonial-author { font-size: 14px; font-weight: 600; color: var(--icon-gradient-2); }

/* ── Media / Video Section ──────────────────── */
section.section-media { padding: 80px 0; background: #fff; }
.video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 50%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ── Map / Location Section ─────────────────── */
section.section-map { padding: 80px 0; background: #fff; }
.map-iframe-wrap {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
}
.map-iframe-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.map-text p { color: var(--text-muted); font-size: 15px; line-height: 1.8; }

/* ── Product Card (listing pages) ───────────── */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.product-card .card-img-wrap {
    position: relative;
    padding-top: 66%;
    background: #f1f1f1;
    overflow: hidden;
}
.product-card .card-img-wrap img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .card-img-wrap img { transform: scale(1.05); }
.product-card .badge-sold {
    position: absolute; top: 10px; left: 10px;
    background: #ef4444; color: #fff;
    padding: .2rem .7rem; border-radius: 4px;
    font-size: 12px; font-weight: 700; z-index: 2;
}
.product-card .badge-discount {
    position: absolute; top: 10px; right: 10px;
    background: var(--accent); color: #fff;
    padding: .2rem .6rem; border-radius: 4px;
    font-size: 12px; font-weight: 700; z-index: 2;
}
.product-card .card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card .card-brand { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); }
.product-card .card-title { font-weight: 700; font-size: 16px; margin: 4px 0 auto; color: var(--text-dark); }
.product-card .card-title a { color: inherit; text-decoration: none; }
.product-card .card-title a:hover { color: var(--icon-gradient-1); }
.product-card .price-row { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.product-card .price { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.product-card .price-original { font-size: 13px; color: var(--text-light); text-decoration: line-through; }

/* ── News Card ──────────────────────────────── */
.news-card {
    background: #fff; border: 1px solid #eee; border-radius: 8px;
    overflow: hidden; transition: all .3s ease; height: 100%;
    display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,.07); }
.news-card .card-img-wrap { padding-top: 56%; position: relative; background: #f1f1f1; overflow: hidden; }
.news-card .card-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card .card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-card .card-meta { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.news-card .card-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.news-card .card-title a { color: var(--text-dark); text-decoration: none; }
.news-card .card-title a:hover { color: var(--icon-gradient-1); }
.news-card .card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Detail Page ────────────────────────────── */
.product-detail-img { border-radius: 8px; overflow: hidden; background: #f1f1f1; }
.product-detail-img img { width: 100%; display: block; }
.spec-table { width: 100%; }
.spec-table tr td { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.spec-table tr td:first-child { font-weight: 600; width: 40%; color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.breadcrumb-item a:hover { color: var(--icon-gradient-1); }
.breadcrumb-item.active { color: var(--text-dark); font-size: 14px; }

/* ── Article Body ───────────────────────────── */
.article-body { font-size: 16px; line-height: 1.85; color: #444; }
.article-body h2, .article-body h3 { margin-top: 2rem; margin-bottom: .75rem; font-weight: 700; }
.article-body p { margin-bottom: 1.25rem; }
.article-body img { border-radius: 8px; max-width: 100%; margin: 1.5rem 0; }

/* ── Footer ─────────────────────────────────── */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,.7); padding: 50px 0 0; }
.site-footer h5, .site-footer h6 { color: #fff; font-weight: 700; font-size: 18px; }
.footer-brand { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 15px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--icon-gradient-2); }
.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-links a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); text-decoration: none; transition: all .2s; font-size: 14px;
}
.social-links a:hover { background: var(--icon-gradient-1); color: #fff; }
.site-footer hr { border-color: rgba(255,255,255,.1); }

/* ── Floating WhatsApp ──────────────────────── */
.wa-float {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px; background: #25d366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 28px; box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 999; transition: all .3s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.5); color: #fff; }

/* ── Pagination ─────────────────────────────── */
.pagination .page-link { border-radius: 4px; border: 1px solid #ddd; color: var(--text-dark); font-weight: 500; margin: 0 2px; font-size: 14px; }
.pagination .page-item.active .page-link { background: linear-gradient(to right, var(--icon-gradient-1), var(--icon-gradient-2)); border-color: transparent; }

/* ── Buttons ────────────────────────────────── */
.btn-custom {
    font-family: var(--font-heading);
    background: linear-gradient(to right, var(--icon-gradient-1), var(--icon-gradient-2));
    color: #fff; border: none; padding: 14px 34px; letter-spacing: 1px;
    text-transform: uppercase; font-size: 15px; border-radius: 0; transition: all .3s;
}
.btn-custom:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99,114,255,.3); }
.btn-outline-custom {
    border: 2px solid #ddd; color: var(--text-dark); padding: 10px 28px;
    font-weight: 600; font-size: 14px; background: transparent; transition: all .25s;
}
.btn-outline-custom:hover { border-color: var(--icon-gradient-1); color: var(--icon-gradient-1); }

.section-label {
    display: inline-block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; color: var(--icon-gradient-2); margin-bottom: 5px;
}

@media (max-width: 768px) {
    .hero { min-height: 80vh; }
    .section-title-wrap h2 { font-size: 28px; }
    .icon-circle { width: 80px; height: 80px; font-size: 28px; }
    .gallery-item img { height: 180px; }
}
