/* --- Global Styles & Variables --- */
:root {
  --color-red: #CB0001;
  --color-dark-gray: #454545;
  --color-medium-gray: #878787;
  --color-light-gray: #F5F5F5;
  --color-white: #FFFFFF;
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max-width: 1140px;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: var(--font-family-base);
  color: var(--color-dark-gray);
  background-color: var(--color-white);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

a {
  color: var(--color-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; } /* 40px */
h2 { font-size: 2rem; }   /* 32px */
h3 { font-size: 1.5rem; } /* 24px */

p {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem; /* 8px */
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.button-primary {
  background-color: var(--color-red);
  color: var(--color-white);
}

.button-primary:hover {
  background-color: var(--color-dark-gray);
  color: var(--color-white);
  text-decoration: none;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--color-red);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px; /* Increased height */
}

.logo img {
  max-height: 40px; /* Control logo size */
}

.main-nav {
  display: none; /* Hidden on mobile by default */
}

.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.main-nav a {
  padding: 0.5rem;
  font-size: 0.9rem; /* 14px */
  font-weight: 600;
  color: var(--color-dark-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-red);
}

#mobile-menu-toggle {
  display: block; /* Show on mobile */
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-dark-gray);
  padding: 0.5rem; /* Add padding to make it easier to tap */
}

/* This is the new part that fixes the icon visibility */
#mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5; /* Make lines a bit thicker */
}

#mobile-menu-toggle .icon-close {
  display: none;
}

.mobile-nav {
  display: none;
  position: absolute; /* CHANGED: Make it an overlay */
  top: 80px;      /* NEW: Position it below the 80px header */
  left: 0;        /* NEW: Full width */
  right: 0;       /* NEW: Full width */
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.mobile-nav ul {
  padding: 1rem;
}
.mobile-nav li {
  border-bottom: 1px solid var(--color-light-gray);
}
.mobile-nav a {
  display: block;
  padding: 1rem;
  font-weight: 600;
  color: var(--color-dark-gray);
}
.mobile-nav a.active {
  color: var(--color-red);
}

/* Mobile Menu Open State */
body.mobile-menu-open #mobile-menu-toggle .icon-menu {
  display: none;
}
body.mobile-menu-open #mobile-menu-toggle .icon-close {
  display: block;
}
body.mobile-menu-open .mobile-nav {
  display: block;
}

/* --- Page Title Header --- */
.page-title-header {
  padding: 3rem 0;
  background-color: var(--color-light-gray);
  text-align: center;
  border-bottom: 1px solid #ddd;
}
.page-title-header h1 {
  color: var(--color-dark-gray);
}
.page-title-header p {
  font-size: 1.25rem;
  color: var(--color-medium-gray);
  margin-bottom: 0;
}

/* --- Hero Section (Homepage) --- */
.hero {
  padding: 5rem 0;
  background-color: var(--color-light-gray); /* CHANGED: Was dark-gray */
  color: var(--color-dark-gray); /* CHANGED: Was white */
  text-align: center;
}

.hero-catchphrase {
  font-size: 3.5rem; /* 56px */
  font-weight: 800; /* Extra bold */
  line-height: 1.2;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column; /* Stack words vertically */
  align-items: center;
}

.hero-catchphrase span {
  display: block;
}

/* UPDATED: Specific colors for the catchphrase */
.hero-catchphrase .text-results {
  color: #cc0001; /* NEW */
}

.hero-catchphrase .text-based {
  color: var(--color-dark-gray); /* NEW */
}

.hero-catchphrase .text-advocacy {
  color: var(--color-medium-gray); /* NEW */
}

.hero p {
  font-size: 1.125rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  color: var(--color-medium-gray); /* CHANGED: Was light-gray */
}

/* --- Homepage Sections --- */
.home-section {
  padding: 4rem 0;
}
.home-section.bg-light {
  background-color: var(--color-light-gray);
}
.section-title {
  text-align: center;
  font-size: 2.25rem;
  color: var(--color-dark-gray);
  margin-bottom: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
}
.bg-light .card {
  background-color: var(--color-light-gray);
}
.card:hover {
  box-shadow: var(--shadow-lg);
}
.card .icon {
  color: var(--color-red);
  margin-bottom: 1rem;
}
.card .icon svg {
  width: 48px;
  height: 48px;
}
.card h3 {
  font-size: 1.5rem;
  color: var(--color-dark-gray);
}
.card p {
  color: var(--color-medium-gray);
  margin-bottom: 1rem;
}
.card .learn-more {
  font-weight: 600;
  color: var(--color-red);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.card .learn-more:hover {
  text-decoration: underline;
}

.news-list {
  max-width: 900px;
  margin: 0 auto;
}
.news-item {
  background-color: var(--color-white);
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}
.news-item-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.news-item-header .icon {
  color: var(--color-red);
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.news-item-header .icon svg {
  width: 24px;
  height: 24px;
}
.news-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.news-item .date {
  font-size: 0.9rem;
  color: var(--color-medium-gray);
  margin-bottom: 0.5rem;
}

/* --- Content Pages (Firm Profile, etc) --- */
.content-page-container {
  padding: 4rem 0;
}
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}
.content-wrapper h2 {
  font-size: 1.75rem;
  color: var(--color-dark-gray);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-light-gray);
}
.content-wrapper p, .content-wrapper li {
  color: var(--color-dark-gray);
  font-size: 1.1rem;
  line-height: 1.7;
}
.content-wrapper ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

/* --- Practice Areas Page --- */
.practice-areas-list {
  max-width: 1000px;
  margin: 0 auto;
}
.practice-area-item {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}
.practice-area-item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.practice-area-item-header .icon {
  color: var(--color-red);
  flex-shrink: 0;
}
.practice-area-item-header .icon svg {
  width: 48px;
  height: 48px;
}
.practice-area-item-header h2 {
  font-size: 2rem;
  margin: 0;
}
.practice-area-item .description {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark-gray);
  line-height: 1.7;
}
.practice-area-item .details {
  font-size: 1.1rem;
  color: var(--color-dark-gray);
  line-height: 1.7;
}

/* --- Lawyers Page --- */
.lawyers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.lawyer-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid #ddd;
}
.lawyer-card h2 {
  font-size: 1.5rem;
  color: var(--color-dark-gray);
  margin-bottom: 0.25rem;
}
.lawyer-card .title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-red);
  margin-bottom: 1rem;
}
.lawyer-card .bio {
  color: var(--color-dark-gray);
  line-height: 1.7;
}

/* --- Contact Page --- */
.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}
.contact-grid h2 {
  font-size: 1.75rem;
  color: var(--color-dark-gray);
  margin-bottom: 1.5rem;
}
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.1rem;
  color: var(--color-dark-gray);
  margin-bottom: 1.5rem;
}
.contact-info-list li svg {
  width: 24px;
  height: 24px;
  color: var(--color-red);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.contact-referrals h3 {
  font-size: 1.25rem;
  color: var(--color-dark-gray);
  margin-bottom: 0.5rem;
}
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--color-light-gray);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.map-link {
  display: block;
  margin-top: 1rem;
  text-align: center;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-dark-gray);
  color: var(--color-medium-gray);
  padding: 3rem 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 1rem;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.contact-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.contact-list a {
  color: var(--color-medium-gray);
}
.contact-list a:hover {
  color: var(--color-white);
}
.quick-links li {
  margin-bottom: 0.5rem;
}
.quick-links a {
  color: var(--color-medium-gray);
}
.quick-links a:hover {
  color: var(--color-white);
}
.footer-bottom {
  border-top: 1px solid var(--color-medium-gray);
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.footer-bottom a {
  color: var(--color-medium-gray);
  margin-top: 0.5rem;
}
.footer-bottom a:hover {
  color: var(--color-white);
}

/* --- Responsive Media Queries --- */

@media (min-width: 768px) {
  #mobile-menu-toggle {
    display: none;
  }
  .main-nav {
    display: block;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .lawyers-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
  }
  .footer-bottom a {
    margin-top: 0;
  }
}