/* ========================================
   Flextem BioPharma Brasil - Main Styles
   Replicando exatamente o Tailwind do site em produÃ§Ã£o
   ======================================== */

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* === VARIÃVEIS === */
:root {
    --primary-purple: #664C80;
    --primary-green: #39B980;
    --text-gray: #6b7280;
    --text-dark: #1f2937;
    --bg-gray: #f9fafb;
    --border-gray: #e5e7eb;
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* === NAVBAR === */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-purple);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-purple);
}

.btn-portal {
    background: var(--primary-green);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-portal:hover {
    background: #2d9467;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 185, 128, 0.3);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-purple);
}

/* === MOBILE SIDEBAR === */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header img {
    height: 40px;
}

.close-sidebar {
    font-size: 1.5rem;
    color: var(--primary-purple);
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--bg-gray);
    border-left-color: var(--primary-purple);
    color: var(--primary-purple);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === HERO SECTION === */
.hero-section {
    min-height: 580px;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 3rem 0 4rem;
}

.hero-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.hero-image {
    flex: 0 0 50%;
    position: relative;
    min-height: 580px;
    max-height: 580px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-text {
    flex: 0 0 50%;
    min-width: 0;
    text-align: left;
    padding: 4rem 3rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 580px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-divider {
    width: 8rem;
    height: 4px;
    background: var(--primary-green);
    margin: 0 0 2rem 0;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 100%;
    margin: 0;
}

/* === PILARES SECTION === */
.pilares-section {
    padding: 0 0;
    background: var(--bg-gray);
    margin-top: -130px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

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

.pilar-card {
    background: var(--primary-green);
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    margin: 0;
}

.pilar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.pilar-icon {
    width: 4rem;
    height: 4rem;
    background: transparent;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.pilar-icon i {
    font-size: 3.5rem;
    color: #fff;
}

.pilar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.pilar-description {
    color: #fff;
    line-height: 1.6;
}

/* === PROFILES SECTION === */
.profiles-section {
    padding: 4rem 0;
    background: #fff;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.profile-card {
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.profile-purple {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #7d5c99 100%);
    color: #fff;
}

.profile-green {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2d9467 100%);
    color: #fff;
}

.profile-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.profile-icon i {
    font-size: 2.5rem;
}

.profile-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.profile-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.profile-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* === ABOUT SECTION === */
.about-section {
    padding: 4rem 0;
    background: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-green);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    line-height: 1.2;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 8rem;
    height: 4px;
    background: var(--primary-green);
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* === STATS SECTION === */
.stats-section {
    padding: 3rem 0;
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
    letter-spacing: 1px;
}

/* === PAGE HERO === */
.page-hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #7d5c99 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: #fff;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* === MVV SECTION (MissÃ£o, VisÃ£o, Valores) === */
.mvv-section {
    padding: 4rem 0;
    background: #fff;
}

.mvv-container {
    max-width: 900px;
    margin: 0 auto;
}

.mvv-card {
    padding: 2rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.mvv-purple {
    background: linear-gradient(to right, rgba(102, 76, 128, 0.1), transparent);
    border-left-color: var(--primary-purple);
}

.mvv-green {
    background: linear-gradient(to right, rgba(57, 185, 128, 0.1), transparent);
    border-left-color: var(--primary-green);
}

.mvv-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mvv-purple .mvv-title {
    color: var(--primary-purple);
}

.mvv-green .mvv-title {
    color: var(--primary-green);
}

.mvv-text {
    font-size: 1.125rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.valor-item {
    display: flex;
    gap: 0.75rem;
    align-items: start;
}

.valor-item i {
    color: var(--primary-green);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.valor-item h3 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.valor-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* === HISTORIA SECTION === */
.historia-section {
    padding: 4rem 0;
    background: var(--bg-gray);
}

.historia-content {
    max-width: 900px;
    margin: 2rem auto 0;
}

.historia-text {
    font-size: 1.125rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* === CERTIFICAÃ‡Ã•ES SECTION === */
.certificacoes-section {
    padding: 4rem 0;
    background: var(--bg-gray);
}

.certificacoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.certificacao-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.certificacao-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.certificacao-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: 1px;
}

.certificacao-gmp .certificacao-icon {
    background: var(--primary-purple);
}

.certificacao-gacp .certificacao-icon {
    background: var(--primary-green);
}

.certificacao-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.certificacao-gmp .certificacao-title {
    color: var(--primary-purple);
}

.certificacao-gacp .certificacao-title {
    color: var(--primary-green);
}

.certificacao-description {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* === FOOTER === */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 1rem;
}

.footer-description {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 1.5rem;
}

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

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 150px;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    color: #aaa;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.875rem;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-section {
        padding: 6rem 0 3rem;
        min-height: auto;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-image {
        flex: 0 0 100%;
        min-height: 400px;
        max-height: 400px;
        order: -1;
    }
    
    .hero-text {
        flex: 0 0 100%;
        text-align: center;
        padding: 3rem 2rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-divider {
        margin: 0 auto 1.5rem;
    }
    
    .page-hero {
        padding: 6rem 0 3rem;
    }
    
    .page-hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .certificacoes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certificacao-card {
        padding: 2rem 1.5rem;
    }
    
    .certificacao-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 769px) {
    .hero-text {
        text-align: left;
    }
    
    .hero-divider {
        margin: 0 0 2rem 0;
    }
}

@media (max-width: 768px) {
    .hero-divider {
        margin: 0 auto 1.5rem;
    }
}
