/* ============================================================
   RESPONSIVE.CSS — Amber Polypack
   Single consolidated responsive stylesheet.
   Breakpoints:
     - 1400px (Large Desktop)
     - 1024px (Tablet Landscape)
     - 768px  (Mobile — main breakpoint)
     - 480px  (Small Mobile)
============================================================ */


/* ============================================================
   1400px — LARGE DESKTOP
============================================================ */
@media (max-width: 1400px) {
  :root {
    --hero-h1-size: 46px;
    --hero-min-height: 560px;
  }

  .hero-content { padding-right: 20px; }
  .hero-left { padding: 70px 40px; }
}


/* ============================================================
   1024px — TABLET LANDSCAPE
============================================================ */
@media (max-width: 1024px) {
  /* ---- Global Typography ---- */
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }

  /* ---- Hero ---- */
  :root {
    --hero-h1-size: 36px;
    --hero-p-size: 15px;
    --hero-btn-size: 14px;
    --hero-btn-padding-y: 13px;
    --hero-btn-padding-x: 22px;
    --hero-min-height: 500px;
  }
  .hero-left { padding: 60px 30px; }
  .hero-content { padding-right: 10px; max-width: 100%; }
  .hero-content h1 { margin-bottom: 18px; }
  .hero-content p { margin-bottom: 28px; }
  .hero-buttons { margin-bottom: 40px; gap: 12px; }
  .arrow-btn { width: 46px; height: 46px; font-size: 14px; }
  .hero-right { min-height: 500px; }
  .hero-slider { height: 500px; }

  /* ---- Trust Bar ---- */
  .trust-number { font-size: 40px; }
  .trust-item { min-width: 240px; padding: 0 28px; }

  /* ---- Intro ---- */
  .intro { padding: 80px 0 70px; }
  .intro-grid { gap: 50px; }
  .intro-content h2 { font-size: 32px; }
  .intro-visual { height: 460px; }
  .intro-slide { width: 70%; height: 85%; margin: -42.5% 0 0 -35%; }
  .btn-outline { padding: 14px 28px; font-size: 14px; }

  /* ---- Products Solutions ---- */
  .products-solutions { padding: 70px 0; }
  .products-solutions .section-title h2 { font-size: 34px; }
  .products-solutions .section-title p { font-size: 16px; }
  .product-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .card-image { height: 200px; }
  .product-solution-card .card-image { height: 200px; }

  /* ---- Why Amber ---- */
  .why-amber { padding: 70px 0 60px; }
  .why-amber .section-title { margin-bottom: 55px; }
  .why-amber .section-title h2 { font-size: 36px; }
  .why-grid { gap: 40px; }
  .why-icon i { font-size: 46px; }
  .why-item h3 { font-size: 18px; }
  .why-item p { font-size: 14px; }

  /* ---- Markets Strip ---- */
  .markets-strip a { font-size: 17px; padding: 0 28px; }

  /* ---- How We Work ---- */
  .how-we-work { padding: 70px 0; }
  .how-we-work .section-title { margin-bottom: 48px; }
  .how-we-work .section-title h2 { font-size: 36px; }
  .how-we-work .section-title p { font-size: 16px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .step-num { font-size: 42px; margin-bottom: 18px; }
  .step-card { padding: 36px 22px 30px; }
  .step-card h3 { font-size: 16px; }

  /* ---- CTA Band ---- */
  .cta-band { padding: 80px 0; }
  .cta-band h2 { font-size: 34px; }
  .cta-band p { font-size: 16px; }

  /* ---- Footer ---- */
  .footer { padding: 60px 0 25px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-logo img { height: 40px; }
  .footer h4 { font-size: 15px; }
}


/* ============================================================
   768px — MOBILE (MAIN BREAKPOINT)
============================================================ */
@media (max-width: 768px) {

  /* ============================================================
     MOBILE HEADER + HAMBURGER
  ============================================================ */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1100;
    transition: all 0.3s ease;
  }
  .hamburger:hover,
  .hamburger.active {
    background: var(--primary);
    border-color: var(--primary);
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }
  .hamburger:hover span,
  .hamburger.active span {
    background: #ffffff;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* ============================================================
     MOBILE NAV — Slide-in Drawer
  ============================================================ */
  .nav-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    padding: 80px 0 30px;
    overflow-y: auto;
    z-index: 1050;
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    transition:
      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.4s ease,
      opacity 0.4s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  }
  .nav-wrapper.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    padding: 0 24px;
    gap: 0;
    width: 100%;
  }
  .nav > li {
    padding: 0;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav > li:last-child {
    border-bottom: none;
  }
  .nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    width: 100%;
    text-decoration: none;
    transition: color 0.25s ease, padding 0.25s ease;
  }
  .nav > li > a:hover,
  .nav > li > a.active {
    color: var(--secondary);
    padding-left: 10px;
  }
  .nav > li > a i {
    font-size: 12px;
    color: var(--secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  /* Mobile dropdown accordion */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #F7F8FA;
    border-radius: 8px;
    margin-bottom: 0;
  }
  .nav .has-dropdown.open .dropdown-menu {
    max-height: 500px;
    margin-bottom: 12px;
    padding: 8px 0;
  }
  .nav .has-dropdown.open > a i {
    transform: rotate(180deg);
  }
  .dropdown-menu li {
    border-bottom: 1px solid #e8e8e8;
  }
  .dropdown-menu li:last-child {
    border-bottom: none;
  }
  .dropdown-menu li a {
    display: block;
    padding: 14px 22px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
  }
  .dropdown-menu li a:hover,
  .dropdown-menu li a.active {
    color: var(--secondary);
    padding-left: 30px;
    background: transparent;
  }

  .nav-cta {
    margin: 20px 4px 10px;
    display: block;
    text-align: center;
    padding: 16px 24px !important;
    font-size: 15px;
    border-radius: 8px;
    background: var(--secondary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
  }
  .nav-cta:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
  }

  /* Prevent body scroll when menu open */
  body:has(.nav-wrapper.open) {
    overflow: hidden;
  }

  /* ============================================================
     MOBILE HERO
  ============================================================ */
  :root {
    --hero-h1-size: 30px;
    --hero-p-size: 15px;
    --hero-min-height: auto;
  }

  .hero {
    background-attachment: scroll;
    min-height: auto;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-left {
    position: relative;
    min-height: 480px;
    padding: 0;
    overflow: hidden;
  }

  .hero-slide-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    padding: 50px 24px 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition:
      opacity 0.5s ease,
      visibility 0.5s ease,
      transform 0.5s ease;
    pointer-events: none;
    z-index: 1;
  }
  .hero-slide-text.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
    margin-left: 0;
    width: 100%;
  }
  .hero-content h1 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .hero-content p {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }
  .btn-orange {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }

  .hero-arrows {
    position: absolute;
    bottom: 30px;
    left: 24px;
    display: flex;
    gap: 12px;
    z-index: 5;
    margin-top: 0;
  }
  .arrow-btn {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  /* Hero right side — visible on mobile */
  .hero-right {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: block;
  }
  .hero-slider {
    position: relative;
    width: 100%;
    height: 300px;
    border-bottom-left-radius: 0;
    clip-path: none;
  }
  .hero-slide {
    position: absolute;
    inset: 0;
  }
  .hero-slide img,
  .hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 0;
  }

  /* ============================================================
     MOBILE TRUST BAR
  ============================================================ */
  .trust-bar { padding: 35px 0; }
  .trust-item {
    min-width: 220px;
    padding: 0 24px;
  }
  .trust-number { font-size: 38px; }
  .trust-label { font-size: 14px; }
  .trust-label small { font-size: 12px; }

  :root {
    --trust-scroll-duration: 50s;
  }

  /* ============================================================
     MOBILE INTRO
  ============================================================ */
  .intro { padding: 60px 0 50px; }
  .intro-grid { grid-template-columns: 1fr; gap: 50px; }
  .intro-content h2 { font-size: 26px; margin-bottom: 20px; }
  .intro-content p { font-size: 15px; line-height: 1.75; }
  .btn-outline {
    padding: 14px 26px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }

  .intro-visual {
    height: 360px;
    max-width: 520px;
    margin: 0 auto;
    perspective: 900px;
  }
  .intro-ring {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
  }
  .intro-slide {
    width: 78%;
    height: 82%;
    margin: -41% 0 0 -39%;
  }
  .intro-slide.left-slide {
    transform: translate3d(-25%, 0, -80px) rotateY(20deg) scale(0.82);
  }
  .intro-slide.right-slide {
    transform: translate3d(25%, 0, -80px) rotateY(-20deg) scale(0.82);
  }

  /* ============================================================
     MOBILE PRODUCTS
  ============================================================ */
  .products-solutions { padding: 60px 0; }
  .products-solutions .section-title { margin-bottom: 40px; }
  .products-solutions .section-title h2 { font-size: 28px; }
  .products-solutions .section-title p { font-size: 15px; }

  .product-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 420px;
    margin: 0 auto;
  }
  .product-solution-card .card-image {
    height: 200px;
    margin-top: 18px;
  }
  .product-solution-card .card-body {
    padding: 26px 20px 24px;
  }
  .product-solution-card .card-icon i { font-size: 34px; }
  .product-solution-card .card-body h3 {
    font-size: 16px;
    min-height: auto;
  }
  .product-solution-card .card-body p { font-size: 13.5px; }

  /* ============================================================
     MOBILE WHY AMBER
  ============================================================ */
  .why-amber { padding: 60px 0 50px; }
  .why-amber .section-title { margin-bottom: 45px; }
  .why-amber .section-title h2 { font-size: 28px; }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 45px;
    max-width: 420px;
    margin: 0 auto;
  }
  .why-item { max-width: 400px; margin: 0 auto; }
  .why-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
  }
  .why-icon i { font-size: 42px; }
  .why-item h3 { font-size: 17px; margin-bottom: 10px; }
  .why-item p { font-size: 14px; }

  /* ============================================================
     MOBILE MARKETS STRIP
  ============================================================ */
  .markets-strip { padding: 30px 0; }
  .markets-strip .container {
    flex-direction: column;
    gap: 16px;
  }
  .markets-strip a { font-size: 16px; padding: 0; }
  .markets-strip .sep { display: none; }

  /* ============================================================
     MOBILE HOW WE WORK
  ============================================================ */
  .how-we-work { padding: 60px 0; }
  .how-we-work .section-title { margin-bottom: 40px; }
  .how-we-work .section-title h2 { font-size: 28px; }
  .how-we-work .section-title p { font-size: 15px; }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
  }
  .step-card {
    padding: 30px 20px 26px;
    border-radius: 12px;
  }
  .step-num { font-size: 38px; margin-bottom: 16px; }
  .step-card h3 { font-size: 15px; margin-bottom: 10px; }
  .step-card p { font-size: 13.5px; line-height: 1.55; }

  /* ============================================================
     MOBILE CTA BAND
  ============================================================ */
  .cta-band {
    padding: 60px 0;
    background-attachment: scroll;
  }
  .cta-band h2 { font-size: 24px; line-height: 1.3; }
  .cta-band p { font-size: 15px; margin-bottom: 28px; }
  .cta-band .btn-white {
    padding: 14px 30px;
    font-size: 14px;
    width: 100%;
  }

  /* ============================================================
     MOBILE FOOTER
  ============================================================ */
  .footer { padding: 50px 0 24px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }
  .footer-col:first-child {
    grid-column: 1 / -1;
    text-align: left;
  }
  .footer-desc { max-width: 100%; }
  .footer h4 {
    font-size: 15px;
    margin-bottom: 16px;
  }
  .footer h4::after { width: 28px; height: 2.5px; }
  .footer ul li { font-size: 13.5px; }
  .footer .social a {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .footer .contact-list li {
    font-size: 13.5px;
    gap: 10px;
  }
  .footer .contact-list li i { font-size: 15px; }
  .footer-bottom { padding-top: 20px; }
  .footer-bottom p { font-size: 12.5px; }
}


/* ============================================================
   480px — SMALL MOBILE
============================================================ */
@media (max-width: 480px) {

  /* ---- Global ---- */
  .container { padding: 0 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }

  /* ---- Header ---- */
  .logo img { height: 34px; }
  .hamburger {
    width: 40px;
    height: 40px;
    gap: 4.5px;
  }
  .hamburger span {
    width: 20px;
    height: 2.2px;
  }

  /* ---- Hero ---- */
  :root {
    --hero-h1-size: 26px;
    --hero-p-size: 14px;
  }

  .hero-left {
    padding: 40px 20px 50px;
    min-height: 440px;
  }
  .hero-slide-text {
    padding: 40px 20px 110px;
  }
  .hero-content h1 {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .hero-content p {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .hero-buttons { margin-bottom: 30px; }
  .arrow-btn {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }
  .hero-arrows {
    bottom: 24px;
    left: 20px;
    gap: 10px;
  }
  .hero-right { min-height: 240px; }
  .hero-slider { height: 240px; }

  /* ---- Trust Bar ---- */
  .trust-item {
    min-width: 180px;
    padding: 0 18px;
  }
  .trust-number { font-size: 32px; }

  /* ---- Intro ---- */
  .intro { padding: 60px 0 50px; }
  .intro-content h2 { font-size: 22px; }
  .intro-content p { font-size: 14px; }
  .intro-visual { height: 280px; }
  .intro-ring {
    width: 240px;
    height: 240px;
    margin: -120px 0 0 -120px;
  }
  .intro-slide {
    width: 82%;
    height: 80%;
    margin: -40% 0 0 -41%;
  }
  .intro-slide.left-slide {
    transform: translate3d(-20%, 0, -60px) rotateY(15deg) scale(0.8);
  }
  .intro-slide.right-slide {
    transform: translate3d(20%, 0, -60px) rotateY(-15deg) scale(0.8);
  }

  /* ---- Products ---- */
  .products-solutions { padding: 50px 0; }
  .products-solutions .section-title h2 { font-size: 24px; }
  .products-solutions .section-title p { font-size: 14px; }
  .product-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 380px;
    margin: 0 auto;
  }
  .product-solution-card .card-image { height: 180px; }
  .product-solution-card .card-body { padding: 24px 18px 22px; }
  .product-solution-card .card-body h3 { font-size: 15px; min-height: auto; }
  .product-solution-card .card-body p { font-size: 13px; }

  /* ---- Why ---- */
  .why-amber { padding: 50px 0 40px; }
  .why-amber .section-title h2 { font-size: 24px; }
  .why-grid { gap: 36px; }
  .why-icon i { font-size: 38px; }
  .why-item h3 { font-size: 16px; }

  /* ---- Markets ---- */
  .markets-strip a { font-size: 15px; }

  /* ---- How We Work ---- */
  .how-we-work { padding: 50px 0; }
  .how-we-work .section-title h2 { font-size: 24px; }
  .how-we-work .section-title p { font-size: 14px; }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 360px;
    margin: 0 auto;
  }
  .step-card { padding: 32px 22px 28px; }
  .step-num { font-size: 42px; }
  .step-card h3 { font-size: 16px; }
  .step-card p { font-size: 14px; }

  /* ---- CTA ---- */
  .cta-band { padding: 50px 0; }
  .cta-band h2 { font-size: 22px; }
  .cta-band p { font-size: 14px; margin-bottom: 24px; }
  .cta-band .btn-white {
    width: 100%;
    padding: 14px 24px;
  }

  /* ---- Footer ---- */
  .footer { padding: 40px 0 20px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 34px;
  }
  .footer-col:first-child { grid-column: auto; }
  .footer-logo img { height: 38px; }
  .footer-desc { font-size: 13px; }
  .footer h4 {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .footer ul li {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .footer .social a {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .footer-bottom p { font-size: 12px; }
}


/* ============================================================
   REDUCED MOTION SUPPORT
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}