/* =========================================================
   RESPONSIVE.CSS
   Alx Tech Solutions
   Responsividade para tablet, mobile e acessibilidade
   ========================================================= */

/* ---------------------------------------------------------
   Telas médias
   Até 1100px
   --------------------------------------------------------- */

@media (max-width: 1100px) {
  :root {
    --container-padding: 22px;
  }

  .hero-grid {
    gap: 40px;
  }

  .about-grid,
  .differentials-grid {
    gap: 60px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-card--efficiency {
    left: -14px;
  }

  .floating-card--support {
    right: -8px;
  }
}

/* ---------------------------------------------------------
   Tablet
   Até 900px
   --------------------------------------------------------- */

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .section {
    padding: 88px 0;
  }

  .section--compact {
    padding-block: 68px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 75px);
    padding-bottom: 100px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .hero-content {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-content .eyebrow,
  .hero-content .hero-badge {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-highlights {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 680px);
    min-height: 535px;
    margin-inline: auto;
  }

  .device-mockup--desktop {
    transform: perspective(1500px) rotateY(-4deg) rotateX(3deg);
  }

  .about-grid,
  .differentials-grid {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .about-visual {
    width: min(100%, 500px);
    margin-inline: auto;
  }

  .about-content,
  .differentials-content {
    max-width: 680px;
  }

  .differentials-list {
    width: min(100%, 620px);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card,
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4) {
    grid-column: auto;
    margin-top: 0;
    transform: none;
  }

  .project-card--featured {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .project-card:nth-child(2):hover,
  .project-card:nth-child(3):hover,
  .project-card:nth-child(4):hover {
    transform: translateY(-7px);
  }

  .process-grid {
    flex-direction: column;
    gap: 25px;
  }

  .process-step {
    width: 100%;
  }

  .process-step p {
    max-width: 500px;
  }

  .process-line {
    width: 1px;
    height: 30px;
    margin-left: 24px;
    background: linear-gradient(
      to bottom,
      rgba(96, 165, 250, 0.45),
      rgba(56, 189, 248, 0.08)
    );
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------
   Menu mobile
   Até 760px
   --------------------------------------------------------- */

@media (max-width: 760px) {
  :root {
    --container-padding: 18px;
  }

  .site-header {
    height: 70px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: calc(var(--z-menu) + 1);
  }

  .main-navigation {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: var(--z-menu);

    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;

    max-height: 0;
    padding: 0 var(--container-padding);
    overflow: hidden;

    border-bottom: 1px solid transparent;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      max-height var(--transition-normal),
      opacity var(--transition-normal),
      transform var(--transition-normal),
      padding var(--transition-normal);
  }

  .main-navigation.is-open {
    max-height: 470px;
    padding-top: 14px;
    padding-bottom: 20px;
    border-bottom-color: var(--glass-border);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-navigation > a:not(.button) {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.9rem;
  }

  .main-navigation > a:not(.button)::after {
    display: none;
  }

  .main-navigation > .button {
    width: 100%;
    margin-top: 17px;
  }

  .section {
    padding: 78px 0;
  }

  .section--compact {
    padding-block: 60px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 58px);
    padding-bottom: 82px;
  }

  .hero-grid {
    gap: 60px;
  }

  .hero-content h1 {
    font-size: clamp(3.3rem, 16vw, 5.2rem);
  }

  .hero-subtitle {
    justify-content: center;
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 0.93rem;
  }

  .hero-highlights {
    gap: 17px;
    margin-top: 38px;
  }

  .hero-highlight {
    padding-left: 10px;
  }

  .hero-highlight strong {
    font-size: 1.1rem;
  }

  .hero-highlight span {
    font-size: 0.6rem;
  }

  .hero-visual {
    min-height: 420px;
  }

  .device-mockup--desktop {
    width: 94%;
    transform: none;
  }

  .tech-dashboard {
    grid-template-columns: 54px 1fr;
    min-height: 320px;
  }

  .dashboard-sidebar {
    gap: 14px;
    padding: 13px 8px;
  }

  .dashboard-brand {
    width: 29px;
    height: 29px;
    margin-bottom: 8px;
    font-size: 0.48rem;
  }

  .sidebar-line {
    width: 21px;
    height: 5px;
  }

  .sidebar-line--active {
    height: 24px;
  }

  .dashboard-main {
    padding: 17px;
  }

  .dashboard-header strong {
    font-size: 1.05rem;
  }

  .dashboard-metrics {
    margin-top: 19px;
  }

  .metric-card {
    padding: 9px;
  }

  .metric-card strong {
    font-size: 1rem;
  }

  .dashboard-chart {
    padding: 11px;
  }

  .chart-area {
    height: 78px;
  }

  .device-mockup--mobile {
    right: -2px;
    bottom: -25px;
    width: 112px;
    border-radius: 19px;
  }

  .mobile-screen {
    min-height: 190px;
    border-radius: 12px;
  }

  .mobile-speaker {
    width: 27px;
    height: 3px;
    margin-bottom: 5px;
  }

  .mobile-tech-header {
    padding: 9px 6px;
    font-size: 0.36rem;
  }

  .mobile-tech-hero {
    min-height: 95px;
    padding: 10px 8px;
  }

  .mobile-tech-hero small {
    font-size: 0.24rem;
  }

  .mobile-tech-hero strong {
    font-size: 0.78rem;
  }

  .mobile-tech-hero span {
    margin-top: 4px;
    font-size: 0.23rem;
  }

  .mobile-tech-cards {
    gap: 4px;
    padding: 6px;
  }

  .mobile-tech-cards span {
    gap: 3px;
    padding: 6px 3px;
    font-size: 0.27rem;
  }

  .mobile-tech-cards b {
    font-size: 0.55rem;
  }

  .floating-card {
    padding: 8px 10px;
  }

  .floating-card--efficiency {
    top: 2%;
    left: -5px;
  }

  .floating-card--support {
    right: -4px;
    bottom: 5%;
  }

  .floating-icon {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
  }

  .floating-card strong {
    font-size: 0.57rem;
  }

  .floating-card small {
    font-size: 0.5rem;
  }

  .tech-decoration--one {
    top: 1%;
    right: 16%;
  }

  .tech-decoration--two {
    bottom: 17%;
    left: 4%;
  }

  .tech-decoration--three {
    top: 28%;
    left: 6%;
  }

  .intro-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .info-card {
    padding: 25px;
  }

  .about-visual {
    min-height: 400px;
  }

  .about-card {
    left: 4%;
    width: 83%;
    min-height: 370px;
  }

  .about-card-content {
    min-height: 370px;
    padding: 37px 23px;
  }

  .about-card-label {
    font-size: 1.2rem;
  }

  .about-profile-wrapper {
    width: min(82%, 245px);
    min-height: 170px;
  }

  .about-profile-image {
    width: 126px;
    height: 126px;
  }

  .about-card-caption {
    font-size: 0.65rem;
  }

  .about-stat {
    right: 0;
    bottom: 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .service-card h3 {
    margin-top: 25px;
  }

  .differentials-list {
    padding: 23px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project-card,
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4),
  .project-card--featured {
    display: flex;
    grid-column: auto;
    min-height: auto;
    margin-top: 0;
    transform: none;
  }

  .project-card:nth-child(2):hover,
  .project-card:nth-child(3):hover,
  .project-card:nth-child(4):hover {
    transform: translateY(-5px);
  }

  .project-card--featured {
    flex-direction: column;
  }

  .project-card--featured .project-image {
    min-height: 175px;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .project-card--featured .project-image img {
    min-height: 175px;
  }

  .project-card--featured .project-content {
    padding: 19px;
  }

  .project-card--featured .project-image,
  .project-card--featured .project-image img {
    min-height: 250px;
  }

  .project-image,
  .project-image img {
    min-height: 220px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card:last-child {
    grid-column: auto;
  }

  .process-grid {
    gap: 25px;
  }

  .final-cta {
    padding-bottom: 88px;
  }

  .final-cta-card {
    padding: 65px 22px;
    border-radius: var(--radius-lg);
  }

  .final-cta-card::before {
    border-radius: calc(var(--radius-lg) - 10px);
  }

  .final-cta-actions {
    flex-direction: column;
  }

  .final-cta-actions .button {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px 25px;
    padding: 55px 0 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 20px;
  }
}

/* ---------------------------------------------------------
   Mobile pequeno
   Até 480px
   --------------------------------------------------------- */

@media (max-width: 480px) {
  .brand-logo {
    width: 136px;
  }

  .section {
    padding: 70px 0;
  }

  .section--compact {
    padding-block: 55px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 52px);
  }

  .hero-content h1 {
    font-size: clamp(2.9rem, 16vw, 4.1rem);
  }

  .hero-badge {
    max-width: 100%;
    font-size: 0.63rem;
    text-align: left;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-highlight {
    padding-left: 8px;
  }

  .hero-highlight strong {
    font-size: 0.94rem;
  }

  .hero-highlight span {
    font-size: 0.54rem;
    line-height: 1.3;
  }

  .hero-visual {
    min-height: 315px;
  }

  .device-mockup--desktop {
    padding: 6px;
    border-radius: 11px 11px 7px 7px;
  }

  .device-topbar {
    padding: 2px 3px 5px;
  }

  .device-topbar span {
    width: 4px;
    height: 4px;
  }

  .tech-dashboard {
    grid-template-columns: 38px 1fr;
    min-height: 215px;
  }

  .dashboard-sidebar {
    gap: 9px;
    padding: 8px 5px;
  }

  .dashboard-brand {
    width: 23px;
    height: 23px;
    margin-bottom: 3px;
    font-size: 0.36rem;
  }

  .sidebar-line {
    width: 17px;
    height: 4px;
  }

  .sidebar-line--active {
    height: 18px;
  }

  .dashboard-main {
    padding: 10px;
  }

  .dashboard-header {
    gap: 5px;
  }

  .dashboard-header small {
    font-size: 0.3rem;
  }

  .dashboard-header strong {
    font-size: 0.68rem;
  }

  .dashboard-status {
    padding: 4px 5px;
    font-size: 0.29rem;
  }

  .dashboard-metrics {
    gap: 4px;
    margin-top: 11px;
  }

  .metric-card {
    gap: 2px;
    padding: 5px;
    border-radius: 4px;
  }

  .metric-card small {
    font-size: 0.28rem;
  }

  .metric-card strong {
    font-size: 0.65rem;
  }

  .metric-card span {
    font-size: 0.25rem;
  }

  .dashboard-chart {
    margin-top: 7px;
    padding: 6px;
    border-radius: 4px;
  }

  .chart-header {
    font-size: 0.3rem;
  }

  .chart-header small {
    font-size: 0.25rem;
  }

  .chart-area {
    height: 50px;
    margin-top: 6px;
  }

  .chart-dot {
    width: 5px;
    height: 5px;
    border-width: 1px;
  }

  .chart-labels {
    margin-top: 3px;
    font-size: 0.24rem;
  }

  .device-mockup--mobile {
    right: -7px;
    bottom: -18px;
    width: 83px;
    padding: 4px 4px 6px;
    border-radius: 14px;
  }

  .mobile-speaker {
    width: 20px;
    height: 2px;
    margin-bottom: 3px;
  }

  .mobile-screen {
    min-height: 140px;
    border-radius: 10px;
  }

  .mobile-tech-header {
    padding: 6px 4px;
    font-size: 0.26rem;
  }

  .mobile-tech-hero {
    min-height: 70px;
    padding: 7px 6px;
  }

  .mobile-tech-hero small {
    font-size: 0.19rem;
  }

  .mobile-tech-hero strong {
    font-size: 0.57rem;
  }

  .mobile-tech-hero span {
    margin-top: 4px;
    font-size: 0.18rem;
  }

  .mobile-tech-cards {
    gap: 3px;
    padding: 4px;
  }

  .mobile-tech-cards span {
    gap: 2px;
    padding: 4px 2px;
    font-size: 0.2rem;
  }

  .mobile-tech-cards b {
    font-size: 0.42rem;
  }

  .floating-card--efficiency {
    top: -3%;
    left: -8px;
  }

  .floating-card--support {
    right: -8px;
    bottom: -2%;
  }

  .floating-card {
    gap: 6px;
    padding: 6px 7px;
    border-radius: 8px;
  }

  .floating-icon {
    width: 19px;
    height: 19px;
    border-radius: 6px;
    font-size: 0.55rem;
  }

  .floating-card strong {
    font-size: 0.45rem;
  }

  .floating-card small {
    font-size: 0.39rem;
  }

  .about-visual {
    min-height: 330px;
  }

  .about-card {
    min-height: 305px;
  }

  .about-card-content {
    min-height: 305px;
    padding: 27px 18px;
  }

  .about-card-label {
    font-size: 0.98rem;
  }

  .about-profile-wrapper {
    width: min(82%, 205px);
    min-height: 140px;
  }

  .about-profile-image {
    width: 104px;
    height: 104px;
  }

  .about-card-caption {
    font-size: 0.54rem;
  }

  .about-stat {
    right: -2px;
    bottom: 7px;
    padding: 11px 12px;
  }

  .about-stat strong {
    font-size: 0.82rem;
  }

  .about-stat span {
    font-size: 0.54rem;
  }

  .detail-item span:not(.detail-icon) {
    font-size: 0.76rem;
  }

  .service-card {
    padding: 22px;
  }

  .service-icon {
    width: 46px;
    height: 46px;
  }

  .service-icon img {
    width: 25px;
    height: 25px;
  }

  .differentials-list {
    padding: 19px;
  }

  .differential-item {
    gap: 10px;
  }

  .differential-item strong {
    font-size: 0.8rem;
  }

  .differential-item span:not(.differential-icon) {
    font-size: 0.68rem;
  }

  .project-content {
    padding: 21px;
  }

  .project-image,
  .project-image img,
  .project-card--featured .project-image,
  .project-card--featured .project-image img {
    min-height: 205px;
  }

  .testimonial-card {
    padding: 22px;
  }

  .testimonial-card > p {
    font-size: 0.78rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    font-size: 0.65rem;
  }
}

/* ---------------------------------------------------------
   Movimento reduzido
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .floating-card,
  .device-mockup,
  .about-card {
    animation: none;
    transform: none;
  }
}

/* ---------------------------------------------------------
   Alto contraste e impressão
   --------------------------------------------------------- */

@media (forced-colors: active) {
  .button,
  .glass-card,
  .info-card,
  .service-card,
  .project-card,
  .testimonial-card {
    border: 1px solid CanvasText;
  }

  .button--primary {
    background: ButtonFace;
    color: ButtonText;
  }
}

@media print {
  .site-header,
  .menu-toggle,
  .hero-actions,
  .final-cta-actions,
  .site-background,
  .floating-card {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .section {
    padding: 35px 0;
    break-inside: avoid;
  }

  h1,
  h2,
  h3,
  p,
  span,
  a {
    color: #000000 !important;
  }
}