/* ================================
   STEWART FAMILY LAW - MAIN STYLESHEET
   Modern CSS Architecture with Design Tokens
   ================================ */

/* Import Design Tokens - Our centralized design system */
@import url('./design-tokens.css');

/* Import Utility Classes - Design Token Based */
@import url('./utilities.css');

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ================================
   FOUNDATION FRAMEWORK INTEGRATION
   Note: Foundation CSS is loaded directly in HTML for better performance
   ================================ */

/* ================================
   FOUNDATION CUSTOMIZATIONS - ADA COMPLIANT
   ================================ */

/* Override Foundation's global styles with high contrast */
html {
    scroll-behavior: smooth;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary); /* High contrast text */
    line-height: 1.7; /* Improved readability */
    font-size: 16px; /* Minimum font size for accessibility */
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ADA Compliant Focus States for all interactive elements */
*:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
    box-shadow: var(--focus-shadow);
}

/* Hide outline for mouse users, keep for keyboard users */
*:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

*:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
    box-shadow: var(--focus-shadow);
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary-600);
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 10000;
    font-weight: 600;
    font-size: 14px;
}

.skip-link:focus {
    top: 6px;
}

/* Foundation Typography Overrides with High Contrast */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary); /* Maximum contrast */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-4);
}

p {
    color: var(--color-text-primary);
    line-height: 1.7; /* Better readability */
    margin-bottom: var(--space-4);
}

/* High contrast links */
a {
    color: var(--color-primary-600);
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

a:hover,
a:focus {
    color: var(--color-primary-900);
    text-decoration: underline;
    border-bottom-color: currentColor;
}

/* Foundation Button Customizations with ADA Compliance */
.button {
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
    min-height: 44px; /* Touch target size for accessibility */
    min-width: 44px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.button.primary {
    background: var(--color-primary-600); /* Solid color for better contrast */
    color: white;
    border-color: var(--color-primary-600);
}

.button.primary:hover,
.button.primary:focus {
    background: var(--color-primary-900);
    border-color: var(--color-primary-900);
    color: white;
    text-decoration: none;
    transform: translateY(-1px); /* Reduced transform for accessibility */
    box-shadow: var(--shadow-lg);
}

.button.secondary {
    background: transparent;
    color: var(--color-primary-600);
    border: 2px solid var(--color-primary-600);
    box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus {
    background: var(--color-primary-600);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.button.warning {
    background: linear-gradient(135deg, var(--color-accent-600) 0%, #d97706 100%);
    color: white;
}

.button.warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #d97706 0%, var(--color-accent-600) 100%);
}

/* Foundation Card Customizations - ADA Compliant */
.card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-neutral-200); /* Stronger border for definition */
    transition: all var(--transition-normal);
    overflow: hidden;
    background: #ffffff; /* Ensure white background */
}

.card:hover,
.card:focus-within {
    transform: translateY(-2px); /* Reduced transform for accessibility */
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-600);
}

.card-section {
    padding: var(--space-8);
}

.card h3 {
    color: var(--color-text-primary); /* High contrast headings */
    margin-bottom: var(--space-4);
}

.card p {
    color: var(--color-text-primary); /* High contrast text */
    line-height: 1.7;
}

.card .button {
    margin-top: var(--space-4);
}

/* Foundation Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-neutral-900);
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

/* Foundation Grid Customizations */
.grid-container {
    max-width: 1200px;
}

.grid-x {
    margin-left: auto;
    margin-right: auto;
}

/* Foundation Callout Customizations */
.callout {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-md);
}

.callout.primary {
    background: linear-gradient(135deg, var(--color-primary-100) 0%, #ffffff 100%);
    border-left: 4px solid var(--color-primary-600);
}

.callout.secondary {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, #ffffff 100%);
    border-left: 4px solid var(--color-accent-600);
}

.callout.success {
    background: linear-gradient(135deg, var(--color-success-100) 0%, #ffffff 100%);
    border-left: 4px solid var(--color-success-600);
    color: var(--color-neutral-800);
}

.callout.success h4 {
    color: var(--color-success-700);
}

/* ================================
   LAW FIRM SPECIFIC COMPONENTS
   ================================ */

/* Custom Logo Styling for Foundation Top Bar */
.top-bar .logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-primary-900);
}

/* Hero Section with Foundation Grid */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-600) 100%);
    color: white;
    padding: var(--space-16) 0;
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.06"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E') repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Ensure hero buttons are interactive and visible */
.hero-section .button-group {
    position: relative;
    z-index: 10;
}

.hero-section .button {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Fix secondary button contrast in hero section */
.hero-section .button.secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary-600);
    border: 2px solid white;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-section .button.secondary:hover,
.hero-section .button.secondary:focus {
    background: white;
    color: var(--color-primary-600);
    border: 2px solid white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-section h1 {
    color: white;
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    color: white; /* High contrast white text on blue background */
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    opacity: 0.95; /* Slight transparency for visual hierarchy while maintaining readability */
}

/* Services Section Styling */
.services-section {
    padding: var(--space-16) 0;
    background: white;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--color-neutral-50) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.services-section .grid-container {
    position: relative;
    z-index: 2;
}

.service-icon {
    margin-bottom: var(--space-4);
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--accent-gold-light) 100%);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4) auto;
    transition: all var(--transition-normal);
}

.card:hover .service-icon {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-accent-600) 100%);
    transform: scale(1.1);
}

.card:hover .service-icon i {
    color: white !important;
}

/* About Preview Section */
.about-preview-section {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--color-neutral-50) 0%, #ffffff 100%);
    position: relative;
}

.about-preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23f3f4f6" fill-opacity="0.4" fill-rule="evenodd"%3E%3Cpath d="M0 40L40 0H20L0 20M40 40V20L20 40"/%3E%3C/g%3E%3C/svg%3E') repeat;
    z-index: 1;
}

.about-preview-section .grid-container {
    position: relative;
    z-index: 2;
}

/* Statistics Section */
.stats-section {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-600) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M0 0h80v80H0V0zm20 20v40h40V20H20zm20 35a15 15 0 1 1 0-30 15 15 0 0 1 0 30z" fill-rule="nonzero"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E') repeat;
    z-index: 1;
}

.stats-section .grid-container {
    position: relative;
    z-index: 2;
}

.stats-section h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.stats-section .lead {
    color: white; /* High contrast white text on blue background */
    font-size: 1.125rem;
    opacity: 0.95; /* Slight transparency for visual hierarchy while maintaining readability */
}

.stat-item {
    text-align: center;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
    margin-bottom: var(--space-6);
}


.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-2);
    font-family: var(--font-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.125rem;
    color: white; /* High contrast white text for stat labels on blue background */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9; /* Slight transparency for visual hierarchy while maintaining readability */
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-accent-600) 0%, #d97706 100%);
    color: white;
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E') repeat;
    z-index: 1;
}

.cta-section .grid-container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .button.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cta-section .button.secondary:hover {
    background: white;
    color: var(--color-accent-600);
}

/* Foundation Footer Customizations */
.footer {
    background: linear-gradient(135deg, var(--color-neutral-800) 0%, var(--color-neutral-900) 100%);
    color: white;
    padding: var(--space-16) 0 var(--space-6) 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23ffffff" fill-opacity="0.03" fill-rule="evenodd"%3E%3Cpath d="M20 20c0-11.046-8.954-20-20-20v20h20zM0 20v20h20c0-11.046-8.954-20-20-20z"/%3E%3C/g%3E%3C/svg%3E') repeat;
    z-index: 1;
}

.footer .grid-container {
    position: relative;
    z-index: 2;
}

.footer h4 {
    color: white;
    margin-bottom: var(--space-4);
    font-family: var(--font-heading);
}

.footer a {
    color: var(--color-neutral-200);
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: white;
}

.footer .no-bullet {
    list-style: none;
    margin-left: 0;
}

.footer .no-bullet li {
    margin-bottom: var(--space-1);
}

.footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: var(--color-neutral-200);
}

.footer-bottom small {
    color: var(--color-neutral-200);
}

.footer address {
    color: var(--color-neutral-200);
    font-style: normal;
}

.footer .contact-details p {
    color: var(--color-neutral-200);
}

/* Foundation Responsive Adjustments */
@media screen and (max-width: 39.9375em) {
    .hero-section {
        padding: var(--space-2xl) 0;
        min-height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .services-section,
    .about-preview-section,
    .stats-section,
    .cta-section {
        padding: var(--space-2xl) 0;
    }
    
    .stat-item {
        padding: var(--space-6);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        padding: var(--space-4);
    }
}

@media screen and (min-width: 40em) and (max-width: 63.9375em) {
    .hero-content {
        text-align: center;
    }
    
    .stat-item {
        margin-bottom: var(--space-4);
    }
}

/* Foundation Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

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

.hover-effect {
    transition: all var(--transition-normal);
}

/* Foundation Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Foundation Form Styling */
.form-error.is-visible {
    color: var(--foundation-palette-alert);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.is-invalid-input {
    border-color: var(--foundation-palette-alert);
    background-color: rgba(244, 67, 54, 0.1);
}

/* Foundation Top Bar Sticky Styling */
.sticky.scrolled {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.sticky.scrolled .logo-text {
    color: var(--color-primary-900);
}

.sticky.scrolled .top-bar a {
    color: var(--color-neutral-700);
}

.sticky.scrolled .top-bar a:hover {
    color: var(--color-primary-600);
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-neutral-800);
    background-color: #ffffff;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-neutral-600);
    font-size: 1.125rem;
    line-height: 1.75;
}

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

a:hover {
    color: var(--color-primary-900);
}

/* Lists */
ul, ol {
    margin-bottom: var(--space-4);
}

li {
    margin-bottom: var(--space-1);
    color: var(--color-neutral-600);
}

/* Modern Image Placeholders */
.image-placeholder {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-900) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='9' cy='9' r='3'/%3E%3Ccircle cx='39' cy='39' r='3'/%3E%3Ccircle cx='9' cy='39' r='3'/%3E%3Ccircle cx='39' cy='9' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.image-placeholder .placeholder-text {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Modern Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    min-height: 48px;
    gap: var(--space-1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-900) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary-600);
    border: 2px solid var(--color-primary-600);
}

.btn-secondary:hover {
    background: var(--color-primary-600);
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent-600) 0%, #d97706 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* ================================
   SECTION STYLES & VISUAL DESIGN
   ================================ */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-600) 100%);
    color: white;
    padding: calc(var(--space-16) + 2rem) 0 var(--space-16) 0;
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.06"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E') repeat;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: white;
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p {
    color: white; /* High contrast white text on blue background */
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    max-width: 600px;
    opacity: 0.95; /* Slight transparency for visual hierarchy while maintaining readability */
}

/* Services Section */
.services-section {
    padding: var(--space-16) 0;
    background: white;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--color-neutral-50) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

/* About Preview Section */
.about-preview-section {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--color-neutral-50) 0%, #ffffff 100%);
    position: relative;
}

.about-preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23f3f4f6" fill-opacity="0.4" fill-rule="evenodd"%3E%3Cpath d="M0 40L40 0H20L0 20M40 40V20L20 40"/%3E%3C/g%3E%3C/svg%3E') repeat;
    z-index: 1;
}

.about-preview-section .container {
    position: relative;
    z-index: 2;
}

/* Stats Section */
.stats-section {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-600) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M0 0h80v80H0V0zm20 20v40h40V20H20zm20 35a15 15 0 1 1 0-30 15 15 0 0 1 0 30z" fill-rule="nonzero"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E') repeat;
    z-index: 1;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-section h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.stats-section p {
    color: white; /* High contrast white text on blue background */
    opacity: 0.95; /* Slight transparency for visual hierarchy while maintaining readability */
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-accent-600) 0%, #d97706 100%);
    color: white;
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E') repeat;
    opacity: 0.1;
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-neutral-200) 50%, transparent 100%);
    margin: var(--space-8) 0;
}

.section-divider-accent {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent-600) 50%, transparent 100%);
    margin: var(--space-8) 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
    position: relative;
}

.section-header h2 {
    margin-bottom: var(--space-4);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-600) 0%, var(--color-accent-600) 100%);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--color-neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Decorative Elements */
.decorative-bg-1 {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-neutral-50) 100%);
    position: relative;
}

.decorative-bg-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%239ca3af" fill-opacity="0.03" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Ccircle cx="13" cy="13" r="3"/%3E%3C/g%3E%3C/svg%3E') repeat;
    z-index: 1;
}

.decorative-bg-2 {
    background: linear-gradient(135deg, var(--color-primary-100) 0%, #ffffff 100%);
    position: relative;
}

.decorative-bg-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%233b82f6" fill-opacity="0.05" fill-rule="evenodd"%3E%3Cpath d="M15 0C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15C30 6.716 23.284 0 15 0zm0 28C7.82 28 2 22.18 2 15S7.82 2 15 2s13 5.82 13 13-5.82 13-13 13z"/%3E%3C/g%3E%3C/svg%3E') repeat;
    z-index: 1;
}

/* Enhanced Section Spacing */
section {
    position: relative;
}

section + section {
    margin-top: 0;
}

/* Content ensures relative positioning over backgrounds */
.container {
    position: relative;
    z-index: 2;
}

.btn-danger {
    background: var(--error);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    color: white;
}

/* Top Bar - Modern Style */
.top-bar {
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-600) 100%);
    color: white;
    padding: var(--space-2) 0;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20v-40c11.046 0 20 8.954 20 20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

.consultation-banner {
    position: static; /* Scrolls away normally */
    z-index: 1; /* Low z-index */
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.phone-link {
    color: var(--color-accent-600);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.phone-link:hover {
    color: var(--accent-gold-light);
}

/* Generic Header - NOT STICKY (removed to avoid conflicts) */
/* header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-neutral-200);
} */

.main-nav {
    padding: var(--space-4) 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-900);
    text-decoration: none;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--space-6);
    margin: 0;
}

.nav-menu > li > a {
    font-weight: 500;
    color: var(--color-neutral-700);
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--color-primary-600);
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-600);
    transition: width var(--transition-normal);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

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

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.75rem;
    margin-left: var(--space-1);
    transition: transform var(--transition-fast);
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-neutral-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    list-style: none;
    padding: var(--space-2);
    margin: 0;
    z-index: 1001; /* Just above site-header */
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--space-2) var(--space-4);
    color: var(--color-neutral-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--color-primary-100);
    color: var(--color-primary-600);
}

/* ================================
   FOUNDATION HEADER STYLES
   ================================ */

/* Foundation Consultation Banner - NOT STICKY */
.consultation-banner {
    background: var(--color-primary-900);
    color: white;
    padding: var(--space-1) 0;
    position: static; /* Ensure it scrolls away normally */
    z-index: 1; /* Lower z-index so it doesn't interfere with sticky header */
}

.consultation-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    font-size: 0.9rem;
    font-weight: 600;
}

.consultation-text {
    font-weight: 500;
    color: white;
}

.consultation-phone {
    color: var(--color-accent-100);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--transition-fast);
}

.consultation-phone:hover {
    color: var(--color-accent-200);
    text-decoration: underline;
}

/* Foundation Site Header - Work WITH Foundation's sticky component */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-neutral-200);
    transition: all 0.3s ease;
    z-index: 1000; /* Reasonable z-index that doesn't interfere with page content */
}

/* Foundation sticky enhancements */
.site-header.is-stuck {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

/* When scrolled down via JavaScript, enhance the header */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
}

/* Foundation Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--color-text-primary);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-900);
}

/* Foundation Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.navigation-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-6);
}

.navigation-menu > li {
    position: relative;
}

.navigation-menu > li > a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.navigation-menu > li > a:hover,
.navigation-menu > li > a.current {
    color: var(--color-primary-600);
}

.navigation-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-600);
    transition: width var(--transition-normal);
}

.navigation-menu > li > a:hover::after,
.navigation-menu > li > a.current::after {
    width: 100%;
}

/* Foundation Dropdown Menus */
.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: var(--space-1);
    transition: transform var(--transition-fast);
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-neutral-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1001; /* Just above site-header */
    list-style: none;
    margin: 0;
    padding: var(--space-2) 0;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--space-2) var(--space-4);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    margin: 0 var(--space-1);
}

.dropdown-menu a:hover,
.dropdown-menu a.current {
    background: var(--color-primary-100);
    color: var(--color-primary-600);
}

/* Foundation Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1050; /* Ensure button is above other elements */
}

@media screen and (max-width: 63.9375em) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

.mobile-menu-toggle:hover {
    background-color: rgba(44, 90, 160, 0.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--color-primary-600);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Mobile Navigation */
/* Foundation Flash Prevention */
.mobile-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--color-neutral-200);
    z-index: 1002;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevent blocking hamburger button */
    /* Prevent flash during initialization */
    transform: translateZ(0);
    will-change: max-height, opacity;
}

.mobile-navigation.is-open {
    max-height: 600px; /* Increased for more content */
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Re-enable when open */
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--color-neutral-100);
}

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

.mobile-menu a {
    display: block;
    padding: 16px 20px;
    color: var(--color-neutral-800);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    background-color: var(--color-primary-50);
    color: var(--color-primary-600);
    padding-left: 30px;
}

.mobile-menu .has-submenu > a::after {
    content: '+';
    float: right;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.mobile-menu .has-submenu > .submenu-toggle {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--color-neutral-800);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
}

.mobile-menu .has-submenu > .submenu-toggle::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.mobile-menu .has-submenu > .submenu-toggle:hover,
.mobile-menu .has-submenu > .submenu-toggle:focus {
    background-color: var(--color-primary-50);
    color: var(--color-primary-600);
    padding-left: 30px;
}

.mobile-menu .has-submenu.is-open > a::after {
    transform: rotate(45deg);
}

.mobile-menu .has-submenu.is-open > .submenu-toggle::after {
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu .submenu {
    background-color: var(--color-neutral-50);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu .has-submenu.is-open .submenu {
    max-height: 800px !important;
    padding: 8px 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Foundation Accordion Menu Fixes for Mobile Navigation */
.accordion-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.accordion-menu li {
    border-bottom: 1px solid var(--color-neutral-100);
}

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

.accordion-menu > li > a {
    display: block;
    padding: 16px 20px;
    color: var(--color-neutral-800);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* Fix Foundation's default accordion icon positioning */
.accordion-menu > li > a::after {
    content: '\f067'; /* Plus icon */
    font-family: 'foundation-icons' !important;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--color-primary-600);
}

/* Hide Foundation's default icon if it exists */
.accordion-menu .is-accordion-submenu-parent > a::before {
    display: none !important;
}

/* Expanded state icon */
.accordion-menu .is-accordion-submenu-parent[aria-expanded="true"] > a::after {
    content: '\f068'; /* Minus icon */
    transform: translateY(-50%);
}

.accordion-menu > li > a:hover,
.accordion-menu > li > a:focus {
    background-color: var(--color-primary-50);
    color: var(--color-primary-600);
    padding-left: 30px;
}

/* Submenu styling */
.accordion-menu .menu {
    background-color: var(--color-neutral-50);
    list-style: none;
    margin: 0;
    padding: 0;
}

.accordion-menu .menu li {
    border-bottom: 1px solid var(--color-neutral-100);
}

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

.accordion-menu .menu a {
    display: block;
    padding: 12px 20px 12px 40px; /* Extra left padding for submenu items */
    color: var(--color-neutral-700);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.accordion-menu .menu a:hover,
.accordion-menu .menu a:focus {
    background-color: var(--color-primary-100);
    color: var(--color-primary-700);
    padding-left: 50px;
}

.mobile-menu .submenu a {
    display: block;
    padding: 12px 40px;
    font-size: 0.9rem;
    color: var(--color-neutral-700);
    border-bottom: 1px solid var(--color-neutral-100);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu .submenu a:hover {
    padding-left: 50px;
    background-color: var(--color-primary-25);
    color: var(--color-primary-600);
}

.mobile-menu .submenu li:last-child a {
    border-bottom: none;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-neutral-700);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-menu li {
    position: relative;
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2c5aa0;
}

/* Dropdown styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001; /* Just above site-header */
    list-style: none;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a4480 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: normal;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: #ffd700;
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Main content styles */
.main-content {
    padding: 60px 0;
}

.intro-text {
    text-align: center;
    margin-bottom: 60px;
}

.intro-text h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 30px;
    line-height: 1.3;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

/* Modern Service Cards */
.service-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-neutral-100);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-600) 0%, var(--color-accent-600) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-600);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--accent-gold-light) 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4) auto;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-accent-600) 100%);
    color: white;
}

.service-card h3 {
    color: var(--color-neutral-900);
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
    text-align: center;
    font-family: var(--font-heading);
}

.service-card p {
    color: var(--color-neutral-600);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-6);
    text-align: center;
}

.service-card .btn {
    width: 100%;
    justify-content: center;
}

/* Enhanced Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-2xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-2);
    font-family: var(--font-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.125rem;
    color: white; /* High contrast white text for stat labels on blue background */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9; /* Slight transparency for visual hierarchy while maintaining readability */
}

/* Enhanced Grid Layouts */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Hero Content Layout */
.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-16);
    align-items: center;
    min-height: 60vh;
}

.hero-text {
    padding-right: var(--space-6);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.hero-image .placeholder-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* About section image container */
.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    background: var(--color-neutral-100);
    border: 2px dashed var(--color-neutral-300);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Office image container for about page */
.office-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--color-neutral-100);
    border: 2px dashed var(--color-neutral-300);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Attorney image placeholder for attorney page */
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    background: var(--color-neutral-100);
    border: 2px dashed var(--color-neutral-300);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-4);
}

/* Attorney image container for about page */
.attorney-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: var(--color-neutral-100);
    border: 2px dashed var(--color-neutral-300);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.about-image .placeholder-text {
    color: var(--color-neutral-600);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    padding: var(--space-4);
    background: var(--color-neutral-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-neutral-200);
}

/* General image placeholder styling for any other image containers */
.image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--color-neutral-100);
    border: 2px dashed var(--color-neutral-300);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.image-container .placeholder-text,
.placeholder-text {
    color: var(--color-neutral-600);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    padding: var(--space-3);
    background: var(--color-neutral-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-neutral-200);
    line-height: 1.4;
}

/* Consultation section */
.consultation-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.consultation-section .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.consultation-content h2 {
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.consultation-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #666;
}

.contact-info {
    text-align: center;
}

.call-now, .find-us {
    margin-bottom: 30px;
}

.call-now h3, .find-us h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.phone-large {
    color: #ffd700;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
}

.phone-large:hover {
    text-decoration: underline;
}

address {
    font-style: normal;
    line-height: 1.6;
    color: #666;
}

/* Additional styles for contact page and other pages */

/* Active navigation link */
.nav-menu a.active {
    color: #2c5aa0;
    font-weight: bold;
}

/* Page header styles */
.page-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a4480 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Contact page styles */
.contact-content {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info-section h2,
.contact-form-section h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info-section p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #666;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-item address {
    font-style: normal;
    line-height: 1.6;
    color: var(--color-neutral-200);
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

/* Contact form styles */
.contact-form {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

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

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

.form-disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 25px;
}

.form-disclaimer p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #856404;
}

/* Map section */
.map-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.map-section h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.map-placeholder {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 60px 40px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-placeholder p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.directions-link {
    background-color: #2c5aa0;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.directions-link:hover {
    background-color: #1a4480;
}

/* Consultations page styles */
.consultation-details {
    padding: 60px 0;
}

.consultation-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.consultation-info h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 20px;
}

.consultation-info p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #666;
}

.consultation-benefits {
    list-style: none;
    margin-bottom: 40px;
}

.consultation-benefits li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.consultation-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
    font-size: 18px;
}

.consultation-topics h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

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

.topic-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.topic-item h4 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.topic-item ul {
    list-style: none;
}

.topic-item li {
    padding: 5px 0 5px 20px;
    position: relative;
    color: #666;
    font-size: 14px;
}

.topic-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5aa0;
}

/* Booking card styles */
.booking-card {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.booking-card h2 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.booking-card > p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

.contact-options {
    text-align: center;
}

.contact-option {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.contact-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-option h3 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-option p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-option address {
    font-style: normal;
    line-height: 1.5;
    color: #666;
    font-size: 14px;
}

/* Preparation section */
.preparation-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.preparation-section h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.preparation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.preparation-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.preparation-item h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.preparation-item p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.preparation-item ul {
    list-style: none;
}

.preparation-item li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.preparation-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

.preparation-item li:last-child {
    border-bottom: none;
}

/* Important notice section */
.important-notice {
    padding: 60px 0;
    background-color: #fff3cd;
}

.important-notice h2 {
    color: #856404;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.notice-content {
    max-width: 800px;
    margin: 0 auto;
}

.notice-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #856404;
}

.notice-content strong {
    color: #664d03;
}

/* Service page specific styles */
.service-overview {
    padding: 60px 0;
    background-color: white;
}

.overview-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.overview-content .lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 30px;
    line-height: 1.5;
}

.overview-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #666;
}

/* Service details sections */
.service-details {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.service-types {
    display: grid;
    gap: 50px;
}

.service-type {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.service-type h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-type p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #666;
}

.benefits h3,
.contested-issues h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
}

.benefits ul,
.contested-issues ul {
    list-style: none;
}

.benefits li,
.contested-issues li {
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.benefits li:before,
.contested-issues li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

/* Property types grid */
.property-types h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin: 30px 0 20px 0;
}

.property-grid {
    margin-top: var(--space-6);
}

.property-grid .cell {
    margin-bottom: var(--space-4);
}

.property-grid .callout {
    height: 100%;
    min-height: 200px;
}

.property-grid .callout h4 {
    margin-bottom: var(--space-3);
}

.property-grid .callout ul {
    margin-bottom: 0;
    list-style-type: none;
    margin-left: 0;
}

.property-grid .callout ul li {
    padding: var(--space-1) 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.property-grid .callout ul li:last-child {
    border-bottom: none;
}

.property-category {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.property-category h4 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.property-category ul {
    list-style: none;
}

.property-category li {
    padding: 5px 0 5px 20px;
    position: relative;
    color: #666;
    font-size: 14px;
}

.property-category li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5aa0;
}

/* Process steps */
.divorce-process {
    padding: 60px 0;
    background-color: white;
}

.divorce-process h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    background-color: #2c5aa0;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Consultation CTA */
.consultation-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1a4480 100%);
    color: white;
    text-align: center;
}

.consultation-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.consultation-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.phone-cta {
    color: #ffd700;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 15px 25px;
    border: 2px solid #ffd700;
    border-radius: 5px;
    transition: all 0.3s;
}

.phone-cta:hover {
    background-color: #ffd700;
    color: #2c5aa0;
}

/* Custody page specific styles */
.custody-types {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.custody-types h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.custody-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.custody-type {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.custody-type h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.custody-type p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.custody-type ul {
    list-style: none;
}

.custody-type li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.custody-type li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

.custody-type li:last-child {
    border-bottom: none;
}

/* Best interests section */
.best-interests {
    padding: 60px 0;
    background-color: white;
}

.best-interests h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.factor-category {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #2c5aa0;
}

.factor-category h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.factor-category ul {
    list-style: none;
}

.factor-category li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.5;
}

.factor-category li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

.factor-category li:last-child {
    border-bottom: none;
}

/* Parenting plans section */
.parenting-plans {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.parenting-plans h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.plan-overview {
    text-align: center;
    margin-bottom: 40px;
}

.plan-overview p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.plan-elements h3 {
    color: #2c5aa0;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.element {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.element h4 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.element ul {
    list-style: none;
}

.element li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.element li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5aa0;
}

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

/* DUI page specific styles */
.overview-highlights {
    padding: 60px 0;
    background-color: #f8f9fa;
}

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

.highlight {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #2c5aa0;
}

.highlight h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.highlight p {
    color: #666;
    line-height: 1.6;
}

/* DUI defense section */
.dui-defense {
    padding: 60px 0;
    background-color: white;
}

.dui-defense h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 30px;
}

.dui-overview p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #666;
}

.defense-strategies {
    margin-top: 40px;
}

.defense-strategies h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 30px;
    line-height: 1.4;
}

.strategies-list {
    display: grid;
    gap: 25px;
}

.strategy {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.strategy h4 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.strategy p {
    color: #666;
    line-height: 1.6;
}

/* DUI penalties section */
.dui-penalties {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.dui-penalties h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 40px;
}

.first-offense {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.first-offense h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.penalties-list {
    list-style: none;
    margin-bottom: 20px;
}

.penalties-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.penalties-list li:before {
    content: "■";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    color: #856404;
    font-weight: 500;
}

.repeat-offenses {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.repeat-offenses h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.repeat-penalties {
    list-style: none;
    margin: 20px 0;
}

.repeat-penalties li {
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.repeat-penalties li:before {
    content: "■";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

.felony-warning {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.felony-warning p {
    color: #721c24;
    font-weight: 500;
    margin: 0;
}

/* Traffic violations section */
.traffic-violations {
    padding: 60px 0;
    background-color: white;
}

.traffic-violations h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 30px;
}

.traffic-overview p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #666;
}

.violation-types {
    margin: 40px 0;
}

.violation-types h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.violations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.violation-column ul {
    list-style: none;
}

.violation-column li {
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.violation-column li:before {
    content: "■";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

.serious-violations,
.minor-violations {
    margin: 30px 0;
}

.serious-violations h3,
.minor-violations h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Personal injury page styles */
.injury-types {
    margin-top: 40px;
}

.injury-types h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.injury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.injury-type {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #2c5aa0;
}

.injury-type h3 {
    color: #2c5aa0;
    font-size: 1.1rem;
    margin: 0;
}

.case-types {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.case-types h2 {
    color: #2c5aa0;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.4;
}

.case-type {
    background-color: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.case-type h3 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.case-type p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #666;
}

.trucking-evidence {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.trucking-evidence h4 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.trucking-evidence ul {
    list-style: none;
}

.trucking-evidence li {
    padding: 5px 0 5px 20px;
    position: relative;
    color: #666;
}

.trucking-evidence li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5aa0;
}

/* Why choose us section */
.why-choose-us {
    padding: 60px 0;
    background-color: white;
}

.why-choose-us h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

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

.reason {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.reason h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.reason p {
    color: #666;
    line-height: 1.6;
}

/* Injury process section */
.injury-process {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.injury-process h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

/* Alimony page specific styles */
.alimony-factors {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.alimony-factors h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.alimony-types {
    padding: 60px 0;
    background-color: white;
}

.alimony-types h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.alimony-type {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #2c5aa0;
}

.alimony-type h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.alimony-type p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.type-details h4 {
    color: #2c5aa0;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.type-details ul {
    list-style: none;
}

.type-details li {
    padding: 5px 0 5px 20px;
    position: relative;
    color: #666;
    font-size: 14px;
}

.type-details li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5aa0;
}

.modification-termination {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.modification-termination h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.modification-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.modification-section,
.termination-section {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modification-section h3,
.termination-section h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modification-section p,
.termination-section p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.modification-reasons h4,
.termination-events h4 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.modification-reasons ul,
.termination-events ul {
    list-style: none;
}

.modification-reasons li,
.termination-events li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.modification-reasons li:before,
.termination-events li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5aa0;
}

.alimony-strategy {
    padding: 60px 0;
    background-color: white;
}

.alimony-strategy h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.strategy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.seeking-alimony,
.defending-alimony {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #2c5aa0;
}

.seeking-alimony h3,
.defending-alimony h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.seeking-alimony ul,
.defending-alimony ul {
    list-style: none;
}

.seeking-alimony li,
.defending-alimony li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.seeking-alimony li:before,
.defending-alimony li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

/* Custody modifications page specific styles */
.modification-reasons {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.modification-reasons h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reason-category {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #2c5aa0;
}

.reason-category h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.reason-category ul {
    list-style: none;
}

.reason-category li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
}

.reason-category li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

.reason-category li:last-child {
    border-bottom: none;
}

/* Modification process timeline */
.modification-process {
    padding: 60px 0;
    background-color: white;
}

.modification-process h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.process-overview {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.process-overview p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:not(:last-child):before {
    content: "";
    position: absolute;
    left: 24px;
    top: 60px;
    width: 2px;
    height: calc(100% + 20px);
    background-color: #e0e0e0;
    z-index: 1;
}

.timeline-marker {
    background-color: #2c5aa0;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 30px;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    flex: 1;
}

.timeline-content h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Legal standards section */
.legal-standards {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.legal-standards h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.standards-content {
    display: grid;
    gap: 30px;
}

.standard-section {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.standard-section h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.standard-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.standard-section li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.standard-section li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

.standard-section li:last-child {
    border-bottom: none;
}

/* Types of modifications section */
.types-of-modifications {
    padding: 60px 0;
    background-color: white;
}

.types-of-modifications h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.modification-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.modification-type {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #2c5aa0;
}

.modification-type h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.type-details h4 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.type-details ul {
    list-style: none;
    margin-bottom: 20px;
}

.type-details li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.type-details li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5aa0;
}

.type-details li:last-child {
    border-bottom: none;
}

/* Important considerations section */
.important-considerations {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.important-considerations h2 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

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

.consideration {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #2c5aa0;
}

.consideration h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.consideration p {
    color: #666;
    line-height: 1.6;
}

/* About page specific styles */
.firm-overview {
    padding: 60px 0;
    background-color: white;
}

.overview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.overview-text h2 {
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}

.firm-values {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #2c5aa0;
}

.firm-values h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.firm-values ul {
    list-style: none;
}

.firm-values li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
    line-height: 1.6;
}

.firm-values li:last-child {
    border-bottom: none;
}

.firm-values strong {
    color: #2c5aa0;
    font-weight: 600;
}

.overview-image {
    text-align: center;
}

.office-img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Attorney profile section */
.attorney-profile {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.attorney-profile h2 {
    color: #2c5aa0;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.attorney-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.attorney-image {
    text-align: center;
}

.attorney-photo {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.attorney-info h3 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 10px;
}

.attorney-title {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.attorney-bio p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.credentials,
.practice-areas {
    margin-bottom: 30px;
}

.credentials h4,
.practice-areas h4 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.credentials ul,
.practice-areas ul {
    list-style: none;
}

.credentials li,
.practice-areas li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.credentials li:before,
.practice-areas li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

.credentials li:last-child,
.practice-areas li:last-child {
    border-bottom: none;
}

/* Practice philosophy section */
.practice-philosophy {
    padding: 80px 0;
    background-color: white;
}

.practice-philosophy h2 {
    color: #2c5aa0;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

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

.philosophy-item {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-5px);
}

.philosophy-icon {
    margin-bottom: 20px;
}

.philosophy-icon .icon {
    width: 60px;
    height: 60px;
    filter: brightness(0) saturate(100%) invert(19%) sepia(88%) saturate(1615%) hue-rotate(212deg) brightness(96%) contrast(89%);
}

.philosophy-item h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.philosophy-item p {
    color: #666;
    line-height: 1.6;
}

/* Why choose us section */
.why-choose-us {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.why-choose-us h2 {
    color: #2c5aa0;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.reasons-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.reason-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #2c5aa0;
}

.reason-item h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.reason-item p {
    color: #666;
    line-height: 1.6;
}

/* Community involvement section */
.community-involvement {
    padding: 80px 0;
    background-color: white;
}

.community-involvement h2 {
    color: #2c5aa0;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.community-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.community-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.service-areas {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.service-areas h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-areas p {
    color: #666;
    line-height: 1.7;
}

/* Responsive adjustments for about page */
@media (max-width: 968px) {
    /* Foundation Header Mobile Styles */
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Override Foundation's hide-for-large on mobile */
    .mobile-navigation.hide-for-large {
        display: block !important;
    }
    
    .consultation-content {
        flex-direction: column;
        gap: var(--space-1);
        font-size: 0.85rem;
    }
    
    .header-content {
        padding: var(--space-2) 0;
        position: relative;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }

    /* Mobile Navigation Position Fix */
    .site-header {
        position: relative;
    }

    /* Fix Practice Areas Text Visibility on Mobile */
    .card-section h3 {
        color: var(--color-neutral-900) !important;
        font-weight: 600;
    }
    
    .card-section p {
        color: var(--color-neutral-800) !important;
        font-weight: 400;
        line-height: 1.6;
    }
    
    .card {
        background-color: white !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Original about page styles */
    .overview-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .attorney-card {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .philosophy-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .reasons-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Responsive adjustments for custody modifications */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .timeline-item:not(:last-child):before {
        left: 50%;
        transform: translateX(-50%);
        top: 70px;
    }
    
    .timeline-marker {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .modification-types {
        grid-template-columns: 1fr;
    }
    
    .standards-content {
        gap: 20px;
    }
    
    .overview-text h2,
    .attorney-profile h2,
    .practice-philosophy h2,
    .why-choose-us h2,
    .community-involvement h2 {
        font-size: 2rem;
    }
    
    .attorney-card {
        padding: 30px 20px;
    }
    
    .philosophy-item {
        padding: 25px 20px;
    }
}

/* ================================
   ENHANCED RESPONSIVE DESIGN
   ================================ */

/* Mobile-first responsive breakpoints for modern design */
@media (max-width: 768px) {
    /* Hero section mobile adjustments */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    /* Enhanced Practice Areas Mobile Visibility */
    .card {
        background-color: white !important;
        border: 1px solid var(--color-neutral-200) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    .card-section {
        background-color: white !important;
    }
    
    .card-section h3 {
        color: #1a1a1a !important;
        font-weight: 700 !important;
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
    }
    
    .card-section p {
        color: #333333 !important;
        font-weight: 500 !important;
        line-height: 1.6 !important;
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Service Icons Mobile */
    .service-icon {
        background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-accent-600) 100%) !important;
        color: white !important;
        font-size: 2rem !important;
    }
    
    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    /* Section spacing mobile */
    .hero-section {
        padding: calc(var(--space-2xl) + 2rem) 0 var(--space-2xl) 0;
        min-height: 60vh;
    }
    
    .services-section,
    .about-preview-section,
    .stats-section,
    .cta-section {
        padding: var(--space-2xl) 0;
    }
    
    /* Typography mobile */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: var(--space-6);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Button mobile */
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .container {
        padding: 0 var(--space-2);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        gap: var(--space-2xl);
    }
}

/* Large screen enhancements */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-section {
        min-height: 85vh;
    }
    
    .service-card {
        padding: var(--space-2xl);
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
}

/* Accessibility and reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--color-neutral-800);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .stat-item {
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
}

/* ================================
   ATTORNEY PAGE STYLES
   ================================ */

/* Attorney Profile Section */
.attorney-profile-section {
    padding: var(--space-16) 0;
    background: white;
}

.attorney-info h2 {
    color: var(--color-primary-900);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.attorney-title {
    font-size: 1.25rem;
    color: var(--color-primary-600);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.attorney-credentials {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    font-style: italic;
}

.attorney-description p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.contact-attorney {
    background: var(--color-neutral-50);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-neutral-200);
    margin-top: var(--space-8);
}

.contact-attorney h4 {
    color: var(--color-primary-900);
    margin-bottom: var(--space-2);
}

/* Education & Experience Section */
.education-experience-section {
    padding: var(--space-16) 0;
    background: var(--color-neutral-50);
}

.education-list li {
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary-600);
}

.education-list strong {
    color: var(--color-primary-900);
    display: block;
    margin-bottom: 0.25rem;
}

.education-list em {
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.bar-admissions {
    list-style: none;
    margin: 0;
}

.bar-admissions li {
    padding: var(--space-2) 0;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.bar-admissions i {
    color: var(--color-primary-600);
    font-size: 1.25rem;
}

/* Experience Timeline */
.experience-timeline {
    margin-top: var(--space-8);
}

.experience-item {
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-accent-600);
    margin-bottom: var(--space-6);
}

.experience-item h4 {
    color: var(--color-primary-900);
    margin-bottom: 0.5rem;
}

.experience-role {
    color: var(--color-primary-600);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.experience-date {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-4);
    font-style: italic;
}

/* Expertise Section */
.expertise-section {
    padding: var(--space-16) 0;
    background: white;
}

.expertise-card {
    padding: var(--space-8);
    background: white;
    border: 2px solid var(--color-neutral-200);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    height: 100%;
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-600);
}

.expertise-icon {
    margin-bottom: var(--space-4);
}

.expertise-card h4 {
    color: var(--color-primary-900);
    margin-bottom: var(--space-4);
}

.expertise-card ul {
    text-align: left;
    color: var(--color-text-secondary);
}

.expertise-card li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--color-neutral-200);
}

.expertise-card li:last-child {
    border-bottom: none;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--space-16) 0;
    background: var(--color-neutral-50);
}

.testimonial-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-neutral-200);
    height: 100%;
    transition: all var(--transition-normal);
}

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

.testimonial-card blockquote {
    border: none;
    padding: 0;
    margin: 0;
    color: var(--color-text-primary);
    font-size: 1.125rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-card cite {
    display: block;
    margin-top: var(--space-4);
    color: var(--color-primary-600);
    font-weight: 600;
    font-style: normal;
    text-align: right;
}

/* Attorney CTA Section */
.attorney-cta-section {
    padding: var(--space-16) 0;
    background: var(--color-primary-900);
    color: white;
    text-align: center;
}

.attorney-cta-section h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.attorney-cta-section .lead {
    color: white;
    opacity: 0.95;
    margin-bottom: var(--space-8);
}

.cta-buttons {
    margin-bottom: var(--space-6);
}

.cta-buttons .button {
    margin: 0.5rem;
}

/* Page Header for Attorney Page */
.page-header {
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-600) 100%);
    color: white;
    padding: var(--space-16) 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: var(--space-4);
}

.page-header .lead {
    color: white;
    opacity: 0.95;
    font-size: 1.25rem;
}

/* Responsive adjustments for attorney page */
@media screen and (max-width: 639px) {
    .attorney-info h2 {
        font-size: 2rem;
    }
    
    .attorney-profile-section,
    .education-experience-section,
    .expertise-section,
    .testimonials-section,
    .attorney-cta-section {
        padding: var(--space-2xl) 0;
    }
    
    .contact-attorney {
        padding: var(--space-4);
    }
    
    .cta-buttons .button {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* ================================
   CONTAINER WIDTH OPTIMIZATION
   ================================ */

/* Increase container widths for better space utilization */
.grid-container,
.container {
    max-width: 1600px; /* Increased from 1200px for ~33% more content space */
}


/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    width: auto;
    height: 80px;
    margin-right: var(--space-4);
    cursor: pointer;
}

/* Mobile Navigation Visibility */
.mobile-navigation { display: none; }
.mobile-navigation.is-open { display: block; }

@media screen and (min-width: 64em) { 
  .mobile-navigation { display: none !important; }
}