/* ==========================================================================
   RENTAL LAPTOP - MODERN & RESPONSIVE CSS (SEO OPTIMIZED)
   ========================================================================== */

/* 1. CSS Variables & Theme Setup */
:root {
    --primary-color: #2563eb;      /* Biru profesional & terpercaya */
    --primary-hover: #1d4ed8;
    --accent-color: #059669;       /* Hijau aksen (Tombol WA/CTA) */
    --accent-hover: #047857;
    --dark-bg: #0f172a;            /* Slate gelap untuk header/footer */
    --light-bg: #f8fafc;           /* Background netral modern */
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --max-width: 1200px;
}

/* 2. Global Reset & Performance Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout Container */
section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
}

section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-bg);
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* 3. Header & Navigation */
header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 4. Hero Section (Conversion Focused) */
#hero {
    text-align: center;
    padding: 90px 20px 70px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

#hero h1 {
    font-size: 2.6rem;
    color: var(--dark-bg);
    max-width: 900px;
    margin: 0 auto 20px auto;
    line-height: 1.25;
}

#hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

#hero a {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    transition: background-color 0.2s, transform 0.2s;
}

#hero a:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* 5. Section Keunggulan */
#keunggulan ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    list-style: none;
}

#keunggulan ul li {
    background: var(--card-bg);
    padding: 30px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

#keunggulan ul li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

#keunggulan ul li h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* 6. Section Katalog Laptop */
#katalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

#katalog h2 {
    grid-column: 1 / -1;
}

#katalog article {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

#katalog article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

#katalog article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #cbd5e1;
}

#katalog article h3 {
    font-size: 1.25rem;
    padding: 20px 20px 10px 20px;
}

#katalog article p {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* 7. Section FAQ (Accordion Native) */
#faq details {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    padding: 16px 20px;
    transition: border-color 0.2s;
}

#faq details[open] {
    border-color: var(--primary-color);
}

#faq summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--dark-bg);
    font-size: 1.05rem;
}

#faq details p {
    margin-top: 12px;
    color: var(--text-muted);
}

/* 8. Footer Section */
footer {
    background-color: var(--dark-bg);
    color: #94a3b8;
    padding: 60px 20px 30px 20px;
    margin-top: 40px;
}

footer div {
    max-width: var(--max-width);
    margin: 0 auto;
}

footer h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

footer a {
    color: #38bdf8;
}

/* 9. Responsif untuk Layar Smartphone & Tablet */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    #hero h1 {
        font-size: 1.85rem;
    }

    #hero p {
        font-size: 1rem;
    }

    section {
        padding: 40px 16px;
    }
}