/* ==========================================================================
   RESPONSIVENESS AND DEVICE STANDARDS
   ========================================================================== */

/* Large screens and Desktops (up to 1200px) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  .section {
    padding: 100px 0;
  }
}

/* Laptops & Tablets Landscape (up to 1024px) */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  /* Hero mockup alignment adjustments */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero-visual {
    order: -1; /* Place dashboard visual on top for small screen flow */
    margin-bottom: 2rem;
  }
  .hero-content {
    text-align: center;
    align-items: center;
  }
  .hero-badge, .hero-actions {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats {
    width: 100%;
    justify-content: center;
  }
}

/* Tablets Portrait (up to 768px) */
@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
  }
  
  .section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  
  /* Hide desktop navbar, show mobile trigger button */
  .navbar-menu {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  
  /* Re-arrange grid system elements */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .col-span-2 {
    grid-column: span 1 / span 1;
  }
  
  /* Dashboard layout columns collapse */
  .dashboard-charts-layout .grid-3 {
    grid-template-columns: 1fr;
  }
  .dashboard-charts-layout .grid-2 {
    grid-template-columns: 1fr;
  }
  
  /* Form elements spacing alignment */
  .dashboard-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    flex: 1 1 auto;
  }
  .filter-actions .btn {
    width: 100%;
    margin-top: 8px;
  }

  /* Timeline adjustment to left-aligned single tree */
  .timeline-line {
    left: 20px;
  }
  .timeline-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    left: 0;
  }
  .timeline-content {
    margin-left: 20px;
    padding: 20px;
  }
  
  /* Hide custom cursor on tablets & mobile since they use touch events */
  .custom-cursor, .custom-cursor-dot {
    display: none !important;
  }
  
  /* Mockup Galleries layout */
  .gallery-mockups-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
  }
  .mockup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile Screens (up to 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  
  /* Collapse sub-sections */
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  /* Stat elements scaling */
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Dashboard widget adjustments */
  .dashboard-widget {
    padding: 16px;
  }
  .dashboard-kpis-grid {
    grid-template-columns: 1fr;
  }
  .kpi-card {
    padding: 16px;
  }
  .chart-card {
    padding: 16px;
  }
  .chart-container-wrapper {
    min-height: 200px;
  }
  
  /* Footer responsive grid */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* FAQ adjustments */
  .faq-header {
    padding: 16px;
  }
  .faq-answer-inner {
    padding: 0 16px 16px;
  }
}

/* Fold and Ultra-small devices (up to 320px) */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .dashboard-widget {
    padding: 12px;
  }
  .brand-title {
    font-size: 0.9rem;
  }
  .brand-subtitle {
    font-size: 0.5rem;
  }
  .btn-lg {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}
