/* ========================================
   CRM PAGE MOBILE RESPONSIVE
   Add this to your crm.css file
   ======================================== */

@media (max-width: 768px) {
  
  /* ========================================
     CRM HERO SECTION - MOBILE
     ======================================== */
  .crm-hero-section {
    min-height: 60vh; /* NOT full screen - just 60% */
    position: relative;
  }
  
  .crm-hero-background {
    height: 60vh; /* Match section height */
  }
  
  .crm-hero-background img {
    object-fit: cover;
    object-position: 60% center; /* Show right side */
    width: 100%;
    height: 100%;
  }
  
  .crm-hero-background::after {
    width: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  }
  
  .crm-hero-content {
    min-height: 60vh;
    align-items: flex-end;
    padding-bottom: 40px;
  }
  
  .crm-hero-left {
    padding: 30px 20px;
    margin-left: 0;
    max-width: 100%;
    text-align: left;
  }
  
  .crm-hero-left h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #179267;
    text-shadow: none;
  }
  
  .crm-hero-left p {
    font-size: 15px;
    margin-bottom: 20px;
    color: #1a1a1a;
    text-shadow: none;
  }
  
  /* ========================================
     RELIABLE TECHNOLOGY SECTION - MOBILE
     ======================================== */
  .reliable-tech-section {
    padding: 60px 0;
  }
  
  .reliable-tech-section h2 {
    font-size: 24px;
    margin-bottom: 40px;
    padding: 0 20px;
    line-height: 1.4;
  }
  
  /* Stack cards vertically on mobile */
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }
  
  .tech-card {
    padding: 30px 20px;
    max-width: 100%;
  }
  
  .tech-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  
  .tech-icon img {
    width: 40px;
    height: 40px;
  }
  
  .tech-card h4 {
    font-size: 18px;
    min-height: auto;
    margin-bottom: 10px;
  }
  
  .tech-card p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* ========================================
     BUILD SMARTER SECTION - MOBILE
     ======================================== */
  .build-smarter-section {
    min-height: 60vh; /* NOT full screen */
  }
  
  .build-smarter-content {
    min-height: 60vh;
    align-items: center;
  }
  
  .build-smarter-right {
    height: 60vh; /* Match section height */
  }
  
  .build-smarter-right img {
    object-fit: cover;
    object-position: 60% center;
  }
  
  .build-smarter-right::before {
    width: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  }
  
  .build-smarter-left {
    padding: 30px 20px;
    margin-left: 0;
    max-width: 100%;
    text-align: left;
  }
  
  .build-smarter-left h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .build-smarter-left p {
    font-size: 15px;
    margin-bottom: 20px;
  }
  
  /* ========================================
     HELP SECTION - MOBILE
     ======================================== */
  .help-section {
    padding: 60px 0;
  }
  
  .help-section h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .help-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }
  
  .help-card {
    padding: 40px 30px;
    max-width: 100%;
  }
}

/* ========================================
   EXTRA SMALL DEVICES (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
  
  .crm-hero-left h1 {
    font-size: 26px;
  }
  
  .crm-hero-left p {
    font-size: 14px;
  }
  
  .reliable-tech-section h2 {
    font-size: 22px;
  }
  
  .build-smarter-left h2 {
    font-size: 24px;
  }
  
  .build-smarter-left p {
    font-size: 14px;
  }
  
  .tech-card {
    padding: 25px 15px;
  }
  
  .help-card {
    padding: 35px 25px;
  }
}

/* ========================================
   PREVENT HORIZONTAL SCROLL
   ======================================== */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .crm-hero-section,
  .reliable-tech-section,
  .build-smarter-section,
  .help-section {
    overflow-x: hidden;
  }
  
  .crm-hero-section .container,
  .build-smarter-section .container {
    overflow-x: hidden;
  }
}

/* ========================================
   TABLET (768px - 992px)
   ======================================== */
@media (min-width: 769px) and (max-width: 992px) {
  
  .crm-hero-left {
    padding: 60px 40px;
    margin-left: 40px;
  }
  
  .crm-hero-left h1 {
    font-size: 44px;
  }
  
  .crm-hero-left p {
    font-size: 18px;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .build-smarter-left {
    padding: 60px 40px;
    margin-left: 40px;
  }
  
  .build-smarter-left h2 {
    font-size: 40px;
  }
}

/* ========================================
   LANDSCAPE MODE FIX
   ======================================== */
@media (max-width: 768px) and (orientation: landscape) {
  .crm-hero-section,
  .build-smarter-section {
    min-height: 80vh; /* Taller on landscape */
  }
  
  .crm-hero-background,
  .build-smarter-right {
    height: 80vh;
  }
  
  .crm-hero-content,
  .build-smarter-content {
    min-height: 80vh;
  }
}