/* 
 * MEI em Foco - Estilos Responsivos
 * Projeto de extensão da Universidade de Vassouras - Campus Maricá
 * Desenvolvido por: Diogo Santana Cardoso
 */

@import 'variables.css';

/* Estilos para dispositivos grandes (desktops) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

/* Estilos para dispositivos médios (tablets e desktops pequenos) */
@media (max-width: 1199px) and (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
}

/* Estilos para tablets */
@media (max-width: 991px) and (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .instagram-feed {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  /* Navegação mobile */
  .menu-toggle {
    display: block;
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 1001;
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
    margin: 0;
  }
  
  .nav-link {
    width: 100%;
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
  }
  
  .nav-overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
}

/* Estilos para dispositivos móveis grandes */
@media (max-width: 767px) and (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .logo, .logo-univassouras {
    margin-bottom: var(--spacing-sm);
  }
  
  .menu-toggle {
    display: block;
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 1001;
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
    flex-direction: column;
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .nav-item {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    padding: var(--spacing-md);
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .hero-content {
    padding: 0 var(--spacing-md);
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-button {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .instagram-feed {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* Estilos para dispositivos móveis pequenos */
@media (max-width: 575px) {
  .container {
    width: 100%;
    padding: 0 var(--spacing-md);
  }
  
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-sm) 0;
  }
  
  .logo, .logo-univassouras {
    margin-bottom: var(--spacing-sm);
  }
  
  .logo img {
    max-height: 50px;
  }
  
  .logo-univassouras img {
    max-height: 30px;
  }
  
  .menu-toggle {
    display: block;
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 1001;
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
    flex-direction: column;
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .nav-item {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    padding: var(--spacing-md);
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .hero {
    padding: var(--spacing-xl) 0;
  }
  
  .hero-content {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-button {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .instagram-feed {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    margin-bottom: var(--spacing-md);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .card-img {
    height: 180px;
  }
  
  .card-body {
    padding: var(--spacing-md);
  }
  
  .accordion-button {
    padding: var(--spacing-md);
    font-size: 1rem;
  }
  
  .accordion-body {
    padding: var(--spacing-md);
  }
}

/* Ajustes para impressão */
@media print {
  .header, .nav, .footer, .hero-buttons, .cta-section {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .card:hover {
    transform: none;
    box-shadow: none;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
  
  .page-break {
    page-break-before: always;
  }
}
