/*
Theme Name: BYD Sales Custom Theme - Steven Salim
Theme URI: https://bydharmony.co.id
Author: Steven Salim (BYD Harmony Sudirman)
Author URI: https://instagram.com/Steven.Byd
Description: Tema WordPress Kustom Profesional & Dynamic untuk Dealer & Brand Consultant Mobil Listrik BYD Indonesia. Dilengkapi Custom Post Types (Mobil BYD, Testimoni), Integrasi Postingan Asli WordPress (Artikel & Berita), WP Customizer Settings (Kontak, Avatar, Banner, WhatsApp), & Kalkulator Kredit Simulasi.
Version: 1.2.0
Text Domain: byd-sales
*/

:root{
  --navy:#0b1f3a;
  --navy-2:#0f2a52;
  --blue:#1c4fa0;
  --blue-hover:#2563eb;
  --ink:#111827;
  --gray:#6b7280;
  --line:#e6e9ef;
  --bg:#f7f8fa;
  --white:#ffffff;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{
  font-family:'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
svg{display:block;}
.container{max-width:1200px; margin:0 auto; padding:0 32px;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 22px; border-radius:8px; font-weight:600; font-size:14px;
  cursor:pointer; border:none; transition:.2s; text-align:center;
}
.btn-primary{background:var(--navy); color:#fff;}
.btn-primary:hover{background:var(--navy-2);}
.btn-blue{background:var(--blue); color:#fff;}
.btn-blue:hover{background:var(--blue-hover);}
.btn-green{background:#16a34a; color:#fff;}
.btn-green:hover{background:#15803d;}
.btn-outline{background:#fff; color:var(--navy); border:1.5px solid var(--navy);}
.btn-outline:hover{background:var(--bg);}
.eyebrow{
  font-size:12.5px; font-weight:700; letter-spacing:.06em; color:var(--blue);
  text-transform:uppercase;
}
section{padding:64px 0;}
h2.section-title{font-size:32px; font-weight:800; color:var(--navy); text-align:center;}
p.section-sub{color:var(--gray); text-align:center; margin-top:10px; font-size:15px;}
.icon{width:18px; height:18px; flex-shrink:0;}

/* NAVBAR WITH VECTOR SVG LOGO */
header{position:sticky; top:0; z-index:50; background:var(--navy);}
.nav{display:flex; align-items:center; justify-content:space-between; padding:16px 32px; max-width:1200px; margin:0 auto; position:relative;}
.logo-brand { display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; }
.logo-img { height:22px; width:auto; display:block; }
.logo-sub { font-size:11px; color:#9aa8c6; border-left:1px solid rgba(255,255,255,0.25); padding-left:12px; text-transform:uppercase; letter-spacing:0.06em; font-weight:600; }

.nav-links{display:flex; gap:22px; color:#dfe6f5; font-size:14.5px;}
.nav-links a, .nav-links li a{opacity:.85; transition:.2s; padding:6px 0; border-bottom:2px solid transparent; color:#dfe6f5;}
.nav-links a:hover, .nav-links a.active, .nav-links li.current-menu-item a{opacity:1; color:#fff; border-bottom-color:#60a5fa;}
.nav-links ul { display:flex; gap:22px; }

.nav .desktop-wa{background:#16a34a; padding:10px 18px; font-size:13.5px; border-radius:8px; color:#fff;}
.nav .desktop-wa:hover{background:#15803d;}

/* MOBILE HAMBURGER MENU */
.mobile-toggle {
  display: none; background: transparent; border: none; color: #fff;
  cursor: pointer; padding: 6px; border-radius: 6px; transition: background 0.2s;
}
.mobile-toggle:hover { background: rgba(255,255,255,0.1); }
.mobile-toggle svg { width: 24px; height: 24px; display: block; }

.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  flex-direction: column; gap: 16px; z-index: 49;
}
.mobile-menu.active { display: flex; }
.mobile-menu nav, .mobile-menu ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a {
  color: #e2e8f0; font-size: 14.5px; font-weight: 600; padding: 10px 12px;
  border-radius: 6px; transition: background 0.2s; display:block;
}
.mobile-menu a:hover, .mobile-menu .current-menu-item a { background: rgba(255,255,255,0.12); color: #fff; }
.mobile-menu .mobile-wa-wrapper { padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-menu .btn-wa-mobile {
  width: 100%; justify-content: center; background: #16a34a; color: #fff;
  padding: 12px; border-radius: 8px; font-weight: 700; font-size: 14px;
}

/* HERO SLIDER */
.hero{position:relative; height:540px; overflow:hidden; background:#0b1f3a;}
.hero-slide{
  position:absolute; inset:0; opacity:0; transition:opacity 1s ease;
  background-size:cover; background-position:center;
}
.hero-slide.active{opacity:1;}
.hero-slide::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(8,20,40,.85) 0%, rgba(8,20,40,.65) 42%, rgba(8,20,40,.2) 75%, rgba(8,20,40,0) 95%);
}
.hero-inner-wrap{position:relative; z-index:2; max-width:1200px; margin:0 auto; padding:0 32px; height:100%; display:flex; align-items:center;}
.hero-content{max-width:580px;}
.hero h1{font-size:44px; line-height:1.18; font-weight:800; color:#fff; letter-spacing:-.01em; text-shadow:0 2px 8px rgba(0,0,0,0.5);}
.hero p{color:#dbe2f0; margin-top:18px; font-size:15.5px; max-width:460px; line-height:1.6; text-shadow:0 2px 4px rgba(0,0,0,0.5);}
.hero-ctas{display:flex; gap:14px; margin-top:30px; flex-wrap:wrap;}
.hero-ctas .btn-outline{background:rgba(255,255,255,.12); color:#fff; border-color:rgba(255,255,255,.6); backdrop-filter:blur(4px);}
.hero-ctas .btn-outline:hover{background:rgba(255,255,255,.22);}
.hero-dots{position:absolute; left:0; right:0; bottom:24px; z-index:3; display:flex; justify-content:center; gap:8px;}
.hero-dots button{width:8px; height:8px; padding:0; border-radius:50%; background:rgba(255,255,255,.45); border:none; cursor:pointer; transition:.2s;}
.hero-dots button.active{background:#fff; width:24px; border-radius:5px;}
.hero-arrow{position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:40px; height:40px; border-radius:50%; background:rgba(11,31,58,0.5); backdrop-filter:blur(4px); border:1px solid rgba(255,255,255,.4); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:.2s;}
.hero-arrow:hover{background:rgba(11,31,58,0.8);}
.hero-arrow.prev{left:24px;}
.hero-arrow.next{right:24px;}
.hero-arrow svg{width:20px; height:20px;}

/* PAGE HEADER */
.page-header { background: var(--navy); color: #fff; padding: 48px 0 56px; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; }
.page-header h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.page-header p { color: #9aa8c6; margin-top: 10px; font-size: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* FEATURES STRIP */
.features{background:var(--bg); padding:36px 0;}
.features-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:24px;}
.feature{display:flex; gap:14px; align-items:flex-start; background:#fff; padding:16px; border-radius:12px; border:1px solid var(--line);}
.feature .icon-badge{
  width:42px; height:42px; border-radius:10px; background:#e7edfa; color:var(--blue);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.feature .icon-badge svg{width:21px; height:21px;}
.feature h4{font-size:14px; font-weight:700; color:var(--navy);}
.feature p{font-size:12px; color:var(--gray); margin-top:3px; line-height:1.4;}

/* MODELS GRID WITH STUDIO RENDER PNGs */
.models-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:40px;}
.model-card{border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; transition:.2s; display:flex; flex-direction:column; justify-content:space-between;}
.model-card:hover{box-shadow:0 12px 28px rgba(11,31,58,.10); transform:translateY(-3px);}
.model-photo{
  height:180px; overflow:hidden; position:relative;
  background:radial-gradient(circle at center, #f1f5f9 0%, #e2e8f0 100%);
  display:flex; align-items:center; justify-content:center; padding:12px;
}
.model-photo img{width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 8px 12px rgba(11,31,58,0.15)); transition:transform 0.3s ease;}
.model-card:hover .model-photo img{transform:scale(1.06);}

.model-body{padding:18px; flex:1; display:flex; flex-direction:column; justify-content:space-between;}
.model-body h4{font-size:16.5px; font-weight:800; color:var(--navy);}
.model-body .from{font-size:11.5px; color:var(--gray); margin-top:6px;}
.model-body .price{font-size:17px; font-weight:800; color:var(--blue); margin-top:2px;}

.btn-detail-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--blue); margin-top: 14px;
  padding: 10px 14px; border-radius: 8px; background: #f0f5ff; border: 1px solid #dbe6fe;
  transition: all 0.2s ease; width: 100%; text-align: center;
}
.btn-detail-link:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-detail-link .icon { width: 14px; height: 14px; }
.see-all{text-align:center; margin-top:36px;}

/* PROMO + SIMULATION */
.promo-sim{display:grid; grid-template-columns:1.15fr 1fr; gap:24px; margin-top:40px; align-items:stretch;}
.card-panel{background:#fff; border:1px solid var(--line); border-radius:14px; padding:28px; box-shadow:0 6px 20px rgba(11,31,58,.04);}
.promo-panel { display:flex; flex-direction:column; justify-content:space-between; }
.promo-panel h3, .sim-panel h3{font-size:19px; font-weight:800; color:var(--navy);}
.promo-panel > p, .sim-panel > p{color:var(--gray); font-size:13.5px; margin-top:6px;}
.promo-body { display:flex; flex-direction:column; gap:16px; margin-top:20px; flex:1; }
.promo-grid-items { display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; }
.promo-item {
  background:#f8fafc; border:1px solid var(--line); border-radius:10px; padding:12px 14px;
  display:flex; align-items:center; gap:12px; transition:all .2s ease;
}
.promo-item:hover { border-color:var(--blue); background:#f0f5ff; transform:translateY(-1px); }
.promo-icon {
  width:36px; height:36px; border-radius:8px; background:#e7edfa; color:var(--blue);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.promo-icon svg { width:18px; height:18px; }
.promo-item b { display:block; font-size:13.5px; color:var(--navy); line-height:1.2; }
.promo-item span { font-size:11.5px; color:var(--gray); margin-top:2px; display:block; }

.promo-car-banner {
  position:relative; height:185px; border-radius:12px; overflow:hidden;
  background:radial-gradient(circle at center, #0f2a52 0%, #0b1f3a 100%);
  box-shadow:0 4px 12px rgba(11,31,58,0.08); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.promo-car-banner img { width:85%; height:auto; max-height:100%; object-fit:contain; filter:drop-shadow(0 10px 16px rgba(0,0,0,0.4)); }
.promo-badge {
  position:absolute; top:12px; left:12px; background:rgba(255,255,255,0.15); backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.3); color:#fff; font-size:11px; font-weight:700; padding:5px 12px; border-radius:20px; letter-spacing:.03em;
}
.promo-btn { margin-top:20px; width:100%; justify-content:center; }

/* TESTIMONIALS SLIDER - LARGE FULL-WIDTH DELIVERY PHOTOS */
.test-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:36px;}
.test-card{border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#fff; display:flex; flex-direction:column; justify-content:space-between; transition:transform 0.25s, box-shadow 0.25s;}
.test-card:hover{transform:translateY(-4px); box-shadow:0 12px 28px rgba(11,31,58,0.12);}

.test-photo{height:220px; width:100%; overflow:hidden; position:relative; background:var(--navy-2);}
.test-photo img{width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.3s ease;}
.test-card:hover .test-photo img{transform:scale(1.05);}
.test-badge{position:absolute; top:12px; left:12px; background:rgba(11,31,58,0.85); backdrop-filter:blur(4px); color:#fff; font-size:11px; font-weight:700; padding:4px 10px; border-radius:6px;}

.test-body{padding:20px; flex:1; display:flex; flex-direction:column; justify-content:space-between;}
.test-body p{font-size:13.5px; color:var(--ink); line-height:1.55; font-style:italic;}
.test-body .who{margin-top:14px; font-size:14px; font-weight:800; color:var(--navy);}
.test-body .car{font-size:12px; color:var(--blue); font-weight:700; display:flex; align-items:center; gap:5px; margin-top:3px;}
.test-body .car .icon{width:14px; height:14px;}
.play-btn-overlay{width:52px; height:52px; border-radius:50%; background:rgba(255,255,255,0.95); display:flex; align-items:center; justify-content:center; color:var(--navy); position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:2; box-shadow:0 6px 16px rgba(0,0,0,0.25);}

/* ARTICLES SECTION */
.art-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:36px;}
.art-card{border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; display:flex; flex-direction:column; transition:transform 0.2s;}
.art-card:hover{transform:translateY(-3px);}
.art-photo{
  height:170px; overflow:hidden; background:#e2e8f0;
  display:flex; align-items:center; justify-content:center; position:relative;
}
.art-photo img{width:100%; height:100%; object-fit:cover;}
.art-body{padding:18px; flex:1; display:flex; flex-direction:column; justify-content:space-between;}
.tag{display:inline-block; background:#e7edfa; color:var(--blue); font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:5px;}
.art-date{font-size:10.5px; color:var(--gray); float:right; padding-top:4px;}
.art-body h4{font-size:15px; font-weight:700; margin-top:10px; line-height:1.4; color:var(--ink);}
.art-body p.excerpt{font-size:12.5px; color:var(--gray); margin-top:6px; line-height:1.5;}
.art-body .read{font-size:12.5px; font-weight:700; color:var(--blue); margin-top:12px; display:inline-flex; align-items:center; gap:5px;}
.section-head-row{display:flex; justify-content:space-between; align-items:flex-end;}
.section-head-row .see-link{font-size:13.5px; font-weight:700; color:var(--blue); display:inline-flex; align-items:center; gap:5px;}

/* FOOTER */
footer{background:var(--navy); color:#c8d1e6; padding:56px 0 24px;}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:36px;}
.foot-col h5{color:#fff; font-size:14.5px; font-weight:700; margin-bottom:16px; letter-spacing:.01em;}
.foot-col li{font-size:13px; margin-bottom:10px; color:#aab6cf; display:flex; align-items:center; gap:8px;}
.foot-col li .icon{width:14px; height:14px; color:#6f82ac; flex-shrink:0;}
.foot-col a{transition:color 0.2s;}
.foot-col a:hover{color:#fff;}
.profile{display:flex; gap:12px; align-items:center;}
.avatar{width:52px; height:52px; border-radius:50%; background:#1c4fa0; display:flex; align-items:center; justify-content:center; font-weight:800; color:#fff; flex-shrink:0; font-size:18px; overflow:hidden;}
.avatar img{width:100%; height:100%; object-fit:cover;}
.btn-maps { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:rgba(255,255,255,0.1); color:#fff !important; border:1px solid rgba(255,255,255,0.25); padding:10px 16px; border-radius:8px; font-size:12.5px; font-weight:700; width:100%; }
.social-row{display:flex; gap:10px; margin-top:16px;}
.social-row a{width:34px; height:34px; border-radius:8px; background:#16264a; display:flex; align-items:center; justify-content:center; color:#c8d1e6;}
.foot-bottom{border-top:1px solid #1e2f52; margin-top:40px; padding-top:20px; display:flex; justify-content:space-between; font-size:12px; color:#7b88a8;}

@media(max-width:1024px){
  .models-grid{grid-template-columns:repeat(2,1fr);}
  .promo-sim{grid-template-columns:1fr;}
  .test-grid{grid-template-columns:repeat(2,1fr);}
  .art-grid{grid-template-columns:repeat(2,1fr);}
  .foot-grid{grid-template-columns:repeat(2,1fr); gap:32px;}
  .nav-links{display:none;}
  .nav .desktop-wa{display:none;}
  .mobile-toggle{display:flex;}
  .hero-arrow{display:none;}
}

@media(max-width:768px){
  .hero h1{font-size:32px;}
  .features-grid{
    grid-template-columns:repeat(2, 1fr) !important;
    gap:14px 12px !important;
  }
  .feature{padding:12px; gap:10px;}
  .feature .icon-badge{width:34px; height:34px; border-radius:8px;}
  .feature .icon-badge svg{width:18px; height:18px;}
  .feature h4{font-size:13px;}
  .feature p{font-size:11px;}

  .models-grid{grid-template-columns:1fr;}
  .art-grid{grid-template-columns:1fr;}
  .promo-grid-items{grid-template-columns:1fr;}

  .test-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 16px !important;
    padding: 10px 4px 24px 4px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    scrollbar-width: thin;
    cursor: grab;
  }
  .test-grid:active {
    cursor: grabbing;
  }
  .test-grid::-webkit-scrollbar{
    height: 6px;
  }
  .test-grid::-webkit-scrollbar-track{
    background: #e2e8f0;
    border-radius: 10px;
  }
  .test-grid::-webkit-scrollbar-thumb{
    background: var(--blue);
    border-radius: 10px;
  }
  .test-grid .test-card{
    flex: 0 0 85% !important;
    min-width: 85% !important;
    max-width: 85% !important;
    flex-shrink: 0 !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    margin-right: 0 !important;
  }
  .test-photo{height:200px;}
}

@media(max-width:600px){
  .foot-grid{grid-template-columns:1fr; gap:28px;}
  .foot-bottom{flex-direction:column; text-align:center; gap:10px;}
}
