/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .title-fellow {
        font-size: 4rem;
    }
    
    .title-tricologia {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .course-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .coordinator-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Ocultar botão de inscrição no header mobile - múltiplas regras para garantir */
    .cta-button.btn-inscription,
    a.cta-button.btn-inscription,
    .header .cta-button,
    .header a[href*="payment-link"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .nav-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(18, 85, 122, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        flex-direction: column !important;
        padding: 1rem !important;
        box-shadow: var(--shadow-lg) !important;
        border-radius: 0 0 15px 15px !important;
        z-index: 1001 !important;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu .nav-link {
        color: white !important;
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        font-size: 1.1rem !important;
        text-align: center !important;
    }
    
    .nav-menu .nav-link:hover {
        color: var(--accent-yellow) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        cursor: pointer !important;
        gap: 4px !important;
        padding: 8px !important;
        border: none !important;
        background: transparent !important;
        z-index: 1002 !important;
    }
    
    .mobile-menu-toggle span {
        width: 25px !important;
        height: 3px !important;
        background: white !important;
        transition: all 0.3s ease !important;
        border-radius: 2px !important;
    }
    
    /* Animação do ícone hambúrguer quando ativo */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }
    
    
    .header {
        background: #12557A !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .logo-img {
        filter: brightness(0) invert(1) !important;
    }
    
    .cta-button {
        display: none;
    }
    
    .hero-section {
        padding-top: 100px;
        height: 100vh;
        padding-bottom: 4rem;
    }
    
    /* Garantir letras brancas na hero section mobile */
    .hero-section * {
        color: white !important;
    }
    
    .hero-title,
    .title-fellow,
    .title-em,
    .title-tricologia,
    .hero-subtitle,
    .hero-description,
    .highlight-item {
        color: white !important;
    }
    
    /* CSS mais específico para as frases solicitadas */
    .hero-section .hero-description {
        color: white !important;
    }
    
    .hero-section .highlight-item span {
        color: white !important;
    }
    
    .hero-section .hero-subtitle {
        color: white !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-fellow {
        font-size: 3rem;
    }
    
    .title-em {
        font-size: 2rem;
    }
    
    .title-tricologia {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-highlights {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .image-container {
        width: 300px;
        height: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-course-section,
    .coordination-section,
    .program-section,
    .investment-section,
    .registration-section,
    .contact-section {
        padding: 4rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .course-stats {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .program-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
    }
    
    .tab-content {
        padding: 2rem 1rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .meetings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .evaluation-info {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        grid-template-columns: 1fr;
    }
    
    .registration-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .registration-cta {
        padding: 2rem 1rem;
    }
    
    .email-contact {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-fellow {
        font-size: 2.5rem;
    }
    
    .title-em {
        font-size: 1.5rem;
    }
    
    .title-tricologia {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .coordinator-name {
        font-size: 1.5rem;
    }
    
    .coordinator-title {
        font-size: 1rem;
    }
    
    .coordinator-description {
        font-size: 1rem;
    }
    
    .meetings-grid {
        grid-template-columns: 1fr;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .includes {
        padding: 1.5rem;
    }
    
    .investment-cta {
        padding: 0 1.5rem 1.5rem;
    }
    
    .timeline-item {
        padding: 1.5rem;
    }
    
    .registration-cta {
        padding: 1.5rem 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-fellow {
        font-size: 2.5rem;
    }
    
    .title-tricologia {
        font-size: 1.5rem;
    }
    
    .image-container {
        width: 200px;
        height: 200px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background::before {
        background-size: 50px 50px;
    }
}

/* Print Styles */
@media print {
    .header,
    .scroll-indicator,
    .hero-actions,
    .cta-button,
    .btn-primary,
    .btn-secondary,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-background {
        background: white !important;
    }
    
    .hero-content {
        color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        color: black !important;
        font-size: 18pt;
    }
    
    .section-subtitle {
        color: #666 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #F9FAFB;
        --bg-light: #1F2937;
        --bg-gray: #374151;
    }
    
    .header {
        background: rgba(31, 41, 55, 0.95);
    }
    
    .nav-link {
        color: var(--text-dark);
    }
    
    .feature-card,
    .investment-card,
    .timeline-item,
    .registration-cta,
    .tab-content {
        background: #374151;
        color: var(--text-dark);
    }
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.cta-button:focus,
.btn-primary:focus,
.btn-secondary:focus,
.tab-button:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Hover Effects for Touch Devices */
@media (hover: none) {
    .feature-card:hover,
    .timeline-item:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .cta-button:hover {
        transform: none;
    }
}


/* Centralizar botões de inscrição em mobile e tablet */
@media (max-width: 1024px) {
    .investment-cta {
        text-align: center;
    }
    
    .investment-cta .btn-primary {
        margin: 0 auto;
        display: inline-flex;
    }
    
    .registration-cta {
        text-align: center;
    }
    
    .registration-cta .btn-primary {
        margin: 0 auto;
        display: inline-flex;
    }
}

/* Ajustes específicos para mobile */
@media (max-width: 768px) {
    .investment-cta .btn-primary,
    .registration-cta .btn-primary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}


/* Cor branca para o preço em mobile e tablet */
@media (max-width: 768px) {
    .price-value {
        color: white !important;
    }
    
    .price-period {
        color: white !important;
    }
    
    .price-installments {
        color: white !important;
    }
}



/* Fontes brancas para seção de contato em mobile e tablet */
@media (max-width: 768px) {
    .contact-section * {
        color: white !important;
    }
    
    .contact-section .section-title {
        color: white !important;
    }
    
    /* "Entre em contato conosco" em preto */
    .contact-section .section-subtitle {
        color: black !important;
    }
    
    .contact-section .contact-details h4 {
        color: white !important;
    }
    
    .contact-section .contact-details p {
        color: white !important;
    }
    
    .contact-section .contact-item {
        color: white !important;
    }
    
    .contact-section .contact-icon i {
        color: white !important;
    }
    
    /* Footer - "Instituto de Pesquisa em Ciências da Saúde" em branco */
    .footer-logo p {
        color: white !important;
    }
    
    /* Footer - dados de contato em branco */
    .footer-contact p {
        color: white !important;
    }
}



/* CSS global para garantir letras brancas nas frases específicas */
.hero-section .hero-description {
    color: white !important;
}

.hero-section .highlight-item span {
    color: white !important;
}

.hero-section .hero-subtitle {
    color: white !important;
}

