﻿/**
 * Estilos Globais - NupesMI
 */

/* Poppins Font */
@font-face {
    font-family: 'Poppins';
    src: url('../../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../fonts/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../fonts/Poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

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

body {
    font-family: 'Poppins', Arial, sans-serif;
}

/* About Section */
.about-section {
    width: 100%;
    padding: var(--space-24) var(--space-10);
    background: linear-gradient(135deg, 
        rgba(54, 159, 174, 0.03) 0%, 
        rgba(255, 255, 255, 1) 50%,
        rgba(234, 129, 129, 0.03) 100%);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--color-primary-light) 50%,
        transparent 100%);
}

.about-container {
    max-width: var(--container-default);
    margin: 0 auto;
    display: flex;
    gap: var(--space-28);
    align-items: center;
}

.about-content {
    flex: 1;
    max-width: 35.3125rem; /* 565px */
    animation: fadeInLeft 0.8s ease-out;
}

.about-badge {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    display: block;
}

.about-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-gray-900);
    margin-bottom: var(--space-5);
}

.about-divider {
    width: 90px;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--color-primary) 0%, 
        var(--color-secondary) 100%);
    margin-bottom: var(--space-8);
    border-radius: 3px;
}

.about-text {
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--color-gray-700);
    margin-bottom: var(--space-10);
    text-align: justify;
}

.about-link {
    display: inline-block;
    padding: var(--space-4) var(--space-9);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.about-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transition: left var(--transition-base);
    z-index: -1;
}

.about-link:hover::before {
    left: 0;
}

.about-link:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(54, 159, 174, 0.3);
}

.about-image {
    flex: 1;
    max-width: 790px;
    position: relative;
    animation: fadeInRight 0.8s ease-out;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-primary-light);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-base);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Animações */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Projects Section */
.projects-section {
    width: 100%;
    padding: var(--space-20) var(--space-10) var(--space-25);
    background-color: var(--color-white);
}

.projects-container {
    max-width: var(--container-wide);
    margin: 0 auto;
}

.projects-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    color: var(--color-gray-800);
    text-align: left;
    margin-bottom: var(--space-15);
    letter-spacing: 1px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-11);
    padding-bottom: 50px;
    border-bottom: 1px solid var(--color-gray-400);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.project-image {
    width: 100%;
    aspect-ratio: 365 / 267;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-description {
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--color-text-primary);
    margin: 0;
}

/* News Section */
.news-section {
    width: 100%;
    padding: var(--space-20) var(--space-10);
    background-color: var(--color-white);
}

.news-container {
    max-width: var(--container-default);
    margin: 0 auto;
    display: flex;
    gap: var(--space-28);
    align-items: center;
}

.news-content {
    flex: 1;
    max-width: 35.3125rem; /* 565px */
}

.news-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--color-primary-dark);
    margin-bottom: var(--space-8);
}

.news-subtitle {
    font-size: var(--text-2xl);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-10);
}

.news-text {
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    line-height: var(--leading-loose);
    color: var(--color-text-secondary);
    margin: 0;
    margin-bottom: var(--space-5);
}

.news-text:last-child {
    margin-bottom: 0;
}

.news-image-wrapper {
    flex: 1;
    position: relative;
    max-width: 31.375rem; /* 502px */
}

.news-image {
    position: relative;
    width: 100%;
    z-index: 1;
}

/* Team Section */
.team-section {
    width: 100%;
    padding: var(--space-20) var(--space-10) var(--space-25);
    background-color: var(--color-white);
}

.team-container {
    max-width: var(--container-default);
    margin: 0 auto;
}

.team-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-semibold);
    color: var(--color-primary-dark);
    text-align: left;
    margin-bottom: var(--space-20);
    letter-spacing: 0.0625rem; /* 1px */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: 4.375rem; /* 70px */
}

.team-card {
    border: 1px solid var(--color-text-tertiary);
    border-radius: var(--radius-sm);
    padding: var(--space-9);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 156px;
}

.team-card-1 {
    background-color: var(--color-white);
}

.team-card-2 {
    background-color: var(--color-pink);
}

.team-card-3 {
    background-color: var(--color-white);
}

.team-card-4 {
    background-color: var(--color-white);
    min-height: 190px;
}

.team-card-5 {
    background-color: var(--color-white);
    min-height: 190px;
}

.team-card-6 {
    background-color: var(--color-white);
    min-height: 190px;
}

.team-member-text {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
    margin: 0;
    text-align: center;
}

.team-member-white {
    color: var(--color-white);
}

.team-footer-text {
    font-size: var(--text-xs);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--color-text-secondary);
    text-align: center;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer Section */
.footer-section {
    width: 100%;
    background-color: #0C8B9D;
    padding: 3.75rem 0 0; /* 60px */
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 120rem; /* 1920px */
    margin: 0 auto;
    padding: 0 8.9375rem; /* 143px */
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-20);
    margin-bottom: 3.125rem; /* 50px */
    min-height: 25rem; /* 400px */
}

.footer-left {
    flex: 1;
    max-width: 40.625rem; /* 650px */
    z-index: 2;
}

.footer-logos {
    display: flex;
    gap: 2.5rem; /* 40px */
    align-items: center;
    margin-bottom: 3.125rem; /* 50px */
}

.footer-logo-img {
    max-height: 8.125rem; /* 130px */
    width: auto;
    display: block;
}

.footer-logo-icon {
    max-height: 6.25rem; /* 100px */
}

.footer-info {
    margin-bottom: 2.5rem; /* 40px */
}

.footer-menu {
    display: flex;
    gap: 3.75rem; /* 60px */
    align-items: flex-start;
}

.footer-menu-column {
    flex: 1;
}

.footer-menu-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 15px 0;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 0.625rem; /* 10px */
}

.footer-menu-list a {
    font-size: 1.25rem; /* 20px */
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-menu-list a:hover {
    opacity: 0.8;
}

.footer-title {
    font-size: 3rem; /* 48px */
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 1.25rem 0; /* 20px */
}

.footer-contact {
    margin-bottom: 1.875rem; /* 30px */
}

.footer-text {
    font-size: 1.125rem; /* 18px */
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-white);
    margin: 0 0 0.3125rem 0; /* 5px */
}

.footer-phone {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: var(--color-white);
    margin: 0.9375rem 0 0 0; /* 15px */
}

.footer-social-icons {
    display: flex;
    gap: 1.875rem; /* 30px */
    align-items: center;
}

.footer-social-link {
    width: 3.75rem; /* 60px */
    height: 3.75rem; /* 60px */
    background-color: #1BABB6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.75rem; /* 28px */
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.footer-social-link:hover {
    background-color: #0C8B9D;
    transform: translateY(-0.125rem); /* -2px */
}

.footer-right {
    position: absolute;
    right: -22.5rem; /* -360px */
    bottom: -2.5rem; /* -40px */
    z-index: 1;
    width: 50rem; /* 800px */
    max-width: 50rem; /* 800px */
}

.footer-whale {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.3;
}

.footer-bottom-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 2.5rem; /* 40px */
    position: relative;
    min-height: 7.5rem; /* 120px */
}

.footer-bottom-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.footer-divider {
    width: 80%;
    height: 2px;
    background-color: #1BABB6;
    margin-bottom: 1.875rem; /* 30px */
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem; /* 20px */
    padding-bottom: 2.5rem; /* 40px */
}

.footer-copyright {
    font-size: 0.875rem; /* 14px */
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-white);
    margin: 0;
    max-width: 62.5rem; /* 1000px */
}

.footer-social-bottom {
    display: flex;
    gap: 1.875rem; /* 30px */
    align-items: center;
    position: absolute;
    right: calc(20% - 1.875rem); /* 30px */
    top: -0.9375rem; /* -15px */
}

.footer-social-bottom a {
    width: 3.75rem; /* 60px */
    height: 3.75rem; /* 60px */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.75rem; /* 28px */
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.footer-social-bottom a:hover {
    background-color: #0C8B9D;
    transform: translateY(-0.125rem); /* -2px */
}


.footer-content,
.footer-bottom,
.footer-divider {
    position: relative;
    z-index: 1;
}

/* ========================================
   MEDIA QUERIES - RESPONSIVIDADE
   ======================================== */

/* Tablets e dispositivos médios (max-width: 1200px) */
@media (max-width: 1200px) {
    .footer-social-bottom {
        position: static !important;
        right: auto !important;
        top: auto !important;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Tablets e dispositivos médios (max-width: 1024px) */
@media (max-width: 1024px) {
    /* About Section */
    .about-container {
        flex-direction: column;
        gap: var(--space-15);
    }
    
    .about-content,
    .about-image {
        max-width: 100%;
    }
    
    /* Projects Section */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    /* News Section */
    .news-container {
        flex-direction: column;
        gap: var(--space-15);
    }
    
    .news-content,
    .news-image-wrapper {
        max-width: 100%;
    }
    
    .news-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Team Section */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Navbar */
    .navbar-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-6);
    }
    
    .navbar-logo {
        order: 1;
    }
    
    .navbar-search {
        order: 2;
        width: auto;
        min-width: 350px;
    }
    
    .navbar-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: var(--space-6);
    }
    
    /* Footer */
    .footer-container {
        padding: 0 var(--space-10);
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-10);
        min-height: auto;
        align-items: center;
    }
    
    .footer-left {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logos {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-logo-img {
        max-height: 80px;
    }
    
    .footer-title {
        font-size: 36px;
    }
    
    .footer-right {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .footer-whale {
        display: none !important;
    }
    
    .footer-menu {
        text-align: center;
    }
    
    .footer-menu-column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        position: relative;
        text-align: center;
    }
    
    .footer-bottom-wrapper {
        min-height: auto;
        position: relative;
        overflow: visible;
    }
    
    .footer-bottom-content {
        width: 100%;
        position: relative;
    }
    
    .footer-social-bottom {
        position: static !important;
        right: auto !important;
        top: auto !important;
        width: 100%;
        justify-content: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-divider {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Tablets pequenos (max-width: 768px) */
@media (max-width: 768px) {
    /* Tipografia responsiva */
    .about-title,
    .team-title {
        font-size: var(--text-3xl);
    }
    
    .news-title {
        font-size: var(--text-4xl);
    }
    
    .news-subtitle {
        font-size: var(--text-xl);
    }
    
    .projects-title {
        font-size: var(--text-xl);
    }
    
    /* Seções */
    .about-section,
    .projects-section,
    .news-section,
    .team-section {
        padding: var(--space-15) var(--space-6);
    }
    
    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    /* News */
    .news-image-wrapper {
        max-width: 350px;
    }
    
    /* Navbar */
    .top-bar {
        height: auto;
        padding: var(--space-3) 0;
    }
    
    .top-bar-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4);
    }
    
    .top-bar-text {
        font-size: 12px;
    }
    
    .navbar-container {
        flex-wrap: wrap;
        gap: var(--space-6);
        padding: 0 var(--space-6);
    }
    
    .navbar-logo {
        order: 1;
    }
    
    .navbar-logo img {
        height: 55px;
    }
    
    .navbar-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: var(--space-5);
    }
    
    .navbar-menu li a {
        font-size: 13px;
    }
    
    .navbar-search {
        order: 2;
        width: 100%;
        max-width: 350px;
    }
    
    .navbar-search input {
        height: 55px;
        padding: 0 var(--space-10) 0 var(--space-5);
        font-size: var(--text-xs);
    }
}

/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
    /* Tipografia mobile */
    .about-title,
    .team-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-6);
    }
    
    .news-title {
        font-size: var(--text-3xl);
    }
    
    .news-subtitle {
        font-size: var(--text-lg);
    }
    
    .projects-title {
        font-size: var(--text-lg);
        margin-bottom: var(--space-10);
    }
    
    /* Seções com padding reduzido */
    .about-section,
    .projects-section,
    .news-section,
    .team-section {
        padding: var(--space-10) var(--space-5);
    }
    
    /* About Section */
    .about-text {
        font-size: var(--text-sm);
    }
    
    .about-link {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-xs);
    }
    
    /* Projects */
    .project-description {
        font-size: var(--text-xs);
    }
    
    /* News */
    .news-text {
        font-size: var(--text-base);
    }
    
    .news-image-wrapper {
        max-width: 300px;
    }
    
    /* Team */
    .team-card {
        padding: var(--space-6);
        min-height: 120px;
    }
    
    .team-member-text {
        font-size: var(--text-base);
    }
    
    .team-footer-text {
        font-size: var(--text-xs);
    }
    
    /* Footer */
    .footer-section {
        padding: var(--space-10) 0 0;
    }
    
    .footer-container {
        padding: 0 var(--space-5);
    }
    
    .footer-logos {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .footer-logo-img {
        max-height: 60px;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .footer-title {
        font-size: 28px;
    }
    
    .footer-text,
    .footer-phone {
        font-size: 14px;
    }
    
    .footer-social-icons,
    .footer-social-bottom {
        gap: 20px;
        position: static;
        justify-content: center;
    }
    
    .footer-social-link,
    .footer-social-bottom a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .footer-right {
        display: none;
    }
    
    .footer-whale {
        display: none;
    }
    
    .footer-divider {
        width: 100%;
        margin-bottom: var(--space-6);
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: var(--space-15);
    }
    
    .footer-bottom-wrapper {
        min-height: auto;
    }
    
    .footer-copyright {
        font-size: 12px;
        text-align: center;
    }
    
    /* Navbar Mobile */
    .top-bar {
        height: auto;
        padding: var(--space-4) 0;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
    
    .top-bar-text {
        flex-direction: column;
        gap: var(--space-2);
        font-size: 12px;
    }
    
    .main-navbar {
        padding: var(--space-5) 0;
    }
    
    .navbar-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-5);
    }
    
    .navbar-logo img {
        height: 50px;
    }
    
    .navbar-menu {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4);
    }
    
    .navbar-menu li a {
        font-size: var(--text-xs);
    }
    
    .navbar-search {
        order: 2;
        max-width: 250px;
    }
    
    .navbar-search input {
        height: 44px;
    }
}

/* Mobile pequeno (max-width: 480px) */
@media (max-width: 480px) {
    .about-title,
    .team-title {
        font-size: var(--text-xl);
    }
    
    .news-title {
        font-size: var(--text-2xl);
    }
    
    .projects-grid {
        gap: var(--space-6);
    }
    
    .team-grid {
        gap: var(--space-4);
    }
    
    .news-image-wrapper {
        max-width: 250px;
    }
}
