:root {
  --brand-gold: #E3B34C;
  --brand-dark: #000000;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.4s ease-in-out;
  --box-shadow-gold: 0 0 10px rgba(227, 179, 76, 0.4);
}

html, body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

/* Utility Classes */
.brand-bg {
  background-color: var(--brand-gold);
}
.brand-text {
  color: var(--brand-gold);
}
.transition {
  transition: color var(--transition-medium), background-color var(--transition-medium), box-shadow var(--transition-medium);
}

/* Buttons */
.custom-btn,
.custom-btn-outline {
  padding: 10px 20px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--brand-gold);
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.custom-btn {
  background-color: var(--brand-gold);
  color: var(--brand-dark);
}
.custom-btn:hover,
.custom-btn:focus {
  background: transparent;
  color: var(--brand-gold);
  box-shadow: var(--box-shadow-gold);
  outline: none;
}

.custom-btn-outline {
  background-color: transparent;
  color: var(--brand-gold);
}
.custom-btn-outline:hover,
.custom-btn-outline:focus {
  background-color: var(--brand-gold);
  color: var(--brand-dark);
  box-shadow: var(--box-shadow-gold);
  outline: none;
}

/* Focus visible for accessibility */
.custom-btn:focus-visible,
.custom-btn-outline:focus-visible,
.nav-link:focus-visible,
.navbar-toggler:focus-visible,
.dropdown-toggle:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

/* Forms */
.form-control:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 0.2rem rgba(227, 179, 76, 0.25);
  outline: none;
}

/* Remove Focus Outlines */
button:focus,
.nav-link:focus,
.navbar-toggler:focus,
.dropdown-toggle:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Core Navbar */
.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--brand-gold);
  display: flex;
  align-items: center;
  z-index: 1050;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
  height: 80px;
  filter: brightness(0) invert(1);
}

.navbar-toggler {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  position: relative;
  z-index: 1060;
  cursor: pointer;
}

.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: var(--brand-dark);
  left: 0;
}

.navbar-toggler-icon {
  top: 50%;
  transform: translateY(-50%);
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  top: 8px;
}

/* Base Nav Items */
.navbar-collapse {
  display: flex;
  justify-content: flex-end;
}

.navbar-collapse ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
  border-radius: 5px;
}

.nav-link:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
}

.nav-item.dropdown > .nav-link::after {
  content: " ▼";
  font-size: 0.6rem;
  margin-left: 4px;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 1052;
}

.dropdown-menu.show,
.nav-item.dropdown:hover > .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  padding: 10px 15px;
  font-weight: 600;
  color: var(--brand-dark);
  display: block;
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--brand-gold);
  color: #ffffff;
}

/* Desktop vs Mobile Layouts */
.desktop-navbar {
  display: flex;
}

.mobile-navbar {
  display: none;
}

/* ============================== */
/* 📱 Mobile Layout & Overrides   */
/* ============================== */
@media (max-width: 991.98px) {
  .desktop-navbar {
    display: none;
  }

  /* Base Nav Items */
  .navbar-collapse {
    display: block;
    justify-content: flex-end;
  }

  .mobile-navbar {
    display: flex;
    flex-direction: column;
    background: var(--brand-gold);
    z-index: 1050;
  }

  .mobile-navbar .container {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-toggler {
    display: block;
  }

  .mobile-navbar .navbar-collapse {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--brand-gold);
    padding: 1rem;
    overflow-y: auto;
    z-index: 1040;
  }

  .mobile-navbar .navbar-nav {
    flex-direction: column;
    padding-left: 0;
    list-style: none;
  }

  .mobile-navbar .nav-link {
    padding: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    display: block;
  }

  .mobile-navbar .nav-link:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
  }

  .mobile-navbar .dropdown-menu {
    display: none;
    background: none;
    padding-left: 1.5rem;
    padding-top: 0.5rem;
  }

  .mobile-navbar .dropdown-menu.show {
    display: block;
  }

  .mobile-navbar .dropdown-item {
    padding: 0.5rem 1.25rem;
    color: var(--brand-dark);
  }

  .mobile-navbar .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
  }

  .mobile-navbar .dropdown-toggle::after {
    content: "▼";
    float: right;
    font-size: 0.75rem;
    margin-left: 5px;
  }

  .dropdown-menu.show,
  .nav-item.dropdown:hover > .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0%) translateY(0) !important;
  }

}


.hero-section {
  position: relative;
  width: 100%;
  padding: 140px 0;
  color: #fff;
  background: url('../img/hero_bg.png') no-repeat center center/cover;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.hero-section > * {
  position: relative;
  z-index: 1;
}


.about-section {
  background: var(--brand-dark);
  color: #fff;
  padding: 80px 0;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.about-description {
  font-size: 1.05rem;
  color: #ccc;
  line-height: 1.6;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.about-icon i {
  font-size: 2.5rem;
  color: var(--brand-gold);
  transition: transform 0.3s ease;
}
.about-icon i:hover {
  transform: scale(1.15);
}

.cs-badge {
  background-color: var(--brand-gold);
  color: var(--brand-dark);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: var(--box-shadow-gold);
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.cs-badge i {
  margin-right: 8px;
}
.cs-badge:hover {
  transform: scale(1.05);
}

.about-section h4 {
  color: var(--brand-gold);
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 10px;
}

.about-section p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .about-title {
    font-size: 2rem;
  }

  .about-description {
    font-size: 1rem;
  }

  .cs-badge {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .about-icon i {
    font-size: 2rem;
  }
}


.practice-areas-section {
  background: #f9f9f9;
  padding-top: 60px;
  padding-bottom: 60px;
  color: var(--brand-dark);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-header {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--brand-gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1.15rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  font-weight: 500;
  max-width: 480px;
  margin: 0 auto;
}

.practice-item {
  list-style: none;
  display: flex;
  justify-content: center;
}

.practice-card {
  background: #f9f9f9;;
  border-radius: 16px;
  padding: 30px 25px 35px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 6px 15px rgba(227, 179, 76, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.practice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f9f9f9;
  opacity: 0.3;
  pointer-events: none;
  border-radius: 16px;
  filter: blur(10px);
  z-index: 0;
  transition: opacity 0.3s ease;
}

.practice-card:hover,
.practice-card:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(227, 179, 76, 0.6);
}

.practice-card:hover::before,
.practice-card:focus-within::before {
  opacity: 0.5;
}

.practice-icon {
  font-size: 3.5rem;
  color: var(--brand-gold);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.practice-card:hover .practice-icon,
.practice-card:focus-within .practice-icon {
  transform: scale(1.15);
}

.practice-title {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand-dark);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.practice-desc {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.5;
  position: relative;
  z-index: 1;
  min-height: 68px;
  flex-grow: 1;
}

@media (max-width: 991.98px) {
  .practice-areas-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .practice-card {
    max-width: 100%;
    padding: 25px 20px 30px;
  }
  .practice-icon {
    font-size: 3rem;
  }
  .practice-desc {
    min-height: auto;
  }
}

.numbers-section {
  background: #f9f9f9 url('../img/counter_bg.png') center/cover no-repeat;
  color: #000;
  position: relative;
}

.numbers-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.numbers-description {
  font-size: 1.05rem;
  color: #333;
  max-width: 500px;
}

.counter-card {
  background: transparent;
  padding: 10px 0;
}

.counter-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-red); /* Or use var(--brand-gold) */
  margin-bottom: 5px;
}

.counter-label {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 767.98px) {
  .numbers-title {
    font-size: 2rem;
  }
  .counter-number {
    font-size: 1.8rem;
  }
  .numbers-description {
    font-size: 1rem;
  }
}



.team-section {
  background-color: var(--brand-dark);
  color: var(--brand-gold);
  padding-top: 80px;
  padding-bottom: 80px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

.team-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand-gold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  max-width: 700px;
  margin: 0 auto 50px;
  text-shadow: 0 2px 10px rgba(227, 179, 76, 0.3);
}

.team-desc {
  font-size: 1.1rem;
  color: var(--brand-gold);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.team-member {
  border-radius: 18px;
  padding: 35px 28px 40px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.team-member:hover,
.team-member:focus-within {
  transform: translateY(-10px);
}

.team-photo {
  border: 4px solid var(--brand-gold);
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.team-member:hover .team-photo,
.team-member:focus-within .team-photo {
  transform: scale(1.1);
}

.team-name {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand-gold);
  margin-top: 20px;
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

.team-role {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .team-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .team-title {
    font-size: 2.4rem;
    margin-bottom: 40px;
  }
  .team-photo {
    width: 100px;
    height: 100px;
  }
  .team-name {
    font-size: 1.3rem;
  }
  .team-member {
    margin-bottom: 1.5rem;
  }
}

.numbers-section {
  background: url('../img/counter_bg.png') center/cover no-repeat;
  position: relative;
  color: var(--brand-gold);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

.numbers-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.numbers-title {
  font-size: 2.8rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--brand-gold);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.numbers-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  line-height: 1.7;
}

.counter-card {
  background: transparent;
  padding: 10px;
  transition: transform 0.3s ease;
}

.counter-card:hover {
  transform: translateY(-5px);
}

.counter-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--brand-gold);
  text-shadow: 0 0 5px rgba(227, 179, 76, 0.4);
}

.counter-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-gold);
  margin-bottom: 5px;
  text-shadow: 0 0 4px rgba(227, 179, 76, 0.3);
}

.counter-label {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767.98px) {
  .numbers-title {
    font-size: 2rem;
  }
  .numbers-description {
    font-size: 1rem;
  }
  .counter-number {
    font-size: 1.8rem;
  }
  .counter-icon {
    font-size: 1.6rem;
  }
}

.blogs-section {
  background: #f9f9f9; /* Light background */
  color: var(--brand-dark);
  padding: 60px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.blogs-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--brand-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 50px;
}

.blogs-desc {
  font-size: 1.15rem;
  color: var(--brand-dark);
  max-width: 750px;
  margin: 0 auto 50px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  opacity: 0.85;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.blog-card {
  background: transparent !important; /* Remove background */
  border-radius: 18px;
  padding: 30px 25px 35px;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  outline-offset: 4px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: none; /* remove shadow for cleaner look */
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Remove the glossy shine overlay */
.blog-card::before {
  display: none;
}

.blog-card:hover,
.blog-card:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: none;
  z-index: 3;
}

/* Keep image styling */
.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(227,14,19,0.15);
  transition: transform 0.5s ease;
  position: relative;
  z-index: 2;
}

.blog-card:hover .blog-image,
.blog-card:focus-within .blog-image {
  transform: scale(1.05);
}

.blog-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-red);
  margin: 20px 0 8px;
  flex-grow: 0;
}

/* Post meta line: date, author */
.blog-meta {
  font-size: 0.9rem;
  color: var(--brand-gold);
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  gap: 16px;
  align-items: center;
  text-transform: uppercase;
}

.blog-meta i {
  margin-right: 6px;
  color: var(--brand-red);
}

/* Example excerpt styling */
.blog-excerpt {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 25px;
  flex-grow: 1;
  line-height: 1.5;
}

.btn-readmore {
  align-self: flex-start;
  padding: 8px 18px;
  background-color: var(--brand-gold);
  color: #fff;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-readmore:hover,
.btn-readmore:focus {
  background-color: var(--brand-dark);
  color: var(--brand-gold);
  outline: none;
}


/* Responsive tweaks remain same */
@media (max-width: 991.98px) {
  .blogs-title {
    font-size: 2.4rem;
    margin-bottom: 45px;
  }
  .blog-image {
    height: 180px;
  }
  .blog-title {
    font-size: 1.5rem;
  }
  .blog-excerpt {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .blog-image {
    height: 150px;
  }
  .blogs-title {
    font-size: 2rem;
  }
  .blog-title {
    font-size: 1.25rem;
  }
  .blog-excerpt {
    font-size: 0.95rem;
  }
  .btn-readmore {
    padding: 8px 22px;
    font-size: 0.95rem;
  }
}

#career {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

#career .btn-careers {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 40px;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 14px 30px;
  border: none;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  display: inline-block;
}

#career .btn-careers:hover,
#career .btn-careers:focus {
  background: var(--brand-gold);
  color: #fff;
  outline: none;
  text-decoration: none;
}


/* Responsive adjustments */
@media (max-width: 767.98px) {
  #career .btn-careers {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

.footer {
  font-family: 'Poppins', sans-serif;
  position: relative;
  background: url('../img/footer_bg.png') no-repeat center center/cover;
  color: #fff;
  overflow: hidden;
  padding: 5rem 0;
}

/* Overlay */
.footer::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background-color: rgba(0, 0, 0, 0.9); /* dark overlay */
  z-index: 1;
}

/* Make sure content is above overlay */
.footer > .container {
  position: relative;
  z-index: 2;
}

.footer-title {
  color: var(--brand-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--brand-gold);
  transform: translateX(4px);
}

.social-icons a {
  color: #fff;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover,
.social-icons a:focus {
  color: var(--brand-gold);
  transform: scale(1.2);
}

.footer img {
  cursor: pointer;
  transition: filter 0.3s ease;
}

.footer img:hover,
.footer img:focus {
  filter: brightness(0) invert(0.8) saturate(2);
}

@media (max-width: 767px) {
  .footer .row > div {
    text-align: center !important;
  }
  .social-icons {
    justify-content: center !important;
  }
}

#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: var(--brand-gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 28px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

#backToTop:hover {
  background-color: #fff;
  color: #000;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}


