/* ==========================================================================
   PS MESSAGE INDIA — RESPONSIVE BREAKPOINTS (GEN-Z / BENTO EDITION)
   Tested across: 320px, 375px, 425px, 768px, 1024px, 1280px, 1440px, 1920px
   ========================================================================== */

/* Ultra-Wide Screens (1440px - 1920px+) */
@media (min-width: 1440px) {
  :root {
    --container-max: 1340px;
  }
}

/* Desktop & Small Laptops (max-width: 1200px) */
@media (max-width: 1200px) {

  .services-grid-4,
  .industries-visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-phone-link span {
    display: none;
  }

  .hero-floating-card.card-top-left {
    left: 10px;
    top: 10px;
  }

  .hero-floating-card.card-bottom-right {
    right: 10px;
    bottom: 10px;
  }
}

/* Tablets & Compact Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-phone-link {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    border-radius: 0;
    border: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px;
    gap: 8px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 20px 40px rgba(23, 19, 41, 0.12);
    z-index: 1050;
  }

  .site-header.scrolled .nav-menu {
    top: 72px;
    height: calc(100vh - 72px);
  }

  .nav-menu.mobile-open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    margin-top: 6px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-item.has-dropdown.dropdown-open .dropdown-menu {
    display: block;
  }

  .hero-slide-grid,
  .page-hero-grid,
  .showcase-wrapper,
  .split-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Bento Grid Responsive Collapse */
  .bento-span-7,
  .bento-span-5 {
    grid-column: span 6;
  }

  .bento-span-4 {
    grid-column: span 6;
  }

  .why-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .why-stat-box:nth-child(2) {
    border-right: none;
  }

  .why-grid,
  .why-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-pipeline-bar {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }

  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-map-section {
    grid-template-columns: 1fr;
  }

  .footer-map-info {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Tablets & Large Phones (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .navbar-container {
    height: 76px;
    justify-content: space-between;
  }

  .site-header.scrolled .navbar-container {
    height: 70px;
  }

  /* Left-aligned Brand Logo on Mobile Header with Increased Size/Width */
  .brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
  }

  .brand-logo img,
  .site-header.scrolled .brand-logo img {
    height: 54px;
    max-height: 54px;
    width: auto;
  }

  .nav-menu {
    top: 76px;
    height: calc(100vh - 76px);
  }

  .site-header.scrolled .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .nav-actions {
    position: relative;
    z-index: 11;
  }

  .nav-actions .btn-primary {
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  /* ==========================================================================
     MOBILE HERO SECTION (ITEMS 1, 2, 3)
     - Slider image comes FIRST
     - Title and buttons come SECOND
     - Description text removed
     - Controls dock hidden (Screenshot 2 hidden)
     - Nothing else displayed on mobile
     ========================================================================== */

  /* 3. Hide Screenshot 2 (hero slider navigation dock) in mobile view */
  .hero-slider-controls {
    display: none !important;
  }

  .hero-slider-section {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 24px;
  }

  .hero-slider-container {
    padding: 8px 0 16px;
  }

  .hero-slide-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* 2. Slider visual comes UP FIRST in mobile view */
  .hero-visual {
    order: 1;
    width: 100%;
    margin: 0 auto;
  }

  .hero-image-frame {
    aspect-ratio: 16 / 10;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  }

  /* Hide floating cards and notifications on mobile (nothing else) */
  .hero-floating-card,
  .hero-floating-card.card-top-left,
  .hero-floating-card.card-bottom-right,
  .hero-live-notification {
    display: none !important;
  }

  /* Content comes SECOND */
  .hero-content {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    width: 100%;
  }

  /* Hide badge on mobile: nothing else */
  .hero-badge {
    display: none !important;
  }

  /* Title: "thn text" */
  .hero-title {
    order: 1;
    font-size: clamp(1.55rem, 6vw, 2.05rem) !important;
    line-height: 1.2;
    margin-bottom: 14px;
    text-align: center;
    max-width: 100%;
  }

  /* 1. Remove that text (hero-description) from screenshot in mobile view */
  .hero-description {
    display: none !important;
  }

  /* Hide channel pills: nothing else */
  .hero-channel-pills {
    display: none !important;
  }

  /* Buttons: "and button" formatted properly and beautifully */
  .hero-cta-group {
    order: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 4px;
    margin-bottom: 0;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
    height: 48px;
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .hero-cta-group .btn-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
  }

  .hero-cta-group .btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    color: #FFFFFF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .hero-cta-group .btn:active {
    transform: scale(0.98);
  }

  /* Bento Grid Responsive Collapse */
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-span-7,
  .bento-span-5,
  .bento-span-4 {
    grid-column: span 1;
  }

  /* Why Choose Us Ribbon on Mobile */
  .why-stats-ribbon {
    grid-template-columns: 1fr;
    border-radius: 20px;
    padding: 18px 20px;
    gap: 14px;
  }

  .why-stat-box:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .why-grid,
  .why-grid-modern {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Why Choose Us Bottom CTA Banner on Mobile */
  .why-bottom-cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 24px 20px;
    gap: 18px;
    border-radius: 20px;
  }

  .why-banner-text h3 {
    font-size: 1.22rem;
  }

  .why-banner-text p {
    font-size: 0.88rem;
  }

  .why-banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .why-banner-btn-white,
  .why-banner-btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .services-grid-4,
  .industries-visual-grid,
  .benefits-grid,
  .steps-grid,
  .blog-grid-3,
  .use-cases-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .dia-channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .showcase-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .showcase-tab-btn {
    padding: 14px 16px;
    gap: 12px;
  }

  .showcase-tab-icon {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
    border-radius: 12px;
  }

  .showcase-tab-text h3 {
    font-size: 1rem;
  }

  .showcase-tab-text p {
    font-size: 0.8rem;
  }

  .phone-mockup-stage {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .phone-device {
    max-width: 340px;
    margin: 0 auto;
  }

  .contact-form-card,
  .contact-info-panel {
    padding: 28px 22px;
  }

  .blog-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search-box {
    min-width: 100%;
  }

  .site-footer {
    padding-bottom: 90px;
  }

  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .footer-cta-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-cta-actions {
    width: 100%;
    justify-content: center;
  }

  /* Left-aligned Footer Brand & Enlarged Logo on Mobile */
  .footer-brand {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .footer-brand a {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
  }

  .footer-brand img {
    height: 66px;
    width: auto;
    margin: 0 0 18px 0;
    display: block;
  }

  .footer-brand p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 460px;
  }

  .footer-brand .social-links {
    justify-content: flex-start;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .step-highlight-box {
    flex-direction: column;
  }

  .announcement-bar {
    font-size: 0.78rem;
    height: 34px;
  }

  .navbar-container {
    height: 74px;
    justify-content: space-between;
  }

  .site-header.scrolled .navbar-container {
    height: 68px;
  }

  /* Left-aligned Brand Logo on Mobile Header with Increased Size/Width */
  .brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
  }

  .brand-logo img,
  .site-header.scrolled .brand-logo img {
    height: 50px;
    max-height: 50px;
    width: auto;
  }

  .nav-menu {
    top: 74px;
    height: calc(100vh - 74px);
  }

  .site-header.scrolled .nav-menu {
    top: 68px;
    height: calc(100vh - 68px);
  }

  .nav-actions .btn-primary {
    padding: 8px 12px;
  }

  .nav-actions .btn-primary span {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-floating-card.card-top-left,
  .hero-live-notification {
    display: none;
  }

  .hero-floating-card { display: none !important; }

  .slider-dot-text {
    display: none;
  }

  .slider-dot {
    padding: 8px 12px;
  }

  .slider-dot-icon {
    width: 26px;
    height: 26px;
    font-size: 0.76rem;
  }

  .industries-grid,
  .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand img {
    height: 64px;
    margin: 0 0 16px 0;
  }

  .footer-brand p {
    text-align: left;
    font-size: 0.88rem;
    max-width: 340px;
    margin-left: 0;
    margin-right: 0;
  }

  .footer-map-section {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .footer-map-info {
    padding: 22px 20px;
  }

  .footer-map-frame {
    min-height: 220px;
  }

  .cta-btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btn-group .btn {
    width: 100%;
  }

  .floating-contact-dock {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .floating-tooltip {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

/* Extra-small Mobile Devices (max-width: 360px) */
@media (max-width: 360px) {

  .brand-logo img,
  .site-header.scrolled .brand-logo img {
    height: 44px;
    max-height: 44px;
  }

  .footer-brand img {
    height: 58px;
  }
}