/* =========================================================
   DOMPUNG INDONESIA V2 - RESPONSIVE CSS
   File: assets/css/responsive.css
   ========================================================= */

/* =========================
   LARGE DESKTOP
   ========================= */
@media (min-width: 1440px) {
  :root {
    --container: 1220px;
    --container-wide: 1400px;
  }

  .hero-title {
    font-size: clamp(5.4rem, 8.6vw, 10.4rem);
  }

  .hero-visual {
    min-height: 680px;
  }

  .hero-donut {
    width: min(88%, 620px);
  }
}

/* =========================
   DESKTOP MEDIUM
   ========================= */
@media (max-width: 1200px) {
  :root {
    --section-space: 86px;
    --section-space-sm: 58px;
  }

  .hero-layout {
    grid-template-columns: 1fr 0.95fr;
    gap: 30px;
  }

  .hero-title {
    font-size: clamp(4rem, 8.8vw, 8rem);
  }

  .hero-visual {
    min-height: 560px;
  }

  .product-preview-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 992px) {
  :root {
    --section-space: 76px;
    --section-space-sm: 52px;
  }

  .container,
  .container-wide {
    width: min(100% - 32px, var(--container));
  }

  .nav-shell {
    width: min(100% - 32px, var(--container-wide));
  }

  .nav-menu {
    gap: 2px;
  }

  .nav-link {
    padding-inline: 11px;
    font-size: 0.82rem;
  }

  .nav-cta .btn {
    padding-inline: 14px;
  }

  .home-hero {
    min-height: auto;
    padding: 124px 0 72px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .hero-copy {
    max-width: 820px;
    margin-inline: auto;
  }

  .hero-kicker {
    margin-inline: auto;
  }

  .hero-title {
    margin-inline: auto;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-info-row {
    justify-content: center;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-blob {
    width: min(78%, 520px);
  }

  .hero-donut {
    width: min(76%, 480px);
  }

  .hero-sticker.top {
    top: 48px;
    right: 18%;
  }

  .hero-sticker.bottom {
    left: 16%;
    bottom: 54px;
  }

  .hero-floating-card {
    right: 10%;
    bottom: 16px;
  }

  .promo-strip-card {
    grid-template-columns: 1fr;
  }

  .social-preview-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outlet-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: auto;
    padding: 132px 0 64px;
  }
}

/* =========================
   MOBILE NAV BREAKPOINT
   ========================= */
@media (max-width: 768px) {
  :root {
    --section-space: 62px;
    --section-space-sm: 42px;
  }

  html {
    font-size: 15px;
  }

  body.nav-is-open {
    overflow: hidden;
  }

  .container,
  .container-wide {
    width: min(100% - 28px, var(--container));
  }

  /* =========================
     NAVBAR MOBILE
     ========================= */
  .site-navbar {
    padding: 12px 0;
    z-index: 9999;
  }

  .site-navbar.is-scrolled {
    padding: 8px 0;
  }

  .nav-shell {
    position: relative;
    z-index: 10000;
    width: min(100% - 24px, var(--container-wide));
    min-height: 62px;
    padding: 8px 9px 8px 12px;
    border-radius: 28px;
  }

  .nav-logo {
    width: 46px;
    height: 46px;
  }

  .nav-brand {
    gap: 10px;
  }

  .nav-brand-title {
    font-size: 1rem;
  }

  .nav-brand-subtitle {
    font-size: 0.62rem;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    position: relative;
    z-index: 10002;
    display: grid;
    flex: 0 0 auto;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 12px);
    z-index: 10001;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 26px;
    background: rgba(254, 246, 229, 0.96);
    border: 1px solid rgba(114, 51, 25, 0.16);
    box-shadow: 0 22px 58px rgba(72, 17, 7, 0.16);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity var(--transition-normal),
      visibility var(--transition-normal),
      transform var(--transition-normal);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    color: var(--color-choco);
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(114, 51, 25, 0.09);
  }

  .nav-link:hover,
  .nav-link.is-active {
    color: var(--color-cream);
    background: var(--color-choco);
  }

  /* =========================
     HERO MOBILE
     ========================= */
  .home-hero {
    min-height: auto;
    padding: 112px 0 54px;
  }

  .home-hero::after {
    right: -260px;
    top: -180px;
    width: 520px;
    height: 520px;
    min-width: unset;
    min-height: unset;
  }

  .hero-layout {
    gap: 22px;
  }

  .hero-kicker {
    margin-bottom: 16px;
    padding: 8px 12px;
    font-size: 0.68rem;
  }

  .hero-title {
    max-width: 520px;
    font-size: clamp(3.3rem, 17vw, 6.2rem);
    line-height: 0.78;
    letter-spacing: -0.075em;
  }

  .hero-title .hero-title-accent {
    -webkit-text-stroke: 1.4px var(--color-choco);
    text-shadow: 5px 5px 0 rgba(72, 17, 7, 0.1);
  }

  .hero-description {
    max-width: 460px;
    margin-top: 20px;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 10px;
  }

  .hero-actions .btn {
    min-width: min(100%, 210px);
  }

  .hero-info-row {
    margin-top: 22px;
    gap: 8px;
  }

  .hero-info-pill {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.74rem;
  }

  .hero-visual {
    min-height: 390px;
    margin-top: 4px;
  }

  .hero-blob {
    width: min(86%, 380px);
  }

  .hero-donut {
    width: min(78%, 340px);
  }

  .hero-sticker {
    width: 94px;
    height: 94px;
    border-width: 4px;
    font-size: 0.8rem;
  }

  .hero-sticker.top {
    top: 20px;
    right: 8%;
  }

  .hero-sticker.bottom {
    left: 6%;
    bottom: 54px;
  }

  .hero-floating-card {
    right: 50%;
    bottom: 0;
    max-width: 236px;
    padding: 14px;
    transform: translateX(50%);
    border-radius: 22px;
  }

  .hero-floating-card strong {
    font-size: 1.05rem;
  }

  .hero-floating-card span {
    font-size: 0.78rem;
  }

  /* =========================
     TYPO MOBILE
     ========================= */
  .section-head {
    margin-bottom: 30px;
  }

  .section-head.center {
    text-align: left;
    margin-inline: 0;
  }

  .section-title {
    font-size: clamp(2rem, 10vw, 3.25rem);
    line-height: 0.98;
  }

  .section-text {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .section-head.center .section-text {
    margin-inline: 0;
  }

  .eyebrow,
  .section-kicker {
    padding: 7px 11px;
    font-size: 0.68rem;
  }

  /* =========================
     GRID MOBILE
     ========================= */
  .grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .product-preview-grid,
  .feature-grid,
  .outlet-grid,
  .social-preview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .promo-strip {
    margin-top: -22px;
  }

  .promo-strip-card {
    padding: 22px;
    border-radius: 30px;
  }

  .promo-mini-grid {
    grid-template-columns: 1fr;
  }

  .promo-mini-card {
    min-height: auto;
  }

  .card {
    border-radius: 24px;
  }

  .card-img {
    height: 220px;
  }

  .card-body {
    padding: 20px;
  }

  .product-card .card-img {
    height: 220px;
  }

  .feature-card,
  .outlet-card {
    padding: 20px;
    border-radius: 24px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .cta-panel {
    padding: 34px 22px;
    border-radius: 32px;
  }

  .cta-title {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .cta-actions {
    gap: 10px;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .social-card {
    padding: 24px;
    border-radius: 30px;
  }

  .social-gallery {
    grid-template-columns: 1fr;
  }

  .social-gallery-item {
    min-height: 280px;
  }

  /* =========================
     INNER PAGE MOBILE
     ========================= */
  .page-hero {
    min-height: auto;
    padding: 116px 0 56px;
  }

  .breadcrumb {
    margin-bottom: 14px;
    font-size: 0.7rem;
  }

  .page-title {
    font-size: clamp(3rem, 15vw, 5.4rem);
    line-height: 0.8;
  }

  .page-description {
    margin-top: 18px;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  /* =========================
     FORM MOBILE
     ========================= */
  .form-card {
    padding: 22px;
    border-radius: 28px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-control {
    min-height: 50px;
    border-radius: 14px;
  }

  textarea.form-control {
    min-height: 120px;
  }

  /* =========================
     FOOTER MOBILE
     ========================= */
  .site-footer {
    padding: 54px 0 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-logo {
    width: 72px;
    height: 72px;
  }

  .footer-title {
    font-size: 1.55rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 34px;
  }

  /* =========================
     FLOATING MOBILE
     ========================= */
  .floating-wa {
    right: 14px;
    bottom: 14px;
    min-height: 48px;
    padding-inline: 14px;
    font-size: 0.82rem;
  }

  [data-back-to-top] {
    right: 14px;
    bottom: 74px;
    width: 40px;
    height: 40px;
  }
}

/* =========================
   SMALL PHONE
   ========================= */
@media (max-width: 576px) {
  .container,
  .container-wide {
    width: min(100% - 22px, var(--container));
  }

  .nav-shell {
    width: min(100% - 18px, var(--container-wide));
  }

  .nav-brand-title {
    max-width: 145px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-hero {
    padding-top: 104px;
  }

  .hero-title {
    font-size: clamp(3rem, 18vw, 5.4rem);
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-info-row {
    justify-content: center;
  }

  .hero-info-pill {
    font-size: 0.7rem;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-donut {
    width: min(82%, 300px);
  }

  .hero-sticker {
    width: 82px;
    height: 82px;
    font-size: 0.72rem;
  }

  .hero-sticker.top {
    right: 0;
  }

  .hero-sticker.bottom {
    left: 0;
    bottom: 48px;
  }

  .hero-floating-card {
    max-width: 210px;
  }

  .promo-strip-card {
    padding: 18px;
  }

  .promo-strip-title {
    font-size: clamp(1.65rem, 9vw, 2.4rem);
  }

  .section {
    padding-block: 54px;
  }

  .section-sm {
    padding-block: 38px;
  }

  .section-title {
    font-size: clamp(1.9rem, 11vw, 2.9rem);
  }

  .page-title {
    font-size: clamp(2.6rem, 16vw, 4.6rem);
  }

  .card-img,
  .product-card .card-img {
    height: 205px;
  }

  .footer-links {
    gap: 8px;
  }
}

/* =========================
   EXTRA SMALL PHONE
   ========================= */
@media (max-width: 420px) {
  .nav-brand-title {
    max-width: 118px;
  }

  .nav-logo {
    width: 42px;
    height: 42px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .hero-title {
    font-size: clamp(2.75rem, 18vw, 4.8rem);
  }

  .hero-kicker {
    font-size: 0.62rem;
  }

  .hero-visual {
    min-height: 318px;
  }

  .hero-donut {
    width: min(86%, 282px);
  }

  .hero-floating-card {
    display: none;
  }

  .hero-sticker.top {
    top: 14px;
  }

  .hero-sticker.bottom {
    bottom: 34px;
  }

  .promo-mini-card,
  .card-body,
  .feature-card,
  .outlet-card {
    padding: 18px;
  }

  .cta-panel {
    padding: 30px 18px;
  }

  .floating-wa span:last-child {
    display: none;
  }

  .floating-wa {
    width: 48px;
    justify-content: center;
    padding: 0;
  }
}

/* =========================
   TINY PHONE
   ========================= */
@media (max-width: 360px) {
  .container,
  .container-wide {
    width: min(100% - 18px, var(--container));
  }

  .nav-brand-text {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.55rem, 18vw, 4.2rem);
  }

  .hero-info-pill {
    width: 100%;
    justify-content: center;
  }

  .hero-sticker {
    width: 74px;
    height: 74px;
    font-size: 0.66rem;
  }
}

/* =========================
   LANDSCAPE MOBILE
   ========================= */
@media (max-height: 520px) and (orientation: landscape) {
  .home-hero {
    min-height: auto;
    padding: 100px 0 42px;
  }

  .hero-layout {
    grid-template-columns: 1fr 0.9fr;
    text-align: left;
  }

  .hero-kicker,
  .hero-title,
  .hero-description {
    margin-inline: 0;
  }

  .hero-actions,
  .hero-info-row {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: clamp(3rem, 9vw, 5.6rem);
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-floating-card {
    display: none;
  }
}

/* =========================
   TOUCH DEVICE CLEANUP
   ========================= */
@media (hover: none) {
  .btn:hover,
  .card:hover,
  .floating-wa:hover,
  .social-link:hover,
  [data-back-to-top]:hover {
    transform: none;
  }

  .card:hover .card-img img {
    transform: none;
  }
}

/* =========================
   REDUCED MOTION
   ========================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================
   PRINT RESPONSIVE
   ========================= */
@media print {
  .nav-menu,
  .nav-toggle,
  .hero-visual,
  .floating-wa,
  [data-back-to-top] {
    display: none !important;
  }

  .home-hero,
  .page-hero {
    min-height: auto;
    padding: 40px 0;
  }

  .hero-layout,
  .promo-strip-card,
  .social-preview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MOBILE HORIZONTAL OVERFLOW FIX
   ========================= */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body {
    position: relative;
  }

  main,
  section,
  .home-hero,
  .page-hero,
  .site-footer {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container,
  .container-wide,
  .nav-shell {
    max-width: 100%;
  }

  .hero-layout,
  .hero-copy,
  .hero-visual {
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    width: 100%;
    max-width: 100%;
    overflow-wrap: normal;
  }

  .hero-title span {
    max-width: 100%;
  }

  .home-hero::after {
    right: -320px;
    width: 500px;
    height: 500px;
  }

  .hero-blob {
    max-width: 340px;
  }

  .hero-donut {
    max-width: 310px;
  }

  .hero-sticker.top {
    right: 4px;
  }

  .hero-sticker.bottom {
    left: 4px;
  }

  .hero-floating-card {
    max-width: calc(100vw - 48px);
  }

  .floating-wa,
  [data-back-to-top] {
    max-width: calc(100vw - 28px);
  }
}

/* =========================================
   DOMPUNG SOCIAL EMBED
   ========================================= */

.social-preview-grid {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.5fr);
  align-items: start;
}

.social-embed-shell {
  width: 100%;
  min-width: 0;
}

.social-embed-grid {
  display: grid;
  grid-template-columns:
    minmax(300px, 1fr)
    minmax(288px, 1fr);
  gap: 24px;
  align-items: start;
}

.social-embed-item {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border-radius: 20px;
}

.social-embed-instagram .instagram-media,
.social-embed-tiktok .tiktok-embed {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}

.social-embed-item iframe {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 1100px) {
  .social-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .social-embed-grid {
    grid-template-columns: 1fr;
  }

  .social-embed-item {
    overflow: visible;
  }
}