/* ============================================
   Responsive - IAM Landing Page
   ============================================ */

/* ===== Extra Large Devices (Large Desktops, 1280px and up) ===== */
@media (min-width: 1280px) {
  .container {
    max-width: 1240px;
  }
}

/* ===== Large Devices (Desktops, 1024px and up) ===== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    max-width: 1000px;
  }
}

/* ===== Medium Devices (Tablets, 768px and up) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: 740px;
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  /* Header Buttons - Tablet */
  .header-buttons {
    gap: 8px;
  }
  
  .btn-contact,
  .btn-start {
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  .header-login {
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  /* Grid adjustments */
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .col-4,
  .col-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Process Section - Tablet */
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
  
  .process-step {
    padding: var(--spacing-lg);
  }
  
  .process-number {
    width: 56px;
    height: 56px;
    font-size: 20px;
    margin-bottom: var(--spacing-sm);
  }
  
  .process-title {
    font-size: 20px;
  }
  
  .process-text {
    font-size: 16px;
  }
}

/* ===== Small Devices (Mobile, less than 768px) ===== */
@media (max-width: 767px) {
  /* Typography */
  body {
    font-size: var(--font-size-sm);
  }
  
  h1, .h1 {
    font-size: var(--font-size-3xl);
  }
  
  h2, .h2 {
    font-size: var(--font-size-2xl);
  }
  
  h3, .h3 {
    font-size: var(--font-size-xl);
  }
  
  /* Layout */
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .section-header {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Grid */
  .row {
    margin: 0 calc(-1 * var(--spacing-xs));
  }
  
  .col {
    padding: 0 var(--spacing-xs);
  }
  
  .col-12,
  .col-6,
  .col-4,
  .col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Header */
  .header {
    height: var(--header-height);
  }
  
  .logo {
    font-size: var(--font-size-xl);
  }
  
  .logo img {
    height: 32px;
  }
  
  /* Header Buttons - Mobile Optimization */
  .header-buttons {
    display: none; /* Hide on mobile, use mobile menu instead */
  }
  
  .btn-contact,
  .btn-start {
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  .header-login {
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  /* Navigation */
  .nav.desktop-only {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hero Section */
  .hero {
    min-height: calc(100vh - var(--header-height));
    padding: var(--spacing-xl) 0;
  }
  
  .hero-title {
    font-size: 32px;
    line-height: 1.4;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  /* Problem Section */
  .problem-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .problem-card {
    padding: var(--spacing-md);
  }
  
  .problem-icon svg {
    width: 38px;
    height: 38px;
  }
  
  .problem-title {
    font-size: 19px;
  }
  
  .problem-text {
    font-size: 15px;
  }
  
  /* Solution Section */
  .solution-item {
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
  }
  
  .solution-item:nth-child(even) {
    flex-direction: column;
  }
  
  .solution-image {
    flex: 0 0 100%;
  }
  
  .solution-title {
    font-size: var(--font-size-xl);
  }
  
  .solution-text {
    font-size: var(--font-size-base);
  }
  
  /* Benefits Section */
  .benefits-comparison {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .benefits-column {
    padding: var(--spacing-md);
  }
  
  /* Process Section */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .process-step {
    padding: var(--spacing-md);
  }
  
  .process-number {
    width: 56px;
    height: 56px;
    font-size: 20px;
    margin-bottom: var(--spacing-sm);
  }
  
  .process-title {
    font-size: 19px;
  }
  
  .process-text {
    font-size: 16px;
  }
  
  /* Trust Section */
  .trust-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .stat-number {
    font-size: var(--font-size-4xl);
  }
  
  /* CTA Section */
  .cta-section {
    padding: var(--spacing-2xl) 0;
  }
  
  .cta-title {
    font-size: var(--font-size-3xl);
  }
  
  .cta-subtitle {
    font-size: var(--font-size-base);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  /* Cards */
  .card {
    padding: var(--spacing-md);
  }
  
  .card-icon {
    width: 48px;
    height: 48px;
    font-size: var(--font-size-2xl);
  }
  
  /* Buttons */
  .btn {
    padding: 12px 24px;
    font-size: var(--font-size-base);
  }
  
  .btn-large {
    padding: 14px 28px;
    font-size: var(--font-size-lg);
  }
  
  /* Footer */
  .footer {
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
}

/* ===== Medium Mobile Devices (375px to 480px) ===== */
@media (min-width: 375px) and (max-width: 480px) {
  .header-buttons {
    gap: 8px;
  }
  
  .btn-contact,
  .btn-start {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .header-login {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 34px;
    line-height: 1.4;
  }
  
  .hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* ===== Extra Small Devices (Small Mobile, less than 375px) ===== */
@media (max-width: 374px) {
  .hero-title {
    font-size: 28px;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .btn-large {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .btn-contact,
  .btn-start {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .header-login {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* ===== Landscape Orientation (Mobile) ===== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--spacing-2xl) 0;
  }
}

/* ===== Print Styles ===== */
@media print {
  .header,
  .mobile-menu-toggle,
  .btn,
  .footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: var(--color-black);
  }
  
  .section {
    page-break-inside: avoid;
  }
}