/* Color Palette Variables - Professional Maroon, Navy & Neutrals */
:root {
  /* Primary Colors - Legal/Professional (Maroon) */
  --primary-maroon: #800000;
  --maroon-light: #a52a2a;
  --maroon-lighter: #b8534d;
  --maroon-soft: rgba(128, 0, 0, 0.08);
  --maroon-medium: rgba(128, 0, 0, 0.15);

  /* Navy Blue - Personal/Approachable (Deep Navy) */
  --primary-blue: #001f3f;
  --blue-light: #2c5282;
  --blue-lighter: #4a7ba7;
  --blue-soft: rgba(0, 31, 63, 0.08);

  /* Warm Neutral Accents */
  --warm-brown: #7b4b4b;
  --mauve: #c4a4a4;
  --cream: #ffecd1;
  --gold: #c5a880;
  --gold-light: #d4b896;

  /* Neutral Colors */
  --black: #1a1a1a;
  --text-dark: #1a1a1a;
  --text-muted: #4a5568;
  --white: #ffffff;

  /* Backgrounds */
  --background-light: #f7fafc;
  --background-cream: #ffecd1;

  /* Shadows */
  --shadow-soft: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.12);
  --shadow-strong: rgba(26, 26, 26, 0.15);
  --shadow-maroon: rgba(128, 0, 0, 0.15);
  --shadow-blue: rgba(0, 31, 63, 0.2);
}

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

/* Ensure all buttons use consistent font */
button,
input[type='submit'],
input[type='button'],
.cta-button,
.quiz-button {
  font-family: 'Georgia', 'Times New Roman', serif;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: 80px;
  background-color: var(--white);
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: 80px;
  background-color: var(--white);
  overflow-x: hidden;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Utility Classes */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
}

.slide-in-left {
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
  opacity: 0;
  animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
  opacity: 0;
  animation: scaleIn 0.6s ease-out forwards;
}

/* Stagger animation delays for multiple elements */
.animate-delay-1 {
  animation-delay: 0.1s;
}
.animate-delay-2 {
  animation-delay: 0.2s;
}
.animate-delay-3 {
  animation-delay: 0.3s;
}
.animate-delay-4 {
  animation-delay: 0.4s;
}
.animate-delay-5 {
  animation-delay: 0.5s;
}

/* Elements that will be animated on scroll */
.scroll-animate {
  opacity: 0.6;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0) !important;
}

/* Navigation Styles */
.top-bar {
  background-color: var(--white);
  box-shadow: 0 2px 8px var(--shadow-soft);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.top-bar.scrolled {
  box-shadow: 0 4px 12px var(--shadow-medium);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo a {
  display: flex;
  align-items: center;
  gap: 2rem;
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;
  transition: filter 0.3s ease;
}

.firm-name {
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
}

.nav-links a:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-maroon);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-maroon);
}

.nav-links a:not(.dropdown-toggle):hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-maroon);
  border-bottom: 2px solid var(--primary-maroon);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-toggle::after {
  content: '▾';
  margin-left: 0.4rem;
  font-size: 0.85em;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 250px;
  box-shadow: 0 8px 24px var(--shadow-strong);
  list-style: none;
  padding: 0.5rem 0;
  margin-top: 0;
  padding-top: 0.5rem;
  border-radius: 8px;
  z-index: 1001;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: none !important;
  border-left: 3px solid transparent;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: linear-gradient(90deg, var(--primary-maroon), var(--maroon-light));
  color: var(--white);
  border-left-color: var(--white);
  padding-left: 2rem;
}

.phone-number {
  color: var(--primary-maroon);
  font-weight: bold;
  font-size: 1.1rem;
}

.mobile-phone {
  display: none;
}

.mobile-phone-link {
  display: none;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.mobile-phone-link .phone-icon {
  font-size: 1rem;
}

.mobile-phone-link .phone-text {
  font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: 0.3s;
}

/* Main Content */
main {
  padding: 3rem 4rem;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 4rem 3rem;
  margin: -3rem -2rem 2rem -2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(128, 0, 0, 0.75) 100%),
    url('assets/lady-justice.jpg') center/cover;
  /* Fallback gradient background */
  background-color: var(--primary-maroon);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(128, 0, 0, 0.6) 50%, rgba(128, 0, 0, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 2;
  position: relative;
  animation: fadeIn 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 2.5rem;
  color: var(--white);
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
}

.mobile-break {
  display: none;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
  color: var(--white);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1.2rem 3rem;
  box-shadow: 0 8px 25px var(--shadow-blue);
}

.cta-primary:hover {
  background: linear-gradient(135deg, var(--blue-light), var(--primary-blue));
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--shadow-blue);
}

.cta-secondary {
  background: transparent;
  color: var(--white);
  border: 3px solid var(--white);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 1.2rem 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-secondary:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Consultation Section */
.consultation-section {
  background-color: var(--background-light);
  padding: 3rem;
  border-radius: 8px;
  margin: 3rem 0;
}

/* Estate Planning Quiz Section */
.quiz-teaser {
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.9) 0%, rgba(128, 0, 0, 0.85) 100%);
  padding: 3rem;
  border-radius: 12px;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 10px 40px var(--shadow-blue);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quiz-teaser::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.6) 0%, rgba(128, 0, 0, 0.5) 50%, rgba(128, 0, 0, 0.4) 100%);
  z-index: 1;
}

@keyframes subtle-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.quiz-teaser:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px var(--shadow-strong);
}

.quiz-teaser h2 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2rem;
  position: relative;
  z-index: 2;
}

.quiz-teaser-text {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

.quiz-button {
  background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
  color: var(--white);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1.2rem 3rem;
  border: none;
  box-shadow: 0 8px 25px var(--shadow-blue);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.quiz-button:hover {
  background: linear-gradient(135deg, var(--blue-light), var(--primary-blue));
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--shadow-blue);
}

/* Home Practice Areas Section */
.home-practice-areas {
  padding: 1rem 0;
  margin: 1rem 0 1rem 0;
}

.home-practice-areas h2 {
  color: var(--primary-maroon);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.home-practice-areas h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-maroon), var(--maroon-light));
  border-radius: 2px;
}

.home-practice-areas .practice-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.quiz-section {
  background-color: var(--background-light);
  padding: 3rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.quiz-section h2 {
  color: var(--primary-maroon);
  margin-bottom: 1rem;
  font-size: 2rem;
  text-align: center;
}

.quiz-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
}

.question {
  background-color: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border-left: 5px solid var(--primary-maroon);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.question h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.question label {
  display: block;
  padding: 0.5rem 0;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s;
}

.question label:hover {
  color: var(--primary-maroon);
}

.question input[type='radio'] {
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: var(--black);
}

.quiz-results {
  display: none;
  background-color: var(--background-light);
  border-left: 5px solid var(--primary-maroon);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-results h2 {
  color: var(--primary-maroon);
  margin-bottom: 1rem;
}

.quiz-results ul {
  margin: 1rem 0 1rem 2rem;
  line-height: 1.8;
}

.quiz-results li {
  margin-bottom: 0.5rem;
}

.quiz-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--primary-maroon);
}

.quiz-cta h3 {
  color: var(--primary-maroon);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.closing-statement {
  font-size: 1.2rem;
  color: var(--primary-maroon);
  margin-bottom: 1rem;
}

.consultation-section {
  background-color: var(--background-light);
  padding: 3rem;
  border-radius: 8px;
  margin: 3rem 0;
}

.consultation-section h2 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.consultation-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-family: 'Georgia', 'Times New Roman', serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin: 1rem 0;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--shadow-blue);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-blue);
}

/* Contact Form */
.contact-methods-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

.contact-cards-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-cards-sidebar .contact-card {
  margin: 0;
}

.contact-form {
  margin-top: 0;
  padding: 2.5rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.8rem;
}

.form-intro {
  margin-bottom: 1.5rem;
  color: #666;
  font-size: 1rem;
  font-style: italic;
}

.contact-form .form-intro {
  text-align: center;
  margin-bottom: 2rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

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

.direct-email-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.direct-email-note p {
  font-size: 1rem;
  color: #555;
  font-style: italic;
}

.direct-email-note a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-style: normal;
}

.direct-email-note a:hover {
  text-decoration: underline;
}

/* Contact Page */
.contact-page {
  max-width: 100%;
  margin: 0 auto;
}

.contact-page h1 {
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 3px solid var(--primary-blue);
  padding-bottom: 0.5rem;
}

.contact-intro {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-methods-below-form {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #e0e0e0;
}

.contact-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-top: 4px solid var(--primary-blue);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.contact-card h2 {
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.contact-detail {
  margin: 1.2rem 0;
}

.contact-detail a {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: color 0.3s;
  word-break: break-word;
}

.contact-detail a:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

.contact-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-page .consultation-section {
  margin-bottom: 3rem;
}

.contact-page .contact-form h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.home-contact-form .form-intro {
  text-align: left;
  margin-bottom: 1.25rem;
}

/* Home CTA Section */
.home-cta {
  background-color: var(--background-light);
  padding: 3rem;
  border-radius: 8px;
  margin: 3rem 0;
  text-align: center;
}

.home-cta h2 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.home-cta p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

/* Home Compact Contact Section */
.home-contact-section {
  background-color: #fff;
  padding: 1.5rem 4rem 4rem 4rem;
  margin: 0;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.home-contact-heading {
  color: var(--primary-maroon);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

.home-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.home-contact-form h3 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.compact-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.compact-form-row input {
  padding: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.home-contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  min-height: 120px;
  resize: vertical;
  margin-bottom: 1rem;
}

.home-contact-form button {
  width: 100%;
  color: #fff;
}

/* Form Status Messages */
.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}

.form-status:not(:empty) {
  display: block;
}

.form-status.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.home-contact-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: flex-start;
  padding-top: 0;
  position: relative;
}

.home-contact-options::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--primary-blue);
}

.consultation-box {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.consultation-box h2 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.consultation-box p {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.consultation-box .schedule-btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.consultation-box .schedule-btn:hover {
  background-color: var(--blue-light);
}

.home-contact-item {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border-top: 4px solid var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-contact-item h4 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
}

.home-contact-item a {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}

.home-contact-item a:hover {
  text-decoration: underline;
}

.home-contact-item .schedule-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin-top: 0.3rem;
  text-decoration: none;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.home-contact-item .schedule-btn:hover {
  text-decoration: none;
  background-color: var(--blue-light);
  color: #fff;
}

/* Practice Areas */
.practice-areas {
  padding-top: 2rem;
}

.practice-areas-overview {
  max-width: 100%;
  margin: 0 auto;
}

.practice-areas-overview h1 {
  color: var(--primary-maroon);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 3px solid var(--primary-maroon);
  padding-bottom: 0.5rem;
}

.practice-areas-overview .intro-text {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #555;
  line-height: 1.8;
}

.practice-area-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.practice-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 5px solid var(--primary-maroon);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.practice-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-maroon);
  border-left-color: var(--maroon-light);
}

.practice-card h2 {
  color: var(--primary-maroon);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.practice-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.practice-card .cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  align-self: center;
  margin-top: auto;
  z-index: 1;
}

.practice-area {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.practice-area:last-child {
  border-bottom: none;
}

.practice-area h2 {
  color: var(--primary-maroon);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--primary-maroon);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.practice-area h3 {
  color: #333;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.practice-area ul {
  list-style-position: inside;
  margin-left: 1rem;
}

.practice-area li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.practice-area p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.practice-area p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Family Law Hero Section */
.family-law-hero {
  position: relative;
  width: 100vw;
  max-height: 500px;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -3rem;
  margin-bottom: 3rem;
  border-radius: 0;
}

.family-law-hero img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(139, 0, 0, 0.7) 0%, rgba(139, 0, 0, 0.5) 50%, transparent 100%);
  padding: 3rem 4rem 2rem 4rem;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-style: italic;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Practice Area Detail Pages */
.practice-area-detail {
  max-width: 900px;
  margin: 0 auto;
}

.practice-area-detail h1 {
  color: var(--primary-maroon);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--primary-maroon);
  padding-bottom: 0.5rem;
}

.practice-area-detail .subtitle {
  font-size: 1.3rem;
  color: #555;
  font-style: italic;
  margin-bottom: 2rem;
}

.practice-area-detail .intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #333;
}

.practice-area-detail .section-heading {
  color: var(--primary-maroon);
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.practice-area-detail h3 {
  color: #333;
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.practice-area-detail p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: #444;
}

.practice-area-detail .services-list {
  list-style-position: outside;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.practice-area-detail .services-list li {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.practice-area-detail .closing-text {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-style: italic;
  color: #555;
}

.cta-section {
  text-align: center;
  margin: 3rem 0 2rem 0;
  padding: 2rem;
  background-color: var(--background-light);
  border-radius: 8px;
}

.cta-heading {
  color: var(--primary-maroon);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-section h3 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

/* About Section */
.about-section {
  padding-top: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-section h1 {
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 3px solid var(--primary-blue);
  padding-bottom: 0.5rem;
}

.about-layout {
  position: relative;
}

.about-content {
  width: 100%;
}

.about-image {
  float: right;
  width: 350px;
  height: 450px;
  margin: 0 0 0 2rem;
  shape-outside: margin-box;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.business-hero {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.business-hero img {
  width: 100%;
  max-height: 375px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #444;
}

.education {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  clear: both;
}

.education h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 2rem;
  text-align: center;
  margin-top: 0;
}

.disclaimer {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.disclaimer h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Tablet Responsive (iPad) */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }

  .hero-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-content {
    max-width: 600px;
    text-align: center;
  }

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

  .hero-tagline {
    font-size: 1.3rem;
  }

  .practice-area-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .quiz-teaser {
    padding: 2.5rem;
  }

  .home-contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .home-contact-section {
    padding: 2.5rem;
  }

  .home-contact-heading {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .consultation-box {
    max-width: 600px;
    margin: 0 auto;
  }

  .home-contact-form {
    max-width: 600px;
    margin: 0 auto;
  }

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

  .office-map iframe {
    height: 350px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    padding-top: 100px; /* Increased for firm name bar */
  }

  .top-bar::before {
    content: 'The Law Office of Broxton T. Prater';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0;
    background-color: var(--background-light);
    border-bottom: 1px solid #e0e0e0;
    z-index: 1001;
    color: #333;
  }

  .top-bar {
    top: 30px; /* Push down below firm name */
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    gap: 0;
    align-items: stretch;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links > li {
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }

  .nav-links > li:last-child {
    border-bottom: none;
  }

  .nav-links > li > a {
    padding: 1rem 2rem;
    display: block;
    font-size: 1.05rem;
    text-align: left;
  }

  .dropdown {
    display: flex;
    flex-direction: column;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: var(--background-light);
    margin: 0;
    display: block !important; /* Always show on mobile */
    opacity: 1 !important; /* Override desktop hidden state */
    transform: translateY(0) !important; /* Override desktop transform */
    padding: 0.5rem 0;
    min-width: 100%;
    border-radius: 0;
  }

  .dropdown-menu li {
    padding: 0;
    border-bottom: none;
  }

  .dropdown-menu a {
    padding: 0.75rem 2rem 0.75rem 3rem; /* Left padding creates indent */
    display: block;
    font-size: 0.95rem;
    color: #666;
    border-left: 3px solid transparent;
    transition: all 0.2s;
  }

  .dropdown-menu a:hover {
    background-color: #fff;
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
  }

  .dropdown-toggle::after {
    content: ''; /* Remove arrow on mobile */
  }

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

  .mobile-phone-link {
    display: flex !important;
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
  }

  .desktop-phone {
    display: none !important;
  }

  .mobile-phone {
    display: block !important;
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    margin: 0;
    font-size: 0.85rem;
  }

  .hero {
    min-height: 400px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -2rem;
    margin-bottom: 2rem;
    padding: 2.5rem 1.5rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(44, 82, 130, 0.9) 100%),
      url('assets/lady-justice.jpg') center/cover;
  }

  .hero-content {
    max-width: 100%;
    padding: 0;
  }

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

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

  .tagline-separator {
    display: none;
  }

  .mobile-break {
    display: inline;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }

  nav {
    padding: 1rem;
  }

  .logo img {
    height: 50px;
  }

  .firm-name {
    display: none;
  }

  main {
    padding: 2rem 1rem;
  }

  .consultation-section {
    padding: 2rem 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-methods-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-cards-sidebar {
    gap: 1rem;
  }

  .quiz-teaser {
    padding: 2rem 1.5rem;
    margin: 2rem 0;
  }

  .quiz-teaser h2 {
    font-size: 1.5rem;
  }

  .quiz-teaser-text {
    font-size: 1.05rem;
  }

  .quiz-button {
    font-size: 1.05rem;
    padding: 1rem 2rem;
  }

  .quiz-section {
    padding: 2rem 1.5rem;
  }

  .quiz-section h2 {
    font-size: 1.6rem;
  }

  .question {
    padding: 1.2rem;
  }

  .question h3 {
    font-size: 1.05rem;
  }

  .quiz-results {
    padding: 1.5rem;
  }

  .practice-area-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .practice-card {
    padding: 1.5rem;
  }

  .practice-area-detail h1 {
    font-size: 2rem;
  }

  .practice-area-detail .section-heading {
    font-size: 1.5rem;
  }

  /* Family Law Hero Mobile */
  .family-law-hero {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -2rem;
    margin-bottom: 2rem;
    max-height: 350px;
  }

  .family-law-hero img {
    height: 300px;
    object-position: center 60%;
  }

  .hero-overlay {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  /* Contact Page Mobile */
  .contact-page h1 {
    font-size: 2rem;
  }

  .contact-intro {
    font-size: 1.05rem;
  }

  /* About Page Mobile */
  .about-section h1 {
    font-size: 2rem;
  }

  .about-layout {
    display: block;
  }

  .about-image {
    float: none;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 2rem auto;
    display: block;
  }

  .about-content {
    width: 100%;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-detail a {
    font-size: 1.1rem;
  }

  .home-cta {
    padding: 2rem 1.5rem;
  }

  .home-cta h2 {
    font-size: 1.6rem;
  }

  .home-cta p {
    font-size: 1.05rem;
  }

  .home-contact-section {
    padding: 2rem 1.5rem;
  }

  .home-contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-contact-options::after {
    display: none;
  }

  .compact-form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .home-contact-options {
    gap: 1rem;
  }
}

/* Office Location Section */
.office-location-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  width: 100%;
}

.office-map {
  width: 100%;
  height: 100%;
  min-height: 350px;
}

.office-map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.office-info {
  background-color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.office-info h2 {
  color: var(--primary-maroon);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.office-address {
  margin-bottom: 0.5rem;
}

.office-address p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0.3rem;
}

.office-phone {
  margin-bottom: 1rem;
}

.office-phone a {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  transition: color 0.3s;
}

.office-phone a:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

.office-email {
  margin-bottom: 1.5rem;
}

.office-email a {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s;
  word-break: break-word;
}

.office-email a:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

.office-hours {
  margin-bottom: 2rem;
}

.office-hours table {
  width: 100%;
  border-collapse: collapse;
}

.office-hours tr {
  border-bottom: 1px solid #f0f0f0;
}

.office-hours tr:last-child {
  border-bottom: none;
}

.office-hours td {
  padding: 0.75rem 0;
  font-size: 1rem;
}

.office-hours td:first-child {
  color: #333;
  font-weight: 600;
  width: 80px;
}

.office-hours td:last-child {
  color: #555;
  text-align: right;
}

.office-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.office-actions .cta-button {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  margin: 0;
}

.directions-btn {
  background-color: var(--primary-blue);
  font-family: 'Georgia', 'Times New Roman', serif;
  max-width: 250px;
  margin: 0 auto;
}

.directions-btn:hover {
  background-color: var(--blue-light);
}

.review-btn {
  background-color: #fff;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  font-family: 'Georgia', 'Times New Roman', serif;
}

.review-btn:hover {
  background-color: var(--primary-blue);
  color: #fff;
}

/* Mobile responsive for office location */
@media (max-width: 768px) {
  .office-location-section {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .office-map {
    min-height: 300px;
  }

  .office-info {
    padding: 2rem 1.5rem;
  }

  .office-info h2 {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .office-info > div[style*='grid-template-columns'] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .office-phone a {
    font-size: 1.1rem;
  }

  .office-actions {
    flex-direction: column;
  }

  .office-actions .cta-button {
    width: 100%;
  }
}

/* Why Choose Section */
.why-choose-section {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
  margin: 1.5rem -2rem;
}

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

.why-choose-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-maroon), var(--maroon-light));
  border-radius: 2px;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-top: 4px solid var(--primary-maroon);
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-maroon);
  border-top-color: var(--maroon-light);
}

.why-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-maroon), var(--maroon-light));
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px var(--shadow-maroon);
}

.why-icon::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}

/* Icon backgrounds using SVG data URIs */
.icon-experience::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L2 7v10c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V7l-10-5zm0 2.18l8 3.6v8.72c0 4.31-2.96 8.28-7 9.67V4.18zm-1 2.82v13.49c-4.04-1.39-7-5.36-7-9.67V8.6l7-3.6z'/%3E%3C/svg%3E");
}

.icon-personal::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05.02.01.03.03.04.04 1.14.83 1.93 1.94 1.93 3.41V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
}

.icon-local::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

.icon-responsive::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
}

.why-card:hover .why-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px var(--shadow-maroon);
  background: linear-gradient(135deg, var(--maroon-light), var(--maroon-lighter));
}

.why-card h3 {
  color: var(--primary-maroon);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.why-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* About Mini Section */
.about-mini-section {
  padding: 3rem 2rem;
  background: var(--white);
  margin: 0.5rem 0 1.5rem 0;
}

.about-mini-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-mini-text h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.about-mini-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--blue-light));
  border-radius: 2px;
}

.about-lead {
  font-size: 1.25rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.credential-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--background-light);
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.credential-item:hover {
  border-left-color: var(--gold-light);
  transform: translateX(5px);
  box-shadow: 0 4px 15px var(--shadow-blue);
}

.credential-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-blue);
}

.credential-icon::before {
  content: '';
  width: 28px;
  height: 28px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}

/* Credential icon backgrounds */
.icon-education::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z'/%3E%3C/svg%3E");
}

.icon-court::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.5 10h-2v7h2v-7zm6 0h-2v7h2v-7zm8.5 9H2v2h19v-2zm-2.5-9h-2v7h2v-7zm-7-6.74L16.71 6H6.29l5.21-2.74m0-2.26L2 6v2h19V6l-9.5-5z'/%3E%3C/svg%3E");
}

.icon-prosecutor::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L2 7v10c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V7l-10-5zm0 10l-4 4-1.41-1.41L10.17 11l-3.58-3.59L8 6l4 4 4-4 1.41 1.41L13.83 11l3.58 3.59L16 16l-4-4z'/%3E%3C/svg%3E");
}

.icon-contract::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
}

.credential-item:hover .credential-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--shadow-blue);
}

.credential-item strong {
  display: block;
  color: var(--primary-blue);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.credential-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.about-mini-image {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.about-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  border-radius: 12px;
  box-shadow: 0 20px 60px var(--shadow-strong);
  transition: transform 0.5s ease;
}

.about-mini-image:hover img {
  transform: scale(1.05);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-mini-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-mini-image {
    order: -1;
    height: 350px;
  }

  .why-choose-section,
  .about-mini-section {
    padding: 3rem 1rem;
  }
}

/* Consultation Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 3rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-close {
  color: var(--text-muted);
  float: right;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
  position: absolute;
  right: 1.5rem;
  top: 1rem;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--primary-maroon);
}

.modal-content h2 {
  color: var(--primary-maroon);
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

.modal-content > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem !important;
  text-align: center;
  margin: 0 !important;
}

.modal-btn strong {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.modal-btn .btn-description {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.9;
  display: block;
}

.modal-btn:hover {
  transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 20% auto;
    padding: 2rem;
  }

  .modal-content h2 {
    font-size: 1.6rem;
  }

  .modal-btn strong {
    font-size: 1.1rem;
  }

  .modal-btn .btn-description {
    font-size: 0.85rem;
  }
}
