/* ============================================
   RESPONSIVE CSS - Lucas Frete
   Breakpoints: 1024px, 768px, 480px
   ============================================ */

/* --- Tablet landscape --- */
@media (max-width: 1024px) {
  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

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

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .about-block {
    gap: var(--space-lg);
  }
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
    --space-4xl: 5rem;
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero--page {
    min-height: 35vh;
  }

  /* Header mobile */
  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-graphite);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem var(--space-lg) var(--space-lg);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .header__nav-link {
    display: block;
    padding: 0.875rem 0;
    font-size: var(--text-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
  }

  .header__nav-link::after {
    display: none;
  }

  .header__cta {
    margin-top: var(--space-sm);
    width: 100%;
    justify-content: center;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-header) - 1);
  }

  .mobile-overlay.active {
    display: block;
  }

  /* Grid adjustments */
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

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

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

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

  /* About block */
  .about-block {
    grid-template-columns: 1fr;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  /* Service detail */
  .servico-detail {
    grid-template-columns: 1fr;
  }

  .servico-detail:nth-child(even) {
    direction: ltr;
  }

  /* Contact grid */
  .contato-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* CTA Mobile visible */
  .cta-mobile {
    display: block;
  }

  .whatsapp-float {
    bottom: 80px;
  }
}

/* --- Mobile --- */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --space-3xl: 3rem;
  }

  .hero {
    min-height: 75vh;
  }

  .hero__title {
    font-size: var(--text-2xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

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

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

  h2 {
    font-size: var(--text-xl);
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .article h1 {
    font-size: var(--text-2xl);
  }

  .article__content p {
    font-size: var(--text-base);
  }
}
