/* Mobile-only tweaks for Armin Studio
 * This file is safe: only overrides on small screens.
 */

@media (max-width: 720px) {
  /* GENERAL LAYOUT */
  body {
    font-size: 15px;
  }

  .page {
    padding: 18px 12px 80px;
  }

  /* NAV BAR AND CTA  ---------------------------------------------------- */
  .nav {
    align-items: center;
    gap: 10px;
  }

  /* Brand text a bit smaller so everything fits in one row */
  .brand-title {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 11px;
  }

  /* Make nav CTA slimmer so it doesn’t wrap or overflow */
  .nav-cta {
    padding: 7px 14px;
    font-size: 12px;
  }

  .nav-cta .badge {
    display: none; /* hides second line on very small screens */
  }

  /* Mobile nav dropdown: full width, easier tapping */
  .nav-links-mobile {
    width: 100%;
    padding: 10px 12px;
    gap: 6px;
    font-size: 12px;
  }

  .nav-links-mobile a {
    padding: 6px 0;
  }

  /* HERO / HEADINGS ----------------------------------------------------- */

  h1,
  .page-title,
  .hero-title {
    font-size: 1.9rem !important;
    line-height: 1.25;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .hero-subtitle,
  .section-sub,
  .header-sub {
    font-size: 0.96rem;
    line-height: 1.7;
    max-width: 100%;
  }

  /* Typing line: prevent sideways scrolling on very long phrases */
  .typing-wrap {
    flex-wrap: wrap;
    min-height: 3.6em; /* Reserve space for ~2-3 lines to prevent layout shift */
    font-size: 1rem; /* Ensure consistent font size */
  }

  .typing-text {
    max-width: 100%;
    white-space: normal;
    border-right-width: 1px;
    font-size: 1rem; /* Match wrapper font-size for consistent sizing */
    min-height: 1.4em; /* Maintain minimum height */
  }

  /* BUTTON ROWS / PILLS ------------------------------------------------- */
  .hero-actions,
  .pill-row,
  .pill-row-wide {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary,
  .pricing-cta {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 10px 18px;
  }

  /* CARDS & STRIPS ------------------------------------------------------ */
  .card,
  .card-full,
  .card-small,
  .strip,
  .preview-card,
  .pricing-card,
  .tile {
    padding: 18px 14px 16px;
  }

  .list,
  .steps,
  .pricing-list,
  .point-list {
    gap: 10px;
  }

  /* GRIDS TO SINGLE COLUMN --------------------------------------------- */
  .hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .two-col,
  .preview-grid,
  .pricing-grid,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  /* HERO RIGHT CARD: add top spacing when stacked */
  .hero-right {
    margin-top: 8px;
  }

  /* LIST BULLETS & BADGES ---------------------------------------------- */
  .list li {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .list-bullet,
  .point-badge,
  .step-badge {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  /* STATS SECTION ------------------------------------------------------- */
  .stats-section {
    padding: 40px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px;
    padding: 0 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }

  /* HOW IT WORKS -------------------------------------------------------- */
  .how-it-works-section {
    padding: 48px 0;
  }

  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .step-card {
    padding: 24px 18px;
  }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  /* Hide connecting lines on mobile */
  .step-card::after {
    display: none !important;
  }

  /* TESTIMONIALS -------------------------------------------------------- */
  .testimonials-section {
    padding: 48px 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  .testimonial-quote-icon {
    font-size: 2rem;
  }

  /* CTA BANNER --------------------------------------------------------- */
  .cta-banner {
    padding: 48px 0;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .cta-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-banner-actions .btn-primary,
  .cta-banner-actions .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* FOOTER -------------------------------------------------------------- */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 12px 22px;
  }

  .footer-links {
    gap: 6px;
    font-size: 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 16px 22px;
    font-size: 0.78rem;
  }

  /* BACK TO TOP --------------------------------------------------------- */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* SCROLL ANIMATIONS: reduce motion on mobile for performance ---------- */
  .animate-on-scroll {
    transform: translateY(20px);
  }

  /* CONTACT & CUSTOMIZATION CTAs ---------------------------------------- */
  /* Make phone buttons full-width on mobile for easy tapping */
  button[onclick^="window.location.href='tel:"],
  button[onclick^="window.location.href='tel:+1EXAMPLENUMBER'"] {
    width: 100%;
    justify-content: center;
  }
}
