/* ============================================================
   LANDING PAGE — SoundSolution Pro (profil perusahaan)
   Halaman publik di root (index.html). Berdiri sendiri:
   tidak bergantung pada css/style.css milik aplikasi.
   Warna mengikuti tema app: --primary #2563eb.
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --wa: #25d366;
  --wa-dark: #1ebe5a;
  --dark: #0b1220;
  --navy: #0f1e3d;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand-name, .hero h1 { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); background: var(--primary-light);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--dark); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .35); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 12px 26px rgba(37, 99, 235, .45); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-size: 19px; font-weight: 800; color: var(--dark); letter-spacing: -.01em; }
.brand-name span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--text); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--primary); transition: width .2s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--dark); cursor: pointer; padding: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 80% -10%, #1e3a8a 0%, transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--dark) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .6;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 92px 0 100px; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: #bfdbfe; background: rgba(37, 99, 235, .18); border: 1px solid rgba(59, 130, 246, .35);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { color: #60a5fa; }
.hero p.lead { margin-top: 18px; font-size: clamp(16px, 2vw, 19px); color: #cbd5e1; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 46px; }
.hero-stats .stat b { display: block; font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 800; color: #fff; }
.hero-stats .stat span { font-size: 13.5px; color: #94a3b8; }

/* Dekorasi equalizer (tema sound) */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.eq-card {
  width: 100%; max-width: 360px; aspect-ratio: 1 / 1; border-radius: 24px;
  background: linear-gradient(145deg, rgba(37, 99, 235, .18), rgba(255, 255, 255, .04));
  border: 1px solid rgba(148, 163, 184, .25); box-shadow: var(--shadow-lg);
  display: flex; align-items: flex-end; justify-content: center; gap: 9px; padding: 42px;
  backdrop-filter: blur(6px);
}
.eq-card .bar { width: 14px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #93c5fd, #2563eb); animation: eq 1.1s ease-in-out infinite; }
.eq-card .bar:nth-child(1) { height: 40%; animation-delay: -.2s; }
.eq-card .bar:nth-child(2) { height: 72%; animation-delay: -.5s; }
.eq-card .bar:nth-child(3) { height: 96%; animation-delay: -.1s; }
.eq-card .bar:nth-child(4) { height: 58%; animation-delay: -.7s; }
.eq-card .bar:nth-child(5) { height: 84%; animation-delay: -.35s; }
.eq-card .bar:nth-child(6) { height: 48%; animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .eq-card .bar { animation: none; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-copy h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.about-copy p { color: var(--muted); margin-bottom: 14px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.point { display: flex; gap: 12px; }
.point i { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); font-size: 17px; }
.point b { display: block; font-size: 15px; color: var(--dark); }
.point span { font-size: 13.5px; color: var(--muted); }
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); text-align: center; }
.about-stat b { display: block; font-family: 'Poppins', sans-serif; font-size: 34px; font-weight: 800; color: var(--primary); }
.about-stat span { font-size: 13.5px; color: var(--muted); }
.about-stat:nth-child(even) { margin-top: 24px; }

/* ---------- Services ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.service-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; color: #fff; background: linear-gradient(145deg, var(--primary), var(--primary-dark)); margin-bottom: 18px; box-shadow: 0 8px 18px rgba(37, 99, 235, .28); }
.service-card h3 { font-size: 19px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  border: 1px dashed #cbd5e1; background:
    repeating-linear-gradient(45deg, #eef2f7 0 12px, #e7edf5 12px 24px);
  display: grid; place-items: center; color: #94a3b8; transition: transform .2s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item .ph { text-align: center; font-size: 13px; }
.gallery-item .ph i { font-size: 30px; display: block; margin-bottom: 8px; opacity: .7; }
.gallery-note { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.testi-stars { color: #f59e0b; margin-bottom: 12px; font-size: 14px; }
.testi-card p { color: var(--text); font-style: italic; margin-bottom: 20px; }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-weight: 700; }
.testi-who b { display: block; font-size: 15px; color: var(--dark); }
.testi-who span { font-size: 13px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; }
.contact-item i { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); font-size: 18px; }
.contact-item b { display: block; font-size: 15px; color: var(--dark); }
.contact-item span, .contact-item a { color: var(--muted); font-size: 14.5px; }
.contact-item a:hover { color: var(--primary); }
.contact-social { display: flex; gap: 12px; margin-top: 8px; }
.contact-social a { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--muted); font-size: 17px; transition: all .2s ease; }
.contact-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.contact-card h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.map-placeholder {
  flex: 1; min-height: 190px; border-radius: 12px; border: 1px dashed #cbd5e1;
  background: repeating-linear-gradient(45deg, #eef2f7 0 12px, #e7edf5 12px 24px);
  display: grid; place-items: center; color: #94a3b8; text-align: center; font-size: 13px; margin-bottom: 20px;
}
.map-placeholder i { font-size: 28px; display: block; margin-bottom: 8px; opacity: .7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cbd5e1; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand b { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 800; color: #fff; }
.footer-brand b span { color: #60a5fa; }
.footer-col p { font-size: 14px; color: #94a3b8; max-width: 320px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; color: #94a3b8; }
.footer-col ul a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #cbd5e1; transition: all .2s ease; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: #94a3b8; }
.footer-bottom a { color: #cbd5e1; }
.footer-bottom a:hover { color: #fff; }

/* Tombol WhatsApp mengambang */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 27px; box-shadow: 0 10px 26px rgba(37, 211, 102, .5); transition: transform .2s ease; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 72px 0 80px; }
  .hero-visual { order: -1; }
  .eq-card { max-width: 300px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-cards, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 4 / 3; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }

  /* ── Anti-geser-samping ──────────────────────────────────────────
     Tombol .btn memakai white-space:nowrap. Pada kartu kontak, teks
     "Minta Penawaran via WhatsApp" membuat min-content kartu = 389px,
     sehingga kolom grid ikut melebar 389px di layar 375px → seluruh
     halaman bisa digeser ke samping. Di HP tombol boleh membungkus. */
  .btn-lg { white-space: normal; text-align: center; }
  .contact-card { padding: 22px 18px; }
  .contact-grid > *, .about-grid > *, .footer-grid > * { min-width: 0; }
  .contact-item { min-width: 0; }
  .contact-item > div { min-width: 0; }
  .contact-item span, .contact-item a { overflow-wrap: anywhere; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 22px; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn-outline { display: none; }
  .grid-cards, .testi-grid, .gallery-grid, .about-points, .about-visual { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-stat:nth-child(even) { margin-top: 0; }
}
@media (max-width: 480px) {
  /* ── Header HP kecil (≤360px) ────────────────────────────────────
     Brand (154px) + tombol "Masuk" (119px) + tombol menu tidak muat di
     layar 320px, sehingga tombol ☰ terpotong di tepi kanan dan sulit
     ditekan. Kecilkan brand & tombol, dan izinkan keduanya menyusut. */
  .nav { gap: 8px; }
  .brand { min-width: 0; gap: 8px; flex-shrink: 1; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-actions { gap: 6px; flex-shrink: 0; }
  .nav-actions .btn-primary { padding: 9px 12px; font-size: 13px; }
  .nav-toggle { padding: 6px 2px; }

  .grid-cards, .testi-grid, .about-points { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px 30px; }
  .hero-stats .stat b { font-size: 25px; }
}
