/* ==========================================================================
   PATHWISE — RESPONSIVE STYLESHEET
   Mobile-first adjustments layered on top of style.css
   ========================================================================== */

/* ------------------------- 1600px+ : extra breathing room ------------------------- */
@media (min-width: 1600px) {
  .container {
    max-width: 1360px;
  }
  .hero-title {
    font-size: 3.9rem;
  }
}

/* ------------------------- <=1200px ------------------------- */
@media (max-width: 1200px) {
  :root {
    --section-pad-y: 6rem;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    row-gap: 2.5rem;
  }
  .footer-newsletter {
    grid-column: span 3;
  }
}

/* ------------------------- 992px=> (bigger then tab) ------------------------- */
@media (min-width: 992px) {
  .offcanvas.res-item {
    position: static;
    visibility: visible;
    transform: translate(0%);
  }

  .offcanvas-lg {
    background-color: #fff !important;
  }

  .offcanvas-lg .offcanvas-body {
    display: block;
  }
}

/* ------------------------- <=992px (tablets) ------------------------- */
@media (max-width: 992px) {
  :root {
    --section-pad-y: 5rem;
  }

  .navbar-collapse.d-none {
    display: none !important;
  }
  .header-actions.d-none {
    display: none !important;
  }

  .hero {
    padding: 7.5rem 0 4.5rem;
  }
  .hero-visual {
    margin-top: 2rem;
  }
  .hero-mockup {
    max-width: 440px;
  }

  .process-track {
    flex-wrap: wrap;
  }
  .process-connector {
    display: none;
  }
  .process-step {
    flex: 1 1 45%;
  }

  .showcase-blob {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-newsletter {
    grid-column: span 2;
  }
}

/* ------------------------- <=768px (large phones / small tablets) ------------------------- */
@media (max-width: 768px) {
  :root {
    --section-pad-y: 4rem;
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .card-match {
    left: -6%;
    top: -6%;
  }
  .card-salary {
    right: -6%;
  }
  .card-notice {
    left: 2%;
  }
  .floating-card {
    padding: 0.7rem 0.85rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-card-tall {
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }

  .process-step {
    flex: 1 1 100%;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ------------------------- <=576px (phones) ------------------------- */
@media (max-width: 576px) {
  .eyebrow {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-mockup {
    max-width: 100%;
  }
  .card-match,
  .card-salary,
  .card-notice {
    position: static;
    margin-top: 0.75rem;
    width: 100%;
  }
  .mockup-frame {
    display: flex;
    flex-direction: column;
  }

  .logo-item {
    font-size: 0.9rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .process-step {
    padding: 1.8rem 1.2rem;
  }

  .showcase-title {
    font-size: 1.4rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-brand,
  .footer-newsletter {
    grid-column: span 1;
  }
  .back-to-top {
    right: 1.2rem;
    bottom: 1.2rem;
    width: 42px;
    height: 42px;
  }
}

/* ------------------------- <=425px ------------------------- */
@media (max-width: 425px) {
  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 0.92rem;
  }
  .cta-inner h2 {
    font-size: 1.6rem;
  }
}

/* ------------------------- <=375px ------------------------- */
@media (max-width: 375px) {
  .brand-text {
    font-size: 1.15rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .plan-price {
    font-size: 2rem;
  }
}

/* ------------------------- <=320px ------------------------- */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.88rem;
  }
  .feature-card,
  .why-card {
    padding: 1.6rem 1.2rem;
  }
}

/* ------------------------- No horizontal scroll guard ------------------------- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
