/* ===== Mobile Responsive Styles ===== */
/* Ana Claudia Costa Arquitetura - Versão Mobile Elegante */

/* ===== Body Lock when Menu Open ===== */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ===== Mobile Detection & Base ===== */
@media (max-width: 768px) {
    
    /* ===== Typography Mobile ===== */
    html {
        font-size: 15px;
    }
    
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* ===== Header Mobile ===== */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 99998;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    }
    
    .header.scrolled {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .header .container {
        height: 64px;
        padding: 0 20px;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .header-cta {
        display: none !important;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    
    .mobile-toggle:active {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .mobile-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Mobile Navigation Menu */
    .nav.active {
        display: block !important;
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: calc(100vh - 64px) !important;
        height: calc(100dvh - 64px) !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav.active .nav-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 24px 20px !important;
        margin: 0 !important;
        list-style: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav.active .nav-list li {
        display: block !important;
        border-bottom: 1px solid #f0f0f0;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav.active .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav.active .nav-link {
        display: block !important;
        padding: 18px 0 !important;
        font-size: 1.125rem !important;
        font-weight: 500 !important;
        color: #1a1a2e !important;
        text-decoration: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav.active .nav-link:active {
        color: #c9a962 !important;
    }
    
    /* ===== DOBRA 1: Hero Section Mobile - Impacto Imediato ===== */
    .hero {
        padding: 90px 0 48px;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        text-align: center;
        background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    }
    
    .hero-bg {
        display: none;
    }
    
    .hero-content {
        padding: 0 12px;
    }
    
    .hero-badge {
        font-size: 0.6875rem;
        padding: 8px 14px;
        margin-bottom: 24px;
        letter-spacing: 0.5px;
        background: var(--accent);
        color: white;
        border-radius: 20px;
        display: inline-block;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.15;
        margin-bottom: 20px;
        font-weight: 600;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-title .highlight {
        color: var(--accent);
        font-style: italic;
    }
    
    .hero-subtitle {
        font-size: 1.0625rem;
        line-height: 1.75;
        margin-bottom: 36px;
        color: var(--gray-600);
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 14px;
    }
    
    .hero-cta .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 18px 28px;
        font-size: 1.0625rem;
        font-weight: 600;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(201, 169, 98, 0.3);
    }
    
    .hero-cta .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1rem;
        border-radius: 12px;
        border: 2px solid var(--gray-300);
        color: var(--primary);
    }
    
    /* Stats on mobile */
    .hero-stats {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        gap: 0;
        padding: 1.5rem 0;
    }
    
    .hero-stats .stat {
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero-stats .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-scroll {
        display: none;
    }
    
    /* ===== Section Headers Mobile ===== */
    .section-header {
        margin-bottom: 28px;
        text-align: center;
        padding: 0 8px;
    }
    
    .section-badge {
        font-size: 0.625rem;
        padding: 6px 12px;
        margin-bottom: 12px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }
    
    .section-title {
        font-size: 1.625rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 0.9375rem;
        line-height: 1.65;
        color: #4b5563;
    }
    
    /* ===== Sections Mobile ===== */
    section {
        padding: 56px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* ===== DOBRA 2: Diferenciais Mobile - Prova Social Rápida ===== */
    .diferenciais {
        padding: 48px 0;
        background: #fff;
    }
    
    .diferenciais-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Show only first 3 cards on mobile for faster scanning */
    .diferencial-card:nth-child(n+4) {
        display: none;
    }
    
    .diferencial-card {
        padding: 20px;
        border-radius: 14px;
        display: flex;
        align-items: flex-start;
        gap: 16px;
        background: #f9fafb;
        border: none;
        box-shadow: none;
    }
    
    .diferencial-card h3 {
        color: #1a1a2e;
    }
    
    .diferencial-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        margin-bottom: 0;
        border-radius: 12px;
    }
    
    .diferencial-icon i {
        font-size: 1.125rem;
    }
    
    .diferencial-card h3 {
        font-size: 1rem;
        margin-bottom: 4px;
        text-align: left;
    }
    
    .diferencial-card p {
        font-size: 0.875rem;
        line-height: 1.55;
        text-align: left;
        color: #4b5563;
    }
    
    /* ===== DOBRA 3: Cases/Projects Grid Mobile - Portfólio Visual ===== */
    .cases {
        padding: 48px 0 56px;
        background: #f9fafb;
    }
    
    /* Hide filter on mobile for cleaner experience */
    .cases-filter {
        display: none !important;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Show only first 4 cases on mobile */
    .case-card:nth-child(n+5) {
        display: none;
    }
    
    .case-card {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        background: #fff;
    }
    
    .case-image {
        width: 100%;
        height: 220px;
        position: relative;
        overflow: hidden;
    }
    
    .case-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.4s ease;
    }
    
    .case-info {
        padding: 16px 18px;
        background: #fff;
        text-align: center;
    }
    
    .case-info h3 {
        font-size: 1.0625rem;
        margin-bottom: 4px;
        color: #1a1a2e;
        text-align: center;
    }
    
    .case-info p {
        font-size: 0.8125rem;
        color: #6b7280;
        text-align: center;
    }
    
    /* Remove pseudo-element CTA - will add real button */
    .cases-grid::after {
        display: none !important;
    }
    
    /* Mobile CTA Button for Cases */
    .cases-cta-mobile {
        display: block;
        text-align: center;
        margin-top: 24px;
    }
    
    .cases-cta-mobile .btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 14px 28px;
        font-size: 0.9375rem;
        font-weight: 600;
        color: #c9a962;
        border: 2px solid #c9a962;
        border-radius: 10px;
        background: transparent;
    }
    
    .cases-cta-mobile .btn:active {
        background: #c9a962;
        color: #fff;
    }
    
    /* ===== Metodologia Mobile - Cores Corrigidas ===== */
    .metodologia {
        padding: 48px 0;
        background: #fff;
    }
    
    .metodologia .section-title {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    .metodologia .section-title .title-highlight {
        color: #c9a962 !important;
        font-weight: 700 !important;
    }
    
    .metodologia .section-subtitle {
        color: #1a1a2e !important;
        font-weight: 500 !important;
    }
    
    /* Journey Steps - Cores corrigidas para preto */
    .step-number span {
        color: #ffffff !important;
        font-weight: 700 !important;
    }
    
    .step-header h3 {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    .step-tag {
        color: #c9a962 !important;
        font-weight: 600 !important;
    }
    
    .step-description {
        color: #000000 !important;
        font-weight: 500 !important;
    }
    
    .step-features li {
        color: #000000 !important;
        font-weight: 500 !important;
    }
    
    .step-features li i {
        color: #10b981 !important;
    }
    
    .step-content p {
        color: #000000 !important;
        font-weight: 500 !important;
    }
    
    .step-card {
        color: #000000 !important;
    }
    
    .step-card * {
        color: #000000;
    }
    
    .step-card h3 {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    /* Corrigir textos específicos em branco para preto */
    .step-highlight {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    .step-card strong,
    .step-card em,
    .step-card b {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    .step-description strong,
    .step-description em {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    /* Stats/Números abaixo de Acompanhamento */
    .journey-stats {
        color: #000000 !important;
    }
    
    .journey-stats .stat-number,
    .journey-stats .stat-value,
    .journey-stats span,
    .journey-stats strong {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    .metodologia-stats,
    .metodologia-stats * {
        color: #000000 !important;
    }
    
    .metodologia-stats .stat-number,
    .metodologia-stats .stat-value {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    /* Qualquer número ou estatística na metodologia */
    .metodologia .stat,
    .metodologia .stat * {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    .final-stats,
    .final-stats * {
        color: #000000 !important;
    }
    
    .final-stats .number,
    .final-stats .value,
    .final-stats strong {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    /* Summary cards abaixo de Acompanhamento */
    .metodologia-summary {
        flex-direction: column;
        gap: 16px;
    }
    
    .summary-card {
        background: #fff !important;
        border: 1px solid #e5e7eb;
    }
    
    .summary-number {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    .summary-text {
        color: #000000 !important;
        font-weight: 500 !important;
    }
    
    .summary-content span {
        color: #000000 !important;
    }
    
    .summary-icon {
        background: #c9a962 !important;
    }
    
    .summary-icon i {
        color: #ffffff !important;
    }
    
    /* Step highlight box */
    .step-highlight-box {
        color: #000000 !important;
        background: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
    }
    
    .step-highlight-box span {
        color: #000000 !important;
        font-weight: 600 !important;
    }
    
    .step-highlight-box i {
        color: #c9a962 !important;
    }
    
    /* ===== Depoimentos Mobile ===== */
    .depoimentos-slider {
        padding: 0;
    }
    
    .depoimento-card {
        padding: 24px 20px;
        margin: 0 8px;
        border-radius: 16px;
    }
    
    .depoimento-text {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .depoimento-author {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .depoimento-avatar {
        width: 56px;
        height: 56px;
    }
    
    .depoimento-name {
        font-size: 1rem;
    }
    
    .depoimento-role {
        font-size: 0.8125rem;
    }
    
    /* ===== Sobre Mobile ===== */
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sobre-image {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .experience-badge {
        right: -8px;
        bottom: -16px;
        width: 80px;
        height: 80px;
    }
    
    .experience-badge .years {
        font-size: 1.5rem;
    }
    
    .experience-badge .text {
        font-size: 0.5rem;
    }
    
    .sobre-content h2 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .sobre-content p {
        font-size: 0.9375rem;
        line-height: 1.7;
        text-align: center;
    }
    
    .sobre-highlights {
        gap: 12px;
    }
    
    .sobre-highlight {
        padding: 16px;
        border-radius: 12px;
    }
    
    /* ===== Contact Form Mobile ===== */
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-form {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
    }
    
    /* ===== Footer Mobile - Redesign Elegante ===== */
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 2rem;
        padding-bottom: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        flex: none;
        width: 100%;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .footer-tagline {
        font-size: 0.875rem;
        line-height: 1.6;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1.5rem;
        justify-content: center;
        display: none;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h4 {
        margin-bottom: 0.75rem;
    }
    
    .footer-col-contact ul li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.25rem 0;
    }
    
    .footer-social {
        justify-content: center;
        order: 1;
    }
    
    .footer-copyright {
        order: 2;
        font-size: 0.75rem;
    }
    
    /* ===== Floating Buttons Mobile ===== */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-float i {
        font-size: 1.5rem;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 88px;
        width: 44px;
        height: 44px;
    }
    
    /* ===== Buttons Mobile ===== */
    .btn {
        padding: 14px 24px;
        font-size: 0.9375rem;
        border-radius: 10px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-lg {
        padding: 16px 28px;
        font-size: 1rem;
    }
    
    .btn i {
        margin-left: 8px;
    }
    
    /* ===== Animations Mobile ===== */
    [data-aos] {
        transition-duration: 0.4s !important;
    }
    
    [data-aos="fade-up"] {
        transform: translateY(20px);
    }
    
    [data-aos="fade-right"],
    [data-aos="fade-left"] {
        transform: translateY(20px);
    }
}

/* ===== Extra Small Devices ===== */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        padding: 20px 16px;
    }
    
    .diferencial-card {
        padding: 20px;
    }
    
    .depoimento-card {
        padding: 20px 16px;
    }
    
    .contact-form {
        padding: 20px 16px;
    }
}

/* ===== Touch Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .case-card:hover,
    .diferencial-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .case-card:active {
        transform: scale(0.99);
    }
    
    a, button {
        -webkit-tap-highlight-color: rgba(201, 169, 98, 0.2);
    }
}

/* ===== Safe Area for Notched Devices ===== */
@supports (padding: max(0px)) {
    .header .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .nav.active {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    
    .footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    
    .whatsapp-float {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
    }
}

/* ===== Landscape Mode Mobile ===== */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-stats .stat {
        flex: 0 0 auto;
        min-width: 120px;
    }
    
    .nav.active {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav.active .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
    }
    
    .nav.active .nav-link {
        padding: 12px 16px;
        border-bottom: none;
        border-right: 1px solid rgba(0, 0, 0, 0.06);
    }
}
