/* Responsive */
@media (max-width: 980px) {
  .nav {
    max-width: 70vw;
  }
  .main {
    grid-template-columns: 1fr 0.95fr;
  }
  .menu-toggle {
    display: flex;
  }

  /* If your links are direct children */
  .nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  .nav a:last-child {
    border-bottom: none;
  }
}

/* Remove blue tap highlight on mobile */
.nav a {
  -webkit-tap-highlight-color: transparent;
  text-decoration: none !important;

}

.nav a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 12px;
  text-decoration: none;
}

/* Optional: better tap feedback instead of underline */
.nav a:active {
  background: rgba(0, 0, 0, 0.06);
}

/*--------------------------------------------------------------------------------*/
@media (max-width: 760px) {
  /*------------ top image*/
  /* Show image on mobile only */
  .product-icons {
    display: flex !important;
    justify-content: center;
    margin: 20px 0;
  }

  .product-icons img {
    width: 90%;
    max-width: 360px;
    height: auto;
  }

.copy h3,
.content-text h3 {
  margin: 10px 0 4px;   /* tighter spacing */
  font-size: 16px;
  line-height: 1.25;
}

.footer{
  font-size: 12px;   /* smaller than current 15px */
  padding: 6px 10px; /* slightly tighter spacing */
}

  /*------------*/

  /* keep the page locked (your existing fix) */
  html,
  body {
    height: 100%;
    overflow: hidden !important;
  }
  body {
    position: fixed;
    inset: 0;
    width: 100%;
  }

  /* remove the extra vertical push on mobile */
  .main {
    margin-top: 0 !important;
    padding-top: 12px; /* optional: keeps a little breathing room */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    padding-bottom: 70px;
  }

  /* use dynamic viewport height (better on mobile address bar) */
  .hero {
    height: 100dvh;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
  }

  /* H1 bigger on mobile */
  .copy h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  /* Logo a bit bigger on mobile */
  .logo {
    width: 150px;
  }

  /* header (and its dropdown) must be above the backdrop */
  .topbar {
    position: relative;
    z-index: 50;
  }

  /* show hamburger on mobile */
  .menu-toggle {
    display: flex !important;
    margin-left: auto;
    z-index: 20;
  }

  /* dropdown panel (animation-friendly) */

  /* Backdrop for mobile menu */
  /* dim layer BELOW header/menu */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 40;
    display: none;
  }
  .nav-backdrop.active {
    display: block;
  }

  /* menu panel above everything */
  .nav {
    z-index: 60;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: clamp(14px, 2.4vw, 26px);

    width: min(92vw, 340px);
    padding: 12px;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-soft);

    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 15;

    /* hidden state (do NOT use display:none; it kills animation) */
    display: block;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  /* open state */
  .nav.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

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

  /* links tap-friendly */
  .nav a {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  .nav a:last-child {
    border-bottom: none;
  }

  /* your existing layout adjustments */
  .main {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .panel {
    justify-content: center;
  }

  .content-text {
    -webkit-line-clamp: 6;
    line-clamp: 6;
  }

  .textarea {
    min-height: 86px;
  }
}

/*--------------------------------------------------------------------------------*/
@media (max-width: 420px) {
  .nav {
    font-size: 13px;
    gap: 6px;
  }
  .nav a {
    padding: 5px 6px;
  }
  .content-text {
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
  .whatsapp {
    height: 58px;
  }
  .whatsapp__icon {
    width: 58px;
    height: 58px;
  }
  .whatsapp svg {
    width: 30px;
    height: 30px;
  }
}
