/* CSS Reset & Variables */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --whatsapp: #16a34a;
    --whatsapp-hover: #15803d;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
}

.container { width: 92%; max-width: 1280px; margin: 0 auto; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* Top Bar */
.top-bar { background-color: var(--primary); color: #cbd5e1; font-size: 0.85rem; padding: 0.6rem 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.contact-links { display: flex; gap: 0.8rem; align-items: center; }
.top-link:hover { color: #fff; }

/* Header */
.main-header { background-color: #fff; border-bottom: 1px solid var(--border); padding: 1.25rem 0; position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.header-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.logo a { font-size: 1.4rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.external-nav { display: flex; gap: 1rem; }
.nav-btn { font-size: 0.9rem; font-weight: 600; padding: 0.6rem 1.2rem; border-radius: 6px; background-color: var(--primary-light); color: #fff; }
.nav-btn:hover { background-color: var(--primary); }
.nav-btn-outline { background-color: transparent; color: var(--primary-light); border: 1px solid var(--primary-light); }
.nav-btn-outline:hover { background-color: var(--primary-light); color: #fff; }

/* Hero Section */
.hero-section { background: linear-gradient(135deg, var(--primary) 0%, #334155 100%); padding: 4.5rem 0 5.5rem; color: white; text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 2.5rem; }
.search-input-wrapper { position: relative; max-width: 600px; margin: 0 auto; }
.search-icon { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: #94a3b8; }
#searchInput { width: 100%; padding: 1.2rem 1.2rem 1.2rem 3.5rem; font-size: 1.1rem; border: none; border-radius: 50px; outline: none; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); font-family: inherit; }
#searchInput:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5); }

/* Main Content */
.main-content { padding: 4rem 0; }
.section-header { margin-bottom: 2.5rem; display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--border); padding-bottom: 1rem; }
.section-title { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.badge-container { display: flex; gap: 0.5rem; }
.badge { background-color: #f1f5f9; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 20px; text-transform: uppercase; }
.badge-blue { background-color: #e0f2fe; color: #0369a1; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2rem; }
.product-card { background-color: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.product-image-container { height: 200px; background-color: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-image-container img { width: 100%; height: 100%; object-fit: cover; }
.product-image-placeholder { color: #94a3b8; font-size: 0.9rem; font-weight: 500; }
.product-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-title { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; line-height: 1.4; }
.product-short-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.product-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; }
.product-actions-row { display: flex; gap: 0.6rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; text-align: center; border: none; }
.btn-whatsapp { background-color: var(--whatsapp); color: white; flex: 1; }
.btn-whatsapp:hover { background-color: var(--whatsapp-hover); }
.btn-call { background-color: var(--accent); color: white; flex: 1; }
.btn-call:hover { background-color: var(--accent-hover); }
.btn-detail { background-color: #f1f5f9; color: var(--primary); width: 100%; border: 1px solid var(--border); }
.btn-detail:hover { background-color: #e2e8f0; }

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(15, 23, 42, 0.75); backdrop-filter: blur(4px); }
.modal-content { background-color: #fff; margin: 5% auto; padding: 0; border-radius: 16px; width: 90%; max-width: 900px; position: relative; animation: slideIn 0.3s ease-out; overflow: hidden; }
@keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-btn { color: #94a3b8; position: absolute; top: 1rem; right: 1.5rem; font-size: 2rem; font-weight: bold; cursor: pointer; z-index: 10; transition: color 0.2s; }
.close-btn:hover { color: var(--primary); }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-image-container { background-color: #f1f5f9; display: flex; align-items: center; justify-content: center; min-height: 400px; }
.modal-image-container img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 3rem 2.5rem; display: flex; flex-direction: column; }
.modal-title { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 1.5rem; line-height: 1.3; }
.seo-text-container { background-color: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin-bottom: 2rem; flex-grow: 1; }
.seo-heading { font-size: 0.85rem; text-transform: uppercase; color: var(--accent); letter-spacing: 0.5px; margin-bottom: 0.8rem; font-weight: 700; }
.modal-desc { font-size: 0.95rem; color: var(--text-main); line-height: 1.7; text-align: justify; }
.modal-actions { display: flex; flex-direction: column; gap: 0.8rem; }
.modal-btn { padding: 1rem; font-size: 1rem; }

/* Footer */
.main-footer { background-color: var(--primary); color: white; padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-logo { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; }
.footer-desc { color: #94a3b8; font-size: 0.9rem; max-width: 400px; }
.footer-heading { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: #f8fafc; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #cbd5e1; font-size: 0.9rem; }
.footer-links a:hover { color: white; }
.footer-address { color: #cbd5e1; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
    .modal-body { grid-template-columns: 1fr; }
    .modal-image-container { min-height: 250px; height: 250px; }
    .modal-info { padding: 2rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .top-bar-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
    .header-container { flex-direction: column; }
    .hero-title { font-size: 2rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
