/* ===========================
   Global tokens & typography
   =========================== */

:root {
  --navy: #0f2640;
  --gold: #b89b5e;
  --gray: #555;
  --light: #f8f9fa;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  color: #333;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Libre Baskerville', serif;
  color: var(--navy);
}

/* ===========================
   Navbar & brand
   =========================== */

.navbar {
  background: rgba(7, 19, 29, 0.8);
  padding: 0;
  font-weight: 600;
}

.navbar-brand,
.nav-link {
  color: white !important;
}

.navbar button.nav-link {
  background: transparent;
  border: 0;
}

.nav-link:hover {
  color: var(--gold) !important;
}

/* Logo in navbar */
.navbar-logo {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar-logo-desktop {
  height: 80px;
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 56px;
  }
}

/* Dropdown styling */
.navbar .dropdown-menu {
  background: rgba(7, 19, 29, 0.8);
  border: 1px solid rgba(184, 155, 94, 0.3);
  border-radius: 4px;
  margin-top: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar .dropdown-item {
  color: white;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.navbar .dropdown-item:hover {
  background: rgba(184, 155, 94, 0.2);
  color: var(--gold);
}

/* Active/selected state for dropdown toggle items */
.navbar .dropdown-item:focus,
.navbar .dropdown-item:active,
.navbar .dropdown-item.active,
.navbar .dropdown-item[aria-expanded="true"] {
  background: rgba(184, 155, 94, 0.15);
  color: var(--gold);
  outline: none;
}

.navbar .dropdown-divider {
  border-color: rgba(184, 155, 94, 0.3);
}

/* Desktop navbar right section */
.navbar-right {
  margin-left: auto;
}

.free-consultation-desktop a {
  color: white;
}

.consultation-phone-desktop {
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.free-consultation-desktop a:hover .consultation-phone-desktop {
  color: var(--gold);
}

.map-icon-link-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s ease;
  text-decoration: none;
}

.map-icon-link-desktop:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.lang-dropdown-toggle {
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.lang-dropdown-toggle:hover {
  color: var(--gold) !important;
}

/* Nested dropdown (dropend) styling */
.navbar .dropend .dropdown-menu {
  margin-left: 0.125rem;
  margin-top: -0.5rem;
}

.navbar .dropend > .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 200px;
  padding-right: 1rem;
  gap: 1.5em;
}

.navbar .dropend > .dropdown-toggle::after {
  display: inline-block;
  vertical-align: middle;
  content: "";
  border-top: 0.3em solid transparent;
  border-right: 0;
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid;
  flex-shrink: 0;
  margin-left: 0;
}

.navbar .dropend .dropdown-toggle::after {
  float: none;
  margin-top: 0;
}

/* Mobile dropdown adjustments */
@media (max-width: 991.98px) {
  .navbar .dropend .dropdown-menu {
    position: static !important;
    transform: none !important;
    margin-left: 1rem;
    border-left: 2px solid var(--gold);
  }
  
  .navbar .dropend > .dropdown-toggle::after {
    transform: rotate(90deg);
  }
}

.toggler-label {
display: block;
font-size: 0.7rem;
font-weight: 600;
color: var(--gold);
margin-top: 0.25rem;
}

/* GIF logo in navbar */
.navbar-brand-gif {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 576px) {
  .navbar-brand-gif {
    height: 48px;
  }
}

/* Hidden text for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile navbar */
@media (max-width: 991.98px) {
.navbar {
  flex-direction: column;
}

.navbar .container {
  padding: 0.5rem 1rem;
}

.navbar-mobile-second {
  background: rgba(255, 255, 255, 0.9);
  margin: 0;
  padding: 0.4rem 1rem;
  margin-top: 0;
  border-radius: 0;
}

.free-consultation a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.consultation-label {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.consultation-phone {
  font-size: 1.25rem;
  color: #000;
  font-weight: 800;
  margin-top: 0.1rem;
  letter-spacing: 0.05em;
  font-family: 'Source Sans Pro', sans-serif;
}

.map-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 3.5rem;
  height: 3.5rem;
  color: var(--navy);
  transition: all 0.2s ease;
  text-decoration: none;
}

.map-icon-link:hover {
  color: var(--gold);
  transform: scale(1.05);
}

.map-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-icon-link:hover .map-label {
  color: var(--gold);
}

.navbar-collapse {
  background-color: rgba(7, 19, 29, 0.80);
  padding: 0.5rem 1rem 1rem;
}

/* Custom hamburger button */
.navbar-toggler.custom-toggler {
  border: none;
  padding: 0.75rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: none;
}

.navbar-toggler.custom-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: none !important;
  position: relative;
  width: 1.5rem;
  height: 2px;
  background-color: white;
  border-radius: 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  top: -6px;
}

.navbar-toggler-icon::after {
  top: 6px;
}

.toggler-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: white;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.navbar-toggler.custom-toggler:hover {
  background-color: #0a1e34;
}
}

/* ===========================
   Main homepage hero
   =========================== */

.hero {
  position: relative;
  color: white;
  padding: 160px 0 120px;
  text-align: center;
  overflow: hidden;
}

/* Background video container */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Dark overlay over video */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 38, 64, 0.45) 0%, rgba(15, 38, 64, 0.35) 100%);
  backdrop-filter: blur(2px);
  z-index: -1;
}

/* Image-backed hero (used by React pages) */
.hero.hero-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Home hero desktop */
.hero.hero-home {
  background-image: url(/images/hero.png);
}

.hero.hero-image::before {
  /* Dark navy overlay (~80% opacity) */
  background: rgba(4, 36, 73, 0.8);
}

/* Ensure content is above video */
.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero content layout with button at bottom */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 2rem;
}

.hero-cta {
  padding-bottom: 2rem;
}

.hero h1 {
  font-size: 3.2rem;
  color: #fff;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.9),
    2px 2px 8px rgba(0, 0, 0, 0.95);
  font-weight: 700;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 0;
}

.hero .lead {
  font-size: 1.3rem;
  max-width: 860px;
  margin: 0 auto;
  color: #fff;
  text-shadow: 0 0 14px rgba(15, 38, 64, 0.95), 0 0 28px rgba(15, 38, 64, 0.65), 2px 2px 8px rgba(0, 0, 0, 0.9);
  font-weight: 600;
  background: rgb(15 31 64 / 15%);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
  backdrop-filter: blur(3px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Force nested Team submenus to open to the right on desktop.
   (We toggle submenus via React, so Popper isn't positioning them.) */
@media (min-width: 992px) {
  .navbar .dropdown.dropend {
    position: relative;
  }

  .navbar .dropdown.dropend > .dropdown-menu {
    top: 0;
    left: 100%;
    right: auto;
    margin-top: -0.25rem;
    margin-left: 0.125rem;
  }
}

/* Small badge above hero title (Veteran-Owned, etc.) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 38, 64, 0.9);
  border: 1px solid rgba(184, 155, 94, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-badge span:first-child {
  font-weight: 700;
  color: var(--gold);
}

/* Desktop hero alignment */
@media (min-width: 769px) {
  .hero.hero-home {
    margin-top: 50 !important;
  }

  .hero.hero-image {
    margin-top: 0 !important;
  }
}

@media (max-width: 768px) {
  /* Mobile hero uses different image */
  .hero.hero-home {
    background-image: url(/images/hero-mobile.png);
    margin-top: 0 !important;
  }

  /* Remove blur on mobile hero for sharper image */
  .hero.hero-home::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* When video is present, hide background image */
  .hero.hero-home:has(.hero-video-bg) {
    background-image: none;
  }

  /* No overlay filter on mobile for video visibility */
  .hero.hero-home:has(.hero-video-bg)::before {
    background: rgba(4, 36, 73, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-content {
    padding-top: 70px;
  }

  /* Location page heroes on mobile should have no top margin */
  .hero.hero-image:not(.hero-home) {
    margin-top: 0 !important;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero .lead {
    font-size: 1.1rem;
  }
}

/* ===========================
   Buttons
   =========================== */

.btn-outline-gold {
  border: 3px solid var(--gold);
  color: #f8f8f8;
  background: rgba(15, 38, 64, 0.6);
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s;
  text-shadow: 
    0 0 10px rgba(184, 155, 94, 0.8),
    2px 2px 6px rgba(0, 0, 0, 0.9);
  box-shadow: 
    0 0 20px rgba(184, 155, 94, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(184, 155, 94, 0.1);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

.btn-outline-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 155, 94, 0.3), transparent);
  transition: left 0.5s;
}

.btn-outline-gold:hover::before {
  left: 100%;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 0 30px rgba(184, 155, 94, 0.7),
    0 8px 25px rgba(0, 0, 0, 0.6);
  border-color: var(--gold);
  text-shadow: none;
}

/* ===========================
   Sections & headings
   =========================== */

section {
  padding: 90px 0;
}

.section-title {
  font-size: 2.6rem;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold);
}

/* Related practice area links */
.related-practice-link {
  display: block;
  padding: 0.75rem 1rem;
  background: rgba(15, 38, 64, 0.05);
  border: 1px solid rgba(15, 38, 64, 0.1);
  border-radius: 6px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.related-practice-link:hover {
  background: var(--navy);
  color: #f8f8f8;
  border-color: var(--navy);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(15, 38, 64, 0.2);
}

/* City service area cards */
.city-service-card {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.city-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 38, 64, 0.7), rgba(15, 38, 64, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transition: all 0.3s;
}

.city-overlay h3 {
  color: #f8f8f8;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.city-overlay p {
  color: #e8e8e8;
  font-size: 1.1rem;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.city-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(184, 155, 94, 0.4);
}

.city-service-card:hover .city-overlay {
  background: linear-gradient(to bottom, rgba(184, 155, 94, 0.75), rgba(184, 155, 94, 0.95));
}

/* Coverflow Carousel for Areas We Serve */
.coverflow-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  overflow: hidden;
}

.coverflow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 320px;
  perspective: 1000px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}

.coverflow-container:active {
  cursor: grabbing;
}

.coverflow-item {
  position: absolute;
  transition: all 0.5s ease;
  text-decoration: none;
}

.coverflow-card {
  width: 280px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.coverflow-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(15, 38, 64, 0.95), transparent);
  text-align: center;
}

.coverflow-overlay h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Active/Center item - largest */
.coverflow-item.active {
  transform: translateX(0) scale(1);
  z-index: 5;
  opacity: 1;
}

.coverflow-item.active .coverflow-card {
  width: 340px;
  height: 240px;
  box-shadow: 0 15px 40px rgba(184, 155, 94, 0.4);
}

.coverflow-item.active .coverflow-overlay {
  background: linear-gradient(to top, rgba(184, 155, 94, 0.9), transparent);
}

/* Adjacent items - medium size */
.coverflow-item.prev-1 {
  transform: translateX(-280px) scale(0.85) rotateY(15deg);
  z-index: 4;
  opacity: 0.9;
}

.coverflow-item.next-1 {
  transform: translateX(280px) scale(0.85) rotateY(-15deg);
  z-index: 4;
  opacity: 0.9;
}

/* Outer items - smallest */
.coverflow-item.prev-2 {
  transform: translateX(-480px) scale(0.7) rotateY(25deg);
  z-index: 3;
  opacity: 0.7;
}

.coverflow-item.next-2 {
  transform: translateX(480px) scale(0.7) rotateY(-25deg);
  z-index: 3;
  opacity: 0.7;
}

/* Hover effects for coverflow items */
.coverflow-item {
  cursor: pointer;
}

.coverflow-item:hover .coverflow-card {
  box-shadow: 0 15px 40px rgba(184, 155, 94, 0.5);
}

.coverflow-item:not(.active):hover {
  opacity: 1 !important;
}

.coverflow-item:not(.active):hover .coverflow-overlay {
  background: linear-gradient(to top, rgba(15, 38, 64, 0.95), transparent);
}

.coverflow-item.active {
  cursor: pointer;
}

.coverflow-item.active:hover .coverflow-card {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(184, 155, 94, 0.6);
}

/* Mobile adjustments for coverflow */
@media (max-width: 992px) {
  .coverflow-item.prev-2,
  .coverflow-item.next-2 {
    opacity: 0;
    pointer-events: none;
  }
  
  .coverflow-item.prev-1 {
    transform: translateX(-200px) scale(0.8) rotateY(15deg);
  }
  
  .coverflow-item.next-1 {
    transform: translateX(200px) scale(0.8) rotateY(-15deg);
  }
}

@media (max-width: 576px) {
  .coverflow-container {
    height: 280px;
  }
  
  .coverflow-item.prev-1,
  .coverflow-item.next-1 {
    opacity: 0.5;
    transform: translateX(-150px) scale(0.7);
  }
  
  .coverflow-item.next-1 {
    transform: translateX(150px) scale(0.7);
  }
  
  .coverflow-item.active .coverflow-card {
    width: 280px;
    height: 200px;
  }
  
  .coverflow-card {
    width: 220px;
    height: 160px;
  }
}

/* City practice cards */
.city-practice-card {
  text-decoration: none;
  display: block;
  transition: all 0.3s;
}

.city-practice-card .card {
  border: 2px solid transparent;
  transition: all 0.3s;
}

.city-practice-card:hover .card {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(184, 155, 94, 0.2);
}

.city-practice-card h5 {
  color: var(--navy);
  transition: color 0.3s;
}

.city-practice-card:hover h5 {
  color: var(--gold);
}

/* Used on service pages above H1 ("Core Service") */
.pill {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  color: #475569;
}

/* ===========================
   Cards, stats, download box
   =========================== */

.card {
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  transition: transform 0.3s;
}

.card p {
  text-align: justify;
}

/* Disable full justification on small screens to avoid large gaps */
@media (max-width: 767.98px) {
  .card p {
    text-align: left;
  }
}

.card:hover {
  transform: translateY(-8px);
}

.stat-box {
  background: #f1f5f9;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--navy);
}

.download-box {
  background: #f9f9f9;
  border: 1px solid #dee2e6;
  padding: 2rem;
  border-radius: 8px;
}

/* ===========================
   Inner/service page hero
   (audit, depositions, etc.)
   =========================== */

.hero-small {
  position: relative;
  color: white;
  padding: 130px 0 70px;
  text-align: center;
  overflow: hidden;
}

/* Background video container */
.hero-small .hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Dark overlay over video */
.hero-small::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 30, 60, 0.92);
  z-index: -1;
}

/* Ensure content is above video */
.hero-small .container {
  position: relative;
  z-index: 1;
}

.hero-small h1 {
  font-size: 2.6rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero-small .lead,
.hero-small p.lead {
  font-size: 1.1rem;
  max-width: 780px;
  margin: 0 auto;
  color: #f9fafb;
}

/* Info boxes used on service pages */
.info-box {
  background: #f9fafb;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--gold);
  margin-bottom: 1.5rem;
}

/* Numbered step badge (if used) */
.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 0.75rem;
}

/* Call-to-action band at bottom of service pages */
.contact-cta {
  background: var(--navy);
  color: white;
}

.contact-cta .lead {
  color: rgba(255, 255, 255, 0.75);
}

.contact-cta .btn-outline-gold {
  margin-top: 0.5rem;
}

/* ===========================
   About / Bio section
   =========================== */

.bio-photo {
  max-width: 320px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  object-fit: cover;
}

.about-badge {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* Intro video wrapper */
.intro-video {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

/* ===========================
   Contact sections
   (home & /contact page)
   =========================== */

.contact {
  background: var(--navy);
  color: white;
}

.contact .form-control {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.contact .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Extra top padding when the contact section is first on the page (contact.html) */
#contact.contact {
  padding-top: 140px;
}

/* ===========================
   Footer
   =========================== */

.footer {
  background: #111;
  color: #aaa;
  padding: 3rem 0 1.5rem;
}

.footer a {
  color: var(--white);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
:root {
    /* tweak this number to match your actual navbar height */
    --nav-height: 45px;
}

/* Any section that’s a scroll target gets some offset for the fixed nav */
section[id] {
    scroll-margin-top: calc(var(--nav-height) + 8px); /* +8px just for breathing room */
}
/* Make the logo area clearly clickable */
.navbar-brand {
    cursor: pointer;
}

/* Let the logo animate smoothly, but keep its original size */
.navbar-brand img {
    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        box-shadow 0.15s ease;
}

/* Hover / focus: subtle “button” reaction */
.navbar-brand:hover img,
.navbar-brand:focus-visible img {
    transform: scale(1.08); /* grows slightly from its current size */
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.9)); /* gold glow */
}

/* Optional: visible outline for keyboard users */
.navbar-brand:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}
.nav-link.active {
  color: var(--gold) !important;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: -0.35rem;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
}
.disclaimer{
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(184,155,94,.45);
  border-left: 4px solid var(--gold);
  padding: .9rem 1rem;
  border-radius: 10px;
  font-size: .95rem;
}
/* ===========================
   Language toggle (EN/RU)
   Desktop: pill group in navbar row
   Mobile: compact buttons left of hamburger (same size)
   =========================== */

.lang-toggle{
  position: static;
  top: auto;
  right: auto;
  z-index: auto;

  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15,38,64,.30);
  border: 1px solid rgba(184,155,94,.6);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}

.lang-toggle a{
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  line-height: 1;
}

.lang-toggle a.active{
  background: var(--gold);
  color: var(--navy);
}

/* ===========================
   Mobile: language toggle sits left of hamburger
   =========================== */
@media (max-width: 991.98px) {
  /* Ensure the navbar row is a proper flex row */
  .navbar .container,
  .navbar .container-fluid {
    display: flex;
    align-items: center;
  }

  /* Put toggle + hamburger on the same row */
  .navbar .navbar-toggler {
    order: 3;
    margin-left: 10px;
  }

  .lang-toggle {
    order: 2;
    margin-left: auto;     /* push toggle+hmbgr group to right */
    margin-right: 10px;    /* small gap before hamburger */

    padding: 0;            /* match hamburger sizing */
    border-radius: 8px;
    box-shadow: none;
    backdrop-filter: none;
    background: transparent;
    border: none;
    gap: 8px;

    align-items: center;
    align-self: center;
    transform: translateY(-8px); /* tweak to perfectly level; try -2px if needed */
    flex: 0 0 auto;
  }

  .lang-toggle a {
    width: 2.4rem;         /* SAME as your hamburger */
    height: 2.4rem;        /* SAME as your hamburger */
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--gold);
    color: #fff;
    font-size: .9rem;
    line-height: 1;
  }

  .lang-toggle a.active {
    background: var(--gold);
    color: var(--navy);
  }
}

/* ===========================
   Footer
   =========================== */

.footer {
  background: rgba(7, 19, 29, 1);
  color: white;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-links {
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

/* Thank-you page embedded video */
.thankyou-video {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-divider {
  border-color: rgba(184, 155, 94, 0.3);
}

.footer h6 {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  color: #fff;
}
/* ===========================
   Testimonials Slider
   =========================== */

.testimonials-slider {
  background: linear-gradient(135deg, rgba(15, 38, 64, 0.03) 0%, rgba(184, 155, 94, 0.05) 100%);
  padding: 5rem 0;
  margin: 4rem 0;
}

@media (min-width: 769px) {
  .testimonials-slider {
    margin-top: 0;
  }
}

.testimonial-slider-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide-link {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.testimonial-slide {
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(15, 38, 64, 0.1);
  border: 2px solid rgba(184, 155, 94, 0.2);
  transition: all 0.3s ease;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-slide-link:hover .testimonial-slide {
  box-shadow: 0 15px 50px rgba(15, 38, 64, 0.15);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.testimonial-highlight {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: center;
  font-style: italic;
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  margin-bottom: 2rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(15, 38, 64, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.slider-dots .dot:hover {
  background: rgba(184, 155, 94, 0.5);
  transform: scale(1.2);
}

.slider-dots .dot.active {
  background: var(--gold);
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .testimonials-slider {
    padding: 3rem 0;
    margin: 0;
  }

  .testimonial-slide {
    padding: 2rem 1.5rem;
    min-height: 200px;
  }

  .testimonial-highlight {
    font-size: 1.1rem;
  }

  .testimonial-name {
    font-size: 1rem;
  }
}

/* ===========================
   Breadcrumbs (Team member)
   =========================== */

.breadcrumb {
  margin-bottom: 0;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: rgba(15, 38, 64, 0.08);
}

.breadcrumb-item,
.breadcrumb-item.active {
  color: var(--navy);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(15, 38, 64, 0.55);
}

.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--gold);
  text-decoration: none;
}

/* ===========================
   Office Cards
   =========================== */

#offices .office-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

#offices .card {
  border: 1px solid rgba(15, 38, 64, 0.1);
}

#offices .card:hover {
  border-color: var(--gold);
}
