/* =========================================================
   FAST TRACK LOANS — RESPONSIVE RULES
   Breakpoints: Laptop <1200px, Tablet <1024px, Mobile <768px, Small <480px
   ========================================================= */

/* ---------- Laptop / small desktop ---------- */
@media (max-width: 1200px) {
  :root {
    --container-pad: 20px;
  }

  .feature-grid,
  .service-grid,
  .diff-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-col:nth-child(2) {
    grid-column: 1;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .nav-main {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
  }

  .header-actions .btn-outline {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-7);
  }

  .director {
    grid-template-columns: 1fr;
  }

  .director-photo {
    max-width: 420px;
    margin-inline: auto;
    aspect-ratio: 4 / 3;
  }

  .diff-row,
  .diff-row--contact {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero::before {
    display: none;
  }

  .hero-visual {
    max-width: 480px;
    margin-inline: auto;
  }

  .hero-decor__square {
    right: -100px;
  }

  .hero-visual-badge {
    left: 12px;
  }

  .transition-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .diff-row.is-reversed .diff-visual {
    order: 0;
  }

  .diff-visual {
    aspect-ratio: 16 / 9;
  }

  .blog-grid,
  .related-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .cta-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-band-actions {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .newsletter-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .newsletter-form {
    max-width: none;
  }

  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding-block: var(--space-7);
  }

  .section--tight {
    padding-block: var(--space-7);
  }

  .topbar {
    display: none;
  }

  .page-hero {
    padding-top: var(--space-5);
    padding-bottom: var(--space-6);
  }

  .breadcrumb {
    padding-top: calc(72px + 28px);
  }

  .feature-grid,
  .service-grid,
  .values-grid,
  .blog-grid,
  .related-grid,
  .testimonial-grid,
  .diff-card-grid {
    grid-template-columns: 1fr;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item {
    padding: var(--space-6) var(--space-5);
  }

  .hero-stats {
    margin-top: var(--space-6);
  }

  .hero-stats > div {
    min-width: 0;
    padding: var(--space-4) var(--space-3);
  }

  .hero-stats strong {
    font-size: 1.25rem;
  }

  .hero-stats span {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }

  .hero-decor .hero-decor__square--sm,
  .hero-decor .hero-decor__fill,
  .hero-decor .hero-decor__dot {
    display: none;
  }

  .hero-decor__square {
    width: 180px;
    height: 180px;
    top: -50px;
    right: -70px;
  }

  .hero-visual-badge {
    left: 8px;
    bottom: 16px;
    max-width: 190px;
    padding: var(--space-2) var(--space-3);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-box {
    padding: var(--space-6);
  }

  .diff-row--contact .card {
    padding: var(--space-5) !important;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  .footer-acknowledgement {
    flex-direction: column;
    text-align: center;
  }

  .cta-band {
    padding: var(--space-6);
  }

  .cta-band-actions {
    flex-direction: column;
  }

  .cta-band-actions .btn {
    width: 100%;
  }

  .director-stats {
    gap: var(--space-6);
    flex-wrap: wrap;
  }

  .testimonial-slide {
    padding: var(--space-6) var(--space-5);
  }

  .radio-group {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
  }

  /* Top bar can't fit logo + wordmark + CTA + menu toggle at this width;
     the same CTA already lives full-width inside the mobile drawer. */
  .header-actions .btn-primary {
    display: none;
  }

  .brand-word {
    max-width: 150px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .btn {
    width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .brand-word {
    font-size: 1rem;
  }

  .brand img {
    height: 34px;
  }

  .director-stats {
    gap: var(--space-5);
  }

  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
  }

  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .contact-info-card {
    padding: var(--space-6) var(--space-4);
  }
}
