/* Default styles for larger screens */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #d0d0d0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;

}



/* Header styles */
/* Header styles */
header {
    /* background: #6C757D;*/
    background: #4c4c4c;
    color: #fff;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    height: 3.5rem;
    z-index: 1000;
}

/* Adjust scroll padding to account for fixed header */
:root {
    scroll-padding-top: 3.5rem; /* Adjust based on the height of your header */
}

header .logo {
    font-size: 1.5rem;
    margin-left: 1rem;
    font-weight: bold;
}


/* New styles for mobile menu */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffdd57;
}



.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    right: 0;
    background: #3A3A3A;
    width: 100%;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.mobile-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin: 0 1rem;
}

.mobile-nav ul li a:hover {
    color: #ffdd57;
}

@media (max-width: 768px) {
    .menu-icon {
        display: block; /* Show on smaller screens */
    }

    nav ul {
        display: none; /* Hide main nav on smaller screens */
    }

    .mobile-nav.active {
        display: flex; /* Show mobile nav when active */
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
        margin-left: auto;
    }

    nav ul {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.active {
        display: flex;
    }
}
@media (max-width: 1024px) and (orientation: landscape) {
    .menu-icon {
        display: block;
        margin-left: auto;
    }

    nav ul {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.active {
        display: flex;
    }
}

/* Flag styles */
.flags {
    display: flex;
    align-items: center;
}

.flag {
    width: 24px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
}
/* New background section styles */
.background-section {
    background: url('images/lisbon.jpg');
    height: 100vh; /* Adjust the height as needed */
    width: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    width: unset;
}

.background-section h1 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.background-section p {
    font-size: 1.5rem;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background: #ffdd57;
    color: #6C757D;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.cta-button:hover {
    background: #ffcc00;
    color: #fff;
}

/* Flag styles */
.flags {
    display: flex;
    align-items: center;
}

.flag {
    width: 24px;
    height: 16px;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Section styles */
section {
    padding: 2em 1rem;
    background-color: #F0F4F8;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    font-family: 'Roboto', sans-serif;
}

h2 {
    color: #6C757D;
    margin-bottom: 1rem;
    font-weight: bold;
}

/*color: #F0F4F8;*/
#services li {
    color: #6C757D;
    font-weight: bold;
}


.jobtitle{
    margin-top: -1rem;
    font-size: medium;
    font-weight: 300; 
}

.profilePic{
    position: relative;
    display: block;
    width: 13rem;
    height: auto;
    object-fit: inherit;
    background-size: 50%;
}

.lawyer_detail{
    position: relative;
    margin-left: 2rem;
    font-family: 'Roboto', sans-serif;
}


#lawyers h2 {

    margin-bottom: 20px;
}

.lawyer {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.lawyer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-right: 20px;
}

/* Footer styles */
footer {
    background: #4c4c4c;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
    position: static;
}

/* Contact info styles */
.contact-info p {
    margin: 0.5rem 0;
}

/* Form styles */
label {
    display: block;
    margin: 0.5rem 0;
    color: #6C757D;
    font-weight: bold;
}

input {
    width: 99%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border 0.3s ease;
}

textarea {
    width: 99%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border 0.3s ease;
    height: 20vh;
}

input:focus, textarea:focus {
    border-color: #6C757D;
    outline: none;
}

button {
    background: #6C757D;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: bold;
}

button:hover {
    background: #ffdd57;
    color: #6C757D;
}

/* Cookie Consent Styles */
#cookieConsent {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 1rem;
    z-index: 1000;
    display: none;
}

#cookieConsentContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#cookieConsentContainer p {
    margin: 0;
    margin-bottom: 0.5rem;
}

#cookieConsentContainer a {
    color: #ffdd57;
    text-decoration: underline;
}

#cookieConsentContainer button {
    background-color: #ffdd57;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
}

#cookieConsentContainer button:hover {
    background-color: #ffc107;
}

html, body {
    overflow-x: hidden;
}