/* styles.css - AdvBroono Legal Firm */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #222;
}
header {
    background: #1a237e;
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.logo {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
}
.logo img {
    height: 100px;
    margin-right: 1rem;
}
nav {
    background: #283593;
}
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0 2rem;
}
nav ul li {
    margin-right: 2rem;
}
nav ul li:last-child {
    margin-right: 0;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0;
    display: block;
    transition: color 0.2s;
}
nav ul li a:hover {
    color: #ffb300;
}
main {
    margin-top: 150px;
    padding: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border-radius: 8px;
    top: 10px;
}
section {
    margin-bottom: 2.5rem;
    position: relative;
    top: 20px;
}
h2 {
    color: #1a237e;
    margin-bottom: 1rem;
}
.team, .expertise, .service-list, .offices {
    margin-top: 1rem;
}
.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}
.service {
    background: #e8eaf6;
    padding: 1rem;
    border-radius: 6px;
    flex: 0 1 calc(50% - 0.75rem);
    min-width: 300px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    box-sizing: border-box;
}
.office {
    background: #e3f2fd;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}


footer {
    text-align: center;
    padding: 1.5rem 0;
    background: #1a237e;
    color: #fff;
    margin-top: 2rem;
    font-size: 1rem;
    border-radius: 0 0 8px 8px;
}
@media (max-width: 700px) {
    main {
        padding: 1rem;
    }
    .service-list {
        flex-direction: column;
        gap: 1rem;
    }
    nav {
        position: relative;
    }
    nav ul {
        display: none;
        flex-direction: column;
        padding: 0 1rem;
        position: absolute;
        left: 0;
        width: 100%;
        background: #283593;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        z-index: 1001;
    }
    nav ul.open {
        display: flex;
    }
    nav ul li {
        margin: 0.5rem 0;
    }
    .menu-btn {
        display: block;
        position: absolute;
        top: 8px;
        right: 16px;
        background: #ffb300;
        color: #1a237e;
        border: none;
        border-radius: 4px;
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
        cursor: pointer;
        z-index: 1002;
    }
    .office {
        flex-direction: column;
        align-items: left;
    }
}

/* Hide menu button on desktop */
.menu-btn {
    display: none;
            top: -45px;
}
@media (max-width: 700px) {
    .menu-btn {
        display: block;
    }
}

@media (max-width: 450px) {
    h1 {
        font-size: 1.1rem;
    }
}

.about-content {
    margin: 0px;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    }

.about-text {
    flex: 1;
    min-width: 70%;
    text-align: justify;
}


.about-image {
    text-align: center;
    margin-top: 1rem;
}
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 700px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }
    .about-text {
        min-width: 100%;
    }
    .about-image {
        margin-top: 1rem;
    }
    
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
footer a:hover {
    color: #ffb300;
}

.anchor-offset {
  padding-top: 100px; /* Or use scroll-margin-top for modern browsers */
  margin-top: -100px; /* If using padding/negative margin approach */
}