/*
Theme Name: MITRA Scaffolding
Theme URI: https://mitrascaffolding.com/
Author: MITRA Scaffolding
Author URI: https://mitrascaffolding.com/
Description: Tema siap pakai untuk situs jual dan sewa scaffolding. Produk ditambah dari WordPress Admin (foto, judul, keterangan). Menyertakan schema LocalBusiness, FAQ, dan Product.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mitra-scaffolding
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #0a0a1a; color: white; min-height: 100vh; overflow-x: hidden; }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; background: rgba(10, 10, 26, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.3s ease; }
.navbar.scrolled { background: rgba(10, 10, 26, 0.95); box-shadow: 0 4px 30px rgba(255, 107, 53, 0.2); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: 1px; color: #fff; text-decoration: none; }
.nav-logo .logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, #d4af37, #b8941f); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; color: #000; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-menu a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.3s; position: relative; }
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: #ff6b35; }
.nav-menu a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: #ff6b35; transition: width 0.3s; }
.nav-menu a:hover::after, .nav-menu .current-menu-item > a::after { width: 100%; }
.nav-time { font-size: 20px; font-weight: 300; color: rgba(255, 255, 255, 0.9); letter-spacing: 2px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 10000; background: none; border: 0; padding: 0; }
.hamburger span { width: 25px; height: 2px; background: white; transition: all 0.3s; display: block; }

.hero { position: relative; min-height: 380px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 120px 20px 60px; background: linear-gradient(135deg, #1a0033 0%, #0d001a 30%, #000033 70%, #000022 100%); overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(255, 140, 66, 0.1) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 70%); z-index: 1; }
.network-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; overflow: hidden; }
.network-bg svg { width: 100%; height: 100%; opacity: 0.6; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: 3px; margin-bottom: 15px; background: linear-gradient(135deg, #fff 0%, #ff6b35 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 22px; font-weight: 300; color: rgba(255, 255, 255, 0.9); letter-spacing: 1px; }

.cards-section { padding: 50px 40px 80px; background: linear-gradient(180deg, #0a0a1a 0%, #0d0d2b 100%); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.section-head { grid-column: 1 / -1; text-align: center; margin-bottom: 10px; }
.section-head h2 { color: #ff6b35; font-size: 24px; }

.card { background: rgba(255, 107, 53, 0.05); border: 2px solid rgba(255, 107, 53, 0.4); border-radius: 16px; padding: 30px 25px; text-align: center; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 140, 66, 0.08)); opacity: 0; transition: opacity 0.4s; z-index: 0; }
.card:hover { transform: translateY(-12px); border-color: rgba(255, 107, 53, 0.8); box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3), 0 0 60px rgba(255, 107, 53, 0.15); }
.card:hover::before { opacity: 1; }
.card-icon { width: 50px; height: 50px; margin: 0 auto 20px; background: rgba(255, 107, 53, 0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.card-icon svg { width: 24px; height: 24px; fill: #ff6b35; }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #fff; position: relative; z-index: 1; }
.card p { font-size: 13px; color: rgba(255, 255, 255, 0.6); line-height: 1.6; position: relative; z-index: 1; }
.card a { color: inherit; text-decoration: none; }
.card-link { display: inline-block; margin-top: 15px; font-size: 12px; color: #ff6b35; text-decoration: none; font-weight: 600; letter-spacing: 1px; position: relative; z-index: 1; }

.product-card { background: rgba(255, 107, 53, 0.03); border: 1px solid rgba(255, 107, 53, 0.2); border-radius: 16px; padding: 25px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; transition: all 0.3s ease; color: inherit; text-decoration: none; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(255, 107, 53, 0.5); box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1); }
.product-image-box { width: 170px; height: 170px; background-color: #ffffff; border-radius: 8px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.product-image-box img { width: 100%; height: 100%; object-fit: contain; }
.product-title { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.9); text-align: center; line-height: 1.4; }
.product-excerpt { font-size: 13px; color: rgba(255, 255, 255, 0.6); text-align: center; margin-top: 8px; line-height: 1.5; }
.product-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px; background: #f4f4f4; }

.single-product { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.single-product .product-image-box { width: 280px; height: 280px; cursor: zoom-in; }
.single-product h1 { font-size: 28px; margin-bottom: 16px; color: #ff6b35; }
.single-product .entry-content { color: rgba(255,255,255,0.8); line-height: 1.7; font-size: 15px; }
.single-product .entry-content p { margin-bottom: 12px; }

.faq-box { grid-column: 1 / -1; margin-top: 40px; background: rgba(255, 107, 53, 0.05); border: 2px solid rgba(255, 107, 53, 0.4); border-radius: 16px; padding: 40px; }
.faq-box h2 { text-align: center; margin-bottom: 30px; color: #ff6b35; font-size: 24px; }
.faq-item { margin-bottom: 25px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 20px; }
.faq-item:last-child { margin-bottom: 0; border-bottom: 0; }
.faq-item h3 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.faq-item p { font-size: 15px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }

.catalog-wrap { grid-column: 1 / -1; margin-top: 20px; overflow-x: auto; border-radius: 16px; border: 1px solid rgba(255, 107, 53, 0.2); }
.catalog-table { width: 100%; border-collapse: collapse; font-size: 15px; color: #fff; min-width: 800px; }
.catalog-table th { padding: 15px; background: #0d47a1; text-align: left; }
.catalog-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.catalog-table tr:nth-child(odd) { background: rgba(255,255,255,0.05); }
.catalog-table tr:nth-child(even) { background: rgba(0,0,0,0.2); }
.catalog-cat { font-weight: bold; color: #ff6b35; vertical-align: top; }
.catalog-ok { color: #4caf50; font-weight: bold; }

.footer-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 40px 20px 60px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-card { background: rgba(255, 107, 53, 0.03); border: 1px solid rgba(255, 107, 53, 0.15); border-radius: 16px; padding: 30px; }
.footer-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: #ff6b35; letter-spacing: 1px; }
.footer-address p { font-size: 14px; color: rgba(255, 255, 255, 0.7); line-height: 1.8; margin-bottom: 10px; }
.footer-address strong { color: #fff; font-weight: 600; }
.footer-map iframe { width: 100%; height: 250px; border: 0; border-radius: 12px; filter: brightness(0.8) contrast(1.2); }
.wa-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: rgba(255, 255, 255, 0.9); font-size: 14px; }
.wa-inline-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background-color: #25D366; border-radius: 50%; flex-shrink: 0; box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4); }
.wa-inline-icon:hover { transform: scale(1.15); }
.wa-inline-icon svg { width: 18px; height: 18px; fill: white; }

.floating-whatsapp { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); z-index: 9999; text-decoration: none; animation: pulse-green 2s infinite; }
.floating-whatsapp:hover { transform: scale(1.1); animation: none; }
.floating-whatsapp svg { width: 32px; height: 32px; fill: white; }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.lightbox { display: none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-content { position: relative; max-width: 500px; max-height: 500px; width: 90%; height: auto; border-radius: 12px; box-shadow: 0 0 50px rgba(255, 107, 53, 0.4); border: 2px solid rgba(255, 255, 255, 0.1); object-fit: contain; }
.lightbox-close { position: absolute; top: -50px; right: 0; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; line-height: 1; }

.site-main { min-height: 40vh; }
.empty-note { grid-column: 1 / -1; text-align: center; color: rgba(255,255,255,0.6); padding: 40px; }

@media (max-width: 1024px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } .single-product { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .navbar { padding: 12px 20px; }
  .nav-menu { position: fixed; top: 0; right: -100%; width: 250px; height: 100vh; background: rgba(10, 10, 26, 0.98); flex-direction: column; padding: 80px 30px 30px; gap: 25px; transition: right 0.4s ease; align-items: flex-start; }
  .nav-menu.active { right: 0; }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .hero { min-height: 300px; padding: 100px 20px 50px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .cards-section { padding: 30px 20px 60px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-section { grid-template-columns: 1fr; }
}
