/* Import Fonts - Using more premium serif for headings */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    /* Updated Color Palette - Deeper Navy, Richer Gold */
    --color-primary: #0a1128;
    /* Deep Navy */
    --color-secondary: #1c2a48;
    /* Lighter Navy */
    --color-accent: #c6a87c;
    /* Muted Gold/Bronze - more premium than yellow gold */
    --color-accent-hover: #d9bb8e;

    --color-text-light: #f8f9fa;
    --color-text-dark: #2b2b2b;
    --color-text-muted: #6c757d;
    --color-white: #ffffff;
    --color-bg-light: #f4f6f8;

    --font-heading: 'Outfit', sans-serif;
    --font-subheading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1.5rem;
    /* Increased spacing */
    --spacing-md: 3rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    --border-radius: 2px;
    /* Sharper corners for more professional look */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.8;
    /* Increased line height for readability */
    background-color: var(--color-bg-light);
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Buttons - More refined */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: 1px solid var(--color-accent);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

/* Header - Sleeker */
header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

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

#nav-checkbox {
    display: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section - More dramatic */
.hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(10, 17, 40, 0.85), rgba(10, 17, 40, 0.7)), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero h1 span {
    color: var(--color-accent);
    font-style: italic;
    font-family: var(--font-heading);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 600px;
}

/* Stats Section (Global) */
.about-stats {
    background: white;
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-box h3 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.stat-box p {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    z-index: 0;
}

.about-image img {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.section-subtitle {
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* Practice Areas - Dark theme */
.practice {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    background-image: linear-gradient(rgba(10, 17, 40, 0.95), rgba(10, 17, 40, 0.95)), url('/images/pattern.png');
    /* Subtle texture if available */
}

.practice h2 {
    color: var(--color-white);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

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

.practice-card {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-accent);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.practice-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.06);
}

.practice-card:hover::before {
    transform: scaleY(1);
}

.practice-card h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-top: 1rem;
}

.practice-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: transparent;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Team Section (Global) */
.about-team {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title-center {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle-center {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.team-grid-about {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-card:hover img {
    filter: grayscale(0%);
}

.team-info {
    padding: 25px 20px;
}

.team-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.team-info .role {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.team-info .bio {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Legacy Timeline Section */
.about-legacy {
    padding: 100px 0;
    background: white;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 180px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-year {
    text-align: right;
    padding-right: 40px;
}

.timeline-year h3 {
    font-size: 2rem;
    color: var(--color-accent);
    font-family: var(--font-heading);
}

.timeline-content {
    padding-left: 40px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 10px;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.timeline-content p {
    color: #6c757d;
    line-height: 1.7;
}

/* Footer Styles */
footer {
    background-color: #050914;
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 4px solid var(--color-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--color-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Legal Pages (Privacy Policy, etc.) */
.page-header {
    background: linear-gradient(rgba(10, 17, 40, 0.9), rgba(10, 17, 40, 0.9)), url('/images/legal-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0 60px;
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    margin-bottom: var(--spacing-xl);
}

.toc {
    position: sticky;
    top: 120px;
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.toc h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
}

#TableOfContents ul {
    margin-top: 15px;
}

#TableOfContents ul li {
    margin-bottom: 10px;
}

#TableOfContents ul li a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

#TableOfContents ul li a:hover {
    color: var(--color-accent);
}

.content-body {
    background: var(--color-white);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.content-body h2 {
    margin-top: 2.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-bg-light);
}

.content-body p {
    margin-bottom: 1.5rem;
    color: #444;
}

.content-body ul {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.content-body ul li {
    list-style: disc;
    margin-bottom: 8px;
    color: #444;
}

.disclaimer-box {
    background-color: #fff9f0;
    border-left: 4px solid var(--color-accent);
    padding: 30px;
    margin: 40px 0;
}

.disclaimer-box h4 {
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .toc {
        display: none;
    }

    .content-body {
        padding: 30px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid-about {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0.5rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    #nav-checkbox:checked~nav .nav-menu {
        right: 0;
    }

    #nav-checkbox:checked~.menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    #nav-checkbox:checked~.menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    #nav-checkbox:checked~.menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        text-align: center;
        padding: var(--spacing-lg) 0;
        min-height: 50vh;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .timeline-year {
        text-align: left;
        padding-right: 0;
        padding-left: 50px;
    }

    .timeline-content {
        padding-left: 50px;
    }

    .timeline-content::before {
        left: 12px;
    }

    .team-grid-about {
        grid-template-columns: 1fr;
    }
}