@charset "UTF-8";

/* ==========================================================================
   AMRINOVA — Native Mobile App Experience
   Delivers a fluid, tactile mobile application feel on phones and tablets
   ========================================================================== */

/* App Shell Adjustments for Mobile */
@media (max-width: 767.98px) {
  :root {
    --bar-h: 3.5rem;
  }
  
  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
  }

  /* Mobile Hero Layout Harmonized with Portfolio Architecture */
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--bar-h) + 1.5rem);
    padding-bottom: 2rem;
  }
  
  .hero__content {
    padding-top: 1rem;
    padding-bottom: calc(var(--fig-h) + 1.5rem);
    gap: 1.25rem;
  }

  .h1 {
    font-size: clamp(1.85rem, 6.5vw, 2.45rem);
    line-height: 1.08;
  }

  /* Responsive 3D Flip-Calendar on Mobile: Full solid card, never squished */
  .cal-line {
    display: block;
    width: 100%;
    margin-block: 0.5rem 0.75rem;
    overflow: visible;
  }
  .cal {
    display: block;
    width: 100%;
    max-width: 360px;
    font-size: 16px;
    vertical-align: top;
  }
  .cal__body {
    width: 100% !important;
    max-width: 360px;
    min-height: 3.25rem;
    height: 3.25rem;
    transform: rotateX(10deg) rotateY(-8deg);
  }
  .cal__page, .cal__face, .cal__rear {
    overflow: hidden !important;
    border-radius: 0.28em;
  }
  .cal__word {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    font-weight: 700;
    color: #0a0a0a;
    padding-left: 0.85rem;
    padding-right: 3.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.025em;
  }
  .cal__no {
    right: 0.65rem;
    bottom: 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
  }

  .hero__intro {
    font-size: 0.925rem;
    line-height: 1.55;
    max-width: 32rem;
  }

  .ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
  }
  .ctas .pill {
    flex: 1 1 auto;
    min-width: 140px;
  }
  .ctas .pill__in {
    width: 100%;
    justify-content: center;
  }
  .btn-pill {
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
  }

  /* Interactive Tactile Touch Feedback */
  .btn-pill:active,
  .soft-card:active,
  .pillar-card:active,
  .app-bottom-nav a:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
  }
  
  .hero__bar-in {
    justify-content: center;
    text-align: center;
    font-size: 0.7rem;
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Mobile Bottom App Navigation Bar (Native App Feel)
   ========================================================================== */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(var(--fg-rgb), 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--chip-line);
  padding-top: 0.45rem;
  padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
}
html[data-mode="dark"] .app-bottom-nav {
  background: rgba(26, 24, 24, 0.88);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  .app-bottom-nav { display: none; }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  transition: color 0.2s, transform 0.15s;
  position: relative;
}
.bottom-nav-item svg {
  width: 1.4rem;
  height: 1.4rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bottom-nav-item.active {
  color: #12824C;
}
html[data-mode="dark"] .bottom-nav-item.active {
  color: #22C55E;
}
.bottom-nav-item.active svg {
  transform: translateY(-2px) scale(1.1);
}
.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: #12824C;
}
html[data-mode="dark"] .bottom-nav-item.active::after {
  background: #22C55E;
}

/* ==========================================================================
   Floating WhatsApp Quick Action (FAB)
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: calc(5rem + env(safe-area-inset-bottom));
  right: 1.25rem;
  z-index: 95;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.5), 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
@media (min-width: 768px) {
  .whatsapp-fab {
    bottom: 2rem;
    right: 2rem;
  }
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px -4px rgba(37, 211, 102, 0.65);
}
.whatsapp-fab:active {
  transform: scale(0.92);
}
.whatsapp-fab svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}
.fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #EF4444;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  animation: pulseLive 2s infinite;
}

/* ==========================================================================
   Horizontal Swipeable Category Pills on Mobile
   ========================================================================== */
.app-tabs-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-block: 0.5rem 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.app-tabs-scroll::-webkit-scrollbar {
  display: none;
}
.app-tab-pill {
  white-space: nowrap;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--chip-line);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s, color 0.2s;
}
.app-tab-pill.active {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-bg);
}

/* ==========================================================================
   App-like Bottom Sheet Demo Modal
   ========================================================================== */
.app-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.app-sheet.open {
  display: flex;
}
.app-sheet-card {
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--background);
  border-radius: 1.75rem 1.75rem 0 0;
  padding: 1.5rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-handle {
  width: 44px;
  height: 5px;
  background: var(--line);
  border-radius: 999px;
  margin: 0 auto 1.25rem;
}
