* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-black: #000000;
  --primary-white: #ffffff;
  --primary-gold: #c5a059;
  --primary-navy: #0a192f;
  --gray-dark: #1a1a1a;
  --gray-medium: #4a4a4a;
  --gray-light: #e5e5e5;
  --gray-lighter: #f5f5f5;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--primary-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--primary-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-gold);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;
  transition: var(--transition);
}

.logo img:hover {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--gray-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  display: block;
}

.nav-link:hover {
  color: var(--primary-gold);
  background-color: var(--gray-lighter);
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.7rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-white);
  min-width: 280px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  border-top: 3px solid var(--primary-gold);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: 1px solid var(--gray-light);
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  padding: 1rem 1.5rem;
  display: block;
  color: var(--gray-dark);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: var(--primary-navy);
  color: var(--primary-white);
  padding-left: 2rem;
}

.menu-close-btn {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-black);
  transition: var(--transition);
}

.hero {
  background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)),
    url('https://images.pexels.com/photos/5668772/pexels-photo-5668772.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary-white);
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--primary-white);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.8;
  max-width: 800px;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--primary-gold);
  border-right: 4px solid var(--primary-gold);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--primary-gold);
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--primary-gold);
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary-gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-white);
  border: 2px solid var(--primary-gold);
}

.btn-outline:hover {
  background-color: var(--primary-gold);
  color: var(--primary-navy);
}


/* Hero Layout with Form */
.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-form-card {
  background: rgba(255, 255, 255, 0.98);
  padding: 2rem;
  border-radius: 4px;
  width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  color: var(--primary-black);
  text-align: left;
  border-top: 5px solid var(--primary-gold);
}

.hero-form-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
  color: var(--primary-navy);
  font-weight: 700;
}

.hero-form-card input,
.hero-form-card select,
.hero-form-card textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.hero-form-card button {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-black);
  color: var(--primary-white);
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.hero-form-card button:hover {
  background-color: #333;
}

/* Mobile Adjustments for Form */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
    margin-bottom: 2rem;
  }

  .hero-form-card {
    width: 100%;
    max-width: 500px;
  }
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-black);
  position: relative;
  padding-bottom: 1rem;
}

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

.practice-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.practice-card {
  background-color: var(--primary-white);
  padding: 2rem;
  border: 2px solid var(--gray-light);
  transition: var(--transition);
  text-align: center;
}

.practice-card:hover {
  border-color: var(--primary-black);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.practice-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

.practice-card p {
  color: var(--gray-medium);
  margin-bottom: 1.5rem;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border: 5px solid var(--primary-black);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-black);
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-medium);
  font-size: 1.1rem;
  line-height: 1.8;
}

.service-detail-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('https://images.pexels.com/photos/5669619/pexels-photo-5669619.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary-white);
  padding: 2rem;
}

.service-detail-hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.service-content {
  padding: 5rem 0;
}

.service-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-black);
}

.service-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-medium);
  font-size: 1.1rem;
  line-height: 1.8;
}

.service-content ul {
  margin: 2rem 0;
  padding-left: 2rem;
}

.service-content li {
  margin-bottom: 1rem;
  color: var(--gray-medium);
  font-size: 1.1rem;
}

.contact-section {
  background-color: var(--gray-lighter);
  padding: 5rem 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--primary-white);
  padding: 3rem;
  border: 2px solid var(--primary-black);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-black);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-light);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-black);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.error-message {
  color: #c00;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #c00;
}

.form-group.error .error-message {
  display: block;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #c3e6cb;
  display: none;
}

footer {
  background-color: var(--primary-black);
  color: var(--primary-white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--gray-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-white);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-medium);
  color: var(--gray-light);
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    /* Full screen from top */
    min-height: 100vh;
    /* Full height */
    overflow-y: auto;
    /* Allow scrolling if content is tall */
    flex-direction: column;
    background-color: var(--primary-white);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
    z-index: 2000;
    /* Ensure on top of everything */
    padding-top: 60px;
    /* Space for content below close button */
  }

  .menu-close-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    color: #000000;
    z-index: 2001;
    width: 40px;
    height: 40px;
    text-align: center;
    background: transparent;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    box-shadow: none;
    border-top: none;
    display: none;
    background-color: #fafafa;
    /* Slightly distinct background */
    padding-bottom: 10px;
  }

  .dropdown-menu.active {
    display: block;
  }

  .dropdown-toggle {
    justify-content: center;
    /* Center align toggle text and arrow */
  }

  .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
    /* Arrow rotation */
    transition: transform 0.3s ease;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    letter-spacing: 0.3px;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 300px;
  }

  .service-detail-hero h1 {
    font-size: 2rem;
  }

  .contact-form {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 45px;
  }

  .hero {
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-tagline {
    font-size: 1rem;
    padding: 1rem;
    border-left: 3px solid var(--primary-white);
    border-right: 3px solid var(--primary-white);
  }

  .section-title {
    font-size: 1.8rem;
  }

  .practice-areas-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   New Responsive Utility Classes
   ========================================= */

.split-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  /* Aligns icon to top of multi-line text */
}

.feature-list li span {
  color: var(--primary-gold);
  margin-right: 12px;
  flex-shrink: 0;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
  /* Keep arrow tight */
  margin-top: 4px;
  /* Slight visual adjustment */
}

.reverse-order {
  direction: rtl;
}

.reverse-order>* {
  direction: ltr;
}

/* Mobile Overrides */
@media (max-width: 768px) {
  .split-section-grid {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem !important;
  }

  /* Unwrap the first div (text container) so its children become flex items */
  .split-section-grid>div:first-child {
    display: contents;
  }

  /* Target the Heading to be first */
  .split-section-grid>div:first-child>h2 {
    order: 1;
    margin-bottom: 1rem;
  }

  /* Target the Image Container (2nd direct child) to be second */
  .split-section-grid>div:nth-child(2) {
    order: 2;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  /* Target all other content in the first div (P, UL) to be last */
  .split-section-grid>div:first-child>:not(h2) {
    order: 3;
  }

  .reverse-order {
    direction: ltr !important;
    /* Stack normally on mobile */
  }
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}