/* =========================================================
   Rajanya Bangunan - Stylesheet
   Material Bangunan Berkualitas, Harga Bersaing
   ========================================================= */

/* === Base Reset === */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --ink: #0a1233;
  --ink-soft: #4b5563;
  --line: #e3e6ee;
  --brand: #1a2a80;        /* navy biru dari logo */
  --brand-dark: #0f1a5c;
  --accent: #e30613;       /* merah dari logo */
  --accent-dark: #b8050f;
  --wa: #25d366;
  --wa-dark: #1ebe5b;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(10,18,51,0.06);
  --shadow-md: 0 8px 24px rgba(10,18,51,0.10);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* === Navigation === */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; color: var(--brand);
}

.brand-logo {
  height: 44px; width: auto; display: block;
}

.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}

.brand-text .top {
  color: var(--accent); font-weight: 800; font-size: 15px; letter-spacing: 0.5px;
}

.brand-text .bot {
  color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--wa-dark); }

.nav-toggle { display: none; }

/* === Hero === */
.hero {
  padding: 80px 0 64px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 42, 128, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  background: #e8ebf8;
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 18px; font-weight: 800; color: var(--brand);
}
.hero h1 span { color: var(--accent); }

.hero p.lead {
  font-size: 18px; color: var(--ink-soft);
  margin: 0 0 28px; max-width: 540px;
}

/* === Buttons === */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-wa { background: var(--wa); color: #fff; box-shadow: var(--shadow-md); }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }

/* === Trust Row === */
.trust-row {
  display: flex; gap: 24px; margin-top: 32px;
  flex-wrap: wrap; color: var(--ink-soft); font-size: 14px;
}
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-item svg { color: var(--accent); }

/* === Hero Card === */
.hero-card {
  background: linear-gradient(135deg, #fff, var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute; top: -2px; left: 24px; right: 24px; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 0 0 4px 4px;
}

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-bottom: 22px;
}
.stat {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 18px;
}
.stat-num {
  font-size: 26px; font-weight: 800;
  color: var(--brand); letter-spacing: -0.02em;
}
.stat-num-sm { font-size: 18px; }
.stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; color: var(--ink); font-size: 15px;
}
.checklist li svg {
  flex-shrink: 0; color: var(--wa); margin-top: 3px;
}

/* === Section Base === */
section { padding: 80px 0; }

.section-head {
  text-align: center; max-width: 680px;
  margin: 0 auto 48px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin: 0 0 14px; letter-spacing: -0.02em;
  font-weight: 800; color: var(--brand);
}
.section-head h2 span { color: var(--accent); }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

/* === Products === */
.products { background: var(--bg-soft); }

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.product-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  border-top: 3px solid var(--brand);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent);
}

.product-icon {
  width: 48px; height: 48px;
  border-radius: 12px; background: #e8ebf8;
  display: grid; place-items: center;
  color: var(--brand); margin-bottom: 16px;
  transition: background 0.15s ease, color 0.15s ease;
}
.product-card:hover .product-icon {
  background: #fde7e9; color: var(--accent);
}

.product-card h3 {
  margin: 0 0 8px; font-size: 18px;
  font-weight: 700; color: var(--brand);
}
.product-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; }

.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px; padding: 4px 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-soft);
}

/* === Steps (Cara Pesan) === */
.step-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.step {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  position: relative;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  margin-bottom: 14px;
}
.step:nth-child(even) .step-num { background: var(--accent); }
.step h3 {
  margin: 0 0 6px; font-size: 16px;
  font-weight: 700; color: var(--brand);
}
.step p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* === Testimoni === */
.testi { background: var(--bg-soft); }

.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.testi-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  margin: 0;
}
.stars {
  color: var(--accent); margin-bottom: 12px;
  letter-spacing: 2px; font-size: 16px;
}
.testi-text {
  font-size: 15px; color: var(--ink);
  margin: 0 0 18px; font-style: normal;
  border: none; padding: 0;
}
.testi-author {
  display: flex; align-items: center; gap: 12px;
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.testi-name { font-weight: 600; font-size: 14px; color: var(--brand); }
.testi-role { font-size: 13px; color: var(--ink-soft); }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }

details {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
details summary {
  padding: 20px 24px; font-weight: 600;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  font-size: 16px; color: var(--brand);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+'; font-size: 22px;
  color: var(--accent); font-weight: 400;
  transition: transform 0.2s ease;
}
details[open] summary::after { content: '\2212'; }
details > div {
  padding: 0 24px 22px;
  color: var(--ink-soft); font-size: 15px;
}

/* === CTA Banner === */
.cta-section { padding-top: 0; }

.cta-banner {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: 24px; padding: 56px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(227, 6, 19, 0.25), transparent 50%);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute; bottom: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 6, 19, 0.18), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 12px; letter-spacing: -0.02em;
  font-weight: 800; position: relative; color: #fff;
}
.cta-banner p {
  color: #cbd5e1; margin: 0 0 28px;
  font-size: 17px; position: relative;
}
.cta-banner .btn-wa { position: relative; }

/* === Footer === */
footer {
  background: #06092b; color: #cbd5e1;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
.footer-brand {
  color: #fff; font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.footer-brand img {
  height: 50px; width: auto;
  background: #fff; padding: 6px;
  border-radius: 8px;
}
footer p { margin: 0 0 8px; font-size: 14px; line-height: 1.7; }
footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; font-weight: 700; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 8px; font-size: 14px; }
footer ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #1f2552;
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #6b7299;
}

/* === Floating WhatsApp === */
.float-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease;
}
.float-wa:hover { transform: scale(1.08); }

/* === Responsive: Tablet === */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-grid,
  .step-grid,
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px; background: #fff;
    cursor: pointer; color: var(--brand);
  }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px;
  }
  .nav-links.open a {
    padding: 12px 0; border-bottom: 1px solid var(--line);
  }
  .nav-links.open a:last-child { border-bottom: none; }
}

/* === Responsive: Mobile === */
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .hero { padding: 56px 0 40px; }
  .product-grid,
  .step-grid,
  .testi-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .brand-logo { height: 38px; }
  .brand-text .top { font-size: 13px; }
  .brand-text .bot { font-size: 11px; }
  .float-wa { width: 56px; height: 56px; bottom: 16px; right: 16px; }
}

/* === Print friendly === */
@media print {
  .nav, .float-wa, .cta-section, footer { display: none; }
  body { color: #000; background: #fff; }
}
