:root {
    --primary-red: #3e000c;
    --primary-blue: #c9fbff;
    --dark-text: #c9fbff;      
    --light-text: #c9fbff;    
    --white: #c9fbff;
    
    /* Elegant Fonts for a Lawyer Page */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--light-text);
    background-color: var(--primary-red);
    line-height: 1.8;
    font-size: 14px; /* Smaller, more elegant font size */
    font-weight: 300;
    letter-spacing: 0.3px;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--white);
    font-weight: 400;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Sticky Navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    background-color: var(--primary-red);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    z-index: 1000;
}

.logo-container {
    height: 85px;
}

.logo {
    height: 100%;
    width: auto;
    /* Since logo has a white rect, we may want to alter it but we will use the provided SVG */
}

.sticky-nav nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.sticky-nav nav a {
    font-weight: 400;
    font-size: 13px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, opacity 0.3s;
}

.sticky-nav nav a:hover {
    color: var(--primary-blue);
}

.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

.lang-switch a {
    opacity: 0.6;
}

.lang-switch a.active {
    opacity: 1;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    min-height: 60vh;
    background-color: var(--primary-red);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    font-weight: 300;
}

/* Main Content Sections */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-section {
    background-color: var(--primary-red);
}

/* Team Grid - Updated for Side by Side */
.team-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 60px;
}

.team-member {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
}

.team-member:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.team-image-container {
    flex: 0 0 35%;
    max-width: 350px;
}

.team-member img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.team-text-container {
    flex: 1;
}

.team-text-container h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.team-text-container p {
    margin-bottom: 15px;
    font-size: 13.5px;
    color: var(--light-text);
    text-align: justify;
}

.areas-section {
    background-color: var(--primary-red);
    padding-top: 40px;
    padding-bottom: 100px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--white);
    background-color: rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 300;
}

.accordion-item.active .accordion-header::after {
    content: '−';
}

.accordion-header:hover {
    background-color: rgba(0,0,0,0.2);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 25px;
    background-color: transparent;
}

.accordion-content p {
    font-size: 13.5px;
    margin-bottom: 15px;
    color: var(--light-text);
}

.accordion-item.active .accordion-content {
    padding: 20px 25px;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-red);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.contact-info {
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: var(--primary-blue);
    font-weight: 400;
    display: block;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #2b0008;
    color: rgba(255,255,255,0.6);
    text-align: center;
    font-size: 12px;
}

.footer-content {
    padding: 40px 20px;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Responsive */
@media (max-width: 992px) {
    .container {
        padding: 50px 20px;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .team-member {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .team-image-container {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .sticky-nav {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .sticky-nav nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .sticky-nav nav ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .lang-switch {
        border-left: 1px solid rgba(255,255,255,0.3);
        padding-left: 10px;
    }
    
    .hero-section {
        padding: 60px 20px;
        min-height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .accordion-header {
        font-size: 1rem;
        padding: 15px 20px;
    }

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-red);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#preloader img {
    width: 363px;
    max-width: 90%;
    opacity: 0;
    animation: openLogo 7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes openLogo {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    100% {
        opacity: 1;
        transform: scale(2.77);
    }
}

/* Password Overlay */
#password-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--primary-red);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.4s ease;
}

.pw-container {
    padding: 40px;
    max-width: 400px;
    width: 90%;
}

.pw-container input {
    width: 100%;
    margin-top: 25px;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background-color: transparent;
    color: var(--white);
    outline: none;
    text-align: center;
    font-family: var(--font-body);
}

.pw-container input:focus {
    border-color: var(--primary-blue);
}

.pw-container button {
    width: 100%;
    margin-top: 15px;
    padding: 12px 25px;
    background-color: var(--white);
    color: var(--primary-red);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: background-color 0.3s;
}

.pw-container button:hover {
    background-color: var(--primary-blue);
}

#password-error {
    color: #ff6b6b;
    margin-top: 15px;
    font-size: 13.5px;
    display: none;
}
