:root {
  --navy: #0f1b2b;
  --navy-light: #16263c;
  --orange: #f5a623;
  --brand-red: #be1522;
  --text-light: #ffffff;
  --text-muted: #8fa3bd;
  --text-dark: #1a1a1a;
  --transition: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background: #f8f9fb;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ============ SPLASH SCREEN ============ */
.splash-screen {
  position: fixed; inset: 0; z-index: 9999; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo { max-width: 240px; animation: splashPulse 1.4s ease-in-out infinite; }
@keyframes splashPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* ============ SCROLL REVEAL (re-triggers both directions) ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1.visible { transition-delay: 0.15s; }
.reveal.delay-2.visible { transition-delay: 0.3s; }

/* Image-specific reveal: fades + scales in, slightly more dramatic than text */
.reveal-img {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal-img.visible { opacity: 1; transform: scale(1); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.06); z-index: 1000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-chip {
  display: inline-flex; align-items: center; background: transparent; border-radius: 8px;
  padding: 0; box-shadow: none;
}
.logo-chip img { height: 76px; width: auto; display: block; }
.footer-logo-chip { margin-bottom: 16px; }
.footer-logo-chip img { height: 60px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-item { position: relative; }
.main-nav a { color: #1a1a1a; text-decoration: none; font-size: 14px; font-weight: 500; position: relative; padding-bottom: 4px; display: inline-block; }
.main-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange);
  transition: width 0.3s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--orange); color: var(--navy) !important; padding: 10px 20px; border-radius: 4px; font-weight: 600; }
.caret { font-size: 10px; display: inline-block; transition: transform 0.3s ease; }
.nav-item.has-dropdown:hover .caret { transform: rotate(180deg); }

/* Dropdown submenu - fade + slide down on hover */
.dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 14px;
  background: #fff; min-width: 200px; border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,.14); border: 1px solid #eee; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 10;
}
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.open .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 13.5px; color: #1a1a1a !important; white-space: nowrap;
}
.dropdown-menu a::after { display: none !important; }
.dropdown-menu a:hover { background: rgba(245,166,35,.1); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #1a1a1a; }

/* ============ HERO (multi-media crossfade slideshow) ============ */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-bg-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide.hero-bg.active { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.12) translate(-1%, -1%); }
}
@keyframes kenburns-safe {
  from { transform: scale(0.92); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 700px; margin-left: 6%; margin-right: auto; }
.hero-content h1 { font-size: 56px; margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-content p { font-size: 17px; color: #f0f2f5; margin-bottom: 32px; max-width: 560px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.btn-cta {
  display: inline-block; background: var(--orange); color: var(--navy); padding: 14px 32px;
  border-radius: 4px; text-decoration: none; font-weight: 600; transition: transform 0.3s ease, background 0.3s ease;
}
.btn-cta:hover { background: #fff; transform: translateY(-3px); }

/* ============ CONTENT SECTIONS (About / Awards / Our Firm / Career) ============ */
.kicker { color: var(--brand-red); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; }
.content-section { padding: 100px 0; background: #f8f9fb; }
.content-section.alt-bg { background: #f8f9fb; }
.section-intro { color: #566574; max-width: 720px; margin: 16px auto 0; }
.section-head.reveal { text-align: center; }

.content-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  margin: 70px 0;
}
.content-block.img-right { direction: rtl; }
.content-block.img-right > * { direction: ltr; }

.content-block-media { position: relative; }
.content-block-media.orientation-vertical { display: flex; justify-content: center; }

.media-frame { position: relative; padding: 20px 0 0 20px; }
.media-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 105%; height: 105%;
  background: var(--brand-red);
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0% 100%);
  z-index: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.content-block-media.visible .media-frame::before {
  opacity: 1;
  transform: translateX(0);
}
/* When the image sits on the right, mirror everything so the diagonal still faces the text */
.content-block.img-right .media-frame { padding: 20px 20px 0 0; }
.content-block.img-right .media-frame::before {
  left: auto; right: 0;
  clip-path: polygon(0 0, 88% 0, 100% 100%, 12% 100%);
  transform: translateX(-40px);
}
.content-block.img-right .content-block-media.visible .media-frame::before {
  transform: translateX(0);
}
.media-frame.no-accent { padding: 0; }
.media-frame.no-accent::before { display: none; }

.media-frame img {
  position: relative; z-index: 1;
  width: 100%; display: block; object-fit: cover; border-radius: 10px;
  box-shadow: 0 20px 45px rgba(15,27,45,.12);
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
}
.content-block-media.visible .media-frame img {
  opacity: 1;
  transform: translateX(0);
}
.content-block.img-right .media-frame img { transform: translateX(40px); }
.content-block.img-right .content-block-media.visible .media-frame img { transform: translateX(0); }
.media-frame:hover img { transform: translateY(-4px) !important; }

.content-block-media.orientation-vertical .media-frame img { width: 100%; max-width: 500px; height: auto; }
.content-block-media.orientation-horizontal .media-frame img { min-height: 340px; object-fit: cover; }
.content-block-text h3 { font-size: 26px; color: var(--brand-red); margin-bottom: 16px; }
.content-block-text p { color: #566574; margin-bottom: 20px; }
.btn-outline {
  display: inline-block; border: 2px solid var(--orange); color: var(--navy); padding: 10px 24px;
  border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-outline:hover { background: var(--orange); }

.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; padding-top: 50px; border-top: 1px solid #eee; }
.mission-vision h4 { color: var(--brand-red); font-size: 16px; margin-bottom: 8px; }
.mission-vision p { font-size: 14px; color: #667085; }

/* ============ CV APPLICATION FORM (Career section) ============ */
.cv-apply-box {
  max-width: 640px; margin: 70px auto 0; background: #fff; border-radius: 10px;
  padding: 40px; box-shadow: 0 20px 45px rgba(15,27,43,.08); text-align: center;
}
.cv-apply-box h3 { font-size: 22px; color: var(--brand-red); margin-bottom: 12px; }
.cv-apply-box p { color: #667085; font-size: 14px; margin-bottom: 26px; }
.cv-toggle-btn { border: none; cursor: pointer; font-family: inherit; }
.cv-form-collapse {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.5s ease;
}
.cv-form-collapse.open {
  max-height: 900px; opacity: 1; margin-top: 26px;
}
.cv-apply-box form { text-align: left; }
.cv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.cv-apply-box input[type=text], .cv-apply-box input[type=email], .cv-apply-box textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit;
}
.cv-apply-box textarea { margin-bottom: 16px; }
.cv-file-row { margin-bottom: 20px; }
.cv-file-row label { display: block; font-size: 13px; color: #566574; margin-bottom: 8px; }
.cv-file-row input[type=file] { font-size: 13px; }
.cv-apply-box button {
  background: var(--orange); color: var(--navy); border: none; padding: 12px 32px; border-radius: 4px;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.3s ease;
}
.cv-apply-box button:hover { background: #10233f; color: #fff; }
.cv-apply-box .form-status { text-align: left; margin-top: 12px; font-size: 13px; }
.cv-apply-box .form-status.success { color: #1a8a4a; }
.cv-apply-box .form-status.error { color: #c0392b; }
@media (max-width: 640px) {
  .cv-apply-box { padding: 26px 20px; }
  .cv-form-row { grid-template-columns: 1fr; }
}

/* ============ STATS (integrated into page flow, no hard color break) ============ */
/* ============ STATS (floating card, dips into hero bottom edge) ============ */
.stats-dip-wrap { position: relative; z-index: 5; margin-top: -60px; margin-bottom: 40px; }
.stats-dip-card {
  background: #fff; border-radius: 12px; box-shadow: 0 20px 45px rgba(15,27,43,.15);
  padding: 36px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.stat-box h3 { display: inline; font-size: 38px; color: var(--orange); }
.stat-box .suffix { font-size: 28px; color: var(--orange); font-family: 'Playfair Display', serif; }
.stat-box p { color: #667085; font-size: 13.5px; margin-top: 6px; }

/* ============ SERVICES ============ */
.services { padding: 110px 0; background: #f8f9fb; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head h2 { font-size: 32px; margin-top: 10px; color: var(--brand-red); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #fff; border-radius: 10px; padding: 36px 28px; box-shadow: 0 4px 20px rgba(0,0,0,.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 16px 32px rgba(0,0,0,.08); }
.service-icon {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(245,166,35,.12);
  margin-bottom: 20px; display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 19px; margin-bottom: 12px; color: var(--brand-red); }
.service-card p { color: #667085; font-size: 14.5px; }
.service-link { display: inline-block; margin-top: 14px; color: var(--orange); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.service-link:hover { text-decoration: underline; }

/* ============ VIDEOS (featured + list) ============ */
.videos-section { padding: 100px 0; background: #f8f9fb; }
.video-showcase { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.video-main {
  position: relative; border-radius: 10px; overflow: hidden; background: #0f1b2b;
  aspect-ratio: 16 / 9; cursor: pointer;
}
.video-main img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-main iframe, .video-main video { width: 100%; height: 100%; border: 0; display: block; }
.video-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92);
  border: none; color: var(--navy); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease;
}
.video-main:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.08); }
.video-list { display: flex; flex-direction: column; gap: 12px; }
.video-list-item {
  display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 8px;
  padding: 10px; cursor: pointer; border: 1.5px solid transparent; transition: border-color 0.3s ease;
}
.video-list-item.active, .video-list-item:hover { border-color: var(--orange); }
.video-list-item img { width: 70px; height: 50px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.video-list-item strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.videos-section .video-list-item p { font-size: 12px; color: #667085; margin: 0; }
@media (max-width: 800px) {
  .video-showcase { grid-template-columns: 1fr; }
}

/* ============ LOCATIONS (interactive map + cards) ============ */
.locations-section { padding: 100px 0; background: #f8f9fb; }
.locations-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }
.locations-map { width: 100%; height: 480px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); z-index: 1; }
.locations-list { display: flex; flex-direction: column; gap: 16px; max-height: 480px; overflow-y: auto; padding-right: 6px; }
.location-card { background: #f8f9fb; border-radius: 8px; padding: 20px; }
.location-card h3 { color: var(--brand-red); font-size: 16px; margin: 0 0 6px; }
.location-address { color: #888; font-size: 12.5px; margin: 0 0 8px; font-style: italic; }
.location-card p:not(.location-address) { color: #566574; font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; }
.location-card .btn-outline { padding: 8px 18px; font-size: 12.5px; }
@media (max-width: 800px) {
  .locations-layout { grid-template-columns: 1fr; }
  .locations-map { height: 320px; }
  .locations-list { max-height: none; }
}

/* ============ FLIP GRID (4 per row, hover slides a curtain up to reveal text, no image) ============ */
.flip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.flip-tile {
  position: relative; height: 300px; border-radius: 10px; overflow: hidden;
}
.flip-front {
  position: absolute; inset: 0; background-size: contain; background-repeat: no-repeat;
  background-position: center; background-color: #fff;
  display: flex; align-items: flex-end;
}
.flip-front-title {
  position: relative; z-index: 1; color: var(--brand-red); font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; padding: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.flip-curtain {
  position: absolute; inset: 0; z-index: 2; background: var(--navy, #10233f);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25,0.8,0.25,1);
  display: flex; flex-direction: column; justify-content: center; padding: 26px; text-align: center;
}
.flip-tile:hover .flip-curtain { transform: translateY(0); }
.flip-curtain h3 { color: var(--orange); font-size: 16px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .4px; }
.flip-curtain p { color: #dbe4ee; font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.flip-back-link {
  display: inline-block; color: var(--orange); font-weight: 600; font-size: 12.5px; text-decoration: none;
  border-bottom: 1.5px solid var(--orange); padding-bottom: 2px; align-self: center;
}
@media (max-width: 800px) {
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
  .flip-tile { height: 260px; }
}
@media (max-width: 480px) {
  .flip-grid { grid-template-columns: 1fr; }
}

/* Marquee preview row (default view) + See All toggle to reveal the full grid */
.gallery-marquee-wrap { overflow: hidden; position: relative; }
.gallery-marquee-wrap::before, .gallery-marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 3; pointer-events: none;
}
.gallery-marquee-wrap::before { left: 0; background: linear-gradient(90deg, #f8f9fb, rgba(248,249,251,0)); }
.gallery-marquee-wrap::after { right: 0; background: linear-gradient(270deg, #f8f9fb, rgba(248,249,251,0)); }
.gallery-marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: gallery-marquee-scroll 30s linear infinite;
}
.gallery-marquee-wrap:hover .gallery-marquee-track { animation-play-state: paused; }
.gallery-marquee-track .flip-tile { width: 260px; flex-shrink: 0; }
@keyframes gallery-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.gallery-full-grid { display: none; margin-top: 24px; }
.gallery-wrapper.expanded .gallery-marquee-wrap { display: none; }
.gallery-wrapper.expanded .gallery-full-grid { display: grid; }
.gallery-see-all-wrap { text-align: center; margin-top: 24px; }
@media (max-width: 800px) {
  .gallery-marquee-track .flip-tile { width: 200px; }
}

/* ============ MASONRY GRID (alt display theme — varied-size editorial photo grid) ============ */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 26px;
}
.masonry-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15,27,43,.08);
  transition: transform .35s ease, box-shadow .35s ease;
}
.masonry-item:hover .masonry-card { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(15,27,43,.14); }
.masonry-img-wrap { height: 220px; overflow: hidden; }
.masonry-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.masonry-item:hover .masonry-img-wrap img { transform: scale(1.06); }
.masonry-text { position: relative; padding: 22px 22px 24px; flex: 1; }
.masonry-text::before { content: ''; position: absolute; top: 0; left: 22px; width: 34px; height: 3px; background: var(--brand-red); }
.masonry-text h4 { font-size: 18px; color: var(--brand-red); margin: 12px 0 8px; }
.masonry-text p { color: #566574; font-size: 14px; line-height: 1.6; }
.masonry-tag {
  display: inline-block; margin-top: 12px; color: var(--orange); font-weight: 600; font-size: 13px;
  text-decoration: none; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px;
}
/* Every 4th tile runs tall, every 4th-from-the-end runs wide - gives the grid its editorial rhythm */
.masonry-grid .masonry-item:nth-child(4n+1) { grid-row: span 2; }
.masonry-grid .masonry-item:nth-child(4n+1) .masonry-img-wrap { height: 100%; min-height: 420px; }
.masonry-grid .masonry-item:nth-child(4n) { grid-column: span 2; }
/* Staggered reveal, same cascading technique used on the Clients grid */
.masonry-grid .masonry-item:nth-child(4n+1) { transition-delay: 0s; }
.masonry-grid .masonry-item:nth-child(4n+2) { transition-delay: .1s; }
.masonry-grid .masonry-item:nth-child(4n+3) { transition-delay: .2s; }
.masonry-grid .masonry-item:nth-child(4n) { transition-delay: .3s; }
@media (max-width: 1024px) {
  .masonry-grid { grid-template-columns: 1fr 1fr; }
  .masonry-grid .masonry-item:nth-child(4n+1) { grid-row: span 1; }
  .masonry-grid .masonry-item:nth-child(4n+1) .masonry-img-wrap { min-height: 220px; }
  .masonry-grid .masonry-item:nth-child(4n) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .masonry-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============ TEAM DIRECTORY (alt display theme — rounded avatar people cards, Our Firm only) ============ */
.directory-wrapper { display: flex; flex-direction: column; gap: 24px; }
.directory-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.directory-row.directory-row-hidden { display: none; }
.directory-wrapper.expanded .directory-row.directory-row-hidden { display: grid; }
.directory-card {
  height: 100%;
  background: #fff;
  padding: 22px 14px;
  border-radius: 28px;
  border: 1px solid #eee;
  text-align: center;
  box-shadow: 0 16px 34px rgba(15,27,43,.08);
  transition: transform .4s cubic-bezier(.175,.885,.32,1.275), box-shadow .4s ease, border-color .4s ease;
}
.directory-item:hover .directory-card {
  transform: translateY(-8px); border-color: var(--brand-red); box-shadow: 0 24px 46px rgba(15,27,43,.14);
}
.directory-avatar-wrap {
  width: 90px; height: 90px; margin: 0 auto 14px; border-radius: 26px; overflow: hidden; position: relative;
  border: 3px solid var(--brand-red); box-shadow: 0 10px 22px rgba(190,21,34,.18);
  transition: transform .4s ease, border-radius .4s ease, border-color .4s ease;
}
.directory-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.directory-item:hover .directory-avatar-wrap { border-radius: 50%; transform: scale(1.07); border-color: var(--orange); }
.directory-item:hover .directory-avatar-wrap img { transform: scale(1.05); }
.directory-name { font-size: 15px; color: var(--navy); margin-bottom: 3px; }
.directory-role { color: var(--brand-red); font-size: 12px; font-weight: 600; }
.directory-link {
  display: inline-block; margin-top: 10px; color: var(--orange); font-weight: 600; font-size: 11px;
  text-decoration: none; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px;
}
.directory-row:nth-child(1) .directory-item:nth-child(6n+1) { transition-delay: 0s; }
.directory-row:nth-child(1) .directory-item:nth-child(6n+2) { transition-delay: .06s; }
.directory-row:nth-child(1) .directory-item:nth-child(6n+3) { transition-delay: .12s; }
.directory-row:nth-child(1) .directory-item:nth-child(6n+4) { transition-delay: .18s; }
.directory-row:nth-child(1) .directory-item:nth-child(6n+5) { transition-delay: .24s; }
.directory-row:nth-child(1) .directory-item:nth-child(6n) { transition-delay: .3s; }
@media (max-width: 1024px) {
  .directory-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .directory-row { grid-template-columns: repeat(2, 1fr); }
  .directory-avatar-wrap { width: 80px; height: 80px; }
}

/* ============ FLOATING SQUIRCLE (alt display theme — overlapping avatar card, Our Firm only) ============ */
.overlap-wrapper { display: flex; flex-direction: column; gap: 24px; }
.overlap-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.overlap-row.overlap-row-hidden { display: none; }
.overlap-wrapper.expanded .overlap-row.overlap-row-hidden { display: grid; }
.overlap-card {
  background: #fff;
  border-radius: 28px;
  border: 1px solid #eee;
  padding: 20px 16px 26px;
  margin-top: 46px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(15,27,43,.08);
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.overlap-item:hover .overlap-card {
  transform: translateY(-8px); border-color: var(--brand-red); box-shadow: 0 24px 46px rgba(15,27,43,.14);
}
.overlap-avatar-wrap {
  width: 100px; height: 100px; margin: -66px auto 16px; border-radius: 32px; overflow: hidden;
  border: 4px solid #fff; box-shadow: 0 12px 24px rgba(15,27,43,.2);
  transition: border-radius .4s ease, transform .4s ease;
}
.overlap-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.overlap-item:hover .overlap-avatar-wrap { border-radius: 50%; transform: scale(1.06); }
.overlap-name { font-size: 16px; color: var(--navy); margin-bottom: 3px; }
.overlap-role { color: var(--brand-red); font-size: 12.5px; font-weight: 600; }
.overlap-link {
  display: inline-block; margin-top: 10px; color: var(--orange); font-weight: 600; font-size: 11.5px;
  text-decoration: none; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px;
}
.overlap-row:nth-child(1) .overlap-item:nth-child(4n+1) { transition-delay: 0s; }
.overlap-row:nth-child(1) .overlap-item:nth-child(4n+2) { transition-delay: .1s; }
.overlap-row:nth-child(1) .overlap-item:nth-child(4n+3) { transition-delay: .2s; }
.overlap-row:nth-child(1) .overlap-item:nth-child(4n) { transition-delay: .3s; }
@media (max-width: 1024px) {
  .overlap-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .overlap-row { grid-template-columns: 1fr; }
  .overlap-card { margin-top: 56px; }
  .overlap-avatar-wrap { width: 110px; height: 110px; margin-top: -70px; }
}

/* ============ NEWS & EVENTS HERO BANNER (Card Deck theme header) ============ */
.news-accordion-section { padding: 0 0 110px; }
.news-hero-banner {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  margin-bottom: 50px;
}
.news-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,27,43,.5) 0%, rgba(15,27,43,.85) 100%);
}
.news-hero-inner { position: relative; z-index: 1; text-align: center; }
.news-hero-kicker { color: var(--orange); }
.news-hero-title { font-size: 40px; color: #fff; margin-top: 10px; }
@media (max-width: 700px) {
  .news-hero-banner { height: 240px; }
  .news-hero-title { font-size: 30px; }
}

/* ============ CARD DECK / ACCORDION (alt display theme, News & Events only) ============ */
.accordion-wrapper { display: flex; flex-direction: column; gap: 16px; }
.accordion-row { display: flex; gap: 16px; height: 360px; }
.accordion-row.accordion-row-hidden { display: none; }
.accordion-wrapper.expanded .accordion-row.accordion-row-hidden { display: flex; }
.accordion-panel {
  position: relative; flex: 1; border-radius: 16px; overflow: hidden; cursor: pointer;
  transition: flex .6s cubic-bezier(.16,1,.3,1);
}
.accordion-panel.accordion-featured { flex: 2.2; }
.accordion-panel:hover { flex: 3.4; }
.accordion-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.55); transition: transform .6s ease, filter .4s ease;
}
.accordion-panel:hover .accordion-bg { filter: brightness(.72); transform: scale(1.05); }
.accordion-content {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 1;
  background: linear-gradient(0deg, rgba(15,27,43,.95) 0%, rgba(15,27,43,.55) 60%, transparent 100%);
}
.accordion-date {
  display: inline-block; padding: 3px 14px; border-radius: 20px; margin-bottom: 10px;
  background: rgba(245,166,35,.18); border: 1px solid var(--orange); color: var(--orange);
  font-size: 11.5px; font-weight: 600;
}
.accordion-title {
  font-size: 17px; color: #fff; line-height: 1.25; margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.accordion-panel.accordion-featured .accordion-title,
.accordion-panel:hover .accordion-title { font-size: 22px; white-space: normal; }
.accordion-desc {
  color: #dbe1e8; font-size: 13px; line-height: 1.55; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s ease, opacity .4s ease;
}
.accordion-panel.accordion-featured .accordion-desc,
.accordion-panel:hover .accordion-desc { max-height: 90px; opacity: 1; }
.accordion-link {
  display: inline-block; margin-top: 10px; color: var(--orange); font-weight: 600; font-size: 12.5px;
  text-decoration: none; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px;
}
@media (max-width: 900px) {
  /* Mobile only: switch from "text overlaid on darkened photo" to a plain
     split card - full-brightness photo on top, white text panel below.
     Desktop keeps the hover-reveal overlay exactly as before; nothing
     here is scoped outside this max-width query. */
  .accordion-row { flex-direction: column; height: auto; }
  .accordion-panel, .accordion-panel:hover, .accordion-panel.accordion-featured {
    flex: 0 0 auto;
    height: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 6px 20px rgba(15,27,43,.08);
  }
  .accordion-bg, .accordion-panel:hover .accordion-bg {
    position: static;
    width: 100%;
    height: 200px;
    filter: none;
    transform: none;
  }
  .accordion-content {
    position: static;
    background: none;
    padding: 18px 20px 22px;
  }
  .accordion-title, .accordion-panel.accordion-featured .accordion-title, .accordion-panel:hover .accordion-title {
    white-space: normal;
    font-size: 18px;
    color: var(--brand-red);
  }
  .accordion-desc, .accordion-panel.accordion-featured .accordion-desc, .accordion-panel:hover .accordion-desc {
    max-height: none;
    opacity: 1;
    color: #566574;
  }
}

/* ============ PROJECTS ============ */
.projects { padding: 110px 0; background: #f8f9fb; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.project-card { border-radius: 10px; overflow: hidden; background: #f8f9fb; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.project-img { height: 280px; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.project-img.orientation-vertical { height: 420px; }
.project-card:hover .project-img { transform: scale(1.06); }
.project-info { padding: 24px; overflow: hidden; }
.project-category { color: var(--orange); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.project-info h3 { margin: 8px 0 10px; font-size: 20px; color: var(--brand-red); }
.project-info p { font-size: 14px; color: #667085; }

/* ============ TESTIMONIALS ============ */
.testimonials { padding: 110px 0; background: #f8f9fb; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card { background: #fff; border-radius: 10px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.testimonial-card .quote { font-style: italic; color: #566574; margin-bottom: 20px; font-size: 14.5px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-person strong { display: block; font-size: 14px; color: var(--navy); }
.testimonial-person span { font-size: 12px; color: #8492a6; }

/* ============ CLIENTS / PARTNERS (auto-scrolling marquee, right to left, with See All) ============ */
.clients { padding: 90px 0; background: #f8f9fb; border-top: 1px solid #eee; }
.clients-marquee-scroll { overflow: hidden; position: relative; }
.clients-marquee-scroll::before, .clients-marquee-scroll::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 3; pointer-events: none;
}
.clients-marquee-scroll::before { left: 0; background: linear-gradient(90deg, #f8f9fb, rgba(248,249,251,0)); }
.clients-marquee-scroll::after { right: 0; background: linear-gradient(270deg, #f8f9fb, rgba(248,249,251,0)); }
.clients-marquee-track {
  display: flex; gap: 20px; width: max-content;
  animation: clients-marquee-scroll 32s linear infinite;
}
.clients-marquee-wrap:hover .clients-marquee-track { animation-play-state: paused; }
@keyframes clients-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-logo { display: block; flex-shrink: 0; width: 180px; }
.client-tile {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #eee; border-radius: 10px;
  height: 110px; padding: 16px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.client-logo:hover .client-tile {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(15,27,43,.1);
  border-color: var(--orange);
}
.client-tile img {
  max-height: 100%; max-width: 100%; width: auto; object-fit: contain;
}

/* Full grid (every logo, no animation) revealed by "See All" */
.clients-full-grid { display: none; margin-top: 24px; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.clients-full-grid .client-logo { width: auto; }
.clients-marquee-wrap.expanded .clients-marquee-scroll { display: none; }
.clients-marquee-wrap.expanded .clients-full-grid { display: grid; }

@media (max-width: 900px) {
  .clients-full-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .client-logo { width: 140px; }
  .client-tile { height: 90px; }
  .clients-full-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ REQUEST A QUOTE (matches the Send CV box pattern - button reveals the form in-page) ============ */
.quote-apply-box {
  max-width: 640px; margin: 50px auto 0; background: #fff; border-radius: 10px;
  padding: 40px; box-shadow: 0 20px 45px rgba(15,27,43,.08); text-align: center;
}
.quote-apply-box h3 { font-size: 22px; color: var(--brand-red); margin-bottom: 12px; }
.quote-apply-box p { color: #667085; font-size: 14px; margin-bottom: 20px; }
.quote-trust-list { list-style: none; display: inline-block; text-align: left; margin: 0 auto 26px; }
.quote-trust-list li {
  font-size: 13.5px; color: #566574; margin-bottom: 10px; padding-left: 24px; position: relative; line-height: 1.5;
}
.quote-trust-list li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.quote-toggle-btn { border: none; cursor: pointer; font-family: inherit; }
.quote-form-collapse {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.5s ease;
}
.quote-form-collapse.open { max-height: 900px; opacity: 1; margin-top: 26px; }
.quote-apply-box form { text-align: left; }
.quote-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.quote-apply-box input[type=text], .quote-apply-box input[type=email],
.quote-apply-box select, .quote-apply-box textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit; background: #fff;
}
.quote-apply-box select { color: var(--text-dark); }
.quote-apply-box textarea { margin-bottom: 16px; }
.quote-apply-box button[type=submit] {
  background: var(--orange); color: var(--navy); border: none; padding: 12px 32px; border-radius: 4px;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.3s ease;
}
.quote-apply-box button[type=submit]:hover { background: #10233f; color: #fff; }
.quote-apply-box button[type=submit]:disabled { opacity: 0.65; cursor: not-allowed; }
.quote-apply-box .form-status { text-align: left; margin-top: 12px; font-size: 13px; }
.quote-apply-box .form-status.success { color: #1a8a4a; }
.quote-apply-box .form-status.error { color: #c0392b; }
@media (max-width: 640px) {
  .quote-apply-box { padding: 26px 20px; }
  .quote-form-row { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.site-footer { background: #fff; color: #333; padding: 70px 0 0; border-top: 1px solid #eee; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 50px; padding-bottom: 50px; }
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-about p { font-size: 14px; color: #555; margin-bottom: 20px; }
.social-icons { display: flex; gap: 14px; flex-wrap: wrap; }
.social-icons a { font-size: 13px; color: #333; text-decoration: none; border: 1px solid #ddd; padding: 6px 14px; border-radius: 20px; transition: all 0.3s ease; }
.social-icons a:hover { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.footer-contact h4, .footer-form h4 { color: var(--brand-red); margin-bottom: 18px; font-size: 16px; }
.footer-contact p { font-size: 14px; margin-bottom: 14px; color: #555; }
.footer-contact a { text-decoration: none; color: #333; }
.footer-form input, .footer-form textarea {
  width: 100%; padding: 12px; margin-bottom: 12px; border-radius: 4px; border: 1px solid #ddd;
  background: #fafafa; color: #1a1a1a; font-family: inherit; font-size: 14px;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: #999; }
.footer-form button {
  background: var(--orange); color: var(--navy); border: none; padding: 12px 28px; border-radius: 4px;
  font-weight: 600; cursor: pointer; transition: background 0.3s ease;
}
.footer-form button:hover { background: #10233f; color: #fff; }
.form-status { font-size: 13px; margin-top: 10px; min-height: 18px; }
.form-status.success { color: #1a8a4a; }
.form-status.error { color: #c0392b; }
.footer-bottom { border-top: 1px solid #eee; padding: 20px 0; text-align: center; font-size: 13px; color: #888; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-dip-card { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 40px; }
  .content-block, .content-block.img-right { grid-template-columns: 1fr; direction: ltr; gap: 30px; }
}
@media (max-width: 640px) {
  .header-inner { position: relative; justify-content: center; }
  .logo { position: relative; z-index: 1; }
  .logo-chip img { height: 54px; }
  .nav-toggle { display: flex; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 75%; background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,.12); flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 90px 30px 40px; transition: right 0.4s ease; overflow-y: auto; gap: 6px; }
  .main-nav.open { right: 0; }
  .nav-item { width: 100%; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 0 0 16px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; margin-top: 0; }
  .nav-item.open .dropdown-menu { max-height: 300px; margin-top: 8px; }
  .main-nav a { padding: 12px 0; }
  .dropdown-menu a { padding: 8px 0; }
  .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .stats-dip-card { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; padding: 24px 16px; }
  .stats-dip-wrap { margin-top: -30px; margin-bottom: 20px; }

  /* Hero: full-bleed edge-to-edge image, matching desktop (accepts minor crop, no navy gaps) */
  .hero { display: block; width: 100%; margin: 0; padding: 0; height: 62vh; min-height: 380px; }
  .hero-bg-wrap { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-slide.hero-bg.active { animation: kenburns 18s ease-in-out infinite alternate; }
  .hero-content {
    position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
    justify-content: center; padding: 0 24px;
  }
  .hero-content h1 { font-size: 24px; margin-bottom: 12px; }
  .hero-content p { font-size: 14px; margin-bottom: 20px; }
  .btn-cta { padding: 11px 24px; font-size: 13px; width: fit-content; }
}

/* ============ FLOATING WHATSAPP BUTTON ============ */
.whatsapp-float {
  position: fixed; left: 20px; top: 50%; transform: translateY(-50%); z-index: 999;
  width: 56px; height: 56px; border-radius: 16px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(15,27,43,.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover { transform: translateY(-50%) translateY(-4px) scale(1.05); box-shadow: 0 14px 32px rgba(15,27,43,.28); }
@media (max-width: 640px) {
  .whatsapp-float { left: 16px; width: 50px; height: 50px; border-radius: 14px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}
