@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --white: #ffffff;
    --dark-blue: #00205b;
    --medium-blue: #003366;
    --accent-blue: #004a99;
    --text-primary: #ffffff;
    --text-header: #00205b;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--dark-blue);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
header {
    background-color: var(--white);
    color: var(--dark-blue);
    /* Clear contrast on white bg */
    padding: 3rem 5% 5rem;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.logo-container {
    position: absolute;
    left: 4rem;
    bottom: -40px;
    /* This creates the overlap into the body */
    width: 200px;
    height: 200px;
    background: var(--white);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed) ease;
}

.logo-container:hover {
    transform: translateY(-50%) scale(1.05);
}

.logo-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.header-text {
    max-width: 800px;
    margin: 0 auto;
}

.header-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.header-text p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #444;
}

.lang-toggle {
    position: absolute;
    right: 2rem;
    top: 2rem;
}

.btn-lang {
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-speed);
}

.btn-lang:hover {
    background: var(--medium-blue);
}

/* Body Styles */
main {
    padding: 6rem 5% 4rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.item-center {
    grid-column: 2 / 3;
    padding: 4rem 2rem;
    margin-top: 1rem;
}

.item-bottom {
    grid-column: 1 / 4;
    padding: 2.5rem 2rem;
    margin-top: 1rem;
}

/* Footer Styles */
footer {
    background-color: var(--medium-blue);
    padding: 4rem 5% 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lawyer-photo {
    width: 200px;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 10px;
    border: 3px solid var(--white);
}

.building-photo {
    width: 100%;
    max-width: 354px;
    /* Increased 18% from 300px */
    border-radius: 10px;
    filter: brightness(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: zoom-in;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.building-photo:hover {
    transform: scale(1.4);
    /* Magnifies the building for better detail */
    filter: brightness(1);
    z-index: 100;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.contact-info {
    text-align: center;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.phone {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin: 1rem 0;
}

.disclaimer {
    grid-column: 1 / 4;
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    header {
        padding-left: 15%;
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .disclaimer {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .logo-container {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin: 2rem auto 1.5rem;
        /* Added margin-top to lower the logo */
        width: 150px;
        height: 150px;
    }

    .lang-toggle {
        position: relative;
        right: 0;
        top: 0;
        margin-bottom: 2rem;
        /* Increased margin to push things down */
        text-align: center;
        order: -1;
        /* Ensuring it stays at the very top */
    }

    header {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-text h1 {
        font-size: 1.8rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .grid-item,
    .item-center,
    .item-bottom {
        grid-column: 1;
    }
}