/*
Theme Name:        Bernard Nainggolan & Partners (SIP Law Firm Style)
Theme URI:         https://bernardnainggolan.com/
Author:            PT Kawan Muda Teknologi
Author URI:        https://wandatekno.co.id/
Description:       Ultra-lightweight premium law firm theme. Montserrat + Plus Jakarta Sans, Navy Slate & Gold palette. No page builders.
Version:           3.0.0
Text Domain:       bernard-lawyer
*/

:root {
  --primary: #111827;
  --primary-dark: #0b0f19;
  --primary-soft: #131c2e;
  --gold: #c98900;
  --gold-light: #d9a83a;
  --gold-dark: #a36f00;
  --gold-tint: rgba(201, 137, 0, 0.08);
  --bg: #ffffff;
  --bg-slate: #f8f9fb;
  --text-dark: #111827;
  --text-body: #374151;
  --text-muted: #6b7280;
  --border: #e6e8ec;
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --container: 1240px;
  --gutter: 2rem;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,0.04), 0 1px 3px rgba(17,24,39,0.06);
  --shadow-md: 0 4px 12px rgba(17,24,39,0.06), 0 2px 4px rgba(17,24,39,0.04);
  --shadow-lg: 0 18px 40px rgba(17,24,39,0.10);
  --section-y: 5.5rem;
  --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.3rem, 3.6vw, 3.4rem); line-height: 1.14; }
h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; }
a { color: var(--gold-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0; }
.section--slate { background: var(--bg-slate); }

/* ---------- Topbar ---------- */
.site-topbar {
  background: var(--primary-dark);
  color: #9ca3af;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}
.site-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.topbar-info, .topbar-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
}
.topbar-info span, .topbar-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
  font-size: 0.8125rem;
}
.topbar-info a:hover { color: var(--gold-light); }
.topbar-info svg, .topbar-meta svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.75; }
.topbar-meta { color: #94a3b8; font-size: 0.8125rem; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(11, 15, 25, 0.97);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--gold);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}
.site-branding { flex-shrink: 0; }
.site-title-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.15;
  white-space: nowrap;
}
.site-title-text span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.nav-wrapper { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.main-navigation ul { display: flex; align-items: center; gap: 0.1rem; }
.main-navigation a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  color: #e5e7eb;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--gold-light);
  background: rgba(255,255,255,0.07);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}
.btn-cta {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  box-shadow: 0 4px 12px rgba(201,137,0,0.22);
}
.btn-cta:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(201,137,0,0.3);
}
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff !important; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff !important; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-lg { padding: 0.85rem 1.9rem; font-size: 0.82rem; }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 88% 8%, rgba(201,137,0,0.18) 0%, rgba(201,137,0,0) 52%),
    linear-gradient(140deg, #111827 0%, #0b0f19 58%, #131c2e 100%);
  color: #fff;
  padding: 4.5rem 0 6.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}
.hero-label::before { content: ''; width: 28px; height: 2px; background: var(--gold-light); }
.hero h1 { color: #fff; margin-bottom: 1.35rem; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-lead {
  max-width: 40rem;
  margin-bottom: 2.25rem;
  color: #cbd5e1;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.75rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 3rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}
.hero-stat span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #94a3b8;
}
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 600;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: auto -0.85rem -0.85rem auto;
  width: 55%;
  height: 55%;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) 0;
  z-index: -1;
}

/* ---------- Feature cards ---------- */
.feature-strip { margin-top: -3.5rem; position: relative; z-index: 5; padding-bottom: 5rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.feature-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 30px rgba(17,24,39,0.08);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(17,24,39,0.14); border-top-color: var(--primary); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.35rem;
  border-radius: 10px;
  background: var(--gold-tint);
  color: var(--gold-dark);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.65rem; }
.feature-card p { flex-grow: 1; margin-bottom: 1.35rem; color: var(--text-muted); font-size: 0.925rem; line-height: 1.65; }
.link-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.link-arrow:hover { gap: 0.7rem; color: var(--gold); }

/* ---------- Section heading ---------- */
.section-head { max-width: 46rem; margin-bottom: 3.25rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--gold-dark);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}
.section-head h2 { padding-bottom: 0.85rem; position: relative; }
.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--gold);
}
.section-head.center h2::after { left: 50%; transform: translateX(-50%); }
.section-head p { margin-top: 1rem; margin-bottom: 0; color: var(--text-muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: center; }
.about-visual { position: relative; }
.about-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 710 / 561;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  right: -1.25rem;
  bottom: -1.25rem;
  min-width: 170px;
  padding: 1.35rem 1.5rem;
  background: var(--primary);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-badge .num {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-light);
}
.about-badge .txt {
  margin-top: 0.35rem;
  color: #cbd5e1;
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.about-copy p { color: var(--text-body); }
.about-points { margin: 1.75rem 0 2rem; display: grid; gap: 0.85rem; }
.about-points li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; }
.about-points svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.28rem; color: var(--gold); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
}
.stat-item span {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Practice ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.practice-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.practice-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-lg); }
.practice-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 870 / 450;
  object-fit: cover;
}
.practice-body { display: flex; flex-direction: column; flex-grow: 1; padding: 1.75rem; }
.practice-body h3 { margin-bottom: 0.7rem; font-size: 1.15rem; }
.practice-body p { flex-grow: 1; margin-bottom: 1.35rem; color: var(--text-muted); font-size: 0.925rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-lg); }
.team-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 370 / 478;
  object-fit: cover;
  object-position: center 12%;
}
.team-body { padding: 1.5rem 1.25rem; }
.team-body h3 { font-size: 1rem; line-height: 1.35; margin-bottom: 0.65rem; }
.team-role {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #f1f3f6;
  color: #475569;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ---------- Clients ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem 2rem;
  align-items: center;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0.25rem;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}
.client-logo:hover { filter: grayscale(0%); opacity: 1; }
.client-logo img {
  max-height: 54px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Publications ---------- */
.books-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.book-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(17,24,39,0.07);
  transition: var(--transition);
}
.book-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(17,24,39,0.12); border-color: var(--gold); }
.book-card img { width: 100%; height: auto; max-height: 300px; object-fit: contain; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(circle at 12% 120%, rgba(201,137,0,0.22) 0%, rgba(201,137,0,0) 55%),
    linear-gradient(135deg, #111827 0%, #0b0f19 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: 4rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.cta-copy { max-width: 46rem; }
.cta-copy h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-copy p { margin: 0; color: #cbd5e1; font-size: 1.05rem; }
.cta-actions { display: flex; flex-direction: column; gap: 0.85rem; flex-shrink: 0; }
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}
.cta-phone svg { width: 18px; height: 18px; color: var(--gold-light); }

/* ---------- Page banner / content ---------- */
.page-banner {
  background: linear-gradient(135deg, #111827 0%, #0b0f19 100%);
  border-bottom: 3px solid var(--gold);
  padding: 3.5rem 0;
  color: #fff;
}
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.breadcrumb { margin-top: 0.5rem; color: #94a3b8; font-size: 0.875rem; }
.breadcrumb a { color: var(--gold-light); }

.site-main { padding: var(--section-y) 0; min-height: 50vh; }
.entry-content { font-size: 1.05rem; line-height: 1.8; }
.entry-content h2 { margin: 2.5rem 0 1rem; }
.entry-content h3 { margin: 2rem 0 0.75rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul { margin: 0 0 1.25rem 1.25rem; list-style: disc; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content img { border-radius: var(--radius); margin: 1rem 0; }
.entry-content a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3.25rem;
}
.footer-widget h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  padding-bottom: 0.6rem;
  position: relative;
}
.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--gold);
}
.footer-widget p { font-size: 0.9rem; line-height: 1.75; }
.footer-widget li { margin-bottom: 0.7rem; font-size: 0.9rem; }
.footer-widget a { color: #cbd5e1; }
.footer-widget a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 0.65rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.28rem; color: var(--gold-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.84rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 460px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .site-topbar .container { flex-wrap: wrap; gap: 0.5rem; }
  .topbar-info, .topbar-meta { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 860px) {
  :root { --section-y: 3.75rem; --gutter: 1.25rem; }
  .header-row { flex-wrap: wrap; }
  .nav-wrapper { flex-grow: 1; justify-content: flex-end; }
  .main-navigation {
    display: none;
    order: 3;
    width: 100%;
    margin-top: 0.85rem;
    padding: 1rem;
    background: var(--primary-soft);
    border-radius: var(--radius);
  }
  .main-navigation.is-active { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .main-navigation a { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
  .mobile-toggle { display: block; }
  .hero { padding: 3rem 0 5rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .hero-stat strong { font-size: 1.35rem; }
  .feature-strip { margin-top: -2.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .books-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .about-badge { right: 1rem; bottom: -1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .site-header .btn-cta { display: none; }
  .topbar-meta { display: none; }
  .site-topbar .container { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .topbar-info { flex-wrap: wrap; white-space: normal; gap: 0.3rem 1.1rem; }
  .topbar-info span, .topbar-info a { font-size: 0.78rem; }
}
