/*
 * Fatimah Majidah & Associates — Premium Dark System
 * Loaded after the legacy theme so the CMS markup stays compatible.
 */

body.fma-modern {
  --fma-ink: #f4f0e7;
  --fma-ink-2: #d8d1c3;
  --fma-green: #4ca98a;
  --fma-green-dark: #33866e;
  --fma-mint: rgba(76, 169, 138, .13);
  --fma-ivory: #0b1513;
  --fma-paper: #08110f;
  --fma-gold: #d4b574;
  --fma-gold-bright: #efd79d;
  --fma-text: #b9c2bd;
  --fma-muted: #86928d;
  --fma-line: rgba(238, 226, 202, .13);
  --fma-surface: #0d1917;
  --fma-surface-2: #111f1c;
  --fma-shadow: 0 28px 80px rgba(0, 0, 0, .38);
  background: var(--fma-paper);
  color: var(--fma-text);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.fma-modern::before {
  background:
    radial-gradient(circle at 8% 12%, rgba(76, 169, 138, .08), transparent 28%),
    radial-gradient(circle at 94% 4%, rgba(212, 181, 116, .06), transparent 24%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.fma-modern ::selection { background: var(--fma-gold); color: #07110f; }
.fma-modern p { color: var(--fma-text); }
.fma-modern a { color: var(--fma-green); }
.fma-modern h1,
.fma-modern h2 { color: var(--fma-ink); }

.fma-modern a:focus-visible,
.fma-modern button:focus-visible,
.fma-modern summary:focus-visible,
.fma-modern input:focus-visible,
.fma-modern select:focus-visible,
.fma-modern textarea:focus-visible {
  outline: 3px solid rgba(239, 215, 157, .55);
  outline-offset: 4px;
}

.fma-skip-link {
  background: var(--fma-gold-bright);
  border-radius: 0 0 10px 10px;
  color: #07110f !important;
  font-size: 13px;
  font-weight: 800;
  left: 18px;
  padding: 10px 16px;
  position: fixed;
  top: -80px;
  transition: top .2s ease;
  z-index: 10000;
}

.fma-skip-link:focus { top: 0; }

/* Header */
body.fma-modern #header.legal-header {
  background: rgba(7, 17, 15, .76);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(238, 226, 202, .09);
  height: 88px;
}

body.fma-modern #header.legal-header.header-scrolled {
  background: rgba(7, 17, 15, .94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .26);
  height: 76px;
}

body.fma-modern .legal-logo { gap: 13px; }
body.fma-modern .fma-monogram {
  align-items: center;
  border: 1px solid rgba(212, 181, 116, .68);
  border-radius: 3px 3px 10px 3px;
  box-shadow: inset 0 0 0 4px rgba(212, 181, 116, .05), 0 10px 28px rgba(0, 0, 0, .24);
  color: var(--fma-gold-bright);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  letter-spacing: -.12em;
  padding-right: 2px;
  position: relative;
  width: 43px;
}

body.fma-modern .fma-monogram::after {
  background: var(--fma-gold);
  bottom: 6px;
  content: "";
  height: 1px;
  left: 7px;
  opacity: .7;
  position: absolute;
  right: 7px;
}

body.fma-modern .legal-brand-copy { color: #fff; }
body.fma-modern .legal-brand-copy strong { color: #f6f0e4; font-size: 19px; }
body.fma-modern .legal-brand-copy small { color: var(--fma-gold); }

body.fma-modern .navbar a,
body.fma-modern .navbar a:focus {
  color: #bdc8c3;
  font-size: 12px;
  letter-spacing: .015em;
  position: relative;
  transition: color .2s ease;
}

body.fma-modern .navbar a:hover,
body.fma-modern .navbar .active,
body.fma-modern .navbar .active:focus { color: var(--fma-gold-bright); }

@media (min-width: 992px) {
  body.fma-modern .navbar a:not(.nav-cta)::after {
    background: var(--fma-gold);
    bottom: 3px;
    content: "";
    height: 1px;
    left: 12px;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .22s ease;
    width: calc(100% - 24px);
  }

  body.fma-modern .navbar a:not(.nav-cta):hover::after,
  body.fma-modern .navbar .active:not(.nav-cta)::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

body.fma-modern .navbar .nav-cta,
body.fma-modern .navbar .nav-cta:focus {
  background: var(--fma-gold);
  border: 1px solid var(--fma-gold);
  box-shadow: 0 10px 30px rgba(212, 181, 116, .16);
  color: #07110f;
}

body.fma-modern .navbar .nav-cta:hover {
  background: var(--fma-gold-bright);
  border-color: var(--fma-gold-bright);
  color: #07110f;
}

body.fma-modern .mobile-nav-toggle { color: #f3ede1; }

/* Shared layout and controls */
body.fma-modern #main { background: var(--fma-paper); }
body.fma-modern .legal-page { padding-top: 88px; }
body.fma-modern .legal-section {
  background: var(--fma-paper);
  padding: 108px 0;
}

body.fma-modern #services.legal-section { background: var(--fma-paper); }

body.fma-modern .legal-soft { background: var(--fma-ivory); }

body.fma-modern .legal-eyebrow,
body.fma-modern .classic-hero-eyebrow {
  align-items: center;
  color: var(--fma-gold) !important;
  gap: 10px;
  letter-spacing: .19em;
}

body.fma-modern .legal-eyebrow::before {
  background: currentColor;
  content: "";
  height: 1px;
  opacity: .72;
  width: 28px;
}

body.fma-modern .legal-section-heading h2 { font-size: clamp(38px, 4vw, 58px); }
body.fma-modern .fma-heading-split p { border-color: var(--fma-line); }

body.fma-modern .btn-legal {
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: .04em;
  min-height: 52px;
  padding: 14px 23px;
}

body.fma-modern .btn-legal-primary {
  background: var(--fma-gold);
  border-color: var(--fma-gold);
  box-shadow: 0 12px 34px rgba(212, 181, 116, .14);
  color: #07110f !important;
}

body.fma-modern .btn-legal-primary:hover {
  background: var(--fma-gold-bright);
  border-color: var(--fma-gold-bright);
  box-shadow: 0 16px 38px rgba(212, 181, 116, .2);
  color: #07110f !important;
}

body.fma-modern .btn-legal-outline,
body.fma-modern #hero .btn-legal-outline {
  border-color: rgba(238, 226, 202, .28);
  color: #f4efe5 !important;
}

body.fma-modern .btn-legal-outline:hover,
body.fma-modern #hero .btn-legal-outline:hover {
  background: rgba(255, 255, 255, .07);
  border-color: var(--fma-gold);
  color: var(--fma-gold-bright) !important;
}

body.fma-modern .fma-text-link,
body.fma-modern .fma-section-link a,
body.fma-modern .legal-service-card > a,
body.fma-modern .legal-article-card-body > a { color: var(--fma-gold); }

body.fma-modern .fma-section-link { border-color: var(--fma-line); }

/* Hero */
body.fma-modern #hero {
  background:
    linear-gradient(90deg, rgba(7, 17, 15, .98) 0%, rgba(7, 17, 15, .97) 45%, rgba(7, 17, 15, .82) 100%),
    radial-gradient(circle at 82% 24%, rgba(76, 169, 138, .14), transparent 28%);
  min-height: 820px;
  padding: 150px 0 78px;
}

body.fma-modern #hero::before {
  background:
    linear-gradient(rgba(212, 181, 116, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 181, 116, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  border-radius: 0;
  height: 100%;
  inset: 0;
  mask-image: linear-gradient(90deg, transparent 10%, #000 100%);
  opacity: .48;
  width: 100%;
}

body.fma-modern #hero::after {
  border: 1px solid rgba(212, 181, 116, .14);
  border-radius: 50%;
  content: "";
  height: 440px;
  position: absolute;
  right: -190px;
  top: 130px;
  width: 440px;
}

body.fma-modern #hero .fma-hero-grid {
  gap: clamp(54px, 7vw, 106px);
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .68fr);
  z-index: 1;
}

body.fma-modern #hero h1 {
  color: #f5f0e7;
  font-size: clamp(54px, 5.6vw, 80px);
  line-height: .98;
  max-width: 760px;
  text-wrap: balance;
}

body.fma-modern #hero p {
  color: #b9c4bf;
  font-size: 18px;
  line-height: 1.75;
  max-width: 620px;
}

body.fma-modern .fma-hero-proof {
  border-color: rgba(238, 226, 202, .14);
  margin-top: 46px;
  padding-top: 27px;
}

body.fma-modern .fma-hero-proof span { color: #86938e; }
body.fma-modern .fma-hero-proof b { color: #e9e3d8; }
body.fma-modern .fma-hero-proof i { color: var(--fma-gold); }

body.fma-modern .fma-hero-visual {
  background: #020504;
  border: 1px solid rgba(212, 181, 116, .24);
  border-radius: 210px 210px 28px 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .48);
  min-height: 610px;
  overflow: visible;
}

body.fma-modern .fma-hero-visual > img {
  border-radius: inherit;
  filter: saturate(.9) contrast(1.03);
  height: 610px;
  object-fit: cover;
  object-position: center top;
}

body.fma-modern .fma-hero-visual::after {
  border: 1px solid rgba(212, 181, 116, .26);
  border-radius: 210px 210px 28px 28px;
  inset: 18px -18px -18px 18px;
}

body.fma-modern .fma-hero-visual figcaption {
  background: rgba(10, 23, 20, .92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(238, 226, 202, .14);
  border-radius: 12px;
  bottom: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .38);
}

body.fma-modern .fma-hero-visual figcaption > i {
  background: rgba(212, 181, 116, .13);
  color: var(--fma-gold-bright);
}

body.fma-modern .fma-hero-visual figcaption strong { color: #f4eee3; }
body.fma-modern .fma-hero-visual figcaption small { color: #9ba7a2; }

body.fma-modern .fma-trust-strip {
  background: #050b0a;
  border-bottom: 1px solid rgba(212, 181, 116, .1);
  border-top: 1px solid rgba(212, 181, 116, .1);
  padding: 25px 0;
}

body.fma-modern .fma-trust-strip span { color: var(--fma-gold); }
body.fma-modern .fma-trust-strip b { color: #cbd3cf; }
body.fma-modern .fma-trust-strip .container > div {
  justify-content: flex-end;
  row-gap: 8px;
}

/* Services and content cards */
body.fma-modern .legal-service-grid { gap: 14px; }
body.fma-modern .legal-service-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 58%),
    var(--fma-surface);
  border: 1px solid var(--fma-line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  overflow: hidden;
  padding: 36px;
}

body.fma-modern .legal-service-card::after {
  background: linear-gradient(90deg, transparent, var(--fma-gold), transparent);
  content: "";
  height: 1px;
  left: -100%;
  opacity: .65;
  position: absolute;
  top: 0;
  transition: left .45s ease;
  width: 100%;
}

body.fma-modern .legal-service-card:hover {
  background: var(--fma-surface-2);
  border-color: rgba(212, 181, 116, .28);
  box-shadow: var(--fma-shadow);
}

body.fma-modern .legal-service-card:hover::after { left: 100%; }
body.fma-modern .fma-service-icon {
  background: rgba(212, 181, 116, .1);
  border: 1px solid rgba(212, 181, 116, .16);
  color: var(--fma-gold-bright);
}

body.fma-modern .fma-service-icon i,
body.fma-modern .legal-service-card > a i {
  background: transparent;
  border-radius: 0;
  color: inherit;
  display: inline-block;
  font-size: inherit;
  height: auto;
  margin: 0;
  width: auto;
}

body.fma-modern .fma-service-icon i { font-size: 21px; }

body.fma-modern .legal-service-card > a {
  align-self: flex-start;
  bottom: auto;
  margin-top: auto;
  padding-top: 18px;
  position: static;
}

body.fma-modern .legal-service-card h2,
body.fma-modern .legal-service-card h3 { color: #f1ece2; }
body.fma-modern .legal-service-card p { color: #9eaaa5; }

/* Situation-led guidance */
body.fma-modern .fma-guidance {
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 181, 116, .1), transparent 28%),
    linear-gradient(135deg, #10231f, #0a1714 62%);
  border-bottom: 1px solid rgba(212, 181, 116, .12);
  border-top: 1px solid rgba(212, 181, 116, .14);
  padding: 88px 0;
  position: relative;
}

body.fma-modern .fma-guidance::after {
  border: 1px solid rgba(212, 181, 116, .12);
  border-radius: 50%;
  content: "";
  height: 330px;
  left: -190px;
  pointer-events: none;
  position: absolute;
  top: -110px;
  width: 330px;
}

body.fma-modern .fma-guidance-grid {
  align-items: start;
  display: grid;
  gap: clamp(56px, 8vw, 110px);
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  position: relative;
  z-index: 1;
}

body.fma-modern .fma-guidance-intro {
  position: sticky;
  top: 110px;
}

body.fma-modern .fma-guidance h2 {
  color: #f3eee4;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.04;
  margin: 0 0 20px;
}

body.fma-modern .fma-guidance p {
  color: #a9b6b0;
  margin-bottom: 28px;
  max-width: 510px;
}

body.fma-modern .fma-guidance-list {
  border-top: 1px solid rgba(238, 226, 202, .16);
}

body.fma-modern .fma-guidance-list a {
  align-items: center;
  border-bottom: 1px solid rgba(238, 226, 202, .16);
  color: #e8e3da;
  display: flex;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  gap: 20px;
  justify-content: space-between;
  line-height: 1.25;
  min-height: 78px;
  padding: 18px 4px;
  transition: color .2s ease, padding .2s ease;
}

body.fma-modern .fma-guidance-list a i {
  align-items: center;
  border: 1px solid rgba(212, 181, 116, .28);
  border-radius: 50%;
  color: var(--fma-gold);
  display: flex;
  flex: 0 0 auto;
  font-size: 15px;
  height: 38px;
  justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  width: 38px;
}

body.fma-modern .fma-guidance-list a:hover {
  color: var(--fma-gold-bright);
  padding-left: 10px;
}

body.fma-modern .fma-guidance-list a:hover i {
  background: var(--fma-gold);
  color: #07110f;
  transform: rotate(45deg);
}

/* Firm, process and proof */
body.fma-modern .fma-about { background: #0a1412; }
body.fma-modern .fma-team-visual figure {
  background: #050908;
  border: 1px solid rgba(212, 181, 116, .16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .26);
}

body.fma-modern .fma-team-visual img { filter: saturate(.82) contrast(1.04); }
body.fma-modern .fma-team-visual figcaption {
  background: linear-gradient(transparent, rgba(2, 8, 7, .94));
}

body.fma-modern .legal-check-list { border-color: var(--fma-line); }
body.fma-modern .legal-check-list i { color: var(--fma-gold); }

body.fma-modern .fma-credentials-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 54px;
}

body.fma-modern .fma-credential-card {
  background: rgba(255, 255, 255, .018);
  border: 1px solid var(--fma-line);
  border-radius: 16px;
  padding: 30px;
}

body.fma-modern .fma-credential-card > span,
body.fma-modern .fma-track-label,
body.fma-modern .fma-engagement-card > span,
body.fma-modern .fma-coverage-grid article span {
  color: var(--fma-gold);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

body.fma-modern .fma-credential-card h3 {
  color: #f0eade;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 25px;
  margin: 0 0 18px;
}

body.fma-modern .fma-credential-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.fma-modern .fma-credential-card li {
  border-top: 1px solid var(--fma-line);
  color: #aeb9b4;
  font-size: 13px;
  line-height: 1.65;
  padding: 12px 0 12px 22px;
  position: relative;
}

body.fma-modern .fma-credential-card li::before {
  color: var(--fma-gold);
  content: "\2713";
  left: 0;
  position: absolute;
}

body.fma-modern .fma-process-tracks {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.fma-modern .fma-process-track {
  background: var(--fma-surface);
  border: 1px solid var(--fma-line);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 46px);
}

body.fma-modern .fma-process-track h3 {
  color: #f1ebe0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(28px, 3vw, 37px);
  margin: 0 0 24px;
}

body.fma-modern .fma-process-list {
  counter-reset: fma-process;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.fma-modern .fma-process-list li {
  align-items: flex-start;
  border-top: 1px solid var(--fma-line);
  counter-increment: fma-process;
  display: grid;
  gap: 16px;
  grid-template-columns: 34px 1fr;
  padding: 18px 0;
}

body.fma-modern .fma-process-list li::before {
  color: var(--fma-gold);
  content: counter(fma-process, decimal-leading-zero);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
}

body.fma-modern .fma-process-list strong { color: #e8e2d7; }
body.fma-modern .fma-process-list p { color: #98a49f; font-size: 13px; margin: 4px 0 0; }

body.fma-modern .legal-process-card { border-color: var(--fma-line); }
body.fma-modern .legal-process-card > span { color: var(--fma-gold); }
body.fma-modern .legal-process-card h3 { color: #eee8dd; }

body.fma-modern .legal-gallery-preview a,
body.fma-modern .legal-article-image,
body.fma-modern .legal-video-frame,
body.fma-modern .legal-gallery-grid article img {
  border: 1px solid rgba(238, 226, 202, .1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

body.fma-modern .legal-gallery-preview img,
body.fma-modern .legal-article-image img,
body.fma-modern .legal-gallery-grid article img { filter: saturate(.72) contrast(1.04); }

body.fma-modern .legal-article-card h2 a,
body.fma-modern .legal-article-card h3 a,
body.fma-modern .legal-media-card h2,
body.fma-modern .legal-gallery-grid h2 { color: #eee8de; }

body.fma-modern .legal-article-card-body > span { color: var(--fma-gold); }

/* FAQ and conversions */
body.fma-modern .legal-faq details { border-color: var(--fma-line); }
body.fma-modern .legal-faq summary { color: #ece6db; }
body.fma-modern .legal-faq summary::after { color: var(--fma-gold); }
body.fma-modern .legal-faq details[open] {
  background: rgba(212, 181, 116, .035);
  padding-left: 18px;
  padding-right: 18px;
}

body.fma-modern .legal-final-cta {
  background:
    radial-gradient(circle at 90% 50%, rgba(76, 169, 138, .13), transparent 32%),
    #0c1b18;
  border-bottom: 1px solid rgba(212, 181, 116, .1);
  border-top: 1px solid rgba(212, 181, 116, .14);
}

body.fma-modern .legal-final-cta h2 { color: #f4efe6; }
body.fma-modern .legal-final-cta p { color: #aebbb5; }

/* Inner pages */
body.fma-modern .legal-page-hero {
  background:
    linear-gradient(110deg, rgba(7, 17, 15, .98), rgba(10, 27, 23, .93)),
    radial-gradient(circle at 82% 15%, rgba(212, 181, 116, .12), transparent 30%);
  border-bottom: 1px solid rgba(212, 181, 116, .12);
  color: var(--fma-text);
  overflow: hidden;
  padding: 104px 0 92px;
}

body.fma-modern .legal-page-hero::before {
  background-image: linear-gradient(rgba(212, 181, 116, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 181, 116, .04) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, transparent 18%, #000 100%);
  position: absolute;
}

body.fma-modern .legal-page-hero::after {
  border-color: rgba(212, 181, 116, .16);
  height: 360px;
  right: 6%;
  top: -160px;
  width: 360px;
}

body.fma-modern .legal-page-hero h1 {
  color: #f5f0e7;
  font-size: clamp(48px, 5.3vw, 72px);
  max-width: 980px;
  text-wrap: balance;
}

body.fma-modern .legal-page-hero p { color: #aebbb5; }
body.fma-modern .fma-breadcrumb a,
body.fma-modern .fma-breadcrumb span { color: #7f8d87; }
body.fma-modern .fma-breadcrumb a:hover { color: var(--fma-gold); }

body.fma-modern .legal-profile-card,
body.fma-modern .legal-contact-card,
body.fma-modern .legal-conversion-panel,
body.fma-modern .legal-empty-state {
  background: var(--fma-surface);
  border: 1px solid var(--fma-line);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .2);
}

body.fma-modern .legal-profile-card h2,
body.fma-modern .legal-contact-card h2,
body.fma-modern .legal-conversion-panel h2,
body.fma-modern .legal-empty-state h2 { color: #f1ebe0; }

body.fma-modern .legal-doc-list li { border-color: var(--fma-line); color: #b6c1bc; }
body.fma-modern .legal-doc-list li::before { color: var(--fma-gold); }
body.fma-modern .legal-disclaimer { color: #7f8c87; }

body.fma-modern .legal-process-grid.compact .legal-process-card {
  background: var(--fma-surface);
  border-color: var(--fma-line);
}

body.fma-modern .fma-engagement-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 88px;
}

body.fma-modern .fma-engagement-card {
  background: linear-gradient(145deg, rgba(212, 181, 116, .07), transparent 60%), var(--fma-surface-2);
  border: 1px solid rgba(212, 181, 116, .18);
  border-radius: 18px;
  min-height: 300px;
  padding: 34px;
  position: relative;
}

body.fma-modern .fma-engagement-card > i {
  color: var(--fma-gold);
  font-size: 26px;
  margin-bottom: 34px;
}

body.fma-modern .fma-engagement-card > span {
  position: absolute;
  right: 30px;
  top: 34px;
}

body.fma-modern .fma-engagement-card h2 {
  color: #f0eade;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 27px;
  margin: 0 0 14px;
}

body.fma-modern .fma-engagement-card p { color: #9eaaa5; font-size: 14px; margin: 0; }

body.fma-modern .fma-scope-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.fma-modern .fma-scope-card {
  background: var(--fma-surface);
  border: 1px solid var(--fma-line);
  border-radius: 14px;
  overflow: hidden;
}

body.fma-modern .fma-scope-card summary {
  align-items: center;
  color: #eee8de;
  cursor: pointer;
  display: flex;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 21px;
  gap: 20px;
  justify-content: space-between;
  list-style: none;
  min-height: 92px;
  padding: 24px 58px 24px 26px;
  position: relative;
}

body.fma-modern .fma-scope-card summary::-webkit-details-marker { display: none; }
body.fma-modern .fma-scope-card summary::after {
  color: var(--fma-gold);
  content: "+";
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  position: absolute;
  right: 26px;
}
body.fma-modern .fma-scope-card[open] summary::after { content: "\2212"; }
body.fma-modern .fma-scope-card summary b { color: #7f8d87; font-family: Inter, Arial, sans-serif; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
body.fma-modern .fma-scope-card ul { border-top: 1px solid var(--fma-line); columns: 2; list-style: none; margin: 0; padding: 20px 26px 24px; }
body.fma-modern .fma-scope-card li { break-inside: avoid; color: #aab5b0; font-size: 13px; line-height: 1.55; padding: 7px 8px 7px 17px; position: relative; }
body.fma-modern .fma-scope-card li::before { color: var(--fma-gold); content: "\2022"; left: 0; position: absolute; }

body.fma-modern .fma-coverage-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

body.fma-modern .fma-coverage-grid article {
  align-items: flex-start;
  background: var(--fma-surface-2);
  border: 1px solid rgba(212, 181, 116, .18);
  border-radius: 16px;
  display: grid;
  gap: 20px;
  grid-template-columns: 46px 1fr;
  padding: 26px;
}

body.fma-modern .fma-coverage-grid article > i {
  align-items: center;
  background: rgba(212, 181, 116, .1);
  border-radius: 50%;
  color: var(--fma-gold);
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

body.fma-modern .fma-coverage-grid article span { margin-bottom: 5px; }
body.fma-modern .fma-coverage-grid h2 { color: #f0eade; font-size: 25px; margin: 0 0 7px; }
body.fma-modern .fma-coverage-grid p { color: #9eaaa5; font-size: 13px; margin: 0; }

body.fma-modern .legal-conversion-panel {
  background:
    radial-gradient(circle at 92% 0%, rgba(212, 181, 116, .1), transparent 38%),
    var(--fma-surface-2);
}

/* Articles */
body.fma-modern .legal-article-single {
  background: transparent;
  color: var(--fma-text);
}

body.fma-modern .legal-article-single .entry-img {
  border: 1px solid var(--fma-line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .25);
}

body.fma-modern .fma-article-meta { border-color: var(--fma-line); color: #8d9994; }
body.fma-modern .entry-content h2,
body.fma-modern .entry-content h3 { color: #f0eade; }
body.fma-modern .entry-content p,
body.fma-modern .entry-content li { color: #b3beb9; }
body.fma-modern .entry-content a { color: var(--fma-gold); }

body.fma-modern .fma-article-note {
  background: rgba(212, 181, 116, .07);
  border-color: var(--fma-gold);
}

body.fma-modern .fma-article-note strong { color: var(--fma-gold-bright); }
body.fma-modern .fma-disclaimer { border-color: var(--fma-line); color: #7f8c87 !important; }
body.fma-modern .legal-article-cta { background: var(--fma-surface-2); border: 1px solid var(--fma-line); }

/* Gallery and social */
body.fma-modern .fma-video-preview > span {
  background: rgba(7, 17, 15, .88);
  border: 1px solid rgba(212, 181, 116, .28);
  color: var(--fma-gold-bright);
}

body.fma-modern .fma-social-card {
  border: 1px solid var(--fma-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

body.fma-modern .fma-social-dark { background: #050908; }
body.fma-modern .fma-social-blue { background: #0d1d2b; color: #a8caec; }
body.fma-modern .fma-social-light { background: var(--fma-surface); color: #f1ebe0; }
body.fma-modern .fma-social-blue h2,
body.fma-modern .fma-social-blue p,
body.fma-modern .fma-social-light h2,
body.fma-modern .fma-social-light p { color: inherit; }
body.fma-modern .fma-social-note { border-color: var(--fma-line); }
body.fma-modern .fma-social-note > i { color: var(--fma-gold); }
body.fma-modern .fma-social-note strong { color: #eee8dd; }

/* Contact and forms */
body.fma-modern .fma-contact-layout .col-lg-5 .legal-contact-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 181, 116, .12), transparent 38%),
    #0c1d19;
  color: #f3ede2;
}

body.fma-modern .fma-contact-layout .col-lg-5 h2,
body.fma-modern .fma-contact-layout .col-lg-5 p,
body.fma-modern .fma-contact-layout .col-lg-5 a { color: #eee8dc; }

body.fma-modern .legal-form label { color: #dcd6ca; }
body.fma-modern .legal-form .form-control {
  background: #09120f;
  border-color: var(--fma-line);
  color: #f1ece2;
}

body.fma-modern .legal-form .form-control::placeholder { color: #68746f; }
body.fma-modern .legal-form .form-control:focus {
  background: #0b1714;
  border-color: var(--fma-gold);
  box-shadow: 0 0 0 4px rgba(212, 181, 116, .08);
}

body.fma-modern .fma-form-privacy { background: rgba(212, 181, 116, .06); color: #8f9b96; }
body.fma-modern .fma-form-privacy i { color: var(--fma-gold); }
body.fma-modern .php-email-form .loading { background: rgba(212, 181, 116, .08); color: var(--fma-gold-bright); }

/* Footer and floating tools */
body.fma-modern .legal-floating-contact a {
  background: #148a63 !important;
  border-color: #d9f0e7;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .32);
}

body.fma-modern .legal-floating-contact a:hover { background: #1da678 !important; }

body.fma-modern .legal-footer {
  background: #040908;
  border-top: 1px solid rgba(212, 181, 116, .11);
  color: #8d9a94;
  padding-top: 84px;
}

body.fma-modern .legal-footer h3,
body.fma-modern .legal-footer h4 { color: #f2ece1; }
body.fma-modern .legal-footer h3 span { color: var(--fma-gold); }
body.fma-modern .legal-footer p,
body.fma-modern .legal-footer a { color: #84918c; }
body.fma-modern .legal-footer a:hover { color: var(--fma-gold-bright); }
body.fma-modern .fma-footer-socials a { border-color: rgba(238, 226, 202, .13); }
body.fma-modern .legal-copyright { border-color: rgba(238, 226, 202, .09); }

body.fma-modern .legal-footer-identity {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

body.fma-modern .legal-footer-identity h3 { margin: 0; }
body.fma-modern .fma-monogram-footer { height: 58px; width: 52px; }

body.fma-modern .back-to-top {
  background: rgba(8, 18, 16, .92);
  border-color: var(--fma-line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  color: var(--fma-gold);
}

body.fma-modern .back-to-top:hover { background: var(--fma-gold); color: #07110f; }

@media (max-width: 1199px) {
  body.fma-modern #hero .fma-hero-grid { grid-template-columns: minmax(0, 1fr) 400px; }
  body.fma-modern .fma-hero-visual,
  body.fma-modern .fma-hero-visual > img { height: 570px; min-height: 570px; }
}

@media (max-width: 991px) {
  body.fma-modern #header.legal-header,
  body.fma-modern #header.legal-header.header-scrolled { height: 72px; }
  body.fma-modern .legal-page { padding-top: 72px; }

  body.fma-modern .navbar-mobile {
    background: rgba(2, 7, 6, .82);
    inset: 72px 0 0;
  }

  body.fma-modern .navbar-mobile > ul {
    background: #0c1815;
    border: 1px solid var(--fma-line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .52);
  }

  body.fma-modern .navbar-mobile a,
  body.fma-modern .navbar-mobile a:focus { border-color: var(--fma-line); color: #d6ddd9; }

  body.fma-modern #hero {
    min-height: 0;
    padding: 126px 0 80px;
  }

  body.fma-modern #hero .fma-hero-grid { grid-template-columns: 1fr; }
  body.fma-modern .fma-hero-copy { max-width: 760px; }
  body.fma-modern .fma-hero-visual {
    border-radius: 240px 240px 26px 26px;
    justify-self: center;
    max-width: 540px;
    width: 100%;
  }

  body.fma-modern .legal-section { padding: 88px 0; }
  body.fma-modern .fma-guidance-grid { gap: 46px; grid-template-columns: 1fr; }
  body.fma-modern .fma-guidance-intro { position: static; }
  body.fma-modern .fma-engagement-grid { grid-template-columns: 1fr; margin-bottom: 66px; }
  body.fma-modern .fma-engagement-card { min-height: 0; }
  body.fma-modern .fma-process-tracks { grid-template-columns: 1fr; }
  body.fma-modern .fma-scope-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body.fma-modern #hero { padding: 112px 0 62px; }
  body.fma-modern #hero h1 { font-size: 45px; }
  body.fma-modern #hero p { font-size: 16px; }
  body.fma-modern .fma-hero-proof { grid-template-columns: repeat(3, 1fr); }
  body.fma-modern .fma-hero-visual,
  body.fma-modern .fma-hero-visual > img { height: 520px; min-height: 520px; }
  body.fma-modern .fma-hero-visual > img { object-fit: cover; }

  body.fma-modern .legal-section { padding: 74px 0; }
  body.fma-modern .fma-guidance { padding: 72px 0; }
  body.fma-modern .fma-guidance h2 { font-size: 39px; }
  body.fma-modern .fma-guidance-list a { font-size: 20px; min-height: 72px; }
  body.fma-modern .legal-section-heading h2 { font-size: 40px; }
  body.fma-modern .legal-service-card { min-height: 286px; padding: 30px; }
  body.fma-modern .legal-page-hero { padding: 72px 0 66px; }
  body.fma-modern .legal-page-hero h1 { font-size: 44px; }
  body.fma-modern .fma-credentials-grid,
  body.fma-modern .fma-coverage-grid { grid-template-columns: 1fr; }
  body.fma-modern .fma-credential-card,
  body.fma-modern .fma-process-track,
  body.fma-modern .fma-engagement-card { padding: 26px; }
  body.fma-modern .fma-scope-card summary { align-items: flex-start; flex-direction: column; gap: 7px; }
  body.fma-modern .fma-scope-card ul { columns: 1; }
}

@media (max-width: 575px) {
  body.fma-modern .legal-brand-copy strong { font-size: 15px; }
  body.fma-modern .fma-monogram { height: 42px; width: 38px; }
  body.fma-modern #hero h1 { font-size: 39px; }
  body.fma-modern .fma-hero-proof { gap: 8px; }
  body.fma-modern .fma-hero-proof span { font-size: 9px; }
  body.fma-modern .fma-hero-visual,
  body.fma-modern .fma-hero-visual > img { height: 455px; min-height: 455px; }
  body.fma-modern .fma-hero-visual { border-radius: 160px 160px 20px 20px; }
  body.fma-modern .legal-section-heading h2 { font-size: 36px; }
  body.fma-modern .fma-guidance h2 { font-size: 35px; }
  body.fma-modern .fma-guidance-list a { font-size: 18px; gap: 14px; }
  body.fma-modern .legal-page-hero h1 { font-size: 38px; }
  body.fma-modern .legal-final-cta { padding-bottom: 94px; }
  body.fma-modern .fma-credentials-grid { margin-top: 38px; }
  body.fma-modern .fma-credential-card h3 { font-size: 22px; }
  body.fma-modern .fma-process-track h3 { font-size: 29px; }
  body.fma-modern .fma-coverage-grid article { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body.fma-modern *,
  body.fma-modern *::before,
  body.fma-modern *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
