/* =============================================
   PropNXT Home Page — Responsive Stylesheet
   ============================================= */

/* ---------- Large Desktops (1920px+) ---------- */
@media (min-width: 1920px) {
  :root {
    --container-max: 1320px;
  }

  .hero__title {
    font-size: 56px;
  }

  .section-title {
    font-size: 48px;
  }
}

/* ---------- 1600px ---------- */
@media (max-width: 1600px) {
  :root {
    --container-max: 1200px;
  }
}

/* ---------- 1440px ---------- */
@media (max-width: 1440px) {
  .header__nav-list {
    gap: 26px;
  }

  .header__nav-link {
    font-size: 13px;
  }

  .stats-trust__number {
    font-size: 26px;
  }
}

/* ---------- 1366px ---------- */
@media (max-width: 1366px) {
  .hero__inner {
    gap: 32px;
  }

  .lead-form__box {
    padding: 40px 36px 36px;
  }

  .services__image img {
    min-height: 440px;
  }
}

/* ---------- 1280px ---------- */
@media (max-width: 1280px) {
  .header__nav-list {
    gap: 20px;
  }

  .header__phone {
    font-size: 12px;
    padding: 10px 18px;
  }

  .featured-projects__grid {
    gap: 16px;
  }

  .project-card__name {
    font-size: 18px;
  }
}

/* ---------- 1024px — Tablet Landscape ---------- */
@media (max-width: 1024px) {
  :root {
    --header-height: 72px;
  }

  .header__nav-list {
    gap: 14px;
  }

  .header__nav-link {
    font-size: 12px;
  }

  .header__phone {
    font-size: 11px;
    padding: 10px 16px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero__content {
    order: 1;
    max-width: 100%;
    text-align: left;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__buttons {
    justify-content: flex-start;
  }

  .hero__visual {
    display: none;
  }

  .hero__bg img {
    object-position: center center;
  }

  .hero__bg::after {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.88) 50%,
      rgba(255, 255, 255, 0.6) 100%
    );
  }

  .stats-trust__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stats-trust {
    margin-top: 20px;
  }

  .stats-trust__indicators {
    gap: 16px 28px;
  }

  .why-choose__inner,
  .services__inner,
  .investment__inner,
  .footer-cta__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .why-choose__image {
    order: 2;
    max-width: 560px;
    margin: 0 auto;
  }

  .services__image {
    max-width: 520px;
    margin: 0 auto;
  }

  .services__image img {
    min-height: 380px;
  }

  .services__card {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .featured-projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .investment__spacer {
    display: none;
  }

  .investment__content {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
  }

  .investment__text {
    max-width: 100%;
  }

  .process__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .process__card--center {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-cta__text {
    text-align: center;
  }

  .footer-cta__desc {
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-cta__form-wrap {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ---------- 992px — Tablet Portrait / Mobile Nav ---------- */
@media (max-width: 992px) {
  .header__phone {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    display: block;
    position: fixed;
    top: 0;
    right: -320px;
    left: auto;
    transform: none;
    width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    padding: 90px 32px 32px;
    transition: right var(--transition);
    z-index: 1001;
    overflow-y: auto;
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .header__nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .header__nav-link {
    display: block;
    padding: 16px 0;
    font-size: 15px;
  }

  .header__nav-link::after {
    display: none;
  }

  .header__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(10, 29, 51, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .header__overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .lead-form__box {
    padding: 36px 28px 32px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .process__card--center {
    max-width: 100%;
  }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 60px;
  }

  .stats-trust {
    margin-top: -30px;
    padding-bottom: 30px;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .stats-trust__indicators {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .lead-form {
    padding-bottom: 60px;
  }

  .lead-form__submit {
    width: 100%;
    min-width: unset;
  }

  .why-choose,
  .services,
  .featured-projects,
  .investment,
  .process,
  .testimonials,
  .footer-cta {
    padding: 60px 0;
  }

  .process__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process__card--center {
    grid-column: auto;
    max-width: 100%;
  }

  /* Horizontal swipe — Featured Projects */
  .featured-projects__slider {
    margin: 0 -20px;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .featured-projects__slider::-webkit-scrollbar {
    display: none;
  }

  .featured-projects__grid {
    display: flex;
    gap: 16px;
    width: max-content;
    padding-bottom: 8px;
  }

  .featured-projects__grid .project-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }

  /* Horizontal swipe — Testimonials */
  .testimonials__slider {
    margin: 0 -20px;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .testimonials__slider::-webkit-scrollbar {
    display: none;
  }

  .testimonials__grid {
    display: flex;
    gap: 16px;
    width: max-content;
    padding-bottom: 8px;
  }

  .testimonials__grid .testimonial-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    min-height: 220px;
  }

  .glass-form {
    padding: 24px 20px;
  }
}

/* ---------- 576px ---------- */
@media (max-width: 576px) {
  .stats-trust__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stats-trust__card {
    padding: 18px 14px;
  }

  .stats-trust__number {
    font-size: 22px;
  }

  .stats-trust__label {
    font-size: 11px;
  }

  .lead-form__box {
    padding: 28px 20px 28px;
    border-radius: 14px;
  }

  .services__card {
    padding: 28px 24px;
  }

  .featured-projects__grid .project-card {
    flex: 0 0 260px;
  }

  .testimonials__grid .testimonial-card {
    flex: 0 0 260px;
  }

  .footer-cta__title {
    font-size: 28px;
  }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .header__logo img {
    height: 32px;
  }

  .hero__badge {
    font-size: 11px;
    padding: 5px 14px;
  }

  .hero__title {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .btn {
    font-size: 13px;
    padding: 12px 22px;
  }

  .investment__block-icon {
    width: 40px;
    height: 40px;
  }

  .investment__block h4 {
    font-size: 15px;
  }

  .process__title {
    font-size: 20px;
  }

  .process__card {
    padding: 24px 20px;
  }
}

/* ---------- 425px ---------- */
@media (max-width: 425px) {
  .container {
    padding: 0 16px;
  }

  .stats-trust__number {
    font-size: 20px;
  }

  .featured-projects__grid .project-card {
    flex: 0 0 240px;
  }

  .testimonials__grid .testimonial-card {
    flex: 0 0 240px;
  }
}

/* ---------- 390px ---------- */
@media (max-width: 390px) {
  .header__nav {
    width: 280px;
    right: -280px;
  }

  .hero__title {
    font-size: 30px;
  }

  .lead-form__title {
    font-size: 24px;
  }
}

/* ---------- 375px ---------- */
@media (max-width: 375px) {
  .stats-trust__item {
    font-size: 12px;
  }

  .project-card__body {
    padding: 16px 14px 18px;
  }

  .project-card__name {
    font-size: 17px;
  }
}

/* ---------- 360px ---------- */
@media (max-width: 360px) {
  .stats-trust__card {
    padding: 16px 10px;
  }

  .stats-trust__number {
    font-size: 18px;
  }

  .stats-trust__label {
    font-size: 10px;
  }

  .featured-projects__grid .project-card {
    flex: 0 0 220px;
  }

  .testimonials__grid .testimonial-card {
    flex: 0 0 220px;
  }
}

/* ---------- 320px — Smallest ---------- */
@media (max-width: 320px) {
  .container {
    padding: 0 12px;
  }

  .hero__title {
    font-size: 26px;
  }

  .btn {
    font-size: 12px;
    padding: 11px 18px;
  }

  .lead-form__box {
    padding: 24px 16px;
  }

  .glass-form {
    padding: 20px 16px;
  }

  .featured-projects__grid .project-card {
    flex: 0 0 200px;
  }

  .testimonials__grid .testimonial-card {
    flex: 0 0 200px;
  }
}
