/* RM Global Law Firm — Precision Chambers */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --navy: #0D1E38;
  --navy-deep: #060E1A;
  --navy-mid: #091628;
  --navy-line: #1a2d4a;
  --gold: #B8963E;
  --gold-hover: #C8A84E;
  --gold-soft: rgba(184, 150, 62, 0.12);
  --white: #FFFFFF;
  --cream: #F5F0E8;
  --gray: #6B7280;
  --muted: #9aacbf;
  --text-light: #7a8fa8;
  --border: #E5E7EB;
  --light: #F3F4F6;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --topbar-h: 40px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.container-wide {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

body.nav-open { overflow: hidden; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 400;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: top 0.25s;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--white); outline-offset: 2px; }

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Topbar —— */
.topbar {
  background: var(--navy-deep);
  color: #8a9bb0;
  font-size: 12px;
  letter-spacing: 0.02em;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  gap: 16px;
}
.topbar-left { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.topbar-left a { color: #8a9bb0; transition: color 0.25s; }
.topbar-left a:hover { color: var(--gold); }
.topbar-social { display: flex; gap: 8px; }
.social-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--navy-line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a9bb0;
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.social-icon svg { width: 12px; height: 12px; fill: currentColor; }

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13, 30, 56, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 45, 74, 0.8);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(6, 14, 26, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.nav-brand-text { display: flex; flex-direction: column; gap: 2px; }
.nav-brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.nav-brand-sub {
  font-size: 10px;
  color: #6a7d94;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: #b8c4d4;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  position: relative;
  transition: color 0.25s;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active { color: var(--gold); }
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  padding: 11px 20px !important;
  margin-left: 8px;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s !important;
}
.nav-cta:hover {
  background: var(--gold-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 150, 62, 0.35);
}
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--navy-line);
  color: var(--gold);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.25s;
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 28px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184, 150, 62, 0.35);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(184, 150, 62, 0.45);
  color: var(--gold);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.btn-navy-outline {
  background: transparent;
  border: 1px solid var(--navy-line);
  color: var(--navy);
}
.btn-navy-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* —— Sections —— */
.section { padding: 100px 0; }
.section-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.section-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 48px;
}

/* —— Page header —— */
.page-header {
  background: var(--navy);
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 40%, rgba(184, 150, 62, 0.08) 0%, transparent 55%),
    linear-gradient(135deg, rgba(6, 14, 26, 0.4) 0%, transparent 50%);
  pointer-events: none;
}
.page-header-content { position: relative; z-index: 1; max-width: 720px; }
.page-header-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}
.page-header-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.page-header h1 em {
  font-style: italic;
  color: var(--gold);
}
.page-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 580px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h) - var(--nav-h));
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 14, 26, 0.94) 0%, rgba(13, 30, 56, 0.82) 45%, rgba(13, 30, 56, 0.55) 100%),
    url('../images/hero-bg.jpg') center / cover no-repeat;
  transform: scale(1.02);
  animation: heroKen 18s ease-in-out infinite alternate;
}
@keyframes heroKen {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}
.hero-map {
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Cpath fill='none' stroke='%23B8963E' stroke-opacity='0.07' stroke-width='1' d='M50 200 Q200 80 400 200 T750 180'/%3E%3Ccircle cx='180' cy='160' r='3' fill='%23B8963E' fill-opacity='0.15'/%3E%3Ccircle cx='420' cy='200' r='3' fill='%23B8963E' fill-opacity='0.15'/%3E%3Ccircle cx='620' cy='170' r='3' fill='%23B8963E' fill-opacity='0.15'/%3E%3C/svg%3E")
    center / cover no-repeat;
  pointer-events: none;
  opacity: 0.9;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 72px auto;
  max-width: 720px;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  display: inline;
}
.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
  opacity: 0.7;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  border-top: 1px solid rgba(26, 45, 74, 0.9);
  padding-top: 36px;
}
.hero-stat-value {
  font-family: var(--serif);
  font-size: 1.85rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 11px;
  color: #6a7d94;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* —— Pillars —— */
.pillars { background: var(--cream); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--white);
  padding: 40px 32px;
  border-top: 3px solid transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  position: relative;
}
.pillar:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(13, 30, 56, 0.1);
  border-top-color: var(--gold);
}
.pillar-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
}
.pillar p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 24px;
}
.pillar-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s var(--ease);
}
.pillar:hover .pillar-link { gap: 14px; }

/* —— Why —— */
.why { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.why-item {
  background: var(--white);
  padding: 40px 32px;
  transition: background 0.35s;
}
.why-item:hover { background: var(--cream); }
.why-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
  transition: background 0.3s, color 0.3s;
}
.why-item:hover .why-icon {
  background: var(--gold);
  color: var(--navy);
}
.why-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.why-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}
.why-item p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

/* —— CTA band —— */
.cta-band {
  background: var(--gold);
  padding: 72px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}
.cta-band p {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.55);
  max-width: 480px;
}

/* —— Careers / Portal —— */
.careers-bar {
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  padding: 48px 0;
}
.careers-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.careers-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}
.careers-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 8px;
}
.careers-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  max-width: 540px;
  line-height: 1.7;
}
.careers-link {
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 26px;
  white-space: nowrap;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.careers-link:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.portal-bar {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-line);
  padding: 22px 0;
}
.portal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.portal-inner p { font-size: 13px; color: #5a6f88; }
.portal-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--navy-line);
  padding: 10px 18px;
  transition: border-color 0.25s, transform 0.25s;
}
.portal-link:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-line);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.footer-brand-sub {
  font-size: 10px;
  color: #3d4f66;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 13px;
  color: #4a5d75;
  line-height: 1.8;
  max-width: 300px;
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: #4a5d75;
  transition: color 0.25s, padding-left 0.25s;
}
.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 4px;
}
.footer-contact-note {
  margin-top: 16px;
  font-size: 12px;
  color: #3d4f66;
  line-height: 1.7;
}
.footer-policies {
  border-top: 1px solid var(--navy-line);
  padding: 40px 0 32px;
  margin-bottom: 24px;
}
.footer-policies-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-policies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.policy-title {
  font-size: 11px;
  font-weight: 700;
  color: #7a8fa8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.policy-text {
  font-size: 12px;
  color: #3d4f66;
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid var(--navy-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: #3d4f66; line-height: 1.6; }
.footer-disclaimer {
  font-size: 11px;
  color: #2a3a4e;
  max-width: 700px;
  line-height: 1.7;
}

/* —— About —— */
.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.headshot-frame {
  background: var(--navy-mid);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  border: 1px solid var(--navy-line);
  position: relative;
  overflow: hidden;
}
.headshot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.headshot-frame:not(.is-placeholder) .headshot-fallback { display: none; }
.headshot-frame.is-placeholder .headshot-img { display: none; }
.headshot-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.headshot-placeholder-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 16px;
}
.headshot-placeholder-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.headshot-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.headshot-hint { font-size: 13px; color: #5a6f88; line-height: 1.6; }
.cred-card {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 40px 32px;
}
.cred-card .section-label { margin-bottom: 8px; }
.cred-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 4px;
}
.cred-title { font-size: 14px; color: #aaa; margin-bottom: 28px; }
.cred-divider { height: 1px; background: var(--navy-line); margin-bottom: 24px; }
.cred-block { margin-bottom: 20px; }
.cred-block-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #556;
  margin-bottom: 4px;
}
.cred-block-value { font-size: 14px; color: #ccc; line-height: 1.5; }
.cred-block-sub { font-size: 12px; color: #667; }
.quote-bar {
  margin-top: 2px;
  padding: 22px 26px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
}
.quote-bar p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  font-style: italic;
}
.about-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  margin: 36px 0;
}
.principle {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.principle:nth-child(2n) { border-right: none; }
.principle:nth-child(n+3) { border-bottom: none; }
.principle-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}
.principle p { font-size: 14px; color: #555; line-height: 1.7; }
.about-body p {
  font-size: 1rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* —— Services —— */
.services-legal { background: var(--light); }
.tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.tab-btn {
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  transition: color 0.25s, border-color 0.25s;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.service-banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 32px;
  filter: saturate(0.85);
}
.service-panel { display: none; animation: fadePanel 0.4s var(--ease); }
.service-panel.active { display: block; }
@keyframes fadePanel {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.service-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.service-box {
  background: var(--white);
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  transition: box-shadow 0.35s, transform 0.35s var(--ease);
}
.service-box:hover {
  box-shadow: 0 12px 32px rgba(13, 30, 56, 0.08);
  transform: translateY(-3px);
}
.service-box h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-box > p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}
.check-list li {
  font-size: 14px;
  color: #444;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '›';
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  flex-shrink: 0;
}
.serve-banner {
  background: var(--navy);
  border-left: 3px solid var(--gold);
  padding: 24px 32px;
}
.serve-banner-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}
.serve-banner p { font-size: 14px; color: var(--muted); line-height: 1.7; }

.consultancy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.consult-card {
  background: var(--light);
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s;
}
.consult-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(13, 30, 56, 0.08);
  background: var(--white);
}
.consult-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}
.consult-card > p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* —— Resources —— */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.resources-grid .resource-card:nth-child(4) {
  grid-column: 1;
}
.resources-grid .resource-card:nth-child(5) {
  grid-column: 2;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(13, 30, 56, 0.1);
  border-color: rgba(184, 150, 62, 0.35);
}
.resource-thumb {
  height: 160px;
  overflow: hidden;
  background: var(--navy);
  flex-shrink: 0;
}
.resource-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.resource-card:hover .resource-thumb img { transform: scale(1.06); }
.resource-body {
  padding: 28px 24px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.resource-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.resource-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
  min-height: 2.6em;
}
.resource-body p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}
.resource-open {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  text-align: left;
  padding: 0;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s, color 0.25s;
  font-family: var(--sans);
}
.resource-open:hover {
  gap: 12px;
  color: var(--navy);
}

/* Article reading modal — wide side-by-side, full image visible */
.article-modal[hidden] { display: none !important; }
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 26, 0.72);
  backdrop-filter: blur(4px);
}
.article-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  height: min(640px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--navy-line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.35s var(--ease);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}
.article-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.article-modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.article-modal-media {
  background: #0a1524;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  padding: 0;
}
.article-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.article-modal-content {
  padding: 36px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  overflow-y: auto;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
}
.article-modal-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}
.article-modal-content #article-modal-body {
  font-size: 15px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 20px;
}
.article-modal-note {
  font-size: 12px;
  color: #778;
  line-height: 1.65;
  padding: 14px 16px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  margin-bottom: 24px;
}
.article-modal-content .btn {
  align-self: flex-start;
}
body.article-open { overflow: hidden; }

@media (max-width: 900px) {
  .article-modal-panel {
    grid-template-columns: 1fr;
    width: min(640px, 96vw);
    height: auto;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
  .article-modal-media {
    height: auto;
    min-height: 220px;
    max-height: 280px;
    padding: 12px;
  }
  .article-modal-media img {
    width: 100%;
    height: auto;
    max-height: 256px;
    object-fit: contain;
  }
  .article-modal-content {
    height: auto;
    padding: 24px 22px 28px;
    justify-content: flex-start;
  }
  .resource-body h3 { min-height: 0; }
}
.resources-disclaimer {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.contact-detail-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-detail a,
.contact-detail span {
  font-size: 15px;
  color: var(--navy);
  transition: color 0.25s;
}
.contact-detail a:hover { color: var(--gold); }
.dc-office {
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.dc-office img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.contact-note {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  margin: 24px 0;
  padding: 16px 18px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
}
.form-disclaimer {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
  padding: 16px 18px;
  background: #faf8f4;
  border: 1px solid var(--border);
}

/* Secure inquiry panel (replaces cramped in-page iframe) */
.inquiry-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 40px 36px;
  box-shadow: 0 18px 48px rgba(13, 30, 56, 0.06);
}
.inquiry-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}
.inquiry-lead {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 24px;
}
.inquiry-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.inquiry-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--navy);
  padding: 12px 14px;
  background: var(--cream);
  border-left: 2px solid var(--gold);
}
.inquiry-steps li span {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  min-width: 28px;
}
.inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.inquiry-actions .btn {
  flex: 1 1 220px;
  text-align: center;
}
.inquiry-footnote {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}
.inquiry-footnote a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inquiry-footnote a:hover { color: var(--navy); }

/* Full-screen MyCase modal */
.inquiry-modal[hidden] { display: none !important; }
.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
.inquiry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 26, 0.72);
  backdrop-filter: blur(4px);
}
.inquiry-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  height: 100%;
  max-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.35s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.inquiry-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--navy);
  flex-shrink: 0;
}
.inquiry-modal-header .section-label { margin-bottom: 6px; }
.inquiry-modal-header h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--white);
  margin: 0;
}
.inquiry-modal-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.inquiry-modal-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inquiry-modal-link:hover { color: var(--gold-hover); }
.inquiry-modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--navy-line);
  background: transparent;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.inquiry-modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184, 150, 62, 0.08);
}
.inquiry-modal-disclaimer {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  padding: 12px 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  margin: 0;
}
.inquiry-modal-frame {
  flex: 1;
  min-height: 0;
  background: var(--light);
}
.inquiry-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: var(--white);
}
body.inquiry-open { overflow: hidden; }

@media (min-width: 901px) {
  .inquiry-modal {
    padding: 28px;
    align-items: center;
  }
  .inquiry-modal-panel {
    height: min(920px, calc(100vh - 56px));
    border: 1px solid var(--navy-line);
  }
}
.calendly-section { background: var(--navy); }
.calendly-section .section-label { color: var(--gold); }
.calendly-section .section-title { color: var(--white); }
.calendly-section .section-sub { color: var(--muted); }
.calendly-section .section-rule { background: var(--gold); }
.calendly-wrap {
  min-width: 320px;
  height: 700px;
  border: 1px solid var(--navy-line);
  overflow: hidden;
}

/* —— Responsive —— */
@media (max-width: 1000px) {
  .pillars-grid,
  .why-grid,
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .resources-grid .resource-card:nth-child(4),
  .resources-grid .resource-card:nth-child(5) {
    grid-column: auto;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-layout,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-cols,
  .consultancy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(6, 14, 26, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 28px;
    gap: 0;
    border-bottom: 1px solid var(--navy-line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(26, 45, 74, 0.6);
  }
  .nav-cta {
    margin: 16px 0 0 !important;
    text-align: center;
    justify-content: center;
  }
  .nav-brand-text { display: none; }
  .section { padding: 72px 0; }
  .hero-inner { margin: 56px auto; }
  .hero-stats { gap: 28px; }
  .pillars-grid,
  .why-grid,
  .resources-grid,
  .footer-policies-grid,
  .about-principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .principle { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .principle:last-child { border-bottom: none !important; }
  .cta-band-inner,
  .careers-inner,
  .portal-inner { flex-direction: column; align-items: flex-start; }
  .resources-grid .resource-card:nth-child(4),
  .resources-grid .resource-card:nth-child(5) {
    grid-column: auto;
  }
  .resources-grid .resource-card:last-child { grid-column: auto; }
}

@media (max-width: 560px) {
  .container,
  .container-wide,
  .nav,
  .topbar-inner,
  .hero-inner { width: calc(100% - 32px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .tab-btn { flex: 1; text-align: center; padding: 12px 14px; font-size: 11px; }
}
