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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f8ff;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease; /* Added transform transition */
}

.header-hidden {
    transform: translateY(-100%); /* Hide the header by moving it up */
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0091ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

#header-logo {
    height: 50px;
    width: auto;
}

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

header ul li {
    margin-left: 20px;
}

header ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

header ul li a:hover {
    color: #0091ff;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-background.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    /* Flexbox for vertical alignment of text and logo */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 10px; /* Space between "Bem-vindo à" and the logo */
}

.hero-logo-text {
    height: 3rem; /* Match the font-size of the h1 for consistency */
    width: auto;
    max-width: 100%;
}

.hero-section .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    /*max-width: 600px;*/
}

.cta-button {
    display: inline-block;
    background-color: #0091ff;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #0073cc;
    transform: translateY(-2px);
}

.form-group-submit{
    text-align: center;
}

/* General Section Styling */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

/* About Us Section */
.about-section .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-section .text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-us-logo {
    height: 320px;
    width: auto;
    max-width: 100%;
    margin-bottom: 20px;
}

.about-section .text-content p {
    margin-bottom: 15px;
    text-align: left;
    width: 100%;
}

.about-section .image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Services Section */
.services-section {
    background-color: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0091ff;
}

/* Contact Section */
.contact-section form {
    max-width: 600px;
    margin: 0 auto 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.contact-section p:first-of-type { 
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.contact-section select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-section select {
    margin-bottom: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333' width='24px' height='24px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 30px;
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    text-align: center;
    margin-top: 30px;
}
.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: transparent; 
    padding: 60px 0;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem; 
    flex-grow: 1;
    position: relative; 
}

.testimonial-card .testimonial-text::before {
    content: '“';
    font-family: Georgia, serif; 
    font-size: 3em; 
    color: #0091ff;
    font-weight: bold;
    line-height: 0.1;
    display: block; 
    margin-bottom: 10px; 
    opacity: 0.8;
}

.testimonial-card .testimonial-text::after {
    content: '”';
    font-family: Georgia, serif;
    font-size: 3em;
    color: #0091ff;
    font-weight: bold;
    line-height: 0.1;
    display: block; 
    text-align: right; 
    margin-top: 10px; 
    opacity: 0.8;
}

.testimonial-card .testimonial-author {
    font-weight: bold;
    color: #333;
    text-align: right;
    margin-top: 15px; 
    font-size: 1.1rem;
}

.testimonial-card .testimonial-company {
    font-size: 0.9rem;
    color: #777;
    text-align: right;
    margin-top: 5px;
}

/* Partners Section */
.partners-section {
    background-color: transparent;
    padding: 50px 0;
}

.partners-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.partner-logo {
    flex-basis: 150px; /* Base size */
    text-align: center;
    flex-grow: 1;
    min-width: 100px;
}

.partner-logo img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px 0;
    z-index: 2000;
    display: none; /* Hidden by default, shown by JS */
    font-size: 0.9rem;
}

.cookie-consent-banner .cookie-consent-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-consent-banner p {
    margin: 0;
    flex-grow: 1;
}

.cookie-consent-banner a {
    color: #00aaff;
    text-decoration: underline;
}

.cookie-consent-banner a:hover {
    color: #fff;
}

.cookie-consent-banner button#accept-cookies {
    padding: 8px 15px;
    font-size: 0.9rem;
    background-color: #0091ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-consent-banner button#accept-cookies:hover {
    background-color: #0073cc;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.social-links a {
    margin: 0 10px;
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.social-links img {
    height: 24px;
    width: 24px;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-logo-text {
        height: 2.8rem;
    }

    section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: center;
    }
    header .logo {
        margin-bottom: 15px;
    }
    header ul {
        margin-top: 0;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    header ul li {
        margin: 5px 0;
        width: auto;
        text-align: center;
    }
    header ul li a {
        padding: 8px 15px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        width: 100%;
    }
    header ul li:last-child a {
        border-bottom: none;
    }

    .hero-section {
        padding: 80px 0;
        min-height: 60vh;
    }
    .hero-section h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 5px;
    }
    .hero-logo-text {
        height: 2rem;
    }
    .hero-section .subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    section {
        padding: 40px 0;
    }
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .about-section .content-grid {
        grid-template-columns: 1fr;
    }
    .about-section .image-content {
        order: -1; 
        margin-bottom: 20px;
    }
    .about-section .image-content img {
        margin: 0 auto;
        display: block;
    }
    .about-us-logo {
        height: 250px;
    }
    .about-section .text-content p {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr; 
    }
    .service-card {
        padding: 25px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr; 
    }
    .testimonial-card {
        padding: 25px;
    }
    .testimonial-card .testimonial-text::before,
    .testimonial-card .testimonial-text::after {
        font-size: 2.2em;
    }
    .testimonial-card .testimonial-author,
    .testimonial-card .testimonial-company {
        text-align: center;
    }

    .partners-grid {
        gap: 20px;
    }
    .partner-logo {
        flex-basis: 30%;
        min-width: 80px;
    }
    .partner-logo img {
        max-height: 45px;
    }

    .contact-section form {
        padding: 20px;
    }
    .contact-section p:first-of-type {
        font-size: 1rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
    .social-links {
        margin-top: 20px;
    }

    .cookie-consent-banner .cookie-consent-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .cookie-consent-banner p {
        margin-bottom: 0;
    }
    .cookie-consent-banner button#accept-cookies {
        width: 100%;
        max-width: 200px;
        margin-top: 10px;
    }

    footer .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    header .logo #header-logo {
        height: 40px;
    }
    header .logo p {
        font-size: 1.3rem;
    }
    header ul li a {
        padding: 6px 10px;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }
    .hero-logo-text {
        height: 1.6rem;
    }
    .hero-section .subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    section h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .about-us-logo {
        height: 200px;
    }

    .partner-logo {
        flex-basis: 45%;
    }
    .partner-logo img {
        max-height: 40px;
    }

    .contact-section form {
        padding: 15px;
    }
    .contact-info p {
        font-size: 0.95rem;
    }

    .cookie-consent-banner {
        padding: 10px 0;
        font-size: 0.85rem;
    }
    .cookie-consent-banner button#accept-cookies {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    footer p {
        font-size: 0.85rem;
    }
}