/* ===================================
   CSS RESPONSIVO - DR. THIAGO ALBUQUERQUE
   =================================== */

/* ===================================
   TABLET (768px - 1024px)
   =================================== */

@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .profile-photo {
        width: 300px;
        height: 300px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-text {
        text-align: center;
    }
}

/* ===================================
   MOBILE LARGE (481px - 767px)
   =================================== */

@media screen and (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    /* Header Mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 90vh;
        padding-top: 100px; /* Ajustado para mobile */
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1rem;
        line-height: 1.2; /* Melhor espaçamento entre linhas */
    }
    
    .subtitle {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .services-highlight {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-photo {
        width: 250px;
        height: 250px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Seções Mobile */
    .about,
    .services,
    .publications,
    .contact {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    .about-text {
        font-size: 1rem;
        text-align: left;
    }
    
    /* Galeria Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .gallery-overlay {
        padding: 1.5rem 0.8rem 0.8rem;
    }
    
    .gallery-overlay span {
        font-size: 0.9rem;
    }
    
    /* Serviços Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* Publicações Mobile */
    .publication-item {
        padding: 1rem;
    }
    
    .publication-item:hover {
        transform: translateX(5px);
    }
    
    /* Contato Mobile */
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        margin-top: 0;
    }
    
    /* WhatsApp Button Mobile */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ===================================
   MOBILE SMALL (320px - 480px)
   =================================== */

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Brand Mobile Small */
    .nav-brand {
        gap: 10px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-text h1 {
        font-size: 1rem;
    }
    
    .brand-text span {
        font-size: 0.8rem;
    }
    
    /* Hero Mobile Small */
    .hero-title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .services-highlight {
        font-size: 1rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Seções Mobile Small */
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    .about-text {
        font-size: 0.9rem;
    }
    
    /* Galeria Mobile Small */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-title {
        font-size: 1.2rem;
    }
    
    .gallery-item {
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Serviços Mobile Small */
    .service-card {
        padding: 1rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-card h4 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    /* Formulário Mobile Small */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .submit-btn,
    .schedule-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* Footer Mobile Small */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-brand .brand-text h3 {
        font-size: 1rem;
    }
    
    .footer-brand .brand-text span {
        font-size: 0.8rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
}

/* ===================================
   LANDSCAPE MOBILE
   =================================== */

@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 80px 2rem 2rem; /* Top, horizontal, bottom */
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .profile-photo {
        width: 180px;
        height: 180px;
    }
    
    .about,
    .services,
    .publications,
    .contact {
        padding: 2rem 0;
    }
}

/* ===================================
   LARGE SCREENS (1200px+)
   =================================== */

@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .profile-photo {
        width: 400px;
        height: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .header,
    .whatsapp-float,
    .cta-button,
    .schedule-btn,
    .submit-btn {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: unset;
        padding: 2rem 0;
    }
    
    .hero-title {
        color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        color: black !important;
        font-size: 18pt;
    }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

/* Focus states para navegação por teclado */
.nav-link:focus,
.cta-button:focus,
.submit-btn:focus,
.schedule-btn:focus,
.whatsapp-btn:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
        color: #fff;
    }
    
    .service-card {
        border: 2px solid #000;
    }
    
    .nav-link {
        font-weight: 700;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .whatsapp-btn {
        animation: none;
    }
}

/* ===================================
   HOVER STATES FOR TOUCH DEVICES
   =================================== */

@media (hover: none) {
    .service-card:hover,
    .publication-item:hover,
    .nav-link:hover {
        transform: none;
    }
    
    .cta-button:hover,
    .submit-btn:hover,
    .schedule-btn:hover,
    .whatsapp-btn:hover {
        transform: none;
    }
}