/* 
    Advix TI - Estilos Otimizados para Responsividade Mobile
    Corrigido: Logo, Menu Mobile, Espaçamentos, Botões e Alinhamentos
*/

:root {
    --primary-color: #164078;
    --secondary-color: #007bff;
    --text-color: #2d3748;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Header */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    display: block;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.header-cta .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1001;
    padding: 8px;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0e2a50;
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #64748b;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.features-list {
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.features-list i {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* Services Section - Flip Card */
.services {
    background-color: var(--light-bg);
}

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

.service-card {
    background: transparent;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front, .service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.service-card-front {
    background-color: var(--white);
    color: var(--text-color);
}

.service-card-back {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0e2a50 100%);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card-front h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card-back p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.contact-info > p {
    margin-bottom: 30px;
    color: #64748b;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.info-item i {
    color: var(--primary-color);
    width: 25px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: inherit;
}

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

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

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 64, 120, 0.1);
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

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

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

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

.main-footer p {
    font-size: 0.95rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

/* Responsive - Tablet (992px) */
@media (max-width: 992px) {

    html,
    body {
        overflow-x: hidden;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: fixed;
        top: 71px;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: calc(100vh - 71px);
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        padding: 20px;
        z-index: 999;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav ul li {
        border-bottom: 1px solid #f1f5f9;
        padding: 15px 0;
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        width: 100%;
        font-size: 1.1rem;
    }

    .header-cta {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Responsive - Mobile (768px) */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 14px 20px;
    }

    .service-card {
        height: 250px;
    }

    .service-card-front h3 {
        font-size: 1.1rem;
    }

    .service-card-back p {
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form .form-group {
        margin-bottom: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 16px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* Responsive - Small Mobile (480px) */
@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .header-content {
        gap: 10px;
    }

    .main-nav {
        top: 64px;
        padding: 15px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .features-list li {
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card h3 {
        font-size: 1.2rem;
    }

    .service-card {
        height: 220px;
    }

    .service-card .icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .service-card-front h3 {
        font-size: 1rem;
    }

    .service-card-back p {
        font-size: 0.85rem;
    }

    .contact-info h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .contact-info > p {
        margin-bottom: 20px;
        font-size: 0.95rem;
    }

    .info-item {
        margin-bottom: 15px;
        font-size: 0.95rem;
    }

    .contact-form .form-group {
        margin-bottom: 12px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 16px;
        border-radius: 4px;
    }

    .btn {
        padding: 11px 18px;
        font-size: 0.9rem;
    }

    .main-footer {
        padding: 30px 0;
    }

    .footer-social {
        gap: 15px;
    }

    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

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

    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 20px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Extra Small Mobile (360px) */
@media (max-width: 360px) {
    .logo img {
        height: 35px;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .service-card {
        height: 200px;
    }

    .service-card .icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}


/* 
   Ajuste Final: Logo Extra e Cabeçalho Estável - Advix TI
   Instruções: Substitua as regras anteriores ou adicione ao final do style.css
*/

/* 1. Forçar o cabeçalho a ser estável (sem mudar padding no scroll) */
.main-header {
    padding: 15px 0 !important; /* Mantém o preenchimento fixo */
    transition: none !important; /* Remove animações de movimento */
}

/* 2. Tamanho Extra para a Logo no Desktop */
.logo img {
    height: 100px !important; /* Aumentado para 100px para maior destaque */
    width: auto !important;
    transition: none !important; /* Remove qualquer redimensionamento no scroll */
}

/* 3. Ajustes para Dispositivos Móveis */
@media (max-width: 768px) {
    .logo img {
        height: 75px !important; /* Logo maior no mobile também */
    }
    
    .main-header {
        padding: 10px 0 !important;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 65px !important;
    }
}

/* 4. Resetar possíveis estilos injetados via JavaScript (JS do main.js) */
.main-header[style] {
    padding: 15px 0 !important;
    background-color: #ffffff !important;
}
