/* html{
    scroll-behavior: smooth;
} */

/* Services */

#feature {
    padding: 50px 0px;
}

.heading--subtitle {
    color: black;
}

.feature-panel {
    padding: 30px 0px;
    border: 2px solid #FD8F00;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: 5px;
}

.feature-panel .feature--icon {
	color: #000000;
	font-size: 50px;
	line-height: 1;
	margin-bottom: 14px;
}

.feature-panel .feature--content h3 {
    color: #FD8F00;
    font-weight: bold;
}

.feature-panel .feature--content p {
    color: black;
    margin: 0 auto;
    width: 80%;
}

#feature .row {
    display: flex;
    flex-wrap: wrap;
}

#feature .row>[class*='col-'] {
    display: flex;
    flex-direction: column;
}

#feature .feature-panel {
    height: 100%;
}

/* 

Sobre poes os cards de serviços com o banner principal

#feature.bg-white {
    background-color: transparent !important;
}

#feature {
    margin-top: -150px; 
    position: relative;  
    z-index: 1;         
}

#feature .feature-panel {
    background-color: #ffffff;
    border: 2px solid #FD8F00; 
    border-radius: 5px; 
    padding-top: 40px;
    padding-bottom: 40px;
} */

/* About */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.about-section {
    padding: 80px 0;
    overflow: hidden;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-images {
    flex: 1;
    position: relative;
    min-width: 45%;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.secondary-image {
    width: 50%;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid #ffffff;
    position: absolute;
    bottom: -40px;
    right: -40px;
    z-index: 2;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #222222;
}

.title-accent {
    width: 60px;
    height: 4px;
    background-color: #FD8F00;
    margin-top: 10px;
    margin-bottom: 30px;
    border-radius: 2px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .about-text {
        text-align: center;
    }

    .title-accent {
        margin-left: auto;
        margin-right: auto;
    }

    .about-images {
        margin-bottom: 40px;
    }

    .secondary-image {
        display: none;
        width: 60%;
        bottom: -30px;
        right: 0px;
    }
}

/* services */

#portfolio .heading--title {
    margin: 0 0 10px;
}

#portfolio .title-accent {
    margin: 0 auto 20px;
}

/* Clients */

.partners-section {
    background-color: #008DDA;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.partners-section h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 500;
    margin: 0;
    margin-bottom: 30px;
}

.logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
}

.logo-item {
    max-height: 45px;
    max-width: 150px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
}

@media (max-width: 992px) {
    .logo-item {
        max-height: 37px;
        max-width: 125px;
        filter: brightness(0) invert(1);
        opacity: 0.9;
        transition: opacity 0.3s ease;
    }
}


/* why MISP */

.why-misp-section {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6rem 5%;
    gap: 4rem;
    margin: 0 auto;
}

.intro-column {
    flex: 1;
    min-width: 300px;
}

.intro-column h2 {
    font-size: 2.5rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.intro-column p {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
}

.features-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item .icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: #333;
}

.feature-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-item a {
    color: #FF8C42;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.75rem;
    transition: transform 0.2s ease-in-out;
}

.feature-item a:hover {
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .why-misp-section {
        flex-direction: column;
        gap: 3rem;
    }

    .intro-column {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-column h2 {
        font-size: 2rem;
    }
}

/* Socios */

.team-section
{
    margin: 0;
    padding: 50px 0px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-section h2
{
    font-size: 32px;
    margin: 5px;
}

.team-section .title-accent{
    margin: 0 auto;
}

.team-rectangle{
    width: 90vw;
    height: 200px;
    margin: 140px auto 0px;
    border: 2px solid #FD8F00;
}

.team-cards{
    margin: 0 auto;
    width: 80vw;
    display: flex;
    flex-direction: row;
    gap: 20px;
    text-align: center;
    margin-top: -290px; 
    position: relative;  
    z-index: 1;
}

.team-cards > div {
  flex: 1;
}

.team-cards img{
    width: 170px;
    border-radius: 100%;
    margin-bottom: 10px;
    border: 2px solid #FD8F00;
}

.team-cards h3{
    font-size: 22px;
    margin: 0px;
}


@media (max-width: 668px) {
    .team-section{
        padding-bottom: 40px;
    }

    .team-rectangle{
        display: none;
    }

    .team-cards{
        margin: 20px auto 0;
        width: 100vw;
        flex-direction: column;
    }

    .team-cards img{
        width: 120px;
    }

    .team-cards h3{
        font-size: 18px;
    }

    .team-cards p{
        font-size: 14px;
    }
}

/* Contato */

.contact-section {
    padding: 40px 60px 20px;
    color: #fff;
    background: linear-gradient(rgba(26, 137, 207, 0.85), rgba(26, 137, 207, 0.82)), url(../images/landing/BGContact.png) no-repeat center center;
    background-size: cover;
    font-family: 'Lora', serif;
}

.contact-container {
    margin: 0 auto;
    display: flex;
    align-items: self-start;
}

.contact-info {
    flex: 1;
    margin-top: 60px;
}

.contact-info h1 {
    color: white;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info p {
    color: white;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 400px;
}

.logo {
    font-size: 3.2em;
    font-weight: 700;
}

.logo span {
    color: #f39c12;
}

.contact-form {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 2px;
    font-size: 0.9em;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    background-color: #fff;
    color: #333;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.terms {
    flex-direction: row;
    align-items: center;
    font-size: 0.9em;
}

.form-group.terms input[type="checkbox"] {
    width: auto;
    margin-bottom: 5px;
    margin-right: 5px;
    accent-color: #f39c12; 
}

.form-group.terms a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.contact-form button {
    align-self: center; 
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    background-color: #f39c12;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #e67e22;
}

@media (max-width: 768px) {
    .contact-section {
    padding: 0px 10px 20px;
    margin: 0 auto;
}
    .contact-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 90vw;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h1 {
        color: white;
        font-size: 2.2em;
        font-weight: 700;
        margin-bottom: 20px;
    }
    
    .contact-info p {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 0;
    }

    .logo {
    font-size: 2.2em;
    font-weight: 700;
}

    .contact-form{
        margin: 0 auto;
    }

    .contact-form button {
        align-self: stretch; 
    }
}

