/* ============================================================
   LIP Homes — responsive.css
   All media queries. Breakpoints: 1024px · 768px · 480px
   ============================================================ */

/* ── Tablet (≤ 1024px) ──────────────────────────────────────── */
@media (max-width: 1024px) {

  :root {
    --font-size-4xl: 2.75rem;
    --font-size-3xl: 2.2rem;
    --font-size-2xl: 1.75rem;
  }

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

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

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

  .contact__intro {
    max-width: 600px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }
}

/* ── Mobile (≤ 768px) ───────────────────────────────────────── */
@media (max-width: 768px) {

  :root {
    --font-size-4xl: 2.2rem;
    --font-size-3xl: 1.85rem;
    --font-size-2xl: 1.5rem;
    --space-20: 3.5rem;
    --space-16: 3rem;
  }

  /* Header — show hamburger, hide nav + CTA */
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    padding: var(--space-4) var(--space-6) var(--space-6);
    display: none;
    z-index: 899;
  }

  .header__nav.mobile-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .nav__link {
    display: block;
    padding: var(--space-3) 0;
    font-size: var(--font-size-base);
    width: 100%;
  }

  .header__cta {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  /* Hero */
  .hero {
    padding-inline: 0;
  }

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

  .hero__photo {
    order: 2;
  }

  .hero__content {
    order: 1;
    max-width: none;
  }

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

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  /* Properties */
  .properties-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about__trust-points {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact form */
  .contact-form {
    padding: var(--space-6);
  }

  /* Modal */
  .modal {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 4rem);
  }

  .modal__body {
    aspect-ratio: 4 / 3;
  }

  /* Footer */
  .footer__links {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

/* ── Small Mobile (≤ 480px) ─────────────────────────────────── */
@media (max-width: 480px) {

  :root {
    --font-size-4xl: 1.9rem;
    --font-size-2xl: 1.3rem;
    --space-20: 3rem;
    --space-16: 2.5rem;
  }

  .container {
    padding-inline: var(--space-4);
  }

  .hero__eyebrow { font-size: 0.7rem; }

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

  /* About trust grid → single column on very small screens */
  .about__trust-points {
    grid-template-columns: 1fr;
  }

  /* Filter pills scroll horizontally */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-2);
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-pill { flex-shrink: 0; }

  /* Card actions stack */
  .property-card__actions {
    flex-direction: column;
  }

  /* Contact form */
  .contact-form {
    padding: var(--space-5);
  }

  /* Modal full-width */
  .modal {
    width: 100vw;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    animation: slide-up-bottom 0.3s ease;
  }

  @keyframes slide-up-bottom {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  .modal__body {
    aspect-ratio: 1;
  }
}
