/* =========================================================
   PFCC LATAM — responsive.css
   Versão final responsiva
   ---------------------------------------------------------
   CONTÉM:
   - ajustes para desktop menor
   - tablet
   - mobile
   - mobile pequeno
   - menu mobile futuro
   ========================================================= */


/* =========================================================
   1. DESKTOP MENOR
   ---------------------------------------------------------
   até 1100px
   ========================================================= */

@media (max-width: 1100px) {
  :root {
    --section-spacing: 80px;
    --container-padding: 22px;
  }

  .site-header__inner {
    gap: 18px;
    min-height: 82px;
  }

  .site-logo__image--desktop {
    width: min(280px, 100%);
  }

  .site-nav__list {
    gap: 20px;
  }

  .hero-section {
    padding: 76px 0 62px;
  }

  .hero-section__inner {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
  }

  .hero-section__title {
    max-width: 11ch;
    font-size: clamp(2.7rem, 5.2vw, 4.5rem);
  }

  .summary-card {
    padding: 24px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__meta {
    grid-column: 1 / -1;
  }

  .modal {
    width: min(100%, 860px);
  }
}


/* =========================================================
   2. TABLET
   ---------------------------------------------------------
   até 900px
   ========================================================= */

@media (max-width: 900px) {
  :root {
    --section-spacing: 72px;
    --container-padding: 20px;
  }

  /* ---------------- HEADER ---------------- */
  .site-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
  }

  .site-header__actions {
    display: none;
  }

  .site-header__toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
  }

  .site-logo__image--desktop {
    width: min(240px, 100%);
  }

  /* ---------------- HERO ---------------- */
  .hero-section {
    padding: 68px 0 54px;
  }

  .hero-section__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-section__content {
    max-width: 100%;
  }

  .hero-section__title {
    max-width: 100%;
    font-size: clamp(2.4rem, 7vw, 3.8rem);
  }

  .hero-section__description {
    max-width: 100%;
  }

  .hero-section__summary {
    justify-content: stretch;
  }

  .summary-card {
    max-width: 100%;
  }

  /* ---------------- TÍTULOS ---------------- */
  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  /* ---------------- PAINÉIS ---------------- */
  .connections-panel,
  .portal-card,
  .summary-card {
    padding: 24px;
  }

  .connections-panel__header,
  .portal-card {
    align-items: flex-start;
  }

  /* ---------------- CARDS ---------------- */
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /* ---------------- CRONOGRAMA ---------------- */
  .schedule-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  /* ---------------- MODAL ---------------- */
  .modal-overlay {
    padding: 20px;
  }

  .modal {
    width: min(100%, 760px);
    padding: 26px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   3. MOBILE
   ---------------------------------------------------------
   até 640px
   ========================================================= */

@media (max-width: 640px) {
  :root {
    --section-spacing: 60px;
    --container-padding: 16px;
  }

  body {
    line-height: 1.45;
  }

  /* ---------------- HEADER ---------------- */
  .site-header {
    background: rgba(5, 5, 5, 0.9);
  }

  .site-header__inner {
    min-height: 72px;
  }

  /* Logo horizontal sai, sigla entra */
  .site-logo__image--desktop {
    display: none;
  }

  .site-logo__image--mobile {
    display: block;
    width: 120px;
  }

  .site-header__toggle {
    padding: 6px;
  }

  /* ---------------- HERO ---------------- */
  .hero-section {
    padding: 54px 0 42px;
  }

  .hero-section::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.84)),
      url("../assets/images/bg-mobile.png") center/cover no-repeat;
    opacity: 0.9;
  }

  .hero-section__title {
    font-size: clamp(2rem, 10vw, 2.9rem);
    line-height: 1.01;
    letter-spacing: -0.045em;
  }

  .hero-section__description {
    margin-top: 18px;
    font-size: 0.98rem;
  }

  .hero-section__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-section__actions .button {
    width: 100%;
  }

  .summary-card {
    padding: 20px;
  }

  /* ---------------- SEÇÃO E TITULOS ---------------- */
  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading__title {
    font-size: 1.8rem;
    line-height: 1.08;
  }

  .section-heading__description {
    font-size: 0.96rem;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.76rem;
  }

  /* ---------------- SELETOR DE GRUPOS ---------------- */
  .groups-selector {
    display: none;
  }

  .groups-selector__mobile {
    display: block;
  }

  /* ---------------- TABS PRINCIPAIS ---------------- */
  .connections-tabs {
    gap: 22px;
  }

  .connections-tabs__controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .connections-tab {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .connections-panel {
    padding: 20px;
  }

  .connections-panel__header {
    margin-bottom: 18px;
  }

  .connections-panel__title {
    font-size: 1.2rem;
  }

  .connections-panel__count {
    font-size: 0.92rem;
  }

  /* ---------------- CARDS ---------------- */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-card {
    padding: 18px;
    gap: 16px;
  }

  .profile-card__media {
    width: 76px;
    height: 76px;
  }

  .profile-card__name {
    font-size: 1.08rem;
  }

  .profile-card__role,
  .profile-card__company,
  .profile-card__bio {
    font-size: 0.92rem;
  }

  .profile-card__links {
    gap: 8px;
  }

  .profile-card__links a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.85rem;
  }

  /* ---------------- CRONOGRAMA ---------------- */
  .schedule-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .schedule-card__date-block {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .schedule-card__day {
    font-size: 1.4rem;
  }

  .schedule-card__month {
    margin-top: 0;
  }

  .schedule-card__title {
    font-size: 1.08rem;
  }

  .schedule-card__details {
    flex-direction: column;
    gap: 8px;
  }

  /* ---------------- SOBRE O PROGRAMA ---------------- */
  .portal-card {
    padding: 22px 20px;
  }

  .portal-card__title {
    font-size: 1.6rem;
    line-height: 1.08;
  }

  .portal-card__description {
    font-size: 0.96rem;
  }

  /* ---------------- FOOTER ---------------- */
  .site-footer {
    padding: 44px 0 24px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-logo--footer .site-logo__image--desktop {
    display: none;
  }

  .site-logo--footer .site-logo__image--mobile {
    display: block;
    width: 120px;
  }

  .site-footer__description {
    margin-top: 12px;
    font-size: 0.95rem;
  }

  .site-footer__list {
    gap: 10px;
  }

  .site-footer__meta {
    gap: 8px;
    font-size: 0.9rem;
  }

  /* ---------------- MODAL ---------------- */
  .modal-overlay {
    padding: 14px;
  }

  .modal {
    width: 100%;
    max-height: 92vh;
    padding: 20px;
    border-radius: 20px;
  }

  .modal__title {
    font-size: 1.6rem;
    line-height: 1.1;
  }

  .modal__description {
    font-size: 0.96rem;
  }

  .profile-access-form {
    gap: 18px;
  }

  .profile-form {
    gap: 22px;
  }

  .form-grid {
    gap: 16px;
  }

  .form-field {
    gap: 8px;
  }

  .form-field label {
    font-size: 0.92rem;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    min-height: 48px;
    padding: 0 14px;
    font-size: 0.95rem;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .button {
    width: 100%;
  }

  .form-feedback {
    font-size: 0.92rem;
  }

  .modal__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  /* ---------------- SUPORTE ---------------- */
  .support-fab {
    right: 16px;
    bottom: 16px;
    min-height: 50px;
    padding: 0 14px;
    gap: 8px;
  }

  .support-fab__text {
    font-size: 0.86rem;
  }

  .support-fab__icon {
    width: 24px;
    height: 24px;
  }
}


/* =========================================================
   4. MOBILE PEQUENO
   ---------------------------------------------------------
   até 420px
   ========================================================= */

@media (max-width: 420px) {
  :root {
    --container-padding: 14px;
    --section-spacing: 52px;
  }

  .hero-section {
    padding: 48px 0 38px;
  }

  .hero-section__title {
    font-size: 1.85rem;
  }

  .summary-card,
  .connections-panel,
  .portal-card,
  .modal {
    padding: 18px;
  }

  .schedule-card,
  .profile-card {
    padding: 16px;
  }

  .section-heading__title {
    font-size: 1.6rem;
  }

  .support-fab {
    right: 14px;
    bottom: 14px;
    padding: 0 12px;
  }

  .support-fab__text {
    display: none;
  }

  .modal__title {
    font-size: 1.42rem;
  }
}


/* =========================================================
   5. MENU MOBILE FUTURO
   ---------------------------------------------------------
   até 900px
   Comentário:
   pronto para abrir com JS no futuro
   ========================================================= */

@media (max-width: 900px) {
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(200, 169, 106, 0.14);
    background:
      linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(10, 10, 10, 0.98));
    box-shadow: var(--shadow-card);
  }

  .site-nav.is-open .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav.is-open .site-nav__link::after {
    bottom: -4px;
  }
}
