/* ==========================================================================
   The Juris Firm - Austin Personal Injury Lawyers
   Mobile-First Responsive Stylesheet
   ========================================================================== */

/* CSS Custom Properties */
:root {
  /* Colors */
  --primary: #1a365d;
  --primary-dark: #0f2440;
  --primary-light: #2c5282;
  --secondary: #c9a227;
  --secondary-dark: #b8911f;
  --text: #2d3748;
  --text-light: #718096;
  --text-muted: #a0aec0;
  --bg-white: #ffffff;
  --bg-light: #f7fafc;
  --bg-dark: #1a202c;
  --border: #e2e8f0;
  --success: #38a169;
  --error: #e53e3e;

  /* Typography */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* ==========================================================================
   Reset & Base Styles (Mobile First - 320px+)
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg-white);
  min-width: 320px;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary);
}

ul, ol {
  padding-left: 1.25rem;
}

/* ==========================================================================
   Typography (Mobile First)
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

/* Mobile typography */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ==========================================================================
   Container
   ========================================================================== */

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

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   Header (Mobile First) - Supports both .site-header and .header
   ========================================================================== */

.site-header,
.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Top bar */
.header-top {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  text-align: center;
}

.header-top-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.header-top a {
  color: var(--bg-white);
}

.header-top a:hover {
  color: var(--secondary);
}

/* Main header */
.header-main {
  padding: 0.75rem 0;
}

.header-main-inner,
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo span {
  color: var(--secondary);
}

.logo:hover {
  color: var(--primary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: block;
  background: none;
  border: 2px solid var(--primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  color: var(--primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  background-color: var(--primary);
  color: var(--bg-white);
}

/* Navigation */
.main-nav {
  display: none;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}

.main-nav.active {
  display: block;
}

.nav-list,
.main-nav > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.nav-list > li > a,
.main-nav > ul > li > a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.nav-list > li > a:hover,
.main-nav > ul > li > a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

/* Dropdown - Mobile */
.dropdown,
.dropdown-menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: var(--bg-light);
}

.nav-item:hover .dropdown,
.nav-item.active .dropdown,
li.dropdown:hover .dropdown-menu,
li.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown a,
.dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.dropdown a:hover,
.dropdown-menu a:hover {
  background-color: var(--bg-white);
  color: var(--primary);
}

/* Header CTA button */
.header-cta {
  display: none;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--bg-white);
  border-color: var(--secondary);
}

.btn-primary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--bg-white);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--bg-white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Stack buttons on mobile */
.hero .btn,
.hero-cta .btn,
.cta-buttons .btn {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
}

.hero .btn:last-child,
.hero-cta .btn:last-child,
.cta-buttons .btn:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Hero Sections (Mobile First) - Supports both .hero and .page-hero
   ========================================================================== */

.hero,
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--bg-white);
  padding: 2.5rem 0;
  position: relative;
}

.hero-home {
  padding: 3rem 0;
}

.hero h1,
.page-hero h1 {
  color: var(--bg-white);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.hero p,
.page-hero p {
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.hero-feature svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
}

/* Hero with background image */
.hero-with-image {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.hero-with-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 36, 64, 0.9) 0%, rgba(26, 54, 93, 0.85) 100%);
}

.hero-with-image .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 2.5rem 0;
}

.section-light {
  background-color: var(--bg-light);
}

.section-dark {
  background-color: var(--primary-dark);
  color: var(--bg-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.section-header h2 {
  margin-top: 0;
}

/* ==========================================================================
   Content Layout (Mobile First)
   ========================================================================== */

.main-content {
  padding: 2rem 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.primary-content {
  order: 1;
}

.content-section {
  padding: 2rem 0;
}

.content-section h2:first-child {
  margin-top: 0;
}

/* Two column - stacked on mobile */
.two-column,
.two-column-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ==========================================================================
   Sidebar (Mobile First) - Supports both templates
   ========================================================================== */

.sidebar {
  order: 2;
}

.sidebar-card,
.sidebar-cta,
.sidebar-box {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--bg-white);
  text-align: center;
}

.sidebar-cta h3 {
  color: var(--bg-white);
  margin-top: 0;
  font-size: 1.25rem;
}

.sidebar-cta p {
  opacity: 0.9;
  margin-bottom: 1rem;
}

.sidebar-cta .btn {
  width: 100%;
  margin-bottom: 1rem;
}

.sidebar-cta .phone {
  font-size: 0.9375rem;
  margin: 0;
}

.sidebar-cta .phone a {
  color: var(--secondary);
  font-weight: 600;
}

.sidebar-card h3,
.sidebar-box h3 {
  font-size: 1.125rem;
  margin-top: 0;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--secondary);
  margin-bottom: 1rem;
}

.sidebar-card ul,
.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card li,
.sidebar-box li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.sidebar-card li:last-child,
.sidebar-box li:last-child {
  border-bottom: none;
}

.sidebar-links a {
  display: block;
  color: var(--text);
}

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

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

.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--bg-light) 0%, #edf2f7 100%);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}

.cta-box h3 {
  margin-top: 0;
  color: var(--primary);
}

/* ==========================================================================
   Practice Areas Grid
   ========================================================================== */

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

.practice-area-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition-base);
  display: block;
  color: inherit;
}

.practice-area-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.practice-area-card h3 {
  margin-top: 0.5rem;
  font-size: 1.0625rem;
}

.practice-area-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Stats Grid
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 1rem 0.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.375rem;
}

/* ==========================================================================
   CTA Sections
   ========================================================================== */

.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #d4a82a 100%);
  color: var(--bg-white);
  text-align: center;
  padding: 2.5rem 0;
}

.cta-section h2 {
  color: var(--bg-white);
  margin-top: 0;
  font-size: 1.5rem;
}

.cta-section p {
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.cta-section .btn {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  border-color: var(--primary-dark);
}

.cta-section .btn:hover {
  background-color: var(--bg-white);
  color: var(--primary-dark);
  border-color: var(--bg-white);
}

.final-cta {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
  text-align: center;
}

.final-cta h2 {
  margin-top: 0;
}

/* ==========================================================================
   Lists
   ========================================================================== */

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

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.numbered-list,
.process-list {
  counter-reset: item;
  list-style: none;
  padding: 0;
}

.numbered-list li,
.process-list li {
  counter-increment: item;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.25rem;
}

.numbered-list li::before,
.process-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial::before {
  content: """;
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--secondary);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  line-height: 1;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  padding-top: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

.testimonial-case {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section {
  margin-top: 2rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg-white);
  border: none;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover {
  background-color: var(--bg-light);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* FAQ without accordion */
.faq-section .faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.faq-section .faq-item p {
  margin-bottom: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text);
  font-size: 0.9375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

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

.contact-form {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-info {
  background: var(--primary);
  color: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.contact-info h3 {
  color: var(--bg-white);
  margin-top: 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--secondary);
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

th {
  background-color: var(--primary);
  color: var(--bg-white);
  font-weight: 600;
}

tr:hover {
  background-color: var(--bg-light);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs,
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--text-light);
  background-color: var(--bg-light);
}

.breadcrumbs a,
.breadcrumb a {
  color: var(--text-light);
}

.breadcrumbs a:hover,
.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumbs span,
.breadcrumb span {
  margin: 0 0.375rem;
}

/* ==========================================================================
   Images
   ========================================================================== */

.content-image {
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

.content-image figcaption {
  padding: 0.625rem 1rem;
  background-color: var(--bg-light);
  font-size: 0.8125rem;
  color: var(--text-light);
  text-align: center;
}

/* Float images - disabled on mobile */
.image-float-right,
.image-float-left {
  margin: 1.5rem 0;
  max-width: 100%;
}

.hero-image {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

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

.image-grid figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.image-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ==========================================================================
   Related Links
   ========================================================================== */

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.related-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--bg-light);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text);
  transition: all var(--transition-fast);
}

.related-links a:hover {
  background-color: var(--primary);
  color: var(--bg-white);
}

/* ==========================================================================
   Footer (Mobile First) - Supports both .site-footer and .footer
   ========================================================================== */

.site-footer,
.footer {
  background-color: var(--bg-dark);
  color: var(--bg-white);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-about {
  max-width: none;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 0.75rem;
}

.footer-logo span {
  color: var(--secondary);
}

.footer-about p,
.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-heading,
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bg-white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links,
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-col a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  margin-bottom: 0.75rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--secondary);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* Photo credits */
.photo-credits {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer .photo-credits,
.footer-bottom .photo-credits {
  border-top: none;
  margin-top: 1rem;
  padding-top: 0;
  color: rgba(255, 255, 255, 0.5);
}

.photo-credits a {
  color: inherit;
}

.photo-credits a:hover {
  color: var(--secondary);
}

.credit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   TABLET BREAKPOINT (768px+)
   ========================================================================== */

@media (min-width: 768px) {
  /* Typography */
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }

  .lead { font-size: 1.25rem; }

  /* Container */
  .container {
    padding: 0 1.5rem;
  }

  /* Header */
  .header-top-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    width: auto;
    padding-top: 0;
    border-top: none;
    margin-top: 0;
  }

  .nav-list,
  .main-nav > ul {
    flex-direction: row;
    gap: 0.25rem;
  }

  .nav-list > li > a,
  .main-nav > ul > li > a {
    padding: 0.5rem 0.75rem;
    border-bottom: none;
    border-radius: var(--radius-sm);
  }

  .nav-list > li > a:hover,
  .main-nav > ul > li > a:hover {
    background-color: var(--bg-light);
    padding-left: 0.75rem;
  }

  /* Dropdown - Desktop */
  .nav-item,
  li.dropdown {
    position: relative;
  }

  .dropdown,
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 100;
  }

  .nav-item:hover .dropdown,
  li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
  }

  .dropdown a,
  .dropdown-menu a {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--border);
  }

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

  .header-cta {
    display: inline-block;
  }

  /* Hero */
  .hero,
  .page-hero {
    padding: 3.5rem 0;
  }

  .hero-home {
    padding: 4.5rem 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.25rem;
  }

  .hero p,
  .page-hero p {
    font-size: 1.125rem;
  }

  .hero-features {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  /* Buttons - side by side */
  .hero .btn,
  .hero-cta .btn,
  .cta-buttons .btn {
    display: inline-block;
    width: auto;
    margin-bottom: 0;
    margin-right: 1rem;
  }

  .hero .btn:last-child,
  .hero-cta .btn:last-child,
  .cta-buttons .btn:last-child {
    margin-right: 0;
  }

  /* Sections */
  .section {
    padding: 3.5rem 0;
  }

  /* Cards */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Practice Areas */
  .practice-areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* CTA */
  .cta-section {
    padding: 3.5rem 0;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  /* Two column */
  .two-column {
    flex-direction: row;
    gap: 2.5rem;
  }

  .two-column > * {
    flex: 1;
  }

  /* Content wrapper with sidebar */
  .content-wrapper {
    flex-direction: row;
    gap: 2.5rem;
  }

  .primary-content {
    flex: 1;
    order: 1;
    min-width: 0;
  }

  .sidebar {
    width: 300px;
    flex-shrink: 0;
    order: 2;
  }

  /* Image floats */
  .image-float-right {
    float: right;
    max-width: 350px;
    margin: 0 0 1.5rem 2rem;
  }

  .image-float-left {
    float: left;
    max-width: 350px;
    margin: 0 2rem 1.5rem 0;
  }

  /* Image grid */
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-legal {
    margin-top: 0;
  }
}

/* ==========================================================================
   DESKTOP BREAKPOINT (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
  /* Typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  /* Header */
  .logo {
    font-size: 1.5rem;
  }

  .nav-list > li > a,
  .main-nav > ul > li > a {
    padding: 0.5rem 1rem;
  }

  /* Hero */
  .hero,
  .page-hero {
    padding: 4rem 0;
  }

  .hero-home {
    padding: 5rem 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.5rem;
  }

  .hero p,
  .page-hero p {
    font-size: 1.25rem;
    max-width: 700px;
  }

  /* Sections */
  .section {
    padding: 4rem 0;
  }

  /* Cards */
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Practice Areas */
  .practice-areas-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  /* Stats */
  .stat-number {
    font-size: 3rem;
  }

  /* Two column content with sidebar */
  .two-column-content {
    flex-direction: row;
    gap: 3rem;
  }

  .two-column-content > *:first-child {
    flex: 2;
  }

  .two-column-content > *:last-child {
    flex: 1;
  }

  /* Sidebar sticky */
  .sidebar {
    width: 320px;
    position: sticky;
    top: 100px;
    align-self: start;
  }

  /* Image floats */
  .image-float-right,
  .image-float-left {
    max-width: 400px;
  }

  /* Image grid */
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }

  .footer-about {
    max-width: 300px;
  }
}

/* ==========================================================================
   LARGE DESKTOP BREAKPOINT (1280px+)
   ========================================================================== */

@media (min-width: 1280px) {
  /* Typography */
  h1 { font-size: 2.75rem; }

  /* Hero */
  .hero-home {
    padding: 6rem 0;
  }

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

  /* Sections */
  .section {
    padding: 5rem 0;
  }

  /* Content */
  .content-wrapper {
    gap: 3.5rem;
  }

  .sidebar {
    width: 350px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .site-header,
  .header,
  .site-footer,
  .footer,
  .cta-section,
  .sidebar,
  .sidebar-cta,
  .sidebar-box,
  .menu-toggle,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .content-wrapper {
    display: block;
  }

  .primary-content {
    width: 100%;
  }
}
