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

:root {
    --primary-navy: hsl(226, 71%, 28%);
    --secondary-navy: hsl(217, 91%, 60%);
    --accent-gold: hsl(37, 91%, 55%);
    --dark-text: hsl(220, 13%, 18%);
    --gray-50: hsl(210, 40%, 98%);
    --gray-100: hsl(210, 40%, 96%);
    --gray-200: hsl(214, 32%, 91%);
    --gray-300: hsl(213, 27%, 84%);
    --gray-500: hsl(220, 9%, 46%);
    --gray-600: hsl(220, 14%, 37%);
    --gray-700: hsl(215, 25%, 27%);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: white;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--gray-200);
}

.top-bar {
    background: var(--primary-navy);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.main-header {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-navy);
    text-decoration: none;
    font-family: 'Merriweather', serif;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
    padding-bottom: 0.25rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-navy);
    border-bottom: 2px solid var(--primary-navy);
}

.btn-primary {
    background: var(--accent-gold);
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: hsl(37, 91%, 45%);
}

.btn-secondary {
    background: var(--accent-gold);
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: hsl(37, 91%, 45%);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-text);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

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

/* Breadcrumb */
.breadcrumb {
    background: var(--gray-50);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--primary-navy);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--gray-600);
}

/* Hero Section */
.hero {
    background: var(--primary-navy);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 42rem;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

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

.blog-posts h2 {
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Blog Post Cards */
.blog-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card h3 {
    color: var(--primary-navy);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.blog-card h3:hover {
    color: var(--secondary-navy);
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-excerpt {
    color: var(--gray-700);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-navy);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-navy);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.contact-widget {
    background: var(--primary-navy);
    color: white;
}

.widget h3,
.widget h4 {
    color: var(--primary-navy);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-widget h3 {
    color: white;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.contact-item .icon {
    margin-top: 0.125rem;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post h4 {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.recent-post h4:hover {
    color: var(--primary-navy);
}

.recent-post-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.categories-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-list a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
}

.categories-list a:hover {
    color: var(--primary-navy);
}

.category-count {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.attorney-image {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.widget h4 {
    color: var(--dark-text);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.widget p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 0;
}

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

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

/* Responsive Design */
@media (min-width: 768px) {
    .blog-card-content {
        flex-direction: row;
    }
    
    .blog-card-image {
        width: 20rem;
        height: auto;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-text {
    height: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.skeleton-image {
    height: 12rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

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

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }