/* Rudolph Baker & Associates — Design tokens */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  /* Foundation */
  --ink-deep: #1A1A1A;
  --ink-soft: #2A2A2A;
  --muted: #6B6B6B;

  /* Brand */
  --forest-deep: #022e54;
  --forest-shadow: #04162c;
  --sage-tint: #E5EEF5;
  --cream-paper: #FAF8F3;
  --cream-text: #F5F1E8;
  --gold-accent: #C9A961;
  --gold-deep: #A88A47;
  --brand-primary: #016ab1;
  --brand-deep: #04162c;
  --brand-gradient: linear-gradient(160deg, #016ab1 0%, #023c6e 55%, #04162c 100%);

  /* Utility lines */
  --line-soft: rgba(26, 26, 26, .08);
  --line-strong: rgba(26, 26, 26, .16);
  --line-cream: rgba(245, 241, 232, .18);

  /* Type */
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Container */
  --container: 1280px;
  --pad-x: clamp(24px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.nowrap { white-space: nowrap; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-deep);
  background: var(--cream-paper);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }

/* Type scale */
.display-xxl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.012em;
}
.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.008em;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.display-italic-accent {
  font-style: italic;
  color: var(--gold-accent);
  font-weight: 400;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.body-lg { font-size: 18px; line-height: 1.6; }
.body-md { font-size: 15px; line-height: 1.6; }
.body-sm { font-size: 13px; line-height: 1.5; }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow-tag {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.button-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* CTAs */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all .2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.cta__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta__circle svg { width: 16px; height: 16px; stroke-width: 1.5; }

/* Primary navy filled */
.cta--primary {
  background: #1e2b3a;
  color: var(--cream-paper);
}
.cta--primary .cta__circle { background: var(--cream-paper); color: #1e2b3a; }
.cta--primary:hover { background: #14202c; transform: translateY(-1px); }

/* Outline on dark */
.cta--outline-dark {
  background: transparent;
  color: var(--cream-text);
  border-color: rgba(245, 241, 232, .4);
}
.cta--outline-dark .cta__circle { background: var(--gold-accent); color: var(--cream-paper); }
.cta--outline-dark:hover { background: var(--cream-text); color: var(--forest-deep); border-color: var(--cream-text); }

/* Outline on light */
.cta--outline-light {
  background: transparent;
  color: var(--ink-deep);
  border-color: var(--ink-deep);
}
.cta--outline-light .cta__circle { background: var(--ink-deep); color: var(--cream-paper); }
.cta--outline-light:hover { background: var(--ink-deep); color: var(--cream-paper); }
.cta--outline-light:hover .cta__circle { background: var(--cream-paper); color: var(--ink-deep); }

/* Pills / badges */
.eyebrow-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(201, 169, 97, .15);
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow-pill--ink {
  background: rgba(26, 26, 26, .06);
  color: var(--ink-deep);
}

/* Section spacing */
.section { padding: clamp(80px, 10vw, 120px) 0; }
.section--tight { padding: clamp(64px, 8vw, 96px) 0; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Top nav */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.top-nav__inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.top-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.top-nav__logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.top-nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.top-nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-deep);
  transition: color .2s;
  position: relative;
}
.top-nav__links a:hover { color: var(--gold-accent); }
.top-nav__right { display: flex; align-items: center; gap: 24px; }

/* Practice Areas dropdown trigger */
.top-nav__dropdown { position: static; }
.top-nav__dropdown-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.top-nav__dropdown-btn:hover,
.top-nav__dropdown.is-open .top-nav__dropdown-btn { color: var(--gold-accent); }
.top-nav__chev {
  display: inline-flex;
  width: 14px;
  height: 14px;
  transition: transform .25s ease;
}
.top-nav__chev svg { width: 100%; height: 100%; stroke-width: 1.6; }
.top-nav__dropdown.is-open .top-nav__chev { transform: rotate(180deg); }

/* Mega menu panel */
.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  padding: 16px 0 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .22s ease;
}
.top-nav__dropdown.is-open .mega-menu {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
.mega-menu[hidden] { display: none; }
.mega-menu__inner {
  max-width: 920px;
  margin: 0 auto;
  background: var(--cream-paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(33, 44, 60, .14), 0 4px 16px rgba(33, 44, 60, .05);
  padding: 22px 22px 18px;
}
.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mega-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  padding: 8px;
  margin: -8px;
  transition: background .2s ease, transform .25s ease;
}
.mega-card:hover { background: rgba(201, 169, 97, .08); transform: translateY(-2px); }
.mega-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--forest-deep);
}
.mega-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.mega-card:hover .mega-card__photo img { transform: scale(1.05); }
.mega-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 44, 60, 0) 55%, rgba(33, 44, 60, .32) 100%);
  pointer-events: none;
}
.mega-card__body { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.mega-card__num {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold-accent);
  font-style: italic;
  text-transform: uppercase;
}
.mega-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--ink-deep);
  margin: 0;
}
.mega-card__desc {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 2px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mega-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-deep);
  margin-top: auto;
}
.mega-card__arrow {
  display: inline-flex;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--gold-accent);
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  transition: background .2s ease, color .2s ease, transform .25s ease;
}
.mega-card__arrow svg { width: 10px; height: 10px; stroke-width: 1.8; }
.mega-card:hover .mega-card__arrow { background: var(--gold-accent); color: var(--cream-paper); transform: translate(2px, -2px); }

.mega-menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.mega-menu__foot-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega-menu__foot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-deep);
  text-decoration: none;
}
.mega-menu__foot-link:hover { color: var(--gold-accent); }
.mega-menu__foot-arrow {
  display: inline-flex;
  width: 20px; height: 20px;
  align-items: center; justify-content: center;
  color: var(--gold-accent);
}
.mega-menu__foot-arrow svg { width: 10px; height: 10px; stroke-width: 1.8; }

/* Mobile: practice group inside burger menu */
.mobile-menu__group { border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.mobile-menu__group > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-deep);
}
.mobile-menu__group > summary::-webkit-details-marker { display: none; }
.mobile-menu__chev { display: inline-flex; width: 16px; height: 16px; transition: transform .25s ease; color: var(--muted); }
.mobile-menu__chev svg { width: 100%; height: 100%; stroke-width: 1.6; }
.mobile-menu__group[open] .mobile-menu__chev { transform: rotate(180deg); }
.mobile-menu__sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 12px;
}
.mobile-menu__sublink {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--ink-deep);
}
.mobile-menu__sub-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--forest-deep);
}
.mobile-menu__sub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mobile-menu__sub-text { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__sub-num { font-family: var(--font-display); font-style: italic; font-size: 11px; letter-spacing: 0.16em; color: var(--gold-accent); text-transform: uppercase; }
.mobile-menu__sub-title { font-family: var(--font-display); font-size: 18px; line-height: 1.2; color: var(--ink-deep); }

@media (max-width: 1024px) {
  .top-nav__dropdown { display: none; }
  .mega-menu { display: none !important; }
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-toggle button { color: var(--muted); transition: color .2s; }
.lang-toggle button.is-active { color: var(--ink-deep); }
.lang-toggle .sep { color: var(--line-strong); }

/* Sticky right rail */
.sticky-rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 40;
}
.sticky-rail__btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s;
  position: relative;
  box-shadow: 0 6px 20px rgba(33, 44, 60, .15);
}
.sticky-rail__btn:hover { transform: scale(1.08); }
.sticky-rail__btn--call { background: var(--gold-accent); color: var(--cream-paper); }
.sticky-rail__btn--wa { background: var(--forest-deep); color: var(--cream-text); }
.sticky-rail__btn--book { background: var(--cream-paper); color: var(--ink-deep); border: 1px solid var(--gold-accent); }
.sticky-rail__btn svg { width: 22px; height: 22px; stroke-width: 1.5; }
.sticky-rail__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink-deep);
  color: var(--cream-paper);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.sticky-rail__btn:hover .sticky-rail__tip { opacity: 1; }

/* Footer */
.site-footer {
  background: var(--brand-gradient);
  color: var(--cream-text);
  padding: 96px 0 32px;
}
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin: 0 0 20px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 14px; opacity: .85; }
.site-footer a:hover { color: var(--gold-accent); }
.site-footer__brand { font-family: var(--font-display); font-size: 28px; line-height: 1.2; }
.site-footer__brand small { display: block; font-family: var(--font-body); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-accent); margin-top: 12px; }
.site-footer__bottom {
  border-top: 1px solid var(--line-cream);
  margin-top: 64px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 12px; opacity: .7;
}
.site-footer__office strong { display: block; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; color: var(--gold-accent); margin-bottom: 8px; }
.site-footer__office { font-size: 14px; line-height: 1.7; opacity: .85; margin-bottom: 24px; }

/* Mobile */
@media (max-width: 1024px) {
  .top-nav__links { display: none; }
  .top-nav__book-desktop { display: none; }
  .top-nav__burger { display: inline-flex !important; }
  .top-nav__right { gap: 16px; }
}
@media (min-width: 1025px) {
  .top-nav__burger { display: none; }
  .mobile-menu { display: none !important; }
}

.top-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  align-items: center;
  flex-shrink: 0;
}
.top-nav__burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink-deep);
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.top-nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.top-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.top-nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line-soft);
  background: var(--cream-paper);
}
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--pad-x) 24px;
}
.mobile-menu a:not(.cta) {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-deep);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a.is-active { color: var(--gold-accent); }
.mobile-menu__book {
  margin-top: 16px;
  width: 100%;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .sticky-rail {
    top: auto; bottom: 0; right: 0; left: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
    background: var(--cream-paper);
    border-top: 1px solid var(--line-soft);
    padding: 0;
  }
  .sticky-rail__btn { border-radius: 0; flex: 1; height: 60px; box-shadow: none; }
  .sticky-rail__tip { display: none; }
  .site-footer .container { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
}
