/* ============================================================
   SOUTH DELHI BUSINESS PLATFORM - responsive.css
   Breakpoints: 1920, 1600, 1440, 1366, 1200, 992, 768, 576, 425, 375, 320
   ============================================================ */

/* ============================================================
   EXTRA LARGE: 1600px and below
============================================================ */
@media (max-width: 1600px) {
  .hero-heading {
    font-size: 2.8rem;
  }
}

/* ============================================================
   LARGE DESKTOP: 1440px
============================================================ */
@media (max-width: 1440px) {
  .hero-heading {
    font-size: 2.6rem;
  }
}

/* ============================================================
   STANDARD LAPTOP: 1366px
============================================================ */
@media (max-width: 1366px) {
  .hero-heading {
    font-size: 2.4rem;
  }

  .stat-number {
    font-size: 1.7rem;
  }
}

/* ============================================================
   MEDIUM DESKTOP: 1200px
============================================================ */
@media (max-width: 1199.98px) {
  .section-pad {
    padding: 64px 0;
  }

  .hero-heading {
    font-size: 2.2rem;
  }

  .deals-wrapper {
    padding: 28px;
  }

  .newsletter-form {
    min-width: 0;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-item {
    padding: 24px 18px;
    gap: 12px;
  }
}

/* ============================================================
   TABLET LANDSCAPE: 992px
============================================================ */
@media (max-width: 991.98px) {
  :root {
    --navbar-h: 64px;
  }

  .section-pad {
    padding: 56px 0;
  }

  /* .hero-section {
    min-height: 85vh;
  } */

  .hero-heading {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  /* Stats - 2 per row */
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 22px 20px;
  }

  .col-md-3:nth-child(odd) .stat-item {
    border-right: 1px solid var(--border);
  }

  .col-md-3:nth-child(3) .stat-item,
  .col-md-3:nth-child(4) .stat-item {
    border-bottom: none;
  }

  /* Category cards */
  .category-card {
    height: 170px;
  }

  .category-card .locality-name {
    font-size: 0.8rem;
  }

  /* Deals */
  .deals-promo {
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .deals-wrapper {
    padding: 24px;
  }

  /* Why cards */
  .why-card {
    padding: 22px 18px;
  }

  /* Newsletter */
  .newsletter-card {
    padding: 32px 24px;
  }

  .newsletter-form {
    width: 100%;
    flex-wrap: wrap;
  }

  /* Footer columns */
  .footer-desc {
    max-width: 100%;
  }

  /* Localities */
  .locality-card {
    height: 180px;
  }

}

/* ============================================================
   TABLET PORTRAIT: 768px
============================================================ */
@media (max-width: 767.98px) {
  .section-pad {
    padding: 48px 0;
  }

  /* .hero-section {
    min-height: 80vh;
  } */

  .hero-heading {
    font-size: 1.85rem;
  }

  .hero-sub {
    font-size: 0.85rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 5px 14px;
  }

  /* Search card */
  .search-card {
    padding: 16px;
  }

  .search-hint {
    display: none;
  }

  /* Stats */
  .stat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-item {
    padding: 18px 14px;
    gap: 10px;
  }

  /* Section header */
  .section-title {
    font-size: 1.2rem;
  }

  .view-all {
    font-size: 0.75rem;
  }

  /* Categories */
  .category-card {
    padding: 18px 10px;
    min-height: 90px;
    gap: 8px;
  }

  .cat-icon {
    font-size: 1.4rem;
  }

  .cat-title {
    font-size: 0.72rem;
  }

  /* Localities */
  .locality-card {
    height: 160px;
  }

  .locality-name {
    font-size: 0.82rem;
  }

  /* Deals */
  .deals-heading {
    font-size: 1.3rem;
  }

  .deals-wrapper {
    padding: 20px;
  }

  /* Why */
  .why-card {
    padding: 20px 16px;
  }

  .why-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  /* Newsletter */
  .newsletter-card {
    padding: 28px 20px;
  }

  .newsletter-heading {
    font-size: 1rem;
  }

  .newsletter-icon {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  /* Footer */
  .footer {
    padding-top: 48px;
  }

  .footer-top {
    padding-bottom: 32px;
  }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ============================================================
   MOBILE LARGE: 576px
============================================================ */
@media (max-width: 575.98px) {
  .section-pad {
    padding: 40px 0;
  }

    /* .hero-section {
      min-height: 0;
      height: auto;
    } */

  /* .hero-content {
    padding: 0;
  } */

  .hero-heading {
    font-size: 1.65rem;
    letter-spacing: -0.3px;
  }

  .hero-sub {
    font-size: 0.8rem;
    br { display: none; }
  }

  /* Stats: stack in single column on very small */
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    flex-direction: row;
  }

  /* Locality cards: 2 per row - height smaller */
  .locality-card {
    height: 150px;
  }

  #categoriesGrid .category-card {
    height: 160px;
    min-height: 0;
    padding: 0;
    gap: 0;
  }

  #categoriesGrid .category-card .locality-name {
    font-size: 0.82rem;
  }

  /* Deals promo */
  .deals-eyebrow {
    font-size: 0.6rem;
  }

  .deals-heading {
    font-size: 1.2rem;
  }

  .deals-sub {
    font-size: 0.78rem;
  }

  /* Why */
  .why-section .section-title {
    font-size: 1.1rem;
  }

  /* Newsletter form - stack */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input {
    width: 100% !important;
  }

  .btn-subscribe {
    width: 100%;
  }

  /* Footer */
  .footer-legal {
    gap: 12px;
  }

  .footer-legal a {
    font-size: 0.7rem;
  }

  .footer-copy {
    font-size: 0.7rem;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .section-header .section-title {
    min-width: 0;
  }

  .view-all {
    white-space: normal;
    margin-left: auto;
  }
}

/* ============================================================
   MOBILE: 425px
============================================================ */
@media (max-width: 425px) {
  :root {
    --navbar-h: 60px;
  }

  .hero-heading {
    font-size: 1.5rem;
  }

  .hero-badge {
    font-size: 0.6rem;
    gap: 6px;
    padding: 5px 12px;
  }

  .search-card {
    padding: 14px;
  }

  .btn-search {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  /* Category cards: 2 per row always */
  .category-card {
    padding: 16px 8px;
    gap: 6px;
    min-height: 84px;
  }

  .cat-icon {
    font-size: 1.25rem;
  }

  .cat-title {
    font-size: 0.68rem;
  }

  /* Locality: slightly smaller */
  .locality-card {
    height: 130px;
  }

  .locality-name {
    font-size: 0.78rem;
  }

  .locality-count {
    font-size: 0.65rem;
  }

  /* Popular categories use the same image cards as localities on mobile. */
  #categoriesGrid .category-card {
    height: 130px;
    min-height: 0;
    padding: 0;
    gap: 0;
  }

  #categoriesGrid .category-card .locality-name {
    font-size: 0.78rem;
  }

  /* Deals */
  .deals-wrapper {
    padding: 16px;
  }

  .deals-heading {
    font-size: 1.1rem;
  }

  .why-card {
    padding: 18px 14px;
  }

  .newsletter-card {
    padding: 22px 16px;
  }

  .newsletter-heading {
    font-size: 0.92rem;
  }

  .footer-brand .brand-title {
    font-size: 0.72rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ============================================================
   MOBILE: 375px
============================================================ */
@media (max-width: 375px) {
  .hero-heading {
    font-size: 1.4rem;
  }

  .hero-sub {
    font-size: 0.75rem;
  }

  .brand-title {
    font-size: 0.75rem;
  }

  .stat-item {
    gap: 8px;
    padding: 14px 12px;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .locality-card {
    height: 120px;
  }

  #categoriesGrid .category-card {
    height: 120px;
  }

  .deals-heading {
    font-size: 1rem;
  }

  .why-title {
    font-size: 0.82rem;
  }

  .why-desc {
    font-size: 0.7rem;
  }
}

/* ============================================================
   MOBILE: 320px (smallest)
============================================================ */
@media (max-width: 320px) {
  :root {
    --navbar-h: 56px;
  }

  .hero-heading {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1rem;
  }

  .category-card {
    min-height: 78px;
    padding: 12px 6px;
  }

  .cat-icon {
    font-size: 1.1rem;
  }

  .cat-title {
    font-size: 0.62rem;
  }

  .locality-card {
    height: 110px;
  }

  #categoriesGrid .category-card {
    height: 110px;
  }

  .why-card {
    padding: 14px 12px;
  }

  .why-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .newsletter-card {
    padding: 18px 12px;
  }

  .btn-subscribe {
    font-size: 0.78rem;
    padding: 0.55rem 1rem;
  }

  .footer {
    padding-top: 36px;
  }
}

/* ============================================================
   PRINT STYLES
============================================================ */
@media print {
  .navbar,
  .back-to-top,
  #page-loader,
  .newsletter-section {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
