/* Responsive Styles Mobile */

/* ! Media Queries Padrao*/
@media (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 768px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: none;
        width: 100%;
    }
    
    .about-image {
        margin-top: var(--spacing-md);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 576px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 100px;
        right: -100%;      /* Adicione esta linha */
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: var(--spacing-lg);
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-list.active {
        right: 0;         /* Adicione esta linha */
    }
    
    .nav-list li {
        margin: 0 0 var(--spacing-md);
    }
    
    .nav-list .btn-contact {
        padding: 12px 24px;
        font-size: 1.1rem;
        border-radius: 6px;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        flex-direction: column;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .headquarters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .headquarters-image {
        height: 250px;
    }
    
    .headquarters-intro p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .headquarters-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .headquarters-image {
        height: 200px;
    }
    
    .headquarters-intro p {
        font-size: 0.9rem;
    }
    
    .headquarters-overlay p {
        font-size: 0.9rem;
    }
}

/* Mobile Menu Animation */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* ! Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ! Print Styles */
@media print {
    .header, .footer, .cta {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

.about-content {
    flex-direction: column;
}

.about-text, .about-image {
    flex: none;
    width: 100%;
}

.about-image {
    margin-top: var(--spacing-md);
}

/* ! HERO SECTION Responsividade */
@media (max-width: 1200px) {
    .hero-content h2 {
        font-size: 2.4rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    

}

@media (max-width: 992px) {

}

@media (max-width: 768px) {
    .hero-modern {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-image-area {
        height: 100%;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
    
    .nav-arrow i {
        font-size: 1rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .hero-modern {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-image-area {
        height: 100%;
    }
}

/* Animações adicionais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content.active h2 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content.active p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-content.active .hero-cta {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-content.active .hero-cta-btn {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Melhorias de acessibilidade */
.nav-arrow:focus,
.indicator:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Estados de loading */
.hero-image.loading {
    opacity: 0.5;
}

/* Transições suaves para imagens */
.hero-image img {
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Efeito de parallax sutil */
.hero-image.active img {
    transform: scale(1.02);
}

/* Melhorias para dispositivos de alta resolução */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* * Hero caixa de texto */
@media (max-width: 1200px) {
    .hero-text-box {
        padding: 3rem 2rem;
        width: 95% !important;
        max-width: 500px !important;
        min-height: 600px !important;
        left: 50%;
        right: auto;
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        justify-content: flex-start;
    }
}

@media (max-width: 992px) {
    .hero-text-box {
        width: 80%;
        max-width: 380px;
        padding: 2rem;
        top: 55%;
        right: 4%;
    }
}

@media (max-width: 768px) {
    .hero-text-box {
        background: rgba(13, 36, 32, 0.2);
        padding: 3rem 2rem;
        width: 95% !important;;
        max-width: 350px !important;
        min-height: 500px !important;
        left: 50%;
        right: auto;
        top: 58%;
        bottom: auto;
        transform: translate(-50%, -50%);
        justify-content: flex-start;
    }
    
    .hero-content-slider {
        margin-bottom: 2rem;
    }
    
    .hero-content h3 {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-cta-container {
        margin-bottom: 2rem;
    }
    
    .hero-cta-btn {
        font-size: 0.8rem;
        padding: 10px 20px;
    }
    
    .hero-navigation {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-text-box {
        background: rgba(13, 36, 32, 0.2);
        padding: 3rem 2rem;
        width: 95% !important;
        max-width: 350px !important; 
        min-height: 500px !important;
        left: 50%;
        right: auto;
        top: 58%;
        bottom: auto;
        transform: translate(-50%, -50%);
        justify-content: flex-start;
    }
    
    .hero-content-slider {
        margin-bottom: 1.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta-container {
        margin-bottom: 1.5rem;
    }
    
    .hero-cta-btn {
        font-size: 0.75rem;
        padding: 8px 16px;
        width: auto;
        text-align: center;
    }
    
    .hero-navigation {
        margin-top: 1.5rem;
        gap: 1rem;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
    
    .nav-arrow i {
        font-size: 1rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}


/* ! OPERACAO Responsive Design */
@media (max-width: 992px) {
    .glass-cards {
        grid-template-columns: 1fr;
        width: 550px;
        margin: 0 auto;
        gap: 1.5rem;
    }
    
    .glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }
    
    .glass-icon {
        font-size: 3rem;
    }
    
    .glass-card h4 {
        font-size: 1.3rem;
    }
    
    .glass-card p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .glass-cards {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 1.5rem;
        padding: 0;
    }
    
    .glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }
    
    .glass-icon {
        font-size: 3rem;
    }
    
    .glass-card h4 {
        font-size: 1.3rem;
    }
    
    .operation-title h3::before,
    .operation-title h3::after {
        display: none;
    }
    
    .operation-title h3 {
        font-size: 1.5rem;
    }
    
    .glass-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Responsividade para O ESCRITÓRIO */
    .escritorio-header h2 {
        font-size: 2rem;
    }
    
    .escritorio-description {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .about-summary-glass {
        padding: 3rem 0;
    }
    
    .glass-card {
        padding: 2rem 1rem;
        margin: 0 0.5rem;
    }
    
    .glass-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .glass-card h4 {
        font-size: 1.2rem;
    }
    
    .glass-card p {
        font-size: 0.95rem;
    }
    
    /* Responsividade para O ESCRITÓRIO em mobile */
    .escritorio-header h2 {
        font-size: 1.8rem;
    }
    
    .escritorio-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        margin-bottom: 2.5rem;
    }
}

/* ! Socio Fundador Responsividade */
@media (max-width: 1024px) {
    .founder-layout-new {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        max-width: 800px; /* Aumentado para aproveitar melhor o espaço */
    }
    
    .founder-photo-container {
        order: -1;
    }
    
    .founder-photo-vertical {
        height: 400px;
        min-height: 400px;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .founder-content {
        padding: var(--spacing-md);
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .founder-layout-new {
        max-width: 600px; /* Aumentado para aproveitar melhor o espaço */
    }
    
    .founder-photo-vertical {
        height: 350px;
        min-height: 350px;
        max-width: 300px;
    }
    
    .founder-content {
        padding: var(--spacing-sm);
    }
    
    .founder-name {
        font-size: 1.8rem;
    }
    
    .founder-title-role {
        font-size: 1rem;
    }
    
    .founder-bio p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
}

@media (max-width: 576px) {
    
    .founder-layout-new {
        padding: 0 var(--spacing-sm);
        max-width: 500px; /* Aumentado para aproveitar melhor o espaço */
    }
    
    .founder-photo-vertical {
        height: 400px;
        min-height: 400px;
        max-width: 100%; /* Removida a limitação de largura para que a imagem tenha a mesma largura do box de texto */
    }
    
    .founder-content {
        padding: var(--spacing-sm);
    }
    
    .founder-name {
        font-size: 1.6rem;
    }
    
    .founder-header {
        margin-bottom: var(--spacing-sm);
    }
    
    .founder-bio p {
        margin-bottom: 0.7rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .founder-specialties-horizontal .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .founder-specialties-horizontal .specialties-grid {
        grid-template-columns: 2fr;
        grid-template-rows: repeat(8, 1fr);
    }

    .founder-specialties-horizontal{
        width: 100%;
        max-width: 90.5%;
    }
}


/* ! Responsive Contact Page */

/*  tirar a quebra dos textos do mobile */
@media (max-width: 992px) {
    .form-card h2 br {
        display: none;
    }

    .info-card h2 br {
        display: none;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    .form-card,
    .info-card {
        padding: var(--spacing-md);
        min-height: unset;
    }
    .social-links-contact-outside {
        margin-top: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: var(--spacing-lg) 0;
    }
    .form-card,
    .info-card {
        padding: var(--spacing-sm);
    }
    .social-links-contact-outside {
        padding-top: var(--spacing-sm);
        margin-top: var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    .contact-banner {
        padding: 80px 0 30px;
        padding-top: 130px; /* Evita sobreposição do header fixo no mobile */
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .contact-section {
        padding: var(--spacing-lg) 0;
    }
    
    .form-card,
    .info-card {
        padding: var(--spacing-sm);
    }
    
    .contact-item {
        padding: var(--spacing-sm);
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
}

/* * Responsive Design for Contact Page */
@media (max-width: 992px) {
    .contact-grid {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    .form-card,
    .info-card {
        padding: var(--spacing-md);
        min-height: unset;
    }
    .social-links-contact-outside {
        margin-top: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: var(--spacing-lg) 0;
    }
    .form-card,
    .info-card {
        padding: var(--spacing-sm);
    }
    .social-links-contact-outside {
        padding-top: var(--spacing-sm);
        margin-top: var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    .contact-banner {
        padding: 80px 0 30px;
        padding-top: 130px; /* Evita sobreposição do header fixo no mobile */
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .contact-section {
        padding: var(--spacing-lg) 0;
    }
    
    .form-card,
    .info-card {
        padding: var(--spacing-sm);
    }
    
    .contact-item {
        padding: var(--spacing-sm);
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
}

/* ! Footer Responsive Styles */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo img {
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
        height: auto;
        display: block;
        margin-top: -50px;
        margin-bottom: 50px;
    }

     .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-contact,
    .footer-contact ul {
        text-align: center !important;
    }
    
    .footer-contact li {
        justify-content: center !important;
    }
    
    .social-links {
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 576px) {
    .footer-logo img {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        height: auto;
        display: block;
        margin-top: -50px;
        margin-bottom: 50px;
    }
}

/* Footer Default Styles */
.footer-links {
    text-align: center;
}

.footer-contact {
    text-align: left;
}

.footer-contact ul {
    text-align: left;
}

.footer-contact li {
    display: flex;
    align-items: center;
}
