/* Self-hosted brand fonts (replaces the Google Fonts import; no requests to Google). Same woff2 files as the Next
   pages, in /assets/fonts/ (OFL, see OFL.txt there). Each file is a variable font, so a weight range costs nothing
   extra; ranges are clamped to the weights firm-chrome.css used before (Inter 400-700, Plus Jakarta Sans 600-700, JetBrains Mono 400-500; Jakarta 800
   dropped: unused on every page that loads this file). Inter has latin + latin-ext because ₹ (U+20B9) is only in latin-ext;
   the unicode-range means latin-ext is only downloaded on pages that use it. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.3100e775.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.34b9c504.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.153fc85b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.83c005d4.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Size-matched fallbacks: the same metric overrides next/font generates for the Next pages (adjustFontFallback: Arial),
   so text set in Arial during the swap takes the same space as the brand font. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); ascent-override: 89.79%; descent-override: 22.36%; line-gap-override: 0%; size-adjust: 107.89%; }
@font-face { font-family: "Plus Jakarta Sans Fallback"; src: local("Arial"); ascent-override: 98.16%; descent-override: 20.99%; line-gap-override: 0%; size-adjust: 105.75%; }
@font-face { font-family: "JetBrains Mono Fallback"; src: local("Arial"); ascent-override: 77.57%; descent-override: 22.82%; line-gap-override: 0%; size-adjust: 131.49%; }

.firm-header,
.firm-footer {
  font-family: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", Inter, -apple-system, sans-serif;
}

.firm-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #050811;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.firm-header__bar,
.firm-header__row,
.firm-footer__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.firm-header__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-family: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, monospace;
  font-size: 11px;
  color: #94a3b8;
}

.firm-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.firm-header__brand img {
  display: block;
  height: 28px;
  width: auto;
}

.firm-header__nav,
.firm-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.firm-header__nav a,
.firm-footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.firm-header__nav a:hover,
.firm-footer a:hover {
  color: #fff;
}

.firm-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.firm-header__call,
.firm-header__book,
.firm-header__toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.firm-header__call,
.firm-header__toggle {
  padding: 0 12px;
  color: #e2e8f0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.firm-header__book {
  padding: 0 14px;
  color: #fff;
  background: #ef4136;
}

.firm-header__toggle {
  display: none;
}

.firm-header__drawer {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
  background: #090e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* The drawer's own display:grid overrides the UA [hidden] rule, so restate it. */
.firm-header__drawer[hidden] {
  display: none !important;
}

.firm-header__drawer a {
  display: block;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}

.firm-header__drawer a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.firm-footer {
  background: #03050a;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 0;
}

.firm-footer__inner {
  display: grid;
  gap: 0.75rem;
}

.firm-footer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

body:has(.firm-header) {
  padding: 0;
}

.firm-header + .wrapper {
  padding: 24px 16px 48px;
}

@media (max-width: 1023px) {
  .firm-header__bar,
  .firm-header__nav {
    display: none;
  }

  .firm-header__toggle {
    display: inline-flex;
  }
}

/* Desktop shows the inline nav and hides Menu, so the drawer never shows there. */
@media (min-width: 1024px) {
  .firm-header__drawer {
    display: none !important;
  }
}

/* Narrow phones: fit logo + Call + Book + Menu in the row without horizontal overflow. */
@media (max-width: 420px) {
  .firm-header__row {
    gap: 0.5rem;
  }

  .firm-header__brand {
    flex-shrink: 0;
  }

  .firm-header__brand img {
    height: 24px;
  }

  .firm-header__actions {
    gap: 0.25rem;
    min-width: 0;
  }

  .firm-header__call,
  .firm-header__toggle {
    padding: 0 8px;
  }

  .firm-header__book {
    padding: 4px 10px;
    min-width: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
  }
}

/* Very narrow phones (e.g. 320px): tighten further so the Book label stays inside its button. */
@media (max-width: 359px) {
  .firm-header__brand img {
    height: 20px;
  }

  .firm-header__call,
  .firm-header__toggle {
    padding: 0 6px;
  }

  .firm-header__book {
    padding: 4px 6px;
    font-size: 10px;
    letter-spacing: 0;
  }
}
