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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background-color: #8B0A1A;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    fill: #C0C0C0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 16px;
    font-weight: 700;
    color: #8B0A1A;
    line-height: 1.2;
    white-space: nowrap;
}

/* Navigation Styles */
.nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #8B0A1A;
}

/* Dropdown Menu Styles */
.nav-item {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-toggle::after {
    content: '';
    border: solid #4b5563;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-toggle::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
    list-style: none;
}

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

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(139, 10, 26, 0.1);
    color: #8B0A1A;
}

/* CTA Button */
.cta-button {
    background-color: #C0C0C0;
    color: #1f2937;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #A8A9AD;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    padding: 80px 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(139, 10, 26, 0.95) 0%, rgba(139, 10, 26, 0.8) 50%, rgba(139, 10, 26, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(192, 192, 192, 0.2);
    color: #C0C0C0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.location-badge svg {
    width: 16px;
    height: 16px;
    fill: #C0C0C0;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    font-family: Georgia, 'Times New Roman', serif;
}

.hero h1 .highlight {
    color: #C0C0C0;
}

.hero p {
    font-size: 17px;
    color: white;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
}

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

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 14px;
    color: white;
}

/* Practice Areas Section */
.practice-areas {
    padding: 80px 0;
    background-color: #fff;
}

.practice-areas .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.eyebrow {
    color: #8B0A1A;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 42px;
    color: #1a1a2e;
    margin-bottom: 16px;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
}

.section-header p {
    color: #6b7280;
    font-size: 17px;
    line-height: 1.6;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.area-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    background: #fff;
}

.area-card:hover {
    border-color: rgba(139, 10, 26, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(10, 25, 47, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.icon-wrapper svg {
    width: 20px;
    height: 20px;
    fill: #8B0A1A;
}

.area-card:hover .icon-wrapper {
    background: rgba(192, 192, 192, 0.3);
}

.area-card:hover .icon-wrapper svg {
    fill: #8B0A1A;
}

.area-card h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 6px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.area-card:hover h3 {
    color: #8B0A1A;
}

.area-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive grid for practice areas */
@media (max-width: 1200px) {
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }

    .practice-areas .container {
        padding: 0 20px;
    }

    .practice-areas {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }
}

/* Page Hero (for category pages) */
.page-hero {
    background: linear-gradient(135deg, #8B0A1A 0%, #5a0612 100%);
    padding: 60px 40px;
    color: white;
}

.page-hero-content {
    max-width: 1280px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #C0C0C0;
}

.back-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.page-icon {
    width: 64px;
    height: 64px;
    background: rgba(192, 192, 192, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.page-icon svg {
    width: 32px;
    height: 32px;
    fill: #C0C0C0;
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: Georgia, 'Times New Roman', serif;
}

.page-hero > .page-hero-content > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* Page Content */
.page-content {
    padding: 60px 0;
    background: #fff;
}

.page-content .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

.main-content h2 {
    font-size: 32px;
    color: #1a1a2e;
    margin-bottom: 20px;
    font-family: Georgia, 'Times New Roman', serif;
}

.main-content h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin: 32px 0 16px;
    font-weight: 600;
}

.main-content p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.service-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.5;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #C0C0C0;
    border-radius: 50%;
}

/* Sidebar */
.sidebar-card {
    background: #f8f8f8;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.sidebar-card h4 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-weight: 600;
}

.sidebar-card p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sidebar-button {
    display: inline-block;
    background: #8B0A1A;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.sidebar-button:hover {
    background: #6a0814;
}

/* Responsive for category pages */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 40px 20px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .page-content .container {
        padding: 0 20px;
    }
}

/* Directory Listings */
.directory-listings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.listing-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px 28px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.listing-card:hover {
    border-color: rgba(139, 10, 26, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.listing-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.listing-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.listing-rating .stars {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #C0C0C0;
}

.listing-rating .stars svg {
    width: 18px;
    height: 18px;
    fill: #C0C0C0;
}

.listing-rating .stars svg.empty {
    fill: #e0e0e0;
}

.listing-rating .stars svg.half {
    fill: url(#half-star-gradient);
}

.listing-rating .rating-number {
    font-weight: 700;
    color: #1a1a2e;
    margin-left: 6px;
}

.listing-rating .review-count {
    color: #888;
    font-weight: 400;
}

.listing-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.listing-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.listing-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #555;
}

.listing-detail .icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-detail .icon svg {
    width: 16px;
    height: 16px;
    fill: #C0C0C0;
}

.listing-detail a {
    color: #8B0A1A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.listing-detail a:hover {
    color: #C0C0C0;
}

.listing-actions {
    display: flex;
    align-items: center;
}

.listing-website-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #C0C0C0;
    color: #1a1a2e;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 2px solid #C0C0C0;
}

.listing-website-btn:hover {
    background: #A8A9AD;
    border-color: #A8A9AD;
}

.listing-website-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Legacy listing-website for backwards compatibility */
.listing-website {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.listing-website a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8B0A1A;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.listing-website a:hover {
    color: #C0C0C0;
}

@media (max-width: 600px) {
    .listing-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .listing-actions {
        width: 100%;
    }

    .listing-website-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Sidebar info card */
.sidebar-info {
    margin-bottom: 24px;
}

.sidebar-info h4 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-weight: 600;
}

.sidebar-info p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.sidebar-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-info ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.sidebar-info ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: #C0C0C0;
    border-radius: 50%;
}

/* Compact Page Hero with Columns */
.page-hero-compact {
    padding: 40px 40px;
}

.page-hero-columns {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-hero-left .back-link {
    margin-bottom: 16px;
}

.page-hero-left .page-icon {
    margin-bottom: 0;
}

.page-hero-right {
    flex: 1;
}

.page-hero-right h1 {
    margin-bottom: 8px;
}

.page-hero-right p {
    margin-bottom: 0;
}

/* Stacked Content Grid (sidebar at bottom) */
.content-grid-stacked {
    grid-template-columns: 1fr;
    gap: 40px;
}

.content-grid-stacked .sidebar {
    max-width: 100%;
}

/* Two-Column Directory Listings */
.directory-listings-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .page-hero-columns {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .directory-listings-two-col {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background-color: #8B0A1A;
    color: white;
    padding: 40px;
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer .disclaimer {
    max-width: 900px;
    margin: 0 auto 20px auto;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.footer .copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }

    .nav-list {
        gap: 20px;
    }

    .hero {
        padding: 50px 20px;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 24px;
    }
}
