/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern font stack */
    line-height: 1.6;
    color: #333; /* Dark grey for text */
    background-color: #f8f9fa; /* Light grey background */
}

header {
    background-color: #ffffff; /* White background for header */
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo img {
    height: 40px; /* Adjust logo height */
    vertical-align: middle;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #0056b3; /* Blue for links, similar to Casais */
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 5px; /* Space for potential underline */
    border-bottom: 2px solid transparent; /* Transparent border for hover effect */
}

nav ul li a:hover,
nav ul li a.active {
    color: #003d80; /* Darker blue on hover/active */
    border-bottom-color: #003d80; /* Underline on hover/active */
}

.menu-toggle {
    display: none; /* Hide by default */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0056b3;
}

main {
    padding: 2rem;
    max-width: 1200px; /* Limit content width */
    margin: 2rem auto; /* Center content */
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.hero {
    text-align: center;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 1rem auto;
}

.about-content img,
.services-list img {
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.services-list ul,
.about-content ul {
    list-style: disc; /* Use standard bullets */
    margin-left: 2rem; /* Indent list */
    margin-bottom: 1rem;
}

.services-list li,
.about-content li {
    margin-bottom: 0.5rem;
}

.contact-info ul {
    list-style: none; /* Remove bullets for contact details */
    margin-left: 0;
}

.contact-info a {
    color: #0056b3;
    text-decoration: none;
}

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

h1, h2, h3 {
    color: #003d80; /* Dark blue for headings */
    margin-bottom: 1rem;
}

h2 {
    margin-top: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

footer {
    background-color: #343a40; /* Dark background for footer */
    color: #adb5bd; /* Lighter grey for footer text */
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Portfolio Grid Specific Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
    margin-top: 2rem;
}

.portfolio-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
}

.portfolio-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area without distortion */
    border-radius: 4px;
    margin-bottom: 1rem;
}

.portfolio-item h3 {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    nav {
        position: relative; /* Needed for absolute positioning of ul */
    }
    .menu-toggle {
        display: block; /* Show toggle button */
    }
    nav ul {
        display: none; /* Hide menu items by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }
    nav ul.active {
        display: flex; /* Show menu when active */
    }
    nav ul li {
        margin: 0;
        width: 100%;
    }
    nav ul li a {
        display: block;
        padding: 0.8rem 1rem;
        text-align: center;
        border-bottom: 1px solid #eee; /* Separator */
    }
    nav ul li a:hover,
    nav ul li a.active {
        background-color: #f8f9fa;
        border-bottom-color: #eee; /* Keep separator */
    }
    main {
        padding: 1rem;
        margin: 1rem auto;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

