:root {
    --primary-blue: #0f172a;
    /* Slate 900 */
    --secondary-blue: #1e293b;
    /* Slate 800 */
    --accent-gold: #c4b5fd;
    /* Soft purple/gold hint, sticking to serious tones maybe simplified to #b49b67 for classic law gold */
    --gold-classic: #b49b67;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Roboto Serif', serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--primary-blue);
    background-color: #f1f5f9;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
}

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

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

/* Navbar */
.navbar {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.4rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--gold-classic);
}

.btn-nav {
    border: 1px solid var(--gold-classic);
    color: var(--gold-classic) !important;
    padding: 8px 20px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-nav:hover {
    background: var(--gold-classic);
    color: var(--primary-blue) !important;
}

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

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
}

/* Hero */
.hero {
    height: 90vh;
    background-image: url('https://images.unsplash.com/photo-1479142506502-19b3a3b7ff33?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: var(--gold-classic);
    display: block;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-white);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Expertise */
.expertise-section {
    padding: 100px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.separator {
    width: 80px;
    height: 3px;
    background-color: var(--gold-classic);
    margin: 20px auto 0;
}

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

.expertise-card {
    padding: 40px 30px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: background-color 0.3s, transform 0.3s;
    text-align: center;
}

.expertise-card:hover {
    background-color: var(--primary-blue);
    transform: translateY(-5px);
}

.expertise-card:hover h3,
.expertise-card:hover p,
.expertise-card:hover .icon {
    color: var(--text-white);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--gold-classic);
}

.expertise-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.expertise-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Stats */
.stats-section {
    background-color: var(--primary-blue);
    padding: 80px 0;
    color: var(--text-white);
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--gold-classic);
    margin-bottom: 10px;
}

.label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Firm */
.firm-section {
    padding: 100px 0;
}

.firm-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.firm-image {
    flex: 1;
    height: 500px;
    position: relative;
}

.firm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 20px 20px 0 var(--gold-classic);
}

.firm-text {
    flex: 1;
}

.firm-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.firm-text p {
    color: #475569;
    margin-bottom: 40px;
    text-align: justify;
}

.partner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.partner img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.partner-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.partner-info span {
    color: var(--gold-classic);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Contact */
.contact-section {
    padding: 100px 0;
    background-color: #e2e8f0;
}

.contact-card {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 60px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.contact-card h2 {
    color: var(--text-white);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-gray);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: flex;
    gap: 20px;
}

.input-row input {
    flex: 1;
}

input,
textarea {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--gold-classic);
}

textarea {
    height: 150px;
    resize: none;
}

.btn-submit {
    padding: 15px 40px;
    background-color: var(--gold-classic);
    color: var(--primary-blue);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    align-self: center;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Footer */
.main-footer {
    background-color: #020617;
    /* Darker than primary */
    color: var(--text-gray);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.logo-footer {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.phone {
    margin-top: 15px;
    color: var(--gold-classic);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
}

.studio-link {
    color: var(--gold-classic);
}

/* Responsive */
/* Responsive & Animations */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        /* Partial width for side drawer feel */
        height: 100vh;
        background-color: #0f172a;
        /* primary-blue */
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding-left: 40px;
        gap: 30px;
        z-index: 999;
        border-left: 2px solid var(--gold-classic);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        /* Animation Base State - Slide from Right */
        transform: translateX(100%);
        transition: transform 0.4s ease-out;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
        margin-right: 20px;
        /* Ensure visible within viewport */
    }

    /* Solid Block Burger Animation */
    .menu-toggle span {
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

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

    .firm-container {
        flex-direction: column;
    }

    .firm-image {
        width: 100%;
        height: 300px;
    }

    .input-row {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        text-align: center;
        width: 100%;
    }
}