/* ============================================================
   Rahim & Co - Peguambela & Peguamcara (Demo Webg)
   Mobile-first. Navy #14213D, emas #B4894D, putih.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/sourcesans-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #14213D;
  --navy-soft: #1D2C4F;
  --gold: #B4894D;
  --gold-soft: #C9A876;
  --ink: #22293A;
  --muted: #5B6377;
  --cream: #F7F4EE;
  --white: #FFFFFF;
  --line: #E3DED4;
  --line-navy: #2C3B5E;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --radius: 4px;
  --wrap: 1100px;
  --ribbon-h: 46px;
}

/* ---------- Reset asas ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;
  padding-bottom: var(--ribbon-h);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Tipografi ---------- */
h1, h2, h3, .brand, .footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.15rem); margin-bottom: 2.25rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.amp { color: var(--gold); }

/* ---------- Layout ---------- */
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }

.section { padding: 4rem 0; }
.section-cream { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-navy { background: var(--navy); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p, .section-navy address { color: #C9CFDD; }

.grid { display: grid; gap: 1.5rem; }

/* ---------- Butang ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }

.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); }

.btn-ghost { border-color: var(--line-navy); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn-navy { background: var(--navy); color: var(--white); margin-top: 2rem; }
.btn-navy:hover { background: var(--navy-soft); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line-navy);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; color: var(--gold-soft); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: 1px solid var(--line-navy);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
}

.nav-menu {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1rem;
}
.nav-menu.open { display: flex; }

.nav-menu a {
  color: #C9CFDD;
  padding: 0.55rem 0;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line-navy);
}
.nav-menu a:hover { color: var(--gold-soft); text-decoration: none; }
.nav-menu .btn { border-bottom: none; margin-top: 0.85rem; text-align: center; color: var(--white); }
.nav-menu .btn:hover { color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 4.5rem;
}

.hero-grid { display: grid; gap: 2.5rem; align-items: center; }

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }

.hero-sub { color: #C9CFDD; max-width: 34rem; margin-bottom: 2rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.25rem; }

.hero-note { font-size: 0.9rem; color: #9AA4BC; }

.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(280px, 70vw); }

/* ---------- Kad bidang amalan ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.card:hover { border-color: var(--gold-soft); }

.card .icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Pendekatan ---------- */
.approach { border-top: 1px solid var(--line-navy); padding-top: 1.5rem; }

.approach-num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.approach p { font-size: 0.98rem; }

/* ---------- Peguam ---------- */
.lawyers { gap: 2rem; }

.lawyer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.avatar { width: 88px; height: 88px; margin-bottom: 1.25rem; }

.lawyer-cred {
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.85rem;
}

.lawyer p:last-child { color: var(--muted); font-size: 0.98rem; }

/* ---------- Fee ---------- */
.fee-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fee-item { padding: 1.75rem 1.5rem; }
.fee-item + .fee-item { border-top: 1px solid var(--line); }
.fee-item p { color: var(--muted); font-size: 0.98rem; }

.fee-price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold) !important;
  margin: 0.25rem 0 0.75rem;
}

/* ---------- Testimoni ---------- */
.quote {
  border-left: 2px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.25rem;
}

.quote p {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }

.faq-item + .faq-item { border-top: 1px solid var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
}
.faq-q:hover { color: var(--gold); }

.faq-arrow { width: 16px; height: 16px; flex: 0 0 16px; color: var(--gold); transition: transform 0.2s ease; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a { display: none; padding: 0 1.35rem 1.25rem; }
.faq-item.open .faq-a { display: block; }
.faq-a p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Hubungi ---------- */
.contact-grid { gap: 2.5rem; }

.contact-grid h3 { margin-top: 1.5rem; }
.contact-grid h3:first-child { margin-top: 0; }

.contact-grid address { font-style: normal; margin-bottom: 0.5rem; }

.contact-cta {
  border: 1px solid var(--line-navy);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  align-self: start;
}
.contact-cta p { margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--line-navy);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-brand { color: var(--white); font-size: 1.25rem; margin-bottom: 0.35rem; }

.footer p { color: #9AA4BC; font-size: 0.92rem; }

.footer-note {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  font-size: 0.82rem !important;
  color: #7A87A5 !important;
}

/* ---------- Ribbon demo Webg ---------- */
.demo-ribbon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  min-height: var(--ribbon-h);
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  text-align: center;
}

.demo-ribbon p { color: var(--navy); font-size: 0.9rem; font-weight: 700; }

.demo-ribbon a { color: var(--navy); text-decoration: underline; }
.demo-ribbon a:hover { color: var(--white); }

/* ============================================================
   Tablet ke atas
   ============================================================ */
@media (min-width: 700px) {
  .section { padding: 5.5rem 0; }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .fee-box { display: grid; grid-template-columns: 1fr 1fr; }
  .fee-item + .fee-item { border-top: none; border-left: 1px solid var(--line); }
}

@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }

  .hero { padding: 6rem 0 6.5rem; }
  .hero-grid { grid-template-columns: 3fr 2fr; }

  .nav-toggle { display: none; }

  .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 1.75rem;
    padding-top: 0;
  }
  .nav-menu a { border-bottom: none; padding: 0; }
  .nav-menu .btn { margin-top: 0; padding: 0.6rem 1.25rem; }
}
