/* ===========================================
   PLAZA ACQUA LIVING - Estilos Responsivos
   =========================================== */

/* ===== TABLET (768px - 1024px) ===== */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  /* Header */
  .header__nav {
    gap: var(--space-lg);
  }

  /* Hero */
  .hero__container {
    gap: var(--space-xl);
  }

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

  /* About */
  .about__features {
    gap: var(--space-md);
  }

  /* Gallery */
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__item--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* Floor Plans */
  .floor-plans__grid {
    gap: var(--space-lg);
  }

  /* Testimonials */
  .testimonials__grid {
    gap: var(--space-lg);
  }

  /* Footer */
  .footer__container {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }
}

/* ===== MOBILE GRANDE (até 768px) ===== */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.375rem;
    --text-2xl: 1.25rem;
    --container-padding: 1rem;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  /* Header */
  .header__container {
    height: 70px;
  }

  .header__logo {
    height: 40px;
  }

  .header__nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-xl);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: var(--z-fixed);
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .header__nav-link {
    font-size: var(--text-lg);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-gray-light);
    width: 100%;
  }

  .header__nav .btn {
    width: 100%;
    margin-top: var(--space-md);
  }

  .header__menu-btn {
    display: flex;
  }

  .header__menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header__menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .header__menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 100px 0 var(--space-2xl);
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(217, 210, 203, 0.95) 0%, rgba(217, 210, 203, 0.7) 50%, rgba(217, 210, 203, 0.3) 100%),
  }

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

  .hero__content {
    text-align: center;
    max-width: 100%;
  }

  .lead-form {
    max-width: 100%;
  }

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

  /* Gallery */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .gallery__item--large {
    grid-column: span 2;
  }

  /* Pricing */
  .pricing__highlights {
    flex-direction: column;
    gap: var(--space-xl);
  }

  /* Floor Plans */
  .floor-plans__grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Location */
  .location__map {
    aspect-ratio: 4/3;
  }

  /* Constructor */
  .constructor__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .constructor__brand {
    flex-direction: row;
    justify-content: center;
  }

  .constructor__logo {
    width: 140px;
  }

  .constructor__content {
    max-width: 100%;
  }
}

/* ===== ELEMENTOS DECORATIVOS - TABLET E MOBILE ===== */
@media (max-width: 768px) {
  /* Reduz elementos decorativos no mobile */
  .about::before {
    width: 150px;
    height: 150px;
    top: -30px;
    right: -30px;
    opacity: 0.05;
  }

  .floor-plans::after {
    width: 180px;
    height: 180px;
    bottom: -50px;
    left: -50px;
    opacity: 0.05;
  }

  .testimonials::before {
    width: 250px;
    height: 250px;
    opacity: 0.03;
  }

  .pricing::before {
    background-size: 200px;
    opacity: 0.03;
  }
}

/* ===== MOBILE PEQUENO (até 480px) ===== */
@media (max-width: 480px) {
  :root {
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
  }

  /* Esconde elementos decorativos em telas muito pequenas */
  .about::before,
  .floor-plans::after,
  .testimonials::before {
    display: none;
  }

  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
  }

  /* Hero */
  .hero {
    padding-top: 90px;
  }

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

  /* Lead Form */
  .lead-form {
    padding: var(--space-lg);
  }

  .lead-form__row {
    grid-template-columns: 80px 1fr;
  }

  /* Pricing */
  .pricing__value {
    font-size: var(--text-2xl);
  }

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

  .gallery__item--large {
    grid-column: span 1;
  }
}

/* ===== PREFERÊNCIAS DO USUÁRIO ===== */

/* Reduz animações se o usuário preferir */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
