/* ============================================================
   PHOSA LOOTS ATTORNEYS — matched palette
   Maroon #781316 (sampled from logo) + white + dark charcoal
   2026-06-01 v3
   ============================================================ */

:root {
  --maroon: #781316;
  --maroon-2: #8d1a1e;
  --maroon-3: #5e0d10;
  --maroon-tint: rgba(120, 19, 22, 0.08);
  --maroon-glow: rgba(120, 19, 22, 0.18);
  --ink: #1f1b1d;
  --ink-2: #2a2528;
  --ink-3: #3d3639;
  --ink-charcoal: #15121a;
  --text: #2a2528;
  --text-2: #555055;
  --text-3: #807a7e;
  --bg: #ffffff;
  --bg-warm: #faf7f3;
  --bg-alt: #f4f0eb;
  --line: #e6e0d6;
  --line-2: #d2cabd;
  --max: 1280px;
  --max-narrow: 980px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img, svg { display: block; max-width: 100%; height: auto; }
::selection { background: var(--maroon); color: #fff; }

/* ===========  SITE HEADER (sticky white, maroon text)  =========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.site-header-inner {
  display: flex; align-items: center; gap: 32px;
  max-width: 1440px; margin: 0 auto;
  padding: 18px 40px;
}
.brand img {
  height: 64px; width: auto;
  display: block;
  transition: transform 0.3s;
}
.brand:hover img { transform: scale(1.03); }
@media (max-width: 1100px) { .brand img { height: 52px; } }
@media (max-width: 880px) { .brand img { height: 44px; } }
.site-nav {
  display: flex; align-items: center; gap: 34px;
  flex: 1;
  justify-content: flex-end;
}
.site-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}
.site-nav a::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: var(--maroon);
  transition: left 0.25s, right 0.25s;
}
.site-nav a:hover::after { left: 0; right: 0; }
.site-nav a:hover { color: var(--maroon-3); }

.site-social {
  display: flex; gap: 8px; align-items: center;
}
.site-social a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--maroon);
  transition: all 0.25s;
}
.site-social a:hover {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
  transform: translateY(-1px);
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }

@media (max-width: 1100px) {
  .site-nav a { font-size: 12px; letter-spacing: 0.12em; }
  .site-header-inner { gap: 20px; padding: 16px 24px; }
  .site-social { display: none; }
}
@media (max-width: 880px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--maroon); transition: 0.25s; }
  .site-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 28px 24px; gap: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  }
  .brand img { height: 44px; }
}

/* ===========  HERO — image background, animated overlay  =========== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex; flex-direction: column;
  background: var(--ink-charcoal);
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(0.95) brightness(0.55);
  animation: heroZoom 28s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 11, 12, 0.65) 0%, rgba(31, 19, 22, 0.78) 60%, rgba(120, 19, 22, 0.55) 100%),
    radial-gradient(ellipse 60% 70% at 30% 40%, rgba(120, 19, 22, 0.18), transparent 70%);
  mix-blend-mode: multiply;
}
.hero-mesh {
  position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 25% 35%, rgba(120, 19, 22, 0.30) 0%, transparent 45%),
    radial-gradient(circle at 75% 65%, rgba(141, 26, 30, 0.22) 0%, transparent 50%);
  filter: blur(60px);
  animation: meshDrift 24s ease-in-out infinite alternate;
  opacity: 0.7;
}
.hero-logo-mark {
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s 0.05s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-logo-mark img {
  height: 56px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
@keyframes meshDrift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(2%, -2%) scale(1.06); }
  100% { transform: translate(-1%, 1%) scale(0.97); }
}
.hero-inner {
  flex: 1;
  padding: 80px 40px 60px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 28px;
  align-self: flex-start;
  background: rgba(120, 19, 22, 0.22);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: fadeUp 0.9s 0.15s cubic-bezier(0.2,0.8,0.2,1) forwards;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
  animation: pulse 2.4s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.04); }
}
.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: #fff;
  margin-bottom: 24px;
  max-width: 920px;
}
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: revealWord 0.9s cubic-bezier(0.2,0.8,0.2,1) forwards;
}
.reveal-word:nth-child(1) { animation-delay: 0.30s; }
.reveal-word:nth-child(2) { animation-delay: 0.42s; }
.reveal-word:nth-child(3) { animation-delay: 0.56s; }
.reveal-word:nth-child(4) { animation-delay: 0.66s; }
.reveal-word:nth-child(5) { animation-delay: 0.76s; }
@keyframes revealWord {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-accent { font-style: italic; color: #f0d4c0; font-weight: 500; }

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.reveal-fade {
  opacity: 0;
  animation: fadeUp 0.9s 1.0s cubic-bezier(0.2,0.8,0.2,1) forwards;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  margin-bottom: 0;
}

.hero-cta-band {
  background: var(--maroon);
  padding: 32px 40px;
  position: relative;
  z-index: 2;
  border-top: 2px solid var(--maroon-2);
}
.hero-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-cta-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.hero-cta-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===========  BUTTONS  =========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 0;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 6px 18px var(--maroon-glow);
}
.btn-primary:hover {
  background: var(--maroon-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(120, 19, 22, 0.4);
}
.btn-light {
  background: #fff;
  color: var(--maroon);
}
.btn-light:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--maroon);
}
.btn-full { width: 100%; justify-content: center; }

/* ===========  NEWS SECTION (matches WP style) =========== */
.news-section {
  background: #fff;
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}
.news-section-head {
  text-align: center;
  margin-bottom: 56px;
}
.news-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5.2vw, 58px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.32em;
  margin-bottom: 12px;
}
.news-section-rule {
  display: inline-block;
  width: 60px; height: 2px;
  background: var(--maroon);
}

/* News slider — HTS-vakatures style: side arrows + progress bar + smooth transitions */
.news-slider {
  position: relative;
  padding: 0 60px;  /* room for absolutely-positioned side arrows */
}
.news-slider-viewport {
  overflow: hidden;
  position: relative;
}
.news-slider-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.3, 1);
  gap: 24px;
}
.news-slider-prev,
.news-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--maroon);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  font-weight: 600;
}
.news-slider-prev:hover,
.news-slider-next:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 30px var(--maroon-glow);
}
.news-slider-prev { left: 6px; }
.news-slider-next { right: 6px; }
@media (max-width: 740px) {
  .news-slider { padding: 0 48px; }
  .news-slider-prev, .news-slider-next { width: 40px; height: 40px; font-size: 18px; }
  .news-slider-prev { left: 0; }
  .news-slider-next { right: 0; }
}

/* Progress bar — fills over 7s before auto-advancing */
.news-slider-progress {
  margin: 28px auto 0;
  width: 100%; max-width: 380px;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}
.news-slider-progress-bar {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 0;
  background: linear-gradient(90deg, var(--maroon-3), var(--maroon), var(--maroon-2));
  border-radius: 1px;
}
.news-slider-progress-bar.animate {
  animation: progressFill 7s linear forwards;
}
@keyframes progressFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* News card (matches WP — distinct circular branding overlay) */
.news-slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
}
@media (max-width: 1024px) { .news-slide { flex-basis: calc(50% - 12px); } }
@media (max-width: 640px) { .news-slide { flex-basis: 100%; } }

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.news-card:hover {
  border-color: var(--maroon);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(120, 19, 22, 0.1);
}
.news-card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}
.news-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.news-card:hover .news-card-media img { transform: scale(1.05); }
/* The distinctive circular logo overlay — matches the WP rotator */
.news-card-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid var(--maroon);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.news-card-badge img {
  width: 60px; height: auto;
  margin-bottom: 4px;
}
.news-card-badge-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--maroon);
  letter-spacing: 0.02em;
  font-style: italic;
}
.news-card-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column;
  flex: 1;
}
.news-card-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--maroon);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.news-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.008em;
  line-height: 1.25;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-excerpt {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-cta {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--maroon);
  padding: 8px 16px;
  border-radius: 2px;
}
.news-card-cta:hover { background: var(--maroon-2); }

.news-slider-dots {
  display: flex; justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.news-slider-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s;
}
.news-slider-dots button.active {
  background: var(--maroon);
  width: 24px;
  border-radius: 4px;
}

/* ===========  SECTIONS  =========== */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 700;
  margin-bottom: 18px;
}
.section-eyebrow-light { color: #f0d4c0; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--maroon);
  font-weight: 500;
}
.section-title-light {
  color: #fff;
}
.section-title-light em {
  color: #f0d4c0;
}
.section-sub {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
}
.section-sub-light {
  color: rgba(255, 255, 255, 0.7);
}

/* ===========  WHO WE ARE  =========== */
.section-who { background: var(--bg-warm); }
.who-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) {
  .who-grid { grid-template-columns: 1fr; gap: 40px; }
}
.who-left .section-title {
  text-align: left;
  font-size: clamp(30px, 4.2vw, 44px);
}
.who-left p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.75;
  margin: 16px 0;
}
.who-stats {
  display: flex;
  gap: 44px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid var(--line);
}
.who-stat {
  display: flex; flex-direction: column; gap: 4px;
}
.who-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 500;
  color: var(--maroon);
  line-height: 1;
  letter-spacing: -0.02em;
}
.who-stat-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.who-image {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border-radius: 2px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.who-image::before {
  content: '';
  position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px;
  background: var(--maroon);
  z-index: -1;
  border-radius: 2px;
}
.who-image img {
  max-width: 60%; height: auto; object-fit: contain;
  filter: contrast(0.92);
}

/* ===========  EXPERTISE — DARK section (matches WP)  =========== */
.section-expertise {
  background: var(--ink-charcoal);
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid #2a2528;
}
.section-expertise .section-eyebrow::before { display: none; }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.expertise-card {
  padding: 30px 26px;
  background: #221b1d;
  transition: all 0.3s ease;
  position: relative;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.expertise-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--maroon);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.expertise-card:hover {
  background: #2a2125;
  border-color: var(--maroon);
  z-index: 1;
}
.expertise-card:hover::after { transform: scaleX(1); }
.expertise-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-weight: 500;
}
.expertise-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 10px;
}
.expertise-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.expertise-link {
  font-size: 10.5px;
  color: #f0d4c0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}
.expertise-link::after { content: '→'; transition: transform 0.2s; }
.expertise-card:hover .expertise-link::after { transform: translateX(4px); }

/* ===========  TEAM GRID (smaller, more uniform)  =========== */
.section-team { background: var(--bg-warm); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.team-card {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.team-card:hover {
  border-color: var(--maroon);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.06);
}
.team-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--maroon);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.team-card:hover::before { transform: scaleX(1); }
.team-monogram {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.team-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.team-role {
  font-size: 10px;
  color: var(--maroon);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.team-bio {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-contact {
  font-size: 12px;
  color: var(--text-3);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.team-contact a { color: var(--maroon); display: block; padding: 2px 0; }
.team-contact a:hover { color: var(--maroon-2); }

/* ===========  CONTACT  =========== */
.section-contact { background: var(--bg-warm); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-left .section-title { text-align: left; font-size: clamp(30px, 4vw, 42px); }
.contact-left p { color: var(--text-2); font-size: 15.5px; margin: 16px 0 32px; line-height: 1.6; }
.contact-items { display: grid; gap: 14px; }
.contact-item {
  display: flex; gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.25s;
}
.contact-item:hover { border-color: var(--maroon); }
.contact-icon {
  width: 38px; height: 38px;
  background: var(--maroon);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-label {
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 3px;
  font-weight: 600;
}
.contact-value {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 2px;
  position: relative;
}
.form-row { display: block; margin-bottom: 16px; }
.form-row span {
  display: block;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  background: var(--bg-warm);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  padding: 11px 14px;
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--maroon);
}
.form-row textarea { resize: vertical; min-height: 100px; }

/* ===========  FOOTER  =========== */
.footer {
  background: var(--ink-charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
  border-top: 4px solid var(--maroon);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 18px;
  display: block;
  /* Logo is already white; fallback: invert if it isn't */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.footer-brand p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 320px;
}
.footer-nav h4, .footer-contact h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0d4c0;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-nav a, .footer-contact a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  padding: 3px 0;
}
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-locations {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 5px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.footer-credit a { color: #f0d4c0; }

/* ===========  REVEAL ON SCROLL  =========== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-on-scroll.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-word, .reveal-fade, .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
  .news-slider-track { transition: none !important; }
}

/* ===========  TEAM MODAL (click team card → full bio overlay)  =========== */
.team-card {
  cursor: pointer;
  user-select: none;
}
.team-grid-home {
  /* Limit homepage team grid to 8 visible; "Meet the full team" CTA reveals rest */
}
.team-grid-home .team-card:nth-child(n+9) { display: none; }

.team-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.team-modal[aria-hidden="false"] { display: flex; }
.team-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 11, 12, 0.78);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
  cursor: pointer;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.team-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 4px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 44px 44px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  animation: modalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.team-modal-close {
  position: absolute; top: 14px; right: 18px;
  width: 36px; height: 36px;
  background: transparent;
  border: 0;
  color: var(--text-3);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.team-modal-close:hover { color: var(--maroon); }
.team-modal-mono {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 18px;
}
.team-modal-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  line-height: 1.15;
}
.team-modal-role {
  font-size: 11.5px;
  color: var(--maroon);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
}
.team-modal-bio {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
  white-space: pre-line;
}
.team-modal-contact {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.team-modal-contact a {
  display: block;
  color: var(--maroon);
  padding: 4px 0;
  font-weight: 500;
}
.team-modal-contact a:hover { color: var(--maroon-2); }

body.modal-open { overflow: hidden; }

/* ===========  TEAM CATEGORY BLOCKS (team.html)  =========== */
.team-category-block { margin-bottom: 72px; }
.team-category-block:last-child { margin-bottom: 0; }
.team-cat-header { margin-bottom: 28px; }
.team-cat-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.team-cat-desc {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 600px;
  margin-bottom: 14px;
}
.team-cat-rule {
  width: 60px; height: 2px;
  background: var(--maroon);
}

/* =====================================================================
   2026-06-01 v8 — Expertise mega-menu dropdown
   ===================================================================== */
.nav-item-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-dropdown-trigger .nav-chev {
  width: 10px; height: 10px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.nav-item-dropdown:hover .nav-dropdown-trigger .nav-chev,
.nav-item-dropdown.open .nav-dropdown-trigger .nav-chev {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 640px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px -12px rgba(15, 11, 12, 0.22), 0 8px 18px -6px rgba(120, 19, 22, 0.10);
  border-radius: 4px;
  padding: 28px 28px 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s 0.22s;
  z-index: 50;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -18px; left: 0; right: 0; height: 18px;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown,
.nav-item-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}

.nav-dropdown-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 22px;
}
.nav-dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-dropdown-item:hover {
  background: var(--bg-warm);
  transform: translateX(2px);
}
.nav-dropdown-item-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--maroon);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.nav-dropdown-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.nav-dropdown-item-desc {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  display: none;  /* hide by default; show on wider menus */
}
.nav-dropdown-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: right;
}
.nav-dropdown-foot a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--maroon);
  text-transform: uppercase;
}
.nav-dropdown-foot a:hover { color: var(--maroon-2); }

/* Suppress the underline-on-hover from .site-nav a for the trigger and items */
.nav-dropdown-trigger::after,
.nav-dropdown-item::after { display: none !important; }

@media (max-width: 1100px) {
  .nav-dropdown { width: 560px; padding: 22px 22px 18px; }
  .nav-dropdown-item-title { font-size: 15.5px; }
}
@media (max-width: 880px) {
  /* On mobile the .site-nav becomes a stacked panel — dropdown becomes inline accordion */
  .nav-item-dropdown { width: 100%; }
  .nav-dropdown {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: var(--bg-warm);
    margin-top: 8px;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-dropdown::before,
  .nav-dropdown::after { display: none; }
  .nav-item-dropdown.open .nav-dropdown {
    max-height: 1200px;
    padding: 16px 18px;
  }
  .nav-dropdown-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .nav-dropdown-item-title { font-size: 15px; }
}

/* =====================================================================
   2026-06-01 v8 — Practice-page imagery: hero + gallery grid
   (replaces the "hide everything after the 2nd img" hack)
   ===================================================================== */

/* Stripped-from-flow images — they get moved out by main.js, but if JS doesn't
   run we still want them to behave (not blow out the layout) */
.practice-content img {
  /* These rules are overridden when the gallery JS runs and lifts images out. */
  max-width: 100% !important;
  max-height: 320px !important;
  height: auto !important;
  display: block !important;
  margin: 24px auto !important;
  object-fit: contain !important;
}

/* Hero image (the first practice-content image, lifted to top by JS) */
.practice-hero-image {
  width: 100%;
  margin: 0 0 32px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-warm);
  aspect-ratio: 21 / 9;
  max-height: 380px;
  box-shadow: 0 12px 28px -10px rgba(15, 11, 12, 0.18);
}
.practice-hero-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  margin: 0 !important;
  display: block !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Gallery grid at the END of practice-content */
.practice-gallery {
  margin: 56px 0 0;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.practice-gallery-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.practice-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.practice-gallery-grid figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-warm);
  box-shadow: 0 6px 14px -6px rgba(15, 11, 12, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.practice-gallery-grid figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgba(120, 19, 22, 0.22);
}
.practice-gallery-grid img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  margin: 0 !important;
  display: block !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 0.6s ease;
}
.practice-gallery-grid figure:hover img {
  transform: scale(1.04);
}
@media (max-width: 880px) {
  .practice-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .practice-hero-image { aspect-ratio: 16 / 9; max-height: 280px; }
}
@media (max-width: 480px) {
  .practice-gallery-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* When the gallery has only 1 image total: it became the hero, no gallery shown */
.practice-gallery:empty { display: none; }

/* ===========  2026-06-01 v11 — Contact form status messages  =========== */
.form-status {
  margin-top: 16px;
  padding: 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
  border-radius: 4px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
.form-status:not(:empty) {
  max-height: 200px;
  opacity: 1;
  padding: 14px;
  margin-top: 14px;
}
.form-status-success {
  background: #f0f6f2;
  color: #1e5b3a;
  border: 1px solid #c7e2cf;
}
.form-status-error {
  background: #fbf2f2;
  color: var(--maroon-2);
  border: 1px solid #f0c8c8;
}
.contact-form button[disabled] {
  opacity: 0.6;
  cursor: wait;
}
