/* ==========================================================================
   Google Fonts Import
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&family=Montserrat:wght@700&display=swap');

/* ==========================================================================
   Variáveis de Cores
   ========================================================================== */
:root {
    --primary-white: #ffffff;
    --text-dark-gray: #333333;
    --text-black: #000000;
    --highlight-orange: #FF6600;
    --light-gray: #f4f4f4;
    --medium-gray: #cccccc;
    --accent-blue: #007bff;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    text-align: justify;
    text-justify: inter-word;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout Base & Componentes Globais
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    text-align: center;
}

.bg-light {
    background-color: var(--light-gray);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.3em;
    color: var(--text-dark-gray);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--highlight-orange);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Botões Institucionais */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.4s ease;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background-color: var(--highlight-orange);
    color: var(--primary-white);
    font-size: 1.1em;
}

.btn-primary:hover {
    background-color: #e65c00;
}

.btn-header {
    background-color: var(--highlight-orange);
    color: var(--primary-white) !important;
    padding: 8px 16px !important;
    font-size: 0.85em !important;
    text-transform: none !important;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-weight: bold;
}

.btn-header:hover {
    background-color: #e65c00;
}

/* ==========================================================================
   Header (Cabeçalho)
   ========================================================================== */
.main-header {
    background-color: var(--primary-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.main-header .logo img {
    height: 40px;
    width: auto;
    display: block;
}

.main-nav-desktop {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.main-nav-desktop ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav-desktop ul li {
    white-space: nowrap;
}

.main-nav-desktop ul li a {
    font-size: 0.95em; 
    font-weight: 500;
    color: var(--text-dark-gray);
    padding-bottom: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.main-nav-desktop ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--highlight-orange);
    transition: width 0.3s ease-in-out;
}

.main-nav-desktop ul li a:hover {
    color: var(--highlight-orange);
}

.main-nav-desktop ul li a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1002;
}

/* ==========================================================================
   HERO Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('../00-media/img/hero-background.jpg') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-gray);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.hero-section .slogan {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-style: italic;
    font-weight: 300;
}

.hero-section .subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   SOBRE NÓS Section
   ========================================================================== */
.about-section > .container > p {
    font-size: 1.2em;
    max-width: 850px;
    margin: 0 auto 50px auto;
    line-height: 1.7;
}

.about-blocks {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.about-blocks .block {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.about-blocks .block:hover { transform: translateY(-5px); }

.about-blocks .block h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: var(--highlight-orange);
    margin-bottom: 15px;
}

.about-blocks .block ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1em;
}

.about-blocks .block ul li::before {
    content: '✓';
    color: var(--highlight-orange);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

/* ==========================================================================
   NOSSOS SERVIÇOS Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
    align-items: start;
}

.service-card {
    background-color: var(--primary-white);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: left;
    overflow: hidden;
}

.service-card:hover { transform: translateY(-5px); }

.service-card .service-title {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.service-card .service-title h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    color: var(--text-dark-gray);
    margin: 0;
    padding: 0 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card .service-title .toggle-icon {
    font-size: 2.2em;
    font-weight: 300;
    color: var(--highlight-orange);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.4s ease;
}

.service-card.active .service-title .toggle-icon { transform: translateY(-50%) rotate(45deg); }

.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 25px;
}

.service-card.active .service-details {
    max-height: 1200px;
    padding: 0 25px 25px 25px;
}

.service-details ul li {
    font-size: 0.95em;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-details ul li::before {
    content: '•';
    color: var(--highlight-orange);
    position: absolute;
    left: 0;
}

.service-details .project-item h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--highlight-orange);
    margin-top: 20px;
    margin-bottom: 5px;
}

.service-details .project-item p {
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* ==========================================================================
   METODOLOGIA Section
   ========================================================================== */
.methodology-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.methodology-flow .step {
    background-color: var(--light-gray);
    padding: 40px 18px 20px 18px;
    border-radius: 10px;
    flex: 1;
    min-width: 150px;
    max-width: 190px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.methodology-flow .step:hover { transform: translateY(-5px); }

.methodology-flow .step .step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--highlight-orange);
    color: var(--primary-white);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid var(--primary-white);
}

.methodology-flow .arrow {
    display: flex;
    align-items: center;
    font-size: 2em;
    color: var(--medium-gray);
}

/* ==========================================================================
   SEÇÃO DE CLIENTES & PARCEIROS
   ========================================================================== */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 20px;
    margin-top: 40px;
}

.client-box {
    background: var(--primary-white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc((100% / 6) - 17px); 
    min-width: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo img {
    max-width: 110px;
    max-height: 45px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-box:hover .client-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-location {
    font-size: 0.65em;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-dark-gray);
}

/* Parceiros */
.partner-box {
    background: var(--primary-white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 550px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.partner-logo img {
    max-width: 280px !important; 
    max-height: 100px !important;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-box:hover .partner-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-description {
    font-size: 0.95em;
    color: #555;
    margin: 20px 0;
    text-align: justify;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* ==========================================================================
   CONTATO Section
   ========================================================================== */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.contact-form {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--highlight-orange);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
}

.social-icons a img {
    width: 30px;
    height: 30px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 30px 0;
    border-top: 1px solid #e7e7e7;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-social a img {
    width: 24px;
    opacity: 0.7;
}

.footer-social a img:hover { opacity: 1; }

/* ==========================================================================
   Responsividade Geral
   ========================================================================== */
@media (max-width: 1200px) {
    .main-nav-desktop ul { gap: 15px; }
    .main-nav-desktop ul li a { font-size: 0.85em; }
    .client-box { width: calc((100% / 4) - 20px); }
}

@media (max-width: 1050px) {
    .main-nav-desktop { position: static; transform: none; margin: 0 auto; }
}

@media (max-width: 900px) {
    .main-nav-desktop { display: none; }
    .client-box { width: calc((100% / 3) - 20px); }
}

@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.8em; }
    .hero-section .slogan { font-size: 1.3em; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-content { flex-direction: column; }
    .main-footer .container { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 992px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid .service-card:nth-child(4):last-child { grid-column: 1 / -1; }
}