/* =====================================================
   BDS SERVICES - FINAL RESPONSIVE CSS
   File: css/responsive.css
   Use after style.css
===================================================== */

/* Global safety */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

/* =========================
   1320px - Large Laptop
========================= */
@media (max-width: 1320px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .hero-grid {
    gap: 38px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  }

  .marketplace-row.compact-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .brand-master-layout {
    grid-template-columns: 1fr 0.75fr;
    gap: 30px;
  }

  .brand-logo-grid.brand-left-grid {
    grid-template-columns: repeat(5, 104px);
    gap: 20px;
  }

  .brand-card {
    width: 104px;
    height: 104px;
  }

  .brand-right-grid {
    width: 360px;
    min-height: 480px;
  }

  .brand-right-grid img,
  .brand-preview-image {
    height: 480px;
  }

  .cert-card img {
    height: 360px;
  }
}

/* =========================
   1080px - Tablet / Menu
========================= */
@media (max-width: 1080px) {
  .header-inner {
    min-height: 76px;
  }

  .main-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    z-index: 9999;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    text-align: center;
    padding: 13px 16px;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .brand-master-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .section-heading.align-left {
    text-align: center !important;
  }

  .hero-copy p,
  .section-heading.align-left p {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-mini-stats {
    margin-inline: auto;
  }

  .visual-card {
    min-height: 400px;
    max-width: 720px;
    margin-inline: auto;
  }

  .feature-grid.four,
  .feature-grid.three,
  .service-grid,
  .testimonial-grid,
  .process-line,
  .process-line.six,
  .process-lines.seven,
  .footer-grid,
  .profit-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-pair,
  .doc-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .doc-grid article:nth-child(5) {
    grid-column: auto;
  }

  .marketplace-row.compact-grid,
  .icon-strip {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .founder-card {
    flex-direction: column;
    text-align: center;
  }

  .founder-photo {
    margin-inline: auto;
  }

  .brand-right-grid {
    display: none !important;
  }

  .brand-logo-grid.brand-left-grid {
    grid-template-columns: repeat(5, 100px);
    gap: 18px;
  }

  .brand-card {
    width: 100px;
    height: 100px;
  }
}

/* =========================
   900px - Tablet Portrait
========================= */
@media (max-width: 900px) {
  .section-pad {
    padding: 76px 0;
  }

  .hero {
    padding: 90px 0 70px;
  }

  .compact-hero {
    padding: 82px 0 68px;
  }

  .policy-hero {
    padding: 76px 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 7vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .visual-card {
    min-height: 360px;
    border-radius: 30px;
  }

  .visual-card::before {
    inset: 18px;
    border-radius: 24px;
  }

  .shopping-bag-3d {
    width: 210px;
    height: 220px;
  }

  .shopping-bag-3d img {
    width: 330px;
    height: 330px;
  }

  .dashboard-3d {
    inset: 52px;
  }

  .laptop-3d {
    width: 300px;
  }

  .globe-3d {
    inset: 48px;
  }

  .contact-cards,
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .leader-avatar {
    width: 118px;
    height: 118px;
  }

  .leader-avatar img {
    width: 92px;
    height: 92px;
  }
}

/* =========================
   720px - Mobile
========================= */
@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

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

  .hero {
    padding: 74px 0 56px;
  }

  .compact-hero {
    padding: 68px 0 56px;
  }

  .policy-hero {
    padding: 64px 0;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand {
    gap: 9px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand b {
    font-size: 1.05rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .main-nav {
    top: 80px;
    left: 14px;
    right: 14px;
    border-radius: 20px;
  }

  .hero-copy h1 {
    font-size: 2.25rem;
    line-height: 1.12;
  }

  .hero-copy p {
    font-size: 0.96rem;
    margin-bottom: 24px;
  }

  .eyebrow,
  .section-kicker {
    justify-content: center;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .eyebrow::before {
    width: 22px;
  }

  .hero-actions,
  .center-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn,
  .header-cta {
    width: 100%;
    min-height: 50px;
  }

  .hero-mini-stats,
  .feature-grid.four,
  .feature-grid.three,
  .service-grid,
  .testimonial-grid,
  .process-line,
  .process-line.six,
  .process-lines.seven,
  .card-pair,
  .contact-cards,
  .form-row,
  .footer-grid,
  .profit-card {
    grid-template-columns: 1fr;
  }

  .hero-mini-stats {
    max-width: 420px;
  }

  .hero-mini-stats div,
  .stat-card {
    padding: 16px;
  }

  .visual-card {
    min-height: 315px;
    border-radius: 26px;
  }

  .visual-card::before {
    inset: 14px;
    border-radius: 20px;
  }

  .shopping-bag-3d {
    width: 170px;
    height: 185px;
    transform: translate(-50%, -44%) rotateY(-6deg) rotateX(5deg);
  }

  .shopping-bag-3d img {
    width: 245px;
    height: 245px;
  }

  .dashboard-3d {
    inset: 32px;
    border-radius: 22px;
    padding: 12px;
  }

  .dashboard-3d img {
    border-radius: 18px;
  }

  .laptop-3d {
    width: min(82vw, 270px);
    padding: 12px;
    border-radius: 22px;
  }

  .laptop-3d img {
    border-radius: 16px;
  }

  .globe-3d {
    inset: 34px;
  }

  .radar-point {
    width: 46px;
    height: 46px;
  }

  .radar-point img {
    width: 32px;
    height: 32px;
  }

  .india-point::after {
    width: 88px;
    left: 42px;
    top: 14px;
  }

  .usa-point::before {
    display: none;
  }

  .visual-contact {
    grid-template-columns: repeat(2, 88px);
    gap: 18px;
  }

  .visual-contact span {
    width: 88px;
    height: 88px;
    font-size: 1.8rem;
    border-radius: 24px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: 2rem;
    line-height: 1.18;
  }

  .section-heading p {
    font-size: 0.95rem;
  }

  .service-card,
  .info-card,
  .testimonial-card,
  .contact-card,
  .trust-panel,
  .leadership-card,
  .policy-content,
  .contact-form,
  .doc-grid article,
  .profit-card,
  .cta-card,
  .process-card,
  .process-cards,
  .process-cardss {
    padding: 22px;
    border-radius: 22px;
  }

  .process-cards,
  .process-cardss {
    align-items: flex-start;
  }

  .process-card span {
    margin-bottom: 14px;
  }

  .founder-card {
    padding: 22px;
  }

  .founder-photo {
    width: 100%;
    max-width: 260px;
    height: 300px;
    margin-inline: auto;
  }

  .marketplace-row.compact-grid,
  .icon-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .marketplace-chip,
  .market-text-chip {
    min-width: 0;
    min-height: 64px;
    padding: 12px;
    border-radius: 16px;
  }

  .marketplace-chip img {
    max-width: 104px;
    max-height: 34px;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    padding: 14px;
    border-radius: 22px;
  }

  .cert-card img {
    height: auto;
    max-height: 360px;
  }

  .table-wrap {
    border-radius: 18px;
  }

  table {
    min-width: 680px;
  }

  th,
  td {
    padding: 14px 16px;
  }

  .contact-form h2 {
    font-size: 1.65rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    border-radius: 14px;
    padding: 13px 14px;
  }

  .map-placeholder {
    min-height: 280px;
    border-radius: 24px;
  }

  .site-footer {
    padding-top: 52px;
  }

  .footer-brand p {
    max-width: none;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }

  .back-to-top {
    right: 18px;
    bottom: 82px;
    width: 44px;
    height: 44px;
  }

  .brand-logo-grid.brand-left-grid {
    grid-template-columns: repeat(4, 88px);
    gap: 16px;
  }

  .brand-card {
    width: 88px;
    height: 88px;
    padding: 10px !important;
  }

  .brand-card img {
    max-width: 64px;
    max-height: 64px;
  }

  .bds-popup-box {
    padding: 36px 22px 30px;
    border-radius: 24px;
  }

  .bds-popup-sub {
    font-size: 0.94rem;
  }

  .bds-popup-cta {
    width: 100%;
    font-size: 0.9rem;
  }

  .bds-popup-close {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
}

/* =========================
   520px - Small Mobile
========================= */
@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-copy p {
    font-size: 0.92rem;
  }

  .section-heading h2 {
    font-size: 1.75rem;
  }

  .visual-card {
    min-height: 280px;
  }

  .shopping-bag-3d {
    width: 150px;
    height: 165px;
  }

  .shopping-bag-3d img {
    width: 210px;
    height: 210px;
  }

  .dashboard-3d {
    inset: 26px;
  }

  .laptop-3d {
    width: min(80vw, 230px);
    padding: 10px;
  }

  .globe-3d {
    inset: 28px;
  }

  .radar-point {
    width: 40px;
    height: 40px;
  }

  .radar-point img {
    width: 28px;
    height: 28px;
  }

  .india-point::after {
    display: none;
  }

  .marketplace-row.compact-grid,
  .icon-strip {
    grid-template-columns: 1fr;
  }

  .brand-logo-grid.brand-left-grid {
    grid-template-columns: repeat(3, 86px);
    gap: 14px;
  }

  .brand-card {
    width: 86px;
    height: 86px;
  }

  .brand-card img {
    max-width: 62px;
    max-height: 62px;
  }

  .founder-photo {
    height: 270px;
  }

  .visual-contact {
    grid-template-columns: repeat(2, 78px);
  }

  .visual-contact span {
    width: 78px;
    height: 78px;
    font-size: 1.55rem;
  }

  .tabs {
    justify-content: stretch;
  }

  .tab-btn {
    width: 100%;
  }

  .marketplace-row span,
  .mini-card-grid span,
  .badge-grid span {
    width: 100%;
  }

  .cta-card h2 {
    font-size: 1.7rem;
  }

  .bds-popup-box h2 {
    font-size: 1.45rem;
  }
}

/* =========================
   380px - Extra Small Mobile
========================= */
@media (max-width: 380px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .hero-copy h1 {
    font-size: 1.82rem;
  }

  .brand-logo-grid.brand-left-grid {
    grid-template-columns: repeat(2, 86px);
  }

  .hero-mini-stats div,
  .stat-card {
    padding: 15px;
  }

  .service-card,
  .info-card,
  .testimonial-card,
  .contact-card,
  .trust-panel,
  .leadership-card,
  .policy-content,
  .contact-form,
  .cta-card {
    padding: 18px;
  }

  .visual-card {
    min-height: 260px;
  }

  .shopping-bag-3d {
    transform: translate(-50%, -42%) scale(0.9);
  }
}

/* =========================
   Mobile Performance Fixes
========================= */
@media (max-width: 768px) {
  .page-loader {
    display: none !important;
  }

  .hero-particles,
  .market-orbit {
    display: none !important;
  }

  .tilt-card,
  .dashboard-3d,
  .laptop-3d,
  .globe-3d,
  .team-bubble,
  .shopping-bag-3d,
  .brand-preview-image,
  .bds-popup-icon,
  .visual-contact span,
  .icon-strip .icon-tile img {
    animation: none !important;
    filter: none !important;
  }

  .bds-popup-overlay,
  .market-orbit {
    backdrop-filter: none !important;
  }

  .visual-card,
  .brand-card,
  .info-card,
  .service-card,
  .contact-card,
  .testimonial-card,
  .dashboard-3d,
  .laptop-3d {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================
   Reduced Motion
========================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1080px) {
  .main-nav {
    top: calc(var(--header-height) + 10px) !important;
    z-index: 999999 !important;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html {
    scroll-padding-top: 82px;
  }
}@media(max-width:768px){.lead-automation-copy,.google-business-card,.article-shell{padding:24px}.admin-shell{width:min(100% - 20px,1180px)}.admin-stats{grid-template-columns:1fr}.blog-card{min-height:auto}}
