/*
  =========================================
  Responsive Breakpoints - FM Services
  =========================================
*/

/* --- Desktop/Laptops (1200px and below) --- */
@media (max-width: 1200px) {
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  
  .legal-layout {
    grid-template-columns: 240px 1fr;
    gap: 32px;
  }
}

/* --- Tablets & Landscape Mobile (1024px and below) --- */
@media (max-width: 1024px) {
  :root {
    --section-padding-desktop: 70px;
    --card-padding: 24px;
  }

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

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-mockup-card {
    max-width: 550px;
    margin: 0 auto;
  }

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

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

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
    margin-bottom: 24px;
  }

  .process-grid::before {
    display: none;
  }

  .process-card {
    padding-top: 36px;
  }
  
  .process-step-badge {
    top: -20px;
  }
}

/* --- Mobile Menu View (991px and below) --- */
@media (max-width: 991px) {
  .desktop-only-cta {
    display: none !important;
  }

  .mobile-only-cta {
    display: flex !important;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-normal);
    box-shadow: 0 10px 20px rgba(15, 42, 68, 0.1);
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body.menu-open {
    overflow: hidden; /* Scroll lock */
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    width: 100%;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links a {
    font-size: 18px;
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  .nav-links a.active::after {
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
  }

  .nav-item-has-dropdown {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 100%;
    margin-top: 12px;
    box-shadow: none;
    background: var(--light-bg);
    border-radius: 14px;
  }

  .nav-dropdown a {
    text-align: center;
    font-size: 15px;
  }

  .nav-cta {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .nav-cta .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
  }
}

/* --- Small Tablets & Large Phones (768px and below) --- */
@media (max-width: 768px) {
  :root {
    --section-padding-desktop: var(--section-padding-mobile);
  }

  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }

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

  .hero-section {
    padding: 44px 0 56px;
  }

  .page-hero {
    padding: 48px 0;
    text-align: center;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .hero-visual {
    margin: 0 auto;
    width: 90px;
    height: 90px;
  }

  .hero-visual [data-lucide] {
    width: 45px;
    height: 45px;
  }

  .hero-image-wrap {
    margin: 0 auto;
    width: 100%;
    max-width: 280px;
  }

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

  .page-hero p {
    margin: 0 auto;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    padding: 12px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    justify-content: center;
  }

  /* Hide WhatsApp text label on mobile screens */
  .floating-whatsapp span {
    display: none;
  }

  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .cta-banner {
    padding: 40px 24px;
  }
}

/* --- Extra Small Phones (480px and below) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .grid-4, .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-indicators {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-indicators span {
    justify-content: center;
  }

  .sub-footer-flex {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .sub-footer-links {
    justify-content: center;
    width: 100%;
  }

  .legal-content {
    padding: 24px 16px;
  }

  .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-icon {
    margin-left: auto;
    margin-right: auto;
  }
}
