/**
 * ARTCOR MODERN - Landing modernizada com UX premium
 * Versão: 1.0 - Layout e interações premium
 */

/* ========================================
   UTILITÁRIOS GLOBAIS
   ======================================== */

/* Ocultar controles do hero */
#hero .hero-nav,
#hero .hero-dots,
#hero .progress,
#hero .progress-bar,
#hero .play-toggle,
#home .slideshow-controls,
#home .slideshow-nav,
#home .slideshow-indicators,
#home .slideshow-play-pause {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Classes de reveal */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   HERO SECTION - MODERNIZADO
   ======================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* iOS Safari */
    height: 100svh; /* unidades dinâmicas modernas */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    transform: translateZ(0); /* aceleração HW para iOS */
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: clamp(28px, 7vw, 44px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #FFD700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-and {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(14px, 3.5vw, 18px);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Scroll down arrow removido para melhor UX mobile */
.scroll-down {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ========================================
   SEÇÃO SERVIÇOS - MODERNIZADA
   ======================================== */

.services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #1E88E5;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E88E5, #FF9800);
    border-radius: 20px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.3);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================
   SEÇÃO PROJETOS - GRID MODERNO
   ======================================== */

.portfolio-section {
    padding: 80px 0;
    background: white;
}

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

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    position: relative;
    height: 280px; /* Aumentado para dar mais espaço */
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.9), rgba(255, 152, 0, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 1.5rem; /* Reduzido para dar mais espaço ao texto */
    box-sizing: border-box;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.3rem; /* Reduzido para caber melhor */
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

.portfolio-overlay p {
    font-size: 0.9rem; /* Reduzido para caber melhor */
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

.portfolio-overlay .btn {
    background: white;
    color: #1E88E5;
    border: none;
    padding: 8px 16px; /* Reduzido para caber melhor */
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem; /* Reduzido */
    transition: all 0.3s ease;
    white-space: nowrap;
}

.portfolio-overlay .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* ========================================
   SEÇÃO QUEM SOMOS - HIERARQUIA MELHORADA
   ======================================== */

.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.about-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 3rem;
}

.about-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E88E5;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    text-align: center;
}

/* ========================================
   SEÇÃO FUNDADOR - CONTADORES CORRIGIDOS
   ======================================== */

.founder-section {
    background: linear-gradient(135deg, #f0f2f5 0%, #e0e5ec 100%);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.founder-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.founder-image-wrapper {
    margin: 0 auto 30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 5px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #1E88E5, #FF9800);
    padding: 5px;
}

.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    transition: transform 0.3s ease;
}

.founder-photo:hover {
    transform: scale(1.05);
}

.founder-content {
    margin-bottom: 40px;
}

.founder-name {
    font-size: 3.5rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.founder-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.founder-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #FFD700;
    border-radius: 2px;
}

.founder-description {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.founder-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 24px;
    justify-items: center;
    max-width: 1000px;
    margin: 24px auto 0;
}

.stat {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 30px;
    min-height: 160px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    gap: 12px;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: 1;
}

.stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.count {
    font-size: 4rem;
    font-weight: 900;
    color: #1E88E5;
    text-shadow: 0 2px 4px rgba(30, 136, 229, 0.2);
    line-height: 1;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.stat:hover .count {
    color: #FF9800;
    transform: scale(1.05);
}

.label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    text-align: center;
}

.stat:hover .label {
    color: #1E88E5;
}

/* ========================================
   SEÇÃO PARCEIROS - GRID MODERNO
   ======================================== */

.partners-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 136, 229, 0.05), rgba(255, 152, 0, 0.05));
    z-index: 1;
}

.partners-header {
    position: relative;
    z-index: 2;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile otimizado para iOS */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 10px;
    }
}

.partner-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px; /* Altura mínima para consistência */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Mobile otimizado para iOS */
@media (max-width: 768px) {
    .partner-card {
        padding: 20px;
        min-height: 180px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .partner-card {
        padding: 16px;
        min-height: 160px;
        border-radius: 10px;
    }
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #1E88E5;
}

.partner-card:hover::before {
    opacity: 1;
}

.partner-logo {
    width: 160px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile otimizado para iOS */
@media (max-width: 768px) {
    .partner-logo {
        width: 140px;
        height: 70px;
        margin-bottom: 15px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .partner-logo {
        width: 120px;
        height: 60px;
        margin-bottom: 12px;
        padding: 6px;
    }
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.75);
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.04);
}

.partner-info {
    text-align: left;
    position: relative;
    z-index: 2;
}

.partner-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.partner-card:hover .partner-name {
    color: #1E88E5;
}

.partner-card:hover .partner-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #1E88E5, #FF9800);
    border-radius: 1px;
}

.partner-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

.partner-location {
    font-size: 0.85rem;
    color: #adb5bd;
    font-weight: 400;
}

/* ========================================
   SEÇÃO PROTECTROOF - CORRIGIDA PARA iOS
   ======================================== */

/* CSS removido - usando inline style no HTML */

/* Evita background-attachment: fixed no iOS */
@supports (-webkit-touch-callout: none) {
    .protectroof-feature-section {
        background-attachment: scroll !important;
    }
}

/* .protectroof-feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
} */

.protectroof-feature-section .container {
    position: relative;
    z-index: 2;
}

.miaki-feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.8), rgba(255, 152, 0, 0.8));
    z-index: 1;
}

.miaki-feature-section .container {
    position: relative;
    z-index: 2;
}

.protectroof-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    padding: 35px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    min-height: auto; /* Remove altura mínima fixa */
}

/* Mobile otimizado para iOS */
@media (max-width: 768px) {
    .protectroof-card {
        padding: 25px;
        margin: 0 15px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .protectroof-card {
        padding: 20px;
        margin: 0 10px;
        border-radius: 12px;
    }
}

.protectroof-logo-box {
    background-color: #1a2332;
    border: 3px solid #1E88E5;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-height: 80px; /* Altura mínima para evitar achatamento */
    transition: all 0.3s ease;
}

.protectroof-logo-box:hover {
    background-color: #0d1117;
    border-color: #FF9800;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.protectroof-logo {
    max-width: 180px;
    height: auto;
    display: block;
    object-fit: contain; /* Preserva proporções */
    max-height: 60px; /* Altura máxima para evitar achatamento */
}

/* Mobile otimizado para iOS */
@media (max-width: 768px) {
    .protectroof-logo-box {
        padding: 15px;
        margin-bottom: 25px;
        min-height: 70px;
    }
    
    .protectroof-logo {
        max-width: 150px;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .protectroof-logo-box {
        padding: 12px;
        margin-bottom: 20px;
        min-height: 60px;
    }
    
    .protectroof-logo {
        max-width: 120px;
        max-height: 40px;
    }
}

.miaki-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1E88E5;
    margin-bottom: 15px;
    line-height: 1.2;
}

.miaki-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.miaki-info-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.miaki-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #444;
    font-weight: 500;
}

.miaki-icon {
    color: #1E88E5;
    font-size: 1.2rem;
}

.miaki-divider {
    width: 80px;
    height: 3px;
    background-color: #e5e7eb;
    margin: 30px auto;
    border-radius: 2px;
}

.miaki-cta-btn {
    display: inline-block;
    background: linear-gradient(45deg, #1E88E5, #FF9800);
    color: #fff;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.miaki-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* ========================================
   SEÇÃO VALORES - CARDS MODERNOS
   ======================================== */

.values-section {
    padding: 80px 0;
    background: white;
}

.value-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.05), rgba(255, 152, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-card:hover::before {
    opacity: 1;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #1E88E5;
}

.value-number {
    font-size: 3rem;
    font-weight: 900;
    color: #1E88E5;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E88E5, #FF9800);
    border-radius: 15px;
    color: white;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.value-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.value-description {
    color: #6c757d;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* ========================================
   SEÇÃO CONTATO - FORMULÁRIO MODERNO
   ======================================== */

.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1E88E5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
    outline: none;
}

.btn-submit {
    background: linear-gradient(45deg, #1E88E5, #FF9800);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
}

.contact-info {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1E88E5, #FF9800);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.contact-text h5 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: #6c757d;
    margin: 0;
}

/* ========================================
   RODAPÉ MODERNO
   ======================================== */

.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #FFD700;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #1E88E5;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
    color: #95a5a6;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #1E88E5;
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVIDADE E OTIMIZAÇÃO DE IMAGENS
   ======================================== */

/* Otimização de imagens para mobile */
.portfolio-img,
.partner-logo-img {
    transform: translateZ(0);
    will-change: transform;
    image-rendering: optimizeSpeed;
    image-rendering: -webkit-optimize-contrast;
}

/* Lazy loading otimizado */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Prevenção de layout shift */
.portfolio-image {
    aspect-ratio: 4/3;
}

.partner-logo {
    aspect-ratio: 2/1;
}

.founder-image-wrapper {
    aspect-ratio: 1/1;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .founder-stats {
        grid-template-columns: repeat(3, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .founder-stats {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        max-width: 700px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .founder-stats {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-image {
        height: 250px; /* Otimizado para mobile */
    }
    
    .portfolio-img {
        object-fit: cover;
        object-position: center top; /* Melhor enquadramento para mobile */
    }
    
    .portfolio-overlay {
        padding: 1rem; /* Reduzido em mobile */
    }
    
    .portfolio-overlay h4 {
        font-size: 1.1rem; /* Ainda menor em mobile */
        margin-bottom: 0.3rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.8rem; /* Ainda menor em mobile */
        margin-bottom: 0.8rem;
    }
    
    .portfolio-overlay .btn {
        padding: 6px 12px; /* Ainda menor em mobile */
        font-size: 0.8rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .partner-logo {
        width: 140px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .partner-logo-img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .about-card,
    .contact-form,
    .contact-info {
        padding: 2rem;
    }
    
    .miaki-card {
        padding: 25px;
    }
    
    .portfolio-image {
        height: 220px; /* Otimizado para telas muito pequenas */
    }
    
    .portfolio-img {
        object-fit: cover;
        object-position: center;
    }
    
    .portfolio-overlay {
        padding: 0.8rem; /* Mínimo em telas muito pequenas */
    }
    
    .portfolio-overlay h4 {
        font-size: 1rem; /* Mínimo em telas muito pequenas */
        margin-bottom: 0.2rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.75rem; /* Mínimo em telas muito pequenas */
        margin-bottom: 0.6rem;
    }
    
    .portfolio-overlay .btn {
        padding: 5px 10px; /* Mínimo em telas muito pequenas */
        font-size: 0.75rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .partner-logo {
        width: 120px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .founder-image-wrapper {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .service-card,
    .portfolio-item,
    .partner-card,
    .value-card {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

@media (prefers-contrast: high) {
    .service-card,
    .portfolio-item,
    .partner-card,
    .value-card {
        border: 2px solid #000;
    }
}

/* Focus states */
.btn:focus,
.form-control:focus,
.portfolio-item:focus {
    outline: 2px solid #1E88E5;
    outline-offset: 2px;
}

/* ========================================
   PERFORMANCE E iOS FIXES
   ======================================== */

.service-card,
.portfolio-item,
.partner-card,
.value-card {
    will-change: transform;
}

.hero-slide {
    will-change: opacity;
}

/* Evita "background-attachment: fixed" no iOS */
@supports (-webkit-touch-callout: none) {
    .parallax { 
        background-attachment: scroll !important; 
    }
}

/* Melhora gesto de toque no slider */
.hero-section { 
    touch-action: pan-y; 
}

/* Header fixo profissional para iOS */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(180%) blur(8px);
    background: rgba(10, 14, 22, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10, 14, 22, 0.9);
}

/* Logo otimizada para mobile - tamanho reduzido */
.navbar-brand .logo {
    height: 32px; /* Reduzido significativamente */
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .navbar-brand .logo {
        height: 36px; /* Apenas um pouco maior no tablet */
        max-width: 140px;
    }
}

@media (min-width: 992px) {
    .navbar-brand .logo {
        height: 40px; /* Tamanho adequado para desktop */
        max-width: 160px;
    }
}

/* Botões responsivos para iPhone */
.hero-buttons .btn {
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: clamp(14px, 3vw, 16px);
}

@media (max-width: 767px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}
