/* CSS Variables for consistent theming */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #d4af37;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Header and Navigation */
.header {
    background: var(--gradient-primary);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nav-brand h1 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 0;
}

.nav-brand .tagline {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin: 0;
}

.nav-brand .est-year {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

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

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: var(--gradient-secondary);
    padding: 8rem 0 4rem;
    margin-top: 80px;
}

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

.hero-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Common Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.firm-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-group {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.detail-group h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-group p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Services Section */
.services {
    background: var(--background-light);
}

.services-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.show-services-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.show-services-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.services-content {
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.service-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.service-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.service-category li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

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

/* Partners Section */
.partners {
    background: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-photo {
    margin-bottom: 1.5rem;
}

.partner-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.partner-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.partner-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.partner-details {
    text-align: left;
}

.partner-details p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.partner-details strong {
    color: var(--primary-color);
}

/* Careers Section */
.careers {
    background: var(--background-light);
}

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

.careers-content > p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.job-listings {
    display: grid;
    gap: 2rem;
}

.job-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: left;
    border-left: 4px solid var(--primary-color);
}

.job-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.job-details p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.job-details strong {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-details {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item p {
    line-height: 1.6;
    color: var(--text-dark);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

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

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-info p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

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

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

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

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

.compliance-note {
    font-size: 0.9rem;
    font-style: italic;
}

.last-updated {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--gradient-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat {
        padding: 1.5rem;
    }

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

    .section-title {
        font-size: 1.5rem;
    }

    .firm-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .nav-brand h1 {
        font-size: 1.5rem;
    }

    .partner-img {
        width: 120px;
        height: 120px;
    }

    .detail-group,
    .partner-card,
    .job-card {
        padding: 1.5rem;
    }

    .contact-details,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .footer {
        display: none;
    }

    .hero {
        margin-top: 0;
        padding: 2rem 0;
    }

    .section-title::after {
        display: none;
    }

    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #0000ff;
        --text-dark: #000000;
        --border-color: #000000;
    }
}