/* ===== CONTLEDGER - Responsive Styles ===== */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

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

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

  .hero-visual {
    display: none;
  }

  .pain-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .solution-detail {
    grid-template-columns: 1fr;
  }

  .solution-visual {
    order: -1;
  }

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

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

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

  .cta-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Nav */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 32px 32px;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
    position: relative;
    background-image: url('../images/hero-dashboard.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.7);
    z-index: 0;
  }

  .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 19, 43, 0.9) 0%, rgba(30, 58, 138, 0.7) 50%, rgba(11, 19, 43, 0.95) 100%);
    z-index: 0;
  }

  .hero .container {
    position: relative;
    z-index: 1;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .hero-visual {
    display: none;
  }

  /* Pain */
  .pain-grid {
    gap: 16px;
  }

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

  /* Solution */
  .solution-tabs {
    gap: 6px;
  }

  .solution-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  /* Counters */
  .counters-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .counter-card {
    padding: 24px 12px;
  }

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

  /* CTA */
  .cta-form-card {
    padding: 28px 20px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

/* --- Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .solution-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .solution-tab {
    text-align: center;
  }
}
