:root {
    --primary-color: #0d1b2a;
    /* Deep Navy */
    --secondary-color: #1b263b;
    /* Lighter Navy */
    --accent-color: #c9a227;
    /* Gold/Bronze */
    --text-light: #e0e1dd;
    --text-dark: #0d1b2a;
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 1rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(13, 27, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

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

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

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

nav a:hover {
    color: var(--accent-color);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.7)), url('assets/legal-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent-color);
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #aab6c2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Sections General */
section {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text h3 {
    color: var(--secondary-color);
    font-size: 2rem;
}

.about-image {
    width: 100%;
    height: 400px;
    background-color: #ccc;
    /* Placeholder if no image */
    background: url('https://images.unsplash.com/photo-1556157382-97eda2d62296?auto=format&fit=crop&q=80') center/cover;
    border-radius: 4px;
    box-shadow: 20px 20px 0 var(--secondary-color);
}

/* Practice Areas */
.areas {
    background-color: var(--secondary-color);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.area-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.area-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.area-card h3 {
    font-size: 1.5rem;
}

/* Contact */
.contact {
    background-color: var(--primary-color);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-family: var(--font-body);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

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

/* Footer */
footer {
    background-color: #08111a;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #8892b0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    header {
        justify-content: space-between;
        /* Ensure space between items */
    }

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

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

    .menu-toggle {
        display: block;
        order: 1;
        /* Move to first position */
        z-index: 1001;
        /* Ensure above the nav drawer */
    }

    .logo {
        order: 2;
        /* Move to second position */
        margin-left: auto;
        /* Push to right if needed, or centering logic */
        margin-right: auto;
    }

    /* Ensure the logo text container doesn't break layout */
    .logo span {
        text-align: right;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(13, 27, 42, 0.98);
        backdrop-filter: blur(15px);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: flex;
        align-items: center;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }

    nav.active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        /* Align text to left */
        padding: 4rem 2rem;
        gap: 2rem;
        width: 100%;
    }

    nav a {
        font-size: 1.5rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 1rem;
    }

    nav a:hover {
        padding-left: 10px;
        /* Slide effect on hover */
    }
}