/* Nexus Legal - Custom Styles */

:root {
    --primary-navy: #0A2647;
    --primary-white: #FFFFFF;
    --accent-gold: #FFD700;
    --secondary-navy: #1a365d;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --text-dark: #2c3e50;
    --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    --shadow-light: 0 2px 10px rgba(10, 38, 71, 0.1);
    --shadow-medium: 0 4px 20px rgba(10, 38, 71, 0.15);
    --shadow-heavy: 0 8px 30px rgba(10, 38, 71, 0.2);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1030; /* Ensure navbar stays above other content */
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 38, 71, 0.95) !important;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-white) !important;
    text-decoration: none;
}

.brand-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--primary-white) !important;
    font-weight: 500;
    margin: 0 0.3rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    font-size: 0.95rem;
}

/* Ensure navigation stays compact */
.navbar-nav {
    flex-wrap: nowrap;
}

.navbar-nav .nav-item {
    flex-shrink: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-gold) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.dropdown-menu {
    background: var(--primary-white);
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-navy);
}

/* Buttons */
.btn-gold {
    background: var(--gradient-gold);
    border: none;
    color: var(--primary-navy);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--primary-navy);
}

.btn-outline-primary {
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    background: transparent;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-navy);
    color: var(--primary-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-light {
    border: 2px solid var(--primary-white);
    color: var(--primary-white);
    background: transparent;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--primary-white);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px; /* Add padding to account for fixed navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 38, 71, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--primary-white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-stats {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    color: var(--primary-white);
    margin-bottom: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styles */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Practice Areas */
.practice-areas-section {
    padding: 5rem 0;
    background: var(--primary-white);
}

.practice-card {
    background: var(--primary-white);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(10, 38, 71, 0.1);
}

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.practice-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-navy);
}

.practice-card h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.practice-card p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Featured Attorneys */
.featured-attorneys-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.featured-attorneys-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.attorney-card {
    background: var(--primary-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(10, 38, 71, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.attorney-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

.attorney-card:hover::before {
    transform: scaleX(1);
}

.attorney-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(10, 38, 71, 0.15);
    border-color: var(--accent-gold);
}

.attorney-image {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.attorney-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(10, 38, 71, 0.1), rgba(255, 215, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.attorney-card:hover .attorney-image::after {
    opacity: 1;
}

.attorney-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: grayscale(20%);
}

.attorney-card:hover .attorney-image img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.attorney-info {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.attorney-info::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 1px;
}

.attorney-info h4 {
    color: var(--primary-navy);
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.attorney-title {
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.attorney-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.5;
}

.attorney-specialty {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.attorney-card .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.attorney-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: left 0.3s ease;
    z-index: -1;
}

.attorney-card .btn:hover::before {
    left: 0;
}

.attorney-card .btn:hover {
    color: var(--primary-navy);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* Case Studies */
.case-studies-section {
    padding: 5rem 0;
    background: var(--primary-white);
}

.case-study-card {
    background: var(--primary-white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(10, 38, 71, 0.1);
    height: 100%;
}

.case-study-header {
    margin-bottom: 1.5rem;
}

.case-study-category {
    background: var(--gradient-gold);
    color: var(--primary-navy);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-study-card h4 {
    color: var(--primary-navy);
    margin-top: 1rem;
    font-size: 1.5rem;
}

.case-study-description {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.case-study-results {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.result-item {
    display: flex;
    flex-direction: column;
}

.result-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-navy);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--accent-gold);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--primary-white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-white);
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--primary-white);
    padding: 3rem 0 1rem;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
    transform: translateY(-2px);
}

.footer h5 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--accent-gold);
    width: 20px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-developer {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-developer a {
    color: var(--accent-gold);
    text-decoration: none;
}

.footer-developer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navbar Improvements */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .btn {
        margin: 0.5rem 0;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding-top: 70px;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.75rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .hero-stats {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .stat-item {
        margin-bottom: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    /* Practice Areas Mobile */
    .practice-areas-section {
        padding: 3rem 0;
    }
    
    .practice-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .practice-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .practice-card h4 {
        font-size: 1.3rem;
        margin-bottom: 0.875rem;
    }
    
    .practice-card p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    /* Featured Attorneys Mobile */
    .featured-attorneys-section {
        padding: 4rem 0;
    }
    
    .attorney-card {
        margin-bottom: 2rem;
    }
    
    .attorney-image {
        height: 280px;
    }
    
    .attorney-info {
        padding: 2rem 1.5rem;
    }
    
    .attorney-info h4 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    
    .attorney-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .attorney-specialty {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Case Studies Mobile */
    .case-studies-section {
        padding: 4rem 0;
    }
    
    .case-study-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .case-study-card h4 {
        font-size: 1.3rem;
        margin-top: 0.875rem;
    }
    
    .case-study-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .case-study-results {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-value {
        font-size: 1.1rem;
    }
    
    .carousel-control-prev {
        left: 10px;
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-next {
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    /* CTA Section Mobile */
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }
    
    .cta-section .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-brand {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }
    
    .footer-links li {
        margin-bottom: 0.4rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Extra Small Mobile Devices */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Navbar for Extra Small */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Hero Section Extra Small */
    .hero-section {
        padding-top: 60px;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        margin-bottom: 0.875rem;
    }
    
    .hero-stats {
        padding: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Section Titles Extra Small */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    /* Practice Areas Extra Small */
    .practice-areas-section {
        padding: 2.5rem 0;
    }
    
    .practice-card {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .practice-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .practice-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .practice-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .practice-card .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
    
    /* Featured Attorneys Extra Small */
    .featured-attorneys-section {
        padding: 3rem 0;
    }
    
    .attorney-card {
        margin-bottom: 1.5rem;
    }
    
    .attorney-image {
        height: 250px;
    }
    
    .attorney-info {
        padding: 1.5rem 1.25rem;
    }
    
    .attorney-info h4 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .attorney-title {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .attorney-specialty {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .attorney-card .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }
    
    /* Case Studies Extra Small */
    .case-studies-section {
        padding: 3rem 0;
    }
    
    .case-study-card {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .case-study-card h4 {
        font-size: 1.2rem;
        margin-top: 0.75rem;
    }
    
    .case-study-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .result-value {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-control-prev {
        left: 5px;
    }
    
    .carousel-control-next {
        right: 5px;
    }
    
    /* CTA Section Extra Small */
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-title {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
    }
    
    .cta-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-section .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Footer Extra Small */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-brand {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .footer h5 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-links li {
        margin-bottom: 0.3rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .contact-info p {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .footer-copyright,
    .footer-developer {
        font-size: 0.8rem;
    }
}

/* Very Small Devices (320px and below) */
@media (max-width: 320px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .practice-card,
    .case-study-card,
    .attorney-info {
        padding: 1.25rem 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Touch Target Improvements */
@media (max-width: 768px) {
    /* Ensure minimum touch target size of 44px */
    .btn,
    .nav-link,
    .navbar-toggler,
    .carousel-control-prev,
    .carousel-control-next,
    .social-links a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
    
    /* Improve dropdown touch targets */
    .dropdown-item {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
}

/* Page Header Styles */
.page-header {
    background: var(--gradient-primary);
    color: var(--primary-white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-white);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Practice Areas Page Styles */
.practice-area-card {
    background: var(--primary-white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(10, 38, 71, 0.1);
}

.practice-area-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.practice-area-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary-navy);
}

.practice-area-content h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.practice-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.practice-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(10, 38, 71, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.practice-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.practice-list li:last-child {
    border-bottom: none;
}

/* Service Cards */
.service-card {
    background: var(--primary-white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(10, 38, 71, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary-navy);
}

.service-card h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(10, 38, 71, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.service-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.service-list li:last-child {
    border-bottom: none;
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.process-step h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Success Stories */
.success-story {
    background: var(--primary-white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(10, 38, 71, 0.1);
    height: 100%;
}

.story-header {
    margin-bottom: 1.5rem;
}

.story-category {
    background: var(--gradient-gold);
    color: var(--primary-navy);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.success-story h4 {
    color: var(--primary-navy);
    margin-top: 1rem;
    font-size: 1.5rem;
}

.story-description {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.story-results {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Team Members */
.team-member {
    background: var(--primary-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.member-image {
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 2rem;
}

.member-info h4 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.member-title {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-specialty {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.member-bio {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.member-notable-cases {
    margin-top: 1.5rem;
}

.member-notable-cases p {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.member-notable-cases ul {
    list-style: none;
    padding: 0;
}

.member-notable-cases li {
    padding: 0.25rem 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1rem;
}

.member-notable-cases li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* Stat Cards */
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--primary-white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-navy);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--primary-white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-navy);
}

.feature-card h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Journey Steps */
.journey-step {
    text-align: center;
    padding: 2rem 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-navy);
}

.journey-step h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Value Cards */
.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--primary-white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-navy);
}

.value-card h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Award Cards */
.award-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--primary-white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.award-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-navy);
}

.award-card h4 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.award-card p {
    color: var(--dark-gray);
    font-weight: 600;
}

/* Community Cards */
.community-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--primary-white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.community-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-navy);
}

.community-card h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Article Cards */
.article-card {
    background: var(--primary-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.article-category {
    background: var(--gradient-gold);
    color: var(--primary-navy);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.article-title {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.3;
}

.article-excerpt {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-author {
    margin-bottom: 1rem;
}

.author-name {
    color: var(--primary-navy);
    font-weight: 600;
}

/* Featured Article */
.featured-article-card {
    background: var(--primary-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    transition: all 0.3s ease;
}

.featured-article-card:hover {
    transform: translateY(-5px);
}

.featured-article-card .article-image {
    height: 300px;
}

.featured-article-card .article-content {
    padding: 2.5rem;
}

.featured-article-card .article-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.featured-article-card .article-excerpt {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.article-author {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-title {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Newsletter Form */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: 2px solid rgba(10, 38, 71, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
}

.newsletter-form .form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* Contact Form */
.contact-form-card {
    background: var(--primary-white);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(10, 38, 71, 0.1);
}

.form-title {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.form-subtitle {
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 2px solid rgba(10, 38, 71, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.contact-form-card .form-label {
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Contact Info Card */
.contact-info-card {
    background: var(--primary-white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(10, 38, 71, 0.1);
    height: fit-content;
}

.info-title {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.info-subtitle {
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.method-content h5 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.method-content p {
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.method-content small {
    color: var(--dark-gray);
    opacity: 0.8;
}

/* Location Cards */
.location-card {
    background: var(--primary-white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(10, 38, 71, 0.1);
    height: 100%;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.location-header h4 {
    color: var(--primary-navy);
    margin: 0;
    font-size: 1.5rem;
}

.location-badge {
    background: var(--gradient-gold);
    color: var(--primary-navy);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.location-address i {
    color: var(--accent-gold);
    margin-top: 0.25rem;
}

.location-address p {
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.6;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-item i {
    color: var(--accent-gold);
    width: 20px;
}

.detail-item span {
    color: var(--dark-gray);
}

/* Map Section */
.map-container {
    background: var(--light-gray);
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(10, 38, 71, 0.2);
}

.map-placeholder {
    text-align: center;
    color: var(--dark-gray);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.map-placeholder h4 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

/* Case Study Filter */
.case-filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.case-filter-buttons .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.case-filter-buttons .btn.active {
    background: var(--primary-navy);
    border-color: var(--primary-navy);
    color: var(--primary-white);
}

/* Case Study Details */
.case-study-details {
    margin: 2rem 0;
}

.case-study-details h5 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.case-study-details p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Firm Overview */
.firm-overview-section {
    padding: 5rem 0;
}

.firm-stats {
    margin-top: 2rem;
}

.firm-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

/* Approach Steps */
.approach-step {
    text-align: center;
    padding: 2rem 1rem;
}

/* Accordion Customization */
.accordion-item {
    border: 1px solid rgba(10, 38, 71, 0.1);
    border-radius: 10px !important;
    margin-bottom: 1rem;
}

.accordion-button {
    background: var(--primary-white);
    color: var(--primary-navy);
    font-weight: 600;
    border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
    background: var(--accent-gold);
    color: var(--primary-navy);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.accordion-body {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Image Placeholder Styling */
img[src*="via.placeholder.com"] {
    background: var(--light-gray);
    border: 2px solid rgba(10, 38, 71, 0.1);
    transition: all 0.3s ease;
}

img[src*="via.placeholder.com"]:hover {
    border-color: var(--accent-gold);
    transform: scale(1.02);
}

/* Attorney Image Specific Styling */
.attorney-image img,
.member-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.attorney-image img:hover,
.member-image img:hover {
    box-shadow: var(--shadow-medium);
}

/* Article Image Styling */
.article-image img {
    border-radius: 10px 10px 0 0;
}

/* Office Image Styling */
.firm-image img {
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-heavy);
}

/* Author Avatar Styling */
.author-image {
    border: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-light);
}

/* Loading State for Images */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0;
    background: var(--light-gray);
    border: 2px dashed rgba(10, 38, 71, 0.2);
}

img.loaded {
    opacity: 1;
}

/* Image Loading Animation */
@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

img.loaded {
    animation: imageLoad 0.5s ease-out;
}
