/* ==========================================================================
   Adv. Brijesh Parekh — Advocate & Attorney at Law
   Ahmedabad, Gujarat
   Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-deep:   #071525;
  --navy:        #0B1D33;
  --navy-soft:   #10263f;
  --gold:        #C9A24A;
  --gold-light:  #E0C477;
  --gold-dim:    rgba(201, 162, 74, 0.28);

  /* Surfaces */
  --ivory:       #F8F7F3;
  --white:       #FFFFFF;
  --line:        #E6E3DA;
  --line-dark:   rgba(255, 255, 255, 0.12);

  /* Text */
  --ink:         #17202B;
  --muted:       #667085;
  --ink-invert:  #F3F1EC;
  --muted-invert: rgba(243, 241, 236, 0.72);

  /* Type */
  --font-head: 'Playfair Display', 'Cormorant Garamond', 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Manrope', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Metrics */
  --wrap: 1320px;
  --wrap-narrow: 880px;
  --header-h: 102px;
  --header-h-scrolled: 84px;

  --radius: 2px;
  --radius-lg: 4px;

  --shadow-sm: 0 1px 2px rgba(7, 21, 37, 0.04), 0 4px 14px rgba(7, 21, 37, 0.05);
  --shadow-md: 0 6px 28px rgba(7, 21, 37, 0.09);
  --shadow-lg: 0 20px 60px rgba(7, 21, 37, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img,
svg,
video { max-width: 100%; display: block; }

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(2.15rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 600; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.6rem 0;
}

::selection {
  background: var(--gold);
  color: var(--navy-deep);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy-deep);
  color: var(--gold-light);
  padding: 12px 20px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(64px, 8vw, 116px) 0; }
.section-sm { padding: clamp(48px, 5vw, 76px) 0; }

.section-ivory { background: var(--ivory); }
.section-white { background: var(--white); }

.section-navy {
  background: var(--navy-deep);
  color: var(--ink-invert);
}
.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy h4 { color: var(--ink-invert); }
.section-navy p { color: var(--muted-invert); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   4. Typographic components
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.section-navy .eyebrow { color: var(--gold-light); }

.section-head { margin-bottom: clamp(38px, 5vw, 60px); }

.section-head.centered {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 { margin-bottom: 0.35em; }

.section-head .lede {
  color: var(--muted);
  font-size: 1.03rem;
  margin: 0;
}
.section-navy .section-head .lede { color: var(--muted-invert); }

/* Ornament: gold rule with scales glyph */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 26px;
  max-width: 200px;
  color: var(--gold);
}
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 20px; height: 20px; flex: none; }

.rule-gold {
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 26px;
  border: 0;
}
.rule-gold.centered { margin-left: auto; margin-right: auto; }

.lede-lg {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}
.section-navy .lede-lg { color: var(--muted-invert); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease),
              border-color 0.28s var(--ease), transform 0.28s var(--ease),
              box-shadow 0.28s var(--ease);
  white-space: nowrap;
  text-align: center;
}

.btn svg { width: 15px; height: 15px; flex: none; transition: transform 0.28s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(201, 162, 74, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--ink-invert);
  border-color: rgba(255, 255, 255, 0.38);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy-deep);
  border-color: rgba(7, 21, 37, 0.24);
}
.btn-outline-dark:hover {
  background: var(--navy-deep);
  color: var(--ivory);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy-deep);
  color: var(--ivory);
  border-color: var(--navy-deep);
}
.btn-navy:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 11px 22px; font-size: 0.72rem; }
.btn-block { width: 100%; }

/* Text link with animated gold underline */
.link-gold {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  padding-bottom: 3px;
}
.link-gold::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.link-gold:hover::after { width: 100%; }
.link-gold svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.link-gold:hover svg { transform: translateX(4px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. Scroll progress bar
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 1200;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), height 0.35s var(--ease),
              border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-solid,
.site-header.force-solid {
  background: rgba(7, 21, 37, 0.97);
  height: var(--header-h-scrolled);
  border-bottom-color: rgba(201, 162, 74, 0.22);
  box-shadow: 0 6px 30px rgba(7, 21, 37, 0.28);
}

@supports (backdrop-filter: blur(10px)) {
  .site-header.is-solid,
  .site-header.force-solid {
    background: rgba(7, 21, 37, 0.9);
    backdrop-filter: blur(14px);
  }
}

/* Without scripting nothing can toggle the header state, so keep it solid. */
html:not(.js) .site-header {
  background: rgba(7, 21, 37, 0.97);
  height: var(--header-h-scrolled);
  border-bottom-color: rgba(201, 162, 74, 0.22);
}

.header-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex: none;
  color: var(--gold);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-4deg); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-head);
  font-size: 1.48rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 500;
  margin-top: 3px;
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 6px; }

.nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li { margin: 0; position: relative; }

.nav a.nav-link {
  display: block;
  padding: 12px 15px;
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  white-space: nowrap;
}

.nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}

.nav a.nav-link:hover { color: var(--white); }
.nav a.nav-link:hover::after { transform: scaleX(1); }

.nav a.nav-link.active { color: var(--gold-light); }
.nav a.nav-link.active::after { transform: scaleX(1); }

/* Horizontal Mega Dropdown for Desktop */
.nav a.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 15px;
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  white-space: nowrap;
}

.practice-areas-link,
.has-drop > .nav-link {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}
.practice-areas-link .chevron,
.has-drop > .nav-link svg {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  transform: none !important;
  width: 10px !important;
  height: 10px !important;
  flex: none !important;
  opacity: 0.85 !important;
  margin-left: 2px !important;
  vertical-align: middle !important;
  transition: transform 0.3s var(--ease) !important;
}
.has-drop:hover > .nav-link .chevron,
.has-drop:hover > .nav-link svg,
.has-drop:focus-within > .nav-link .chevron,
.has-drop:focus-within > .nav-link svg { transform: rotate(180deg) !important; }

.mega-drop {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 780px;
  max-width: min(780px, calc(100vw - 48px));
  background: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 0;
  box-shadow: 0 20px 50px rgba(7, 21, 37, 0.16), 0 4px 14px rgba(7, 21, 37, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 1100;
}

/* Hover bridge */
.mega-drop::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.has-drop:hover .mega-drop,
.has-drop:focus-within .mega-drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.mega-drop-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mega-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mega-card:hover {
  background: var(--white);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(7, 21, 37, 0.08);
}

.mega-card-icon {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 74, 0.12);
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.mega-card:hover .mega-card-icon {
  background: var(--gold);
  color: var(--navy-deep);
}
.mega-card-icon svg { width: 18px; height: 18px; }

.mega-card-content { display: flex; flex-direction: column; min-width: 0; }

.mega-card-title {
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.25;
  margin-bottom: 3px;
}

.mega-card-sub {
  font-family: var(--font-body);
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Header CTA */
.header-cta { flex: none; display: flex; align-items: center; gap: 14px; margin-left: 20px; }
.header-cta .btn { padding: 13px 26px; font-size: 0.94rem; }

.header-phone-mobile { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  position: relative;
  flex: none;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.32s var(--ease), opacity 0.22s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. Mobile navigation panel
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-deep);
  padding: calc(var(--header-h) + 20px) 28px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease), visibility 0.34s;
}

.mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-nav ul { list-style: none; margin: 0; padding: 0; }

.mobile-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.mobile-nav a {
  display: block;
  padding: 16px 2px;
  font-family: var(--font-head);
  font-size: 1.32rem;
  color: rgba(255, 255, 255, 0.9);
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--gold-light); }

/* Mobile Practice Areas: Always Expanded with indented hierarchy */
.mobile-pa-group { margin-top: 4px; }
.mobile-pa-head {
  font-family: var(--font-head);
  font-size: 1.32rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 16px 2px 6px !important;
  display: block;
}
.mobile-practice-links {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding: 4px 0 8px 18px !important;
  margin: 0 0 8px !important;
  list-style: none !important;
  border-left: 2px solid var(--gold-dim);
}
.mobile-practice-links li {
  border-bottom: none !important;
  margin-bottom: 2px;
}
.mobile-practice-links a {
  font-family: var(--font-body) !important;
  font-size: 0.93rem !important;
  padding: 8px 10px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.mobile-practice-links a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
  opacity: 0.8;
}
.mobile-practice-links a:hover,
.mobile-practice-links a.active {
  color: var(--gold-light) !important;
}
.mobile-practice-links a:hover::before,
.mobile-practice-links a.active::before {
  background: var(--gold-light);
  opacity: 1;
  transform: scale(1.3);
}

/* Mobile Contact Office CTA Button */
.mobile-nav-cta {
  margin-top: 22px;
  width: 100%;
}

.mobile-contact-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  min-height: 50px;
  padding: 14px 20px !important;
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  border: 1px solid var(--gold) !important;
  border-radius: var(--radius) !important;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.mobile-contact-btn:hover,
.mobile-contact-btn:active {
  background: var(--gold-light) !important;
  border-color: var(--gold-light) !important;
  color: var(--navy-deep) !important;
  transform: translateY(-2px);
}

.mobile-contact-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.mobile-nav-footer {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-nav-footer p {
  color: var(--muted-invert);
  font-size: 0.86rem;
  margin-bottom: 0.5em;
}
.mobile-nav-footer a.contact-line {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 5px 0;
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   9. Hero slider
   -------------------------------------------------------------------------- */
/* Split hero: the LEFT panel slides between four sets of copy, the RIGHT
   photograph is a single permanent element that never changes or animates. */
.hero {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "copy  media"
    "nav   media";
  min-height: clamp(700px, 88vh, 780px);
}

/* Left text column is padded so its text lines up with the site container,
   while the photograph runs full-bleed to the right edge of the viewport. */
.hero-copy {
  grid-area: copy;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 20px) clamp(32px, 4vw, 60px) 18px
           max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  position: relative;
  z-index: 2;
}

.hero-nav-area {
  grid-area: nav;
  padding: 0 clamp(32px, 4vw, 60px) clamp(26px, 3vw, 36px)
           max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  position: relative;
  z-index: 2;
}

/* --- Right photograph: permanent, never re-rendered between slides --- */
.hero-media {
  grid-area: media;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keeps the advocate in frame when the landscape photograph is cropped
     into the tall hero column. */
  object-position: 64% 32%;
}

/* Feathered seam where the navy panel meets the photograph, plus a scrim
   under the header so navigation stays legible over the image. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy-deep) 0%, rgba(7, 21, 37, 0.72) 8%, rgba(7, 21, 37, 0) 30%),
    linear-gradient(180deg, rgba(7, 21, 37, 0.78) 0%, rgba(7, 21, 37, 0) 24%),
    linear-gradient(0deg, rgba(7, 21, 37, 0.42) 0%, rgba(7, 21, 37, 0) 22%);
}

/* --- Sliding left panels --- */
/* All panels occupy the same grid cell, so the column is as tall as the
   longest slide and the height never shifts as slides change. */
.hero-panels { display: grid; width: 100%; }

.hero-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), visibility 0.7s;
}

.hero-panel.active { opacity: 1; visibility: visible; transform: none; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.hero-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.hero h1,
.hero .hero-h1 {
  font-size: clamp(1.85rem, 2.8vw, 2.6rem);
  line-height: 1.16;
  color: var(--white);
  margin: 0 0 14px;
  letter-spacing: 0.005em;
}

.hero-sub {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.1vw, 1.72rem);
  line-height: 1.42;
  color: var(--gold-light);
  margin: 0 0 20px;
  font-weight: 400;
}

.hero-text {
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 26px;
}

/* The eyebrow sits directly under the location label inside a hero panel. */
.hero-panel .eyebrow { margin-bottom: 10px; }

.hero .btn-row { margin: 0; }

/* --- Hero controls (below the copy, above the fold) --- */
.hero-controls {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.hero-count {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  flex: none;
  font-variant-numeric: tabular-nums;
}
.hero-count .total { color: rgba(255, 255, 255, 0.38); }

.hero-arrows { display: flex; gap: 8px; flex: none; }

.hero-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.28s var(--ease), border-color 0.28s var(--ease),
              color 0.28s var(--ease);
}
.hero-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}
.hero-arrow svg { width: 16px; height: 16px; }

.hero-dots { display: flex; align-items: center; gap: 18px; }

.hero-dot {
  background: none;
  border: 0;
  padding: 6px 0 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
  position: relative;
  transition: color 0.28s var(--ease);
}
.hero-dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.hero-dot:hover { color: rgba(255, 255, 255, 0.8); }
.hero-dot.active { color: var(--gold-light); }
.hero-dot.active::after { transform: scaleX(1); }

.hero-progress {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
  min-width: 40px;
}
.hero-progress span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.hero-progress span.run {
  animation: heroProgress var(--hero-duration, 6s) linear forwards;
}
@keyframes heroProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   10. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--navy-deep);
  padding: calc(var(--header-h) + 76px) 0 76px;
  overflow: hidden;
}

.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 28%;
  opacity: 0.42;
}
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 21, 37, 0.95) 0%, rgba(7, 21, 37, 0.82) 45%, rgba(7, 21, 37, 0.55) 100%);
}

.page-hero-inner { position: relative; z-index: 2; max-width: 780px; }

.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero .lede { color: rgba(255, 255, 255, 0.76); font-size: 1.05rem; margin: 0; max-width: 640px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumb li { margin: 0; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 9px; opacity: 0.5; }

/* --------------------------------------------------------------------------
   11. Split / media sections
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.split.narrow-media { grid-template-columns: 0.85fr 1.15fr; }
.split.wide-media { grid-template-columns: 1.15fr 0.85fr; }

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.media-frame:hover img { transform: scale(1.04); }

.media-frame.tall { aspect-ratio: 4 / 5; }
.media-frame.portrait { aspect-ratio: 3 / 4; }
.media-frame.square { aspect-ratio: 1 / 1; }
.media-frame.wide { aspect-ratio: 16 / 11; }

.media-frame.focus-face img { object-position: 50% 22%; }
/* The office portrait is landscape; in a tall frame the crop has to favour
   the right-of-centre subject or he is cut out of the picture entirely. */
.media-frame.focus-desk img { object-position: 62% 34%; }
.media-frame.focus-court img { object-position: 50% 35%; }
.media-frame.focus-office img { object-position: 45% 40%; }

/* Gold offset border accent */
.media-accent { position: relative; }
.media-accent::before {
  content: "";
  position: absolute;
  left: -16px;
  bottom: -16px;
  width: 62%;
  height: 62%;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  z-index: 0;
  pointer-events: none;
}
.media-accent .media-frame { position: relative; z-index: 1; }

/* Vertical gold accent line before text */
.accent-left {
  border-left: 2px solid var(--gold);
  padding-left: clamp(20px, 3vw, 34px);
}

/* --------------------------------------------------------------------------
   12. Practice area cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pa-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 32px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}

.pa-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}

.pa-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-dim);
}
.pa-card:hover::before { transform: scaleX(1); }

.pa-icon {
  width: 52px;
  height: 52px;
  color: var(--gold);
  margin-bottom: 22px;
  transition: transform 0.45s var(--ease);
}
.pa-card:hover .pa-icon { transform: translateY(-3px); }

.pa-card h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}

.pa-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.72;
  margin-bottom: 24px;
  flex: 1;
}

.pa-card .link-gold { align-self: flex-start; }

/* Centered icon variant used on the home page */
.card-grid.centered .pa-card { text-align: center; align-items: center; }
.card-grid.centered .pa-card .link-gold { align-self: center; }

/* Numbered, low-chrome variant for the home page. The brief asks for as few
   borders as possible here, so the card is defined by tone rather than rules. */
.card-grid.soft { gap: 2px; background: var(--line); border: 1px solid var(--line); }
.card-grid.soft .pa-card { border: 0; border-radius: 0; padding: 40px 34px 36px; }
.card-grid.soft .pa-card:hover { transform: none; box-shadow: none; background: var(--ivory); }
.card-grid.soft .pa-card::before { top: 0; }

.pa-num {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}

.pa-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.pa-card-head .pa-icon { margin-bottom: 0; width: 44px; height: 44px; }

/* --------------------------------------------------------------------------
   13. Feature list (checkmarks)
   -------------------------------------------------------------------------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.84);
}

.check-list svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 4px; }

.check-list.on-light li { color: var(--ink); }

.check-list.single { grid-template-columns: 1fr; }

/* Icon feature rows */
.feature-rows { display: grid; gap: 26px; margin: 0 0 34px; }

.feature-row { display: flex; gap: 18px; align-items: flex-start; }

.feature-ico {
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.feature-row:hover .feature-ico { background: rgba(201, 162, 74, 0.09); border-color: var(--gold); }
.feature-ico svg { width: 21px; height: 21px; }

.feature-row h4 { margin: 0 0 5px; font-family: var(--font-head); font-size: 1.06rem; }
.feature-row p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.68; }
.section-navy .feature-row p { color: var(--muted-invert); }

/* --------------------------------------------------------------------------
   14. "Why this practice" — value pillars
   -------------------------------------------------------------------------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.pillar {
  padding: 40px 28px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.4s var(--ease);
}
.pillar:hover { background: rgba(255, 255, 255, 0.03); }

.pillar-ico { width: 34px; height: 34px; color: var(--gold); margin-bottom: 20px; }

.pillar h3 {
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.pillar p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted-invert);
  margin: 0;
}

/* --------------------------------------------------------------------------
   15. Legal updates / article cards
   -------------------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-dim);
}

.post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.06); }

/* Decorative themed thumbnail when no photograph is appropriate */
.post-thumb.themed {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--navy-deep), var(--navy-soft));
}
.post-thumb.themed svg { width: 70px; height: 70px; color: rgba(201, 162, 74, 0.55); }

.post-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--navy-deep);
  color: var(--gold-light);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
}

.post-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.post-meta svg { width: 14px; height: 14px; color: var(--gold); }

.post-card h3 { font-size: 1.14rem; line-height: 1.38; margin-bottom: 12px; }
.post-card h3 a:hover { color: var(--gold); }

.post-card p {
  font-size: 0.91rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

/* Journal list layout (legal updates page) */
.journal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.26s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.active {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--gold-light);
}

.search-field { position: relative; min-width: 260px; }
.search-field input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.9rem;
  transition: border-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.search-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.14);
}
.search-field svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.no-results.show { display: block; }

/* Article body */
.article-body { font-size: 1.02rem; line-height: 1.86; color: #2b3644; }
/* Inline email addresses in body copy are unbreakable tokens. */
.article-body a { overflow-wrap: anywhere; }
.article-body h2 { margin-top: 1.9em; font-size: clamp(1.4rem, 2.3vw, 1.85rem); }
.article-body h3 { margin-top: 1.6em; }
.article-body ul { padding-left: 1.3em; }
.article-body li { margin-bottom: 0.6em; }

.pull-note {
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  padding: 22px 26px;
  margin: 30px 0;
  font-size: 0.97rem;
  color: #364152;
}

/* --------------------------------------------------------------------------
   16. Disclaimer block
   -------------------------------------------------------------------------- */
.disclaimer {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 0.89rem;
  color: var(--muted);
  line-height: 1.75;
}
.disclaimer strong {
  display: block;
  color: var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-navy .disclaimer {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: var(--gold);
  color: var(--muted-invert);
}
.section-navy .disclaimer strong { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   17. Office location / map
   -------------------------------------------------------------------------- */
.map-frame {
  position: relative;
  min-height: 430px;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ivory);
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 430px; border: 0; display: block; }

.contact-lines { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 22px; }
.contact-lines li { display: flex; gap: 16px; align-items: flex-start; margin: 0; }

.contact-ico {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.contact-ico svg { width: 19px; height: 19px; }

.contact-lines .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
/* Email addresses are long unbreakable tokens; let them break rather than
   push the layout sideways on narrow screens. */
.contact-lines .value {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.contact-lines .value a:hover { color: var(--gold); }
.section-navy .contact-lines .value { color: rgba(255, 255, 255, 0.86); }

/* Contact strip above footer */
.contact-strip {
  background: var(--navy);
  border-top: 1px solid rgba(201, 162, 74, 0.2);
  padding: 34px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 30px;
  align-items: center;
}

.strip-item { display: flex; gap: 14px; align-items: flex-start; }
.strip-item + .strip-item { border-left: 1px solid rgba(255, 255, 255, 0.09); padding-left: 30px; }
.strip-item .contact-ico { width: 40px; height: 40px; }
.strip-item .label { color: var(--gold-light); }
.strip-item .value { color: rgba(255, 255, 255, 0.86); font-size: 0.9rem; }
.strip-item .value a { display: block; }
.strip-item .value a:hover { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   18. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
}
.field label .req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

.field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.14);
}

.field .error-msg {
  display: none;
  font-size: 0.79rem;
  color: #b3261e;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.field.invalid input,
.field.invalid textarea,
.field.invalid select { border-color: #b3261e; }
.field.invalid .error-msg { display: block; }

.form-note { font-size: 0.83rem; color: var(--muted); margin: 18px 0 0; }

.form-status {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  color: var(--ink);
}
.form-status.show { display: block; }

/* --------------------------------------------------------------------------
   19. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--navy-deep);
  color: var(--ink-invert);
  padding: clamp(56px, 6vw, 84px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(201, 162, 74, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.cta-inner h2 { margin-bottom: 10px; color: var(--white); }
.cta-inner p { margin: 0; color: var(--muted-invert); max-width: 560px; }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(52px, 6vw, 76px) 0 0;
  border-top: 1px solid rgba(201, 162, 74, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; color: var(--muted-invert); max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  display: inline-block;
}
.footer-col a:hover { color: var(--gold-light); transform: translateX(3px); }
.footer-col a { transition: color 0.26s var(--ease), transform 0.26s var(--ease); }

.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 5px; }

.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  transition: all 0.28s var(--ease);
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-3px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 24px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a:hover { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   21. Mobile contact bar
   -------------------------------------------------------------------------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: rgba(7, 21, 37, 0.97);
  border-top: 1px solid rgba(201, 162, 74, 0.24);
}

@supports (backdrop-filter: blur(10px)) {
  .mobile-bar { background: rgba(7, 21, 37, 0.92); backdrop-filter: blur(12px); }
}

.mobile-bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); }

.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 6px calc(11px + env(safe-area-inset-bottom, 0px));
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}
.mobile-bar a + a { border-left: 1px solid rgba(255, 255, 255, 0.09); }
.mobile-bar a:active,
.mobile-bar a:hover { color: var(--gold-light); }
.mobile-bar svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   22. Scroll reveal
   -------------------------------------------------------------------------- */
/* Content is visible by default. It is only hidden for the animation once the
   inline bootstrap script has confirmed JavaScript is running, so a failed or
   blocked script can never leave the page blank. */
.reveal { opacity: 1; transform: none; }

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  will-change: opacity, transform;
}
html.js .reveal.visible { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* Image reveal wipe */
.img-reveal { position: relative; overflow: hidden; }
html.js .img-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ivory);
  transform-origin: 100% 50%;
  transform: scaleX(1);
  transition: transform 1.05s var(--ease-out);
  z-index: 2;
}
html.js .img-reveal.visible::after { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .img-reveal::after { display: none; }
  .hero-slide.active .hero-content > * { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   23. Practice-area detail sections (practice-areas.html)
   -------------------------------------------------------------------------- */
.pa-detail { padding: clamp(56px, 6vw, 86px) 0; border-bottom: 1px solid var(--line); }
.pa-detail:nth-child(even) { background: var(--ivory); }
.pa-detail:last-child { border-bottom: 0; }

.pa-detail .split { align-items: start; }

.pa-detail-num {
  font-family: var(--font-head);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--gold-dim);
  margin-bottom: 12px;
  display: block;
}

.scope-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 11px;
}
.scope-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  font-size: 0.94rem;
  color: #37424f;
}
.scope-list svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 5px; }

.pa-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 40px 34px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.pa-detail:nth-child(even) .pa-visual { background: var(--white); }

.pa-visual .pa-icon { width: 60px; height: 60px; margin-bottom: 24px; }
.pa-visual h4 {
  font-family: var(--font-body);
  font-size: 0.73rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.pa-visual ul { list-style: none; padding: 0; margin: 0 0 26px; }
.pa-visual li {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.pa-visual li:last-child { border-bottom: 0; }

/* --------------------------------------------------------------------------
   24. Two-column content page (corporate & property, consumer & IP)
   -------------------------------------------------------------------------- */
.col-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px);
  height: 100%;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.col-panel:hover { box-shadow: var(--shadow-md); border-color: var(--gold-dim); }

.col-panel .pa-icon { width: 48px; height: 48px; margin-bottom: 20px; }
.col-panel h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }

/* Numbered process steps */
.steps { display: grid; gap: 0; counter-reset: step; }

.step {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }

.step-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--gold);
  flex: none;
  width: 46px;
  line-height: 1.2;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.section-navy .step { border-bottom-color: var(--line-dark); }
.section-navy .step p { color: var(--muted-invert); }

/* Stat / info strip */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.info-strip > div { background: var(--white); padding: 30px 26px; }
.info-strip h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.info-strip p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   25. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1439px) and (min-width: 1280px) {
  .header-inner { padding: 0 28px; gap: 14px; }
  .brand { gap: 12px; }
  .brand-mark { width: 54px; height: 54px; }
  .brand-name { font-size: 1.38rem; }
  .brand-sub { font-size: 0.76rem; letter-spacing: 0.16em; }
  .nav > ul { gap: 1px; }
  .nav a.nav-link { padding: 8px 9px; font-size: 0.88rem; }
  .header-cta .btn { padding: 10px 16px; font-size: 0.86rem; }
  .mega-drop { width: 720px; }
}

@media (max-width: 1279px) and (min-width: 1024px) {
  .header-inner { padding: 0 16px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-name { font-size: 1.18rem; }
  .brand-sub { font-size: 0.65rem; letter-spacing: 0.12em; }
  .nav > ul { gap: 0px; }
  .nav a.nav-link { padding: 6px 7px; font-size: 0.80rem; }
  .header-cta .btn { padding: 8px 12px; font-size: 0.78rem; }
  .mega-drop { width: 680px; }
}

@media (max-width: 1023px) {
  :root {
    --header-h: 76px;
    --header-h-scrolled: 70px;
  }

  .nav,
  .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .header-phone-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    color: var(--white);
  }
  .header-phone-mobile svg { width: 18px; height: 18px; }
  .header-phone-mobile:hover { border-color: var(--gold); color: var(--gold-light); }

  .brand { gap: 12px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { font-size: 0.62rem; letter-spacing: 0.15em; }

  .card-grid,
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pillar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }

  .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-item + .strip-item { border-left: 0; padding-left: 0; }
  .strip-grid > .btn { grid-column: 1 / -1; justify-self: start; }

  .pa-visual { position: static; }
}

@media (max-width: 900px) {
  /* minmax(0, 1fr) rather than 1fr: a bare 1fr track is min-width:auto, so a
     wide child (a map iframe, a long heading) pushes the page sideways. */
  .split,
  .split.narrow-media,
  .split.wide-media { grid-template-columns: minmax(0, 1fr); gap: 36px; }

  .split.reverse-mobile > *:first-child { order: 2; }

  /* Mobile hero order: text -> photograph -> slider navigation. */
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "copy"
      "media"
      "nav";
    min-height: 0;
  }

  .hero-copy {
    padding: calc(var(--header-h) + 40px) 28px 32px 28px;
    align-items: flex-start;
  }

  .hero-media {
    height: clamp(300px, 46vh, 420px);
  }
  .hero-media img { object-position: 62% 26%; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(7, 21, 37, 0.55) 0%, rgba(7, 21, 37, 0) 22%),
      linear-gradient(0deg, rgba(7, 21, 37, 0.5) 0%, rgba(7, 21, 37, 0) 26%);
  }

  .hero-nav-area { padding: 26px 28px 32px; }

  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn { width: 100%; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }

  .info-strip { grid-template-columns: minmax(0, 1fr); }

  .map-frame { min-height: 320px; }
  .map-frame iframe { min-height: 320px; }
}

@media (max-width: 767px) {
  body { padding-bottom: 62px; }
  .mobile-bar { display: block; }

  .wrap { padding: 0 20px; }
  .header-inner { padding: 0 20px; }
  .hero-copy { padding-left: 20px; padding-right: 20px; }
  .hero-nav-area { padding-left: 20px; padding-right: 20px; }
  .mobile-nav { padding-left: 20px; padding-right: 20px; }

  .section { padding: 58px 0; }

  .card-grid,
  .post-grid { grid-template-columns: minmax(0, 1fr); }

  .pillar-grid { grid-template-columns: minmax(0, 1fr); }

  .check-list { grid-template-columns: minmax(0, 1fr); }

  .form-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .strip-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }

  .journal-controls { flex-direction: column; align-items: stretch; }
  .search-field { min-width: 0; }

  /* The brand must be able to shrink, or its fixed width pushes the phone and
     menu buttons past the right edge of the viewport. */
  .header-inner { gap: 10px; }
  .brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .brand-text { min-width: 0; }
  .brand-name,
  .brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Long button labels must be allowed to wrap at this width. */
  .btn { white-space: normal; padding-left: 22px; padding-right: 22px; }

  .footer-contact li,
  .strip-item .value { overflow-wrap: anywhere; }

  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: 0.60rem; letter-spacing: 0.14em; }
  .brand-mark { width: 40px; height: 40px; }
  .header-cta { flex: none; gap: 8px; }

  /* The footer brand has room to breathe — keep it full size there. */
  .site-footer .brand-name { font-size: 1.06rem; }
  .site-footer .brand-mark { width: 38px; height: 38px; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner .btn-row { width: 100%; flex-direction: column; }
  .cta-inner .btn { width: 100%; }

  .media-accent::before { display: none; }

  .page-hero { padding: calc(var(--header-h) + 52px) 0 52px; }
}

@media (max-width: 380px) {
  .header-inner { padding: 0 12px; gap: 6px; }
  .brand { gap: 8px; flex: 1 1 auto; min-width: 0; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 0.94rem; }
  .brand-sub { font-size: 0.52rem; letter-spacing: 0.08em; }
  .nav-toggle,
  .header-phone-mobile { width: 40px; height: 40px; }
  .header-cta { gap: 6px; }
}

@media (max-width: 430px) {
  /* At this width the dots and the arrows cannot both fit on one line.
     The dots stay (they double as the 01/04 indicator); swipe replaces the
     arrows, which are still reachable by keyboard. */
  .hero-dots { display: none; }
  .hero-controls { gap: 14px; }
  .hero-count { font-size: 0.74rem; }
  .hero-arrow { width: 42px; height: 42px; }
}

/* --------------------------------------------------------------------------
   26. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .mobile-bar,
  .mobile-nav,
  .hero-arrow,
  .hero-nav,
  .scroll-progress,
  .cta-band { display: none !important; }

  body { padding: 0; color: #000; background: #fff; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  html.js .img-reveal::after { display: none; }
  a { text-decoration: underline; }
}
