/* ============================================
   PREMIUM DIGITAL MARKETPLACE — Responsive Styles
   ============================================ */

/* ---------- 1440px+ (Large Desktop) ---------- */
@media (min-width: 1441px) {
  .container {
    max-width: var(--container-wide);
  }
}

/* ---------- 1280px (Desktop) ---------- */
@media (max-width: 1280px) {
  :root {
    --space-4xl: 5rem;
    --space-5xl: 6rem;
  }

  .hero__inner {
    gap: var(--space-2xl);
  }

  .hero__floating-card:nth-child(2) { top: 2%; right: 2%; }
  .hero__floating-card:nth-child(3) { top: 20%; left: -2%; }
  .hero__floating-card:nth-child(4) { bottom: 20%; right: -2%; }
  .hero__floating-card:nth-child(5) { bottom: 2%; left: 5%; }
  .hero__floating-card:nth-child(6) { top: 8%; left: 15%; }

  .footer__grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
    gap: var(--space-2xl);
  }
}

/* ---------- 1024px (Tablet Landscape / Small Desktop) ---------- */
@media (max-width: 1024px) {
  :root {
    --header-height: 64px;
    --header-height-scrolled: 56px;
    --space-4xl: 4rem;
    --space-5xl: 5rem;
  }

  /* Header */
  .header__nav {
    display: none;
  }

  .header__menu-btn {
    display: flex;
  }

  .header__actions .btn {
    display: none;
  }

  .header__actions .btn--primary {
    display: inline-flex;
  }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    min-height: 320px;
    order: -1;
  }

  .hero__orbit {
    width: 280px;
    height: 280px;
  }

  .hero__central-card {
    width: 200px;
  }

  .hero__floating-card {
    font-size: 0.75rem;
    padding: var(--space-sm);
  }

  /* Trust Strip */
  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* How It Works */
  .how-it-works__steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .how-it-works__steps::before {
    display: none;
  }

  /* Why Us */
  .why-us__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .why-us__statement {
    text-align: center;
  }

  /* Service Hero */
  .service-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .service-hero__content {
    text-align: center;
  }

  .service-hero__logo {
    margin: 0 auto var(--space-lg);
  }

  .service-hero__actions {
    justify-content: center;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Grid adjustments */
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ---------- 768px (Tablet Portrait) ---------- */
@media (max-width: 768px) {
  :root {
    --space-3xl: 3rem;
    --space-4xl: 3.5rem;
    --space-5xl: 4rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  /* Hero */
  .hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .hero__visual {
    min-height: 260px;
  }

  .hero__orbit {
    width: 220px;
    height: 220px;
  }

  .hero__central-card {
    width: 170px;
    padding: var(--space-md);
  }

  .hero__floating-card:nth-child(2),
  .hero__floating-card:nth-child(6) {
    display: none;
  }

  .hero__floating-card:nth-child(3) { top: 15%; left: 0; }
  .hero__floating-card:nth-child(4) { bottom: 15%; right: 0; }
  .hero__floating-card:nth-child(5) { bottom: 0; left: 5%; }

  /* Trust Strip */
  .trust-strip__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .trust-strip__item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  /* How It Works */
  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .how-it-works__step {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    text-align: left;
  }

  .how-it-works__step-number {
    margin: 0;
    flex-shrink: 0;
  }

  /* Why Us */
  .why-us__features {
    grid-template-columns: 1fr;
  }

  /* Grid */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

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

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

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

  /* Search */
  .search-section__filters {
    gap: var(--space-xs);
  }

  .search-filter {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

  /* Page Header */
  .page-header {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  /* Service Page */
  .service-info-card {
    padding: var(--space-xl);
  }

  /* Keep service heroes informative without creating a long first screen. */
  .service-hero--v2 {
    padding: 0.85rem 0 1.35rem;
  }

  .service-hero--v2 .breadcrumb {
    margin-bottom: 0.85rem;
  }

  .service-hero--v2 .service-hero__inner {
    gap: 1.1rem;
  }

  .service-hero--v2 .service-hero__logo--v2 {
    width: 56px;
    height: 56px;
    margin-bottom: 0.65rem;
    border-radius: 16px;
    font-size: 1.7rem;
  }

  .service-hero--v2 .service-hero__badge {
    margin-bottom: 0.55rem;
    padding: 0.28rem 0.7rem;
    font-size: 0.66rem;
  }

  .service-hero--v2 .service-hero__title {
    max-width: 620px;
    margin: 0 auto 0.55rem;
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    line-height: 1.12;
  }

  .service-hero--v2 .service-hero__description {
    max-width: 620px;
    margin: 0 auto 0.9rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .service-hero--v2 .service-hero__actions {
    gap: 0.65rem;
  }

  .service-hero--v2 .service-hero__actions .btn {
    min-height: 42px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .service-hero--v2 .service-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.8rem;
  }

  .service-hero--v2 .service-hero__meta-item {
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    line-height: 1.25;
    text-align: left;
  }

  .service-hero--v2 .service-info-card {
    padding: 0.85rem;
    border-radius: 16px;
  }

  .service-hero--v2 .service-info-card__title {
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
  }

  .service-hero--v2 .service-info-card__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .service-hero--v2 .service-info-card__item {
    align-items: flex-start;
    gap: 0.4rem;
    min-width: 0;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .service-hero--v2 .service-info-card__item-icon {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .service-hero--v2 .service-info-card__price {
    grid-column: 1 / -1;
    margin-top: 0.1rem;
    padding-top: 0.55rem;
  }

  .service-hero--v2 .service-info-card__price-value {
    font-size: 1.15rem;
  }

  /* Package Cards */
  .package-card {
    padding: var(--space-xl);
  }

  /* Sticky Order Bar */
  .sticky-order-bar {
    display: block;
  }

  /* Back to Top */
  .back-to-top {
    bottom: 80px;
  }
}

/* ---------- 480px (Large Mobile) ---------- */
@media (max-width: 480px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Header */
  .header__inner {
    padding: 0 var(--space-md);
  }

  .header__logo {
    font-size: 1.15rem;
  }

  .header__logo-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  /* Hero */
  .hero__visual {
    min-height: 220px;
  }

  .hero__orbit {
    width: 180px;
    height: 180px;
  }

  .hero__central-card {
    width: 150px;
    padding: var(--space-md);
  }

  .hero__floating-card {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }

  .hero__floating-card:nth-child(4) {
    display: none;
  }

  /* Trust Strip */
  .trust-strip__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  /* Buttons */
  .btn--lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  /* Grid */
  .grid--auto-sm {
    grid-template-columns: 1fr;
  }

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

  /* Search */
  .search-section__input {
    font-size: 0.95rem;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
  }

  /* FAQ */
  .faq__question {
    padding: var(--space-md);
    font-size: 0.9rem;
  }

  .faq__answer-inner {
    padding: 0 var(--space-md) var(--space-md);
  }

  /* Blog */
  .blog-card__image {
    height: 160px;
  }

  .blog-card__body {
    padding: var(--space-lg);
  }

  /* Service Page */
  .service-hero__actions {
    flex-direction: column;
  }

  .service-hero__actions .btn {
    width: 100%;
  }

  .service-hero--v2 {
    padding: 0.7rem 0 1.1rem;
  }

  .service-hero--v2 .service-hero__inner {
    gap: 0.85rem;
  }

  .service-hero--v2 .service-hero__logo--v2 {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    font-size: 1.45rem;
  }

  .service-hero--v2 .service-hero__title {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  .service-hero--v2 .service-hero__description {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .service-hero--v2 .service-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .service-hero--v2 .service-hero__actions .btn {
    min-width: 0;
    min-height: 40px;
    padding: 0.55rem 0.45rem;
    font-size: 0.78rem;
  }

  .service-hero--v2 .service-hero__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.3rem;
  }

  .service-hero--v2 .service-hero__meta-item {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.2rem;
    padding: 0.35rem 0.15rem;
    font-size: 0.6rem;
    line-height: 1.2;
    text-align: center;
  }

  .service-hero--v2 .service-hero__meta-icon {
    flex: 0 0 auto;
  }

  .service-hero--v2 .service-info-card {
    display: none;
  }

  /* Not Found */
  .not-found__code {
    font-size: 4rem;
  }

  .not-found__actions {
    flex-direction: column;
  }

  .not-found__actions .btn {
    width: 100%;
  }

  /* Mobile Menu */
  .mobile-menu {
    max-width: 100%;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.8rem;
  }
}

/* ---------- 375px (iPhone SE / Small Mobile) ---------- */
@media (max-width: 375px) {
  .hero__visual {
    min-height: 200px;
  }

  .hero__orbit {
    width: 150px;
    height: 150px;
  }

  .hero__central-card {
    width: 130px;
    padding: var(--space-sm);
  }

  .hero__floating-card:nth-child(3),
  .hero__floating-card:nth-child(5) {
    display: none;
  }

  .trust-strip__grid {
    grid-template-columns: 1fr;
  }

  .search-section__filters {
    justify-content: flex-start;
  }

  .search-filter {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
}

/* ---------- New Components: Stats, Marquee, Guarantees, Highlights, CTA ---------- */

/* 1024px */
@media (max-width: 1024px) {
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .delivery-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .delivery-timeline::before {
    display: none;
  }

  .hero__proof {
    justify-content: center;
  }

  .service-hero__meta {
    justify-content: center;
  }
}

/* 768px */
@media (max-width: 768px) {
  .cta-banner {
    padding: var(--space-3xl) var(--space-xl);
    border-radius: var(--radius-xl);
  }

  .cta-banner__actions {
    flex-direction: column;
  }

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

  .marquee__item {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .stat-card__icon {
    margin-bottom: var(--space-sm);
  }
}

/* 480px */
@media (max-width: 480px) {
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

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

  .stat-card__label {
    font-size: 0.78rem;
  }

  .delivery-timeline {
    grid-template-columns: 1fr;
  }

  .delivery-timeline__step {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    text-align: left;
  }

  .delivery-timeline__icon {
    margin: 0;
    flex-shrink: 0;
  }

  .cta-banner {
    padding: var(--space-2xl) var(--space-lg);
  }

  .cta-banner__note {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero__proof {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .service-hero__meta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
}

/* ============================================
   PRICING TABLES — TRUE HORIZONTAL MOBILE LAYOUT
   Keeps every row and column visible without horizontal scrolling.
   ============================================ */
@media (max-width: 768px) {
  .pricing-table-wrapper,
  .pricing-table-wrapper > div,
  .pricing-table-viewport {
    width: 100%;
    max-width: 100%;
    overflow-x: visible !important;
  }

  .pricing-table {
    display: table;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: clamp(0.52rem, 1.8vw, 0.7rem);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  }

  .pricing-table thead {
    display: table-header-group;
  }

  .pricing-table tbody {
    display: table-row-group;
  }

  .pricing-table tr {
    display: table-row;
  }

  .pricing-table th,
  .pricing-table tbody td {
    display: table-cell;
    width: auto;
    min-width: 0;
    padding: 0.5rem 0.22rem;
    line-height: 1.25;
    vertical-align: middle;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .pricing-table thead th {
    padding: 0.55rem 0.18rem;
    font-size: clamp(0.48rem, 1.7vw, 0.64rem);
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
  }

  .pricing-table tbody td::before {
    display: none;
  }

  .pricing-table th:first-child,
  .pricing-table td:first-child {
    width: 20%;
  }

  .pricing-table th:nth-child(2),
  .pricing-table td:nth-child(2) {
    width: 43%;
    text-align: left;
  }

  .pricing-table th:nth-last-child(2),
  .pricing-table td:nth-last-child(2) {
    width: 16%;
  }

  .pricing-table th:last-child,
  .pricing-table td:last-child {
    width: 21%;
  }

  .pricing-table .cell-group {
    display: inline-flex;
    justify-content: center;
    gap: 0.2rem;
    line-height: 1.15;
  }

  .pricing-table__badge,
  .pricing-table .badge {
    padding: 0.12rem 0.24rem;
    font-size: 0.45rem;
    letter-spacing: 0;
  }

  .pricing-table .order-cell .btn {
    width: auto;
    min-height: 30px;
    padding: 0.3rem 0.28rem;
    font-size: clamp(0.48rem, 1.7vw, 0.64rem);
    border-radius: 6px;
    white-space: normal;
    line-height: 1.1;
    justify-content: center;
  }

  .pricing-table .order-cell > div {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.2rem !important;
  }

  .price-chip {
    max-width: 100%;
    padding: 0.22rem 0.28rem;
    font-size: clamp(0.48rem, 1.8vw, 0.66rem);
    white-space: normal;
    line-height: 1.1;
  }

  .pricing-table__section-header {
    width: 100% !important;
    padding: 0.42rem !important;
    font-size: 0.65rem;
  }

  .platform-cell {
    justify-content: center;
    gap: 0.22rem;
  }

  .platform-cell__icon {
    display: none;
  }

  .platform-cell strong {
    font-size: inherit;
    overflow-wrap: anywhere;
  }

  /* The seven-column catalog needs a denser but still complete grid. */
  #home-services-table th,
  #home-services-table td {
    width: 12.5% !important;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    text-align: center;
  }

  #home-services-table th:first-child,
  #home-services-table td:first-child {
    width: 17% !important;
  }

  #home-services-table th:last-child,
  #home-services-table td:last-child {
    width: 20% !important;
  }

  #home-services-table .badge {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}
