/* =========================================================
   IDOLA — styles.css
   Edit warna utama di blok :root di bawah ini.
   ========================================================= */

:root {
  /* --- Warna utama (ubah di sini) --- */
  --navy:        #243468;   /* navy iDOLA — warna utama (diambil dari logo) */
  --navy-deep:   #1a2750;   /* navy lebih gelap untuk gradient */
  --teal:        #2f7fd1;   /* aksen aksi — biru cerah iDOLA */
  --teal-dark:   #1f5fa8;   /* biru aksi lebih gelap untuk hover */
  --sky:         #5b9bd5;   /* biru muda dari logo iDOLA */
  --sky-light:   #8bcae9;   /* biru langit terang dari logo */
  --sky-soft:    #eaf3fb;   /* biru sangat muda untuk background lembut */
  --white:       #ffffff;
  --bg:          #ffffff;   /* background utama */
  --bg-alt:      #eef4fb;   /* section background biru muda lembut */
  --ink:         #1d2a44;   /* warna teks utama */
  --ink-soft:    #5a6b86;   /* warna teks sekunder */
  --line:        #dde6f2;   /* garis / border kebiruan */
  --gold:        #e8b84b;   /* aksen badge */

  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 10px 30px rgba(36, 52, 104, 0.09);
  --shadow-lg:   0 20px 50px rgba(36, 52, 104, 0.16);
  --maxw:        1140px;
  --ease:        cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.15; color: var(--navy); font-weight: 600; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 8px 20px rgba(47,127,209,.32); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47,127,209,.42); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }
.btn-outline { background: transparent; color: var(--teal-dark); border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }

/* ===================== 1. NAVBAR ===================== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease);
  border-top: 3px solid var(--sky);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(36,52,104,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }

/* Logo image */
.logo { display: flex; align-items: center; }
.logo-img { height: 50px; width: auto; display: block; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--teal); transition: width .25s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== 2. HERO ===================== */
.hero { background: linear-gradient(170deg, var(--sky-soft) 0%, var(--bg) 60%), radial-gradient(ellipse at top right, rgba(91,155,213,.18), transparent 55%); padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 16px; }
.hero-copy h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 600; margin-bottom: 20px; }
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.trust-points { display: flex; flex-direction: column; gap: 10px; }
.trust-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); font-weight: 500; }
.check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(91,155,213,.18); color: var(--teal-dark); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; }
.hero-badge { position: absolute; bottom: -22px; left: -22px; background: linear-gradient(135deg, var(--navy), var(--sky)); color: var(--white); padding: 18px 24px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.hero-badge strong { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--sky-light); }
.hero-badge span { font-size: 13px; opacity: .85; }

/* ===================== SECTION GENERIC ===================== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.info-badge { display: inline-block; margin-top: 18px; background: rgba(232,184,75,.16); color: #9a7414; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* ===================== CARDS GENERIC ===================== */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cards-5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); position: relative; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cards-5 .card { padding: 26px 22px; }
.service-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, rgba(91,155,213,.22), rgba(139,202,233,.28)); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.service-card h3, .reason-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.cards-5 .service-card h3 { font-size: 1.06rem; }
.service-card p, .reason-card p { color: var(--ink-soft); font-size: .94rem; margin-bottom: 16px; }
.card-link { color: var(--teal-dark); font-weight: 600; font-size: .94rem; transition: color .2s; }
.card-link:hover { color: var(--teal); }
.tag { position: absolute; top: 16px; right: 16px; background: var(--gold); color: #4a3500; font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; }

/* ===================== TABS ===================== */
.tabs { display: flex; justify-content: center; gap: 6px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; margin: 0 auto 36px; max-width: 280px; }
.tab-btn { flex: 1; padding: 11px 28px; border: none; background: transparent; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-soft); cursor: pointer; transition: .2s var(--ease); }
.tab-btn.active { background: var(--navy); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===================== CAROUSEL ===================== */
.carousel { position: relative; padding: 0 0 44px; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 24px; transition: transform .45s var(--ease); will-change: transform; }
/* Tiap card menempati lebar sesuai jumlah tampil (desktop 3) — diatur via JS dengan flex-basis */
.carousel-track .estimate-card { flex: 0 0 auto; }
.carousel-btn {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--navy); font-size: 24px; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  transition: .2s var(--ease);
}
.carousel-btn:hover { background: var(--navy); color: var(--white); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn.prev { left: -14px; }
.carousel-btn.next { right: -14px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; position: absolute; bottom: 8px; left: 0; right: 0; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; transition: .2s; }
.carousel-dots button.active { background: var(--teal); width: 26px; border-radius: 999px; }

.estimate-card h3 { font-size: 1.12rem; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.estimate-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: .9rem; gap: 12px; }
.estimate-row span { color: var(--ink-soft); }
.estimate-row strong { color: var(--ink); font-weight: 600; text-align: right; }
.estimate-row.highlight strong { color: var(--teal-dark); }
.estimate-card .btn { margin-top: 14px; }
.disclaimer { font-size: .85rem; color: var(--ink-soft); text-align: center; max-width: 760px; margin: 24px auto 0; line-height: 1.5; }

/* ===================== MITRA (marquee strip) ===================== */
.mitra-marquee {
  position: relative; overflow: hidden; padding: 8px 0;
  /* fade tepi kiri & kanan agar logo masuk-keluar halus */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mitra-track { display: flex; gap: 18px; width: max-content; will-change: transform; }
.mitra-box {
  flex: 0 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 220px; height: 110px; display: flex; align-items: center; justify-content: center;
  padding: 22px 26px; box-shadow: 0 4px 14px rgba(13,36,64,.05);
}
.mitra-box.has-logo img { max-height: 52px; max-width: 88%; width: auto; object-fit: contain; }

/* ===================== FORM ===================== */
.form-wrap { max-width: 760px; }
.lead-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; align-items: end; }
.lead-form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); justify-content: flex-end; }
.lead-form input, .lead-form select { width: 100%; height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; font-family: inherit; font-weight: 400; color: var(--ink); background: var(--white); transition: border-color .2s; appearance: none; -webkit-appearance: none; }
/* panah kustom untuk select agar konsisten di semua browser */
.lead-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6b86' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
  text-overflow: ellipsis;
}
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--teal); }
.lead-form input.invalid, .lead-form select.invalid { border-color: #e05656; background: #fff5f5; }
.lead-form .btn { margin-top: 8px; }
.form-success { margin-top: 20px; padding: 16px 20px; background: rgba(47,127,209,.1); border: 1px solid rgba(47,127,209,.3); border-radius: var(--radius-sm); color: var(--teal-dark); font-weight: 500; font-size: 15px; }

/* ===================== STEPS ===================== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.step-num { font-family: 'Fraunces', serif; font-size: 1.7rem; font-weight: 700; color: var(--teal); display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: .88rem; color: var(--ink-soft); }

/* ===================== DOKUMEN ===================== */
.doc-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
.doc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.doc-card h3 { font-size: 1.2rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: .96rem; }
.note { text-align: center; color: var(--ink-soft); font-size: .9rem; margin: 26px auto 0; max-width: 680px; }

/* ===================== BANNER (ASURANSI) ===================== */
.banner { background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%); border-radius: 28px; padding: 56px; color: var(--white); position: relative; overflow: hidden; }
.banner::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(91,155,213,.3), transparent 70%); }
.banner-copy { max-width: 640px; position: relative; z-index: 1; }
.banner-copy h2 { color: var(--white); margin: 14px 0 16px; }
.banner-copy p { color: rgba(255,255,255,.82); margin-bottom: 14px; }
.banner-sub { font-size: .95rem; }
.banner .btn { margin-top: 12px; }

/* ===================== KONSULTASI ===================== */
.consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.consult-copy p { color: var(--ink-soft); margin: 14px 0 24px; }
.consult-list { display: flex; flex-direction: column; gap: 14px; }
.consult-list li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 500; box-shadow: var(--shadow); }

/* ===================== FAQ ===================== */
.faq-wrap { max-width: 800px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 24px; font-size: 1.02rem; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq-icon { font-size: 1.5rem; color: var(--teal); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 24px 20px; color: var(--ink-soft); font-size: .96rem; }

/* ===================== CTA FINAL ===================== */
.cta-final { background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%); }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,.82); margin-bottom: 30px; font-size: 1.08rem; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== FOOTER ===================== */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { background: var(--white); border-radius: 12px; padding: 12px 16px; display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 34px; width: auto; display: block; }
.footer-brand p { font-size: .92rem; line-height: 1.6; max-width: 320px; }
.footer-managed { margin-top: 12px; font-size: .82rem !important; color: rgba(255,255,255,.55) !important; font-style: italic; }
.footer-col h4 { color: var(--white); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: .92rem; color: rgba(255,255,255,.72); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--sky-light); }

/* Kontak: ikon + teks (WhatsApp, Email, Instagram, Facebook, TikTok) */
.contact-list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 16px; }
.footer-col .contact-item { display: flex; align-items: center; gap: 11px; margin-bottom: 0; }
.footer-col .contact-item span { margin-bottom: 0; }
.contact-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.contact-icon svg { width: 15px; height: 15px; color: var(--sky-light); }
.contact-item:hover .contact-icon { background: var(--sky); border-color: var(--sky); }
.contact-item:hover .contact-icon svg { color: var(--white); }
.area-text { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: 4px; }
.footer-bottom { padding-top: 26px; }
.footer-bottom .disclaimer { color: rgba(255,255,255,.55); text-align: left; margin: 0 0 14px; max-width: 100%; }
.copyright { font-size: .85rem; color: rgba(255,255,255,.5); }

/* ===================== FLOATING WHATSAPP ===================== */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s var(--ease); animation: pulse 2.4s infinite; }
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); } 70% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }

/* =========================================================
   RESPONSIVE — mobile-first breakpoints
   ========================================================= */

/* Tablet */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; max-width: 480px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .consult-grid { grid-template-columns: 1fr; gap: 32px; }
  .doc-columns { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .banner { padding: 40px 30px; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 80px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 0 24px;
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease), padding .35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav-links.open { max-height: 400px; padding: 12px 24px 20px; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .logo-img { height: 46px; }

  .cards-grid, .cards-5 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mitra-box { width: 170px; height: 90px; padding: 16px 18px; }
  .mitra-box.has-logo img { max-height: 42px; }
  .hero-badge { left: 12px; bottom: -18px; padding: 14px 18px; }
  .lead-form { padding: 24px 18px; }
  .section { padding: 56px 0; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }

  /* Carousel: tombol panah di dalam, agar tidak terpotong */
  .carousel-btn.prev { left: 2px; }
  .carousel-btn.next { right: 2px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 20px; }
  .carousel { padding-bottom: 40px; }

  /* Floating WA tidak menutupi tombol submit form */
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

/* Aksesibilitas: hormati reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
