/* ==========================================================================
   Klickvio — Responsive Rules
   Breakpoints: 1200px (laptop), 1024px (tablet landscape),
                768px (tablet), 576px (large phone), 380px (small phone)
   ========================================================================== */

/* ---- Laptop / small desktop ---- */
@media (max-width: 1200px) {
  :root {
    --container-width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    row-gap: 40px;
  }

  .footer-grid .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* ---- Tablet landscape ---- */
@media (max-width: 1024px) {
  section {
    padding: 90px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 460px;
    margin-inline: auto;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 420px;
    margin-inline: auto;
    order: -1;
  }

  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 36px;
  }
}

/* ---- Tablet portrait ---- */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: rgba(8, 16, 31, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    border-left: 1px solid var(--border);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn-outline {
    display: none;
  }

  .nav-menu .btn {
    margin-top: 10px;
  }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .container {
    padding-inline: 20px;
  }

  section {
    padding: 70px 0;
  }

  .section-sub {
    margin-bottom: 40px;
  }

  .about-cards {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 36px;
  }

  .footer-grid .footer-col:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    gap: 30px;
  }

  .cta-box {
    padding: 60px 26px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    left: 20px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .back-to-top {
    width: 46px;
    height: 46px;
    bottom: 20px;
    right: 20px;
  }

  body.no-cursor,
  body.no-cursor a,
  body.no-cursor button {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

/* ---- Large phones ---- */
@media (max-width: 576px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

  .contact-card {
    padding: 26px;
  }

  .why-card {
    flex-direction: column;
    gap: 12px;
  }
}

/* ---- Small phones ---- */
@media (max-width: 380px) {
  .container {
    padding-inline: 16px;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-logo img {
    width: 32px;
    height: 32px;
  }

  .section-heading {
    font-size: 1.7rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    padding: 7px 14px;
  }

  .cta-box h2 {
    font-size: 1.6rem;
  }

  .info-card,
  .contact-card {
    padding: 20px;
  }
}
