/* Responsive design */

/* Tablet and smaller screens */
@media (max-width: 768px) {
  .wrap {
    padding: 1rem;
  }

  .hero-body {
    gap: 1.5rem;
    padding: 2rem 1rem 2rem;
  }

  .hero-h1 {
    font-size: 36px;
  }

  .outcome-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .outcome-card {
    padding: 1rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .unit-card {
    grid-template-columns: 1fr;
  }

  .unit-img {
    min-height: 200px;
  }

  .payment-body {
    grid-template-columns: 1fr;
  }

  .payment-table-wrap {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  /* Hide the % column on mobile — keeps Stage | Timeline | Amount (self-finance)
     and Stage | Amount (mortgage), both fit without horizontal scroll */
  #self-table th:nth-child(3),
  #self-table td:nth-child(3),
  #mort-table th:nth-child(2),
  #mort-table td:nth-child(2) {
    display: none;
  }

  .payment-table th {
    padding: .6rem 8px .6rem 0;
  }

  .payment-table td {
    padding: .7rem 8px .7rem 0;
  }

  .payment-table th:first-child,
  .payment-table td:first-child {
    padding-left: 0;
  }

  .form-fields {
    grid-template-columns: 1fr;
  }

  .cta-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-section .send-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-nav {
    padding: 1rem;
  }

  .hero-nav-links {
    display: none;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .poi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .dev-section {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .footer-body {
    flex-direction: column !important;
    gap: 2rem !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-body img {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-tagline {
    display: none !important;
  }

  .footer-bottom {
    justify-content: center !important;
  }

  .footer-contact {
    width: 100% !important;
  }

  .footer-contact-list > div {
    justify-content: center !important;
  }

  .footer-contact-list span,
  .footer-contact-list a {
    word-break: break-word !important;
  }

  .hero-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    width: 100% !important;
    padding: 1rem !important;
  }

  .hero-metrics > div[style*="width:0.5px"],
  .hero-metrics > div[style*="width: 0.5px"] {
    display: none !important;
  }
}

/* Mobile screens */
@media (max-width: 480px) {
  .hero-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-body {
    padding: 1.5rem 1rem 2rem;
  }

  .hero-h1 {
    font-size: 32px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .returns-grid {
    grid-template-columns: 1fr;
  }

  .highlight-band {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .inv-divider {
    width: 100%;
    height: 0.5px;
    align-self: auto;
  }

  .payment-table {
    font-size: 11px;
  }

  .payment-table th {
    font-size: 9px;
    padding: .6rem 6px .6rem 0;
  }

  .payment-table td {
    padding: .65rem 6px .65rem 0;
  }

  .plan-tabs {
    flex-direction: column;
  }

  .plan-tab {
    padding: 0.75rem;
  }

  .cta-section {
    padding: 1.5rem;
  }

  .cta-title {
    font-size: 20px;
  }

  .amenities-grid {
    grid-template-columns: 1fr !important;
  }

  .poi-grid {
    grid-template-columns: 1fr !important;
  }
}