/* ==========================================================================
   Caryl Berenato — Responsive Breakpoints
   ========================================================================== */

/* ---------- 1024px: Tablet Landscape ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }

  .property-grid,
  .listing-grid,
  .cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .neighborhood-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .section-padding {
    padding: 60px 0;
  }
}

/* ---------- 768px: Tablet Portrait ---------- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.375rem; }

  /* Navigation */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--nav-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 40px;
    transition: right 0.35s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-open .main-nav {
    right: 0;
  }

  .nav-open .nav-overlay {
    display: block;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-list > li > a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-list > li.dropdown-open > .nav-dropdown {
    max-height: 500px;
  }

  .nav-dropdown a {
    padding: 10px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-dropdown a:hover {
    padding-left: 8px;
  }

  .hamburger {
    display: flex;
  }

  /* Hamburger open state */
  .nav-open .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-cta {
    display: none;
  }

  /* Grids */
  .property-grid,
  .listing-grid,
  .cta-grid,
  .neighborhood-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Hero */
  .hero {
    height: 65vh;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Testimonial */
  .testimonial-slide {
    padding: 30px 20px;
  }

  .testimonial-quote {
    font-size: 1.0625rem;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"] {
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    margin-bottom: 12px;
  }

  .newsletter-form button {
    border-radius: var(--radius);
  }

  /* Listing Filters */
  .listing-filters {
    flex-direction: column;
  }

  .listing-filters .form-group {
    min-width: 100%;
  }

  .section-padding {
    padding: 48px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ---------- 480px: Mobile ---------- */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .container {
    padding: 0 16px;
  }

  .hero {
    height: 55vh;
    min-height: 350px;
  }

  .hero-content h1 {
    font-size: 1.875rem;
  }

  .hero-content p {
    font-size: 0.9375rem;
  }

  .property-card-body {
    padding: 16px;
  }

  .cta-card {
    padding: 28px 20px;
  }

  .section-padding {
    padding: 36px 0;
  }

  .btn {
    padding: 10px 24px;
    width: 100%;
  }

  .testimonial-slide {
    padding: 20px 12px;
  }

  .testimonial-quote {
    font-size: 1rem;
  }
}
