/* =============================================================================
   RESPONSIVE CSS - MOBILE-FIRST APPROACH
   Digital Badge Credentialing SaaS | Conservative Design | Accessibility First
   ============================================================================= */

/* =============================================================================
   MOBILE-FIRST BASE STYLES (320px+)
   ============================================================================= */

/* Typography - Mobile */
h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.85rem;
}

h3 {
  font-size: 1.64rem;
}

h4 {
  font-size: 1.33rem;
}

.section-title {
  font-size: 2rem;
}

.hero-title {
  font-size: 2.55rem;
}

/* Sections - Mobile */
.section {
  padding: 60px 0;
}

/* Hero Section - Mobile */
.hero-section {
  min-height: 100vh;
  padding: 2rem 0;
}

.hero-content {
  text-align: center;
    padding-top: 150px;
}

/* Cards - Mobile */
.card {
  margin-bottom: 2rem;
}

.card-body {
  padding: 1.5rem;
}

/* Service Cards - Mobile */
.service-card {
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Team Photos - Mobile */
.team-photo {
  width: 150px;
  height: 150px;
}

/* Pricing Cards - Mobile */
.pricing-card {
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}

.pricing-price {
  font-size: 2.54rem;
}

/* Contact Form - Mobile */
.contact-form {
  padding: 2rem;
}

/* Navigation - Mobile */
.navbar-nav {
  text-align: center;
}

.navbar-nav .nav-link {
  padding: 0.75rem 1rem;
}

/* Footer - Mobile */
.footer {
  padding: 2rem 0 1rem;
  text-align: center;
}

.footer .col-md-4 {
  margin-bottom: 2rem;
}

/* =============================================================================
   SMALL DEVICES - TABLETS (576px+)
   ============================================================================= */

@media (min-width: 576px) {
  /* Typography - Tablet */
  h1 {
    font-size: 2.32rem;
  }

  .section-title {
    font-size: 2.27rem;
  }

  .hero-title {
    font-size: 2.85rem;
  }

  /* Sections - Tablet */
  .section {
    padding: 70px 0;
  }

  /* Service Cards - Tablet */
  .service-card {
    padding: 1.75rem;
  }

  /* Team Photos - Tablet */
  .team-photo {
    width: 175px;
    height: 175px;
  }

  /* Pricing Cards - Tablet */
  .pricing-card {
    padding: 2.25rem 1.75rem;
  }

  /* Contact Form - Tablet */
  .contact-form {
    padding: 2.5rem;
  }

  /* Navigation - Tablet */
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* =============================================================================
   MEDIUM DEVICES - LAPTOPS (768px+)
   ============================================================================= */

@media (min-width: 768px) {
  /* Typography - Laptop */
  h1 {
    font-size: 2.55rem;
  }

  .section-title {
    font-size: 2.62rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  /* Sections - Laptop */
  .section {
    padding: 80px 0;
  }

  /* Hero Section - Laptop */
  .hero-content {
    text-align: left;
    padding-top: 150px;
}

  /* Service Cards - Laptop */
  .service-card {
    padding: 2rem;
  }

  /* Team Photos - Laptop */
  .team-photo {
    width: 200px;
    height: 200px;
  }

  /* Pricing Cards - Laptop */
  .pricing-card {
    padding: 2.5rem 2rem;
  }

  .pricing-price {
    font-size: 3rem;
  }

  /* Contact Form - Laptop */
  .contact-form {
    padding: 3rem;
  }

  /* Footer - Laptop */
  .footer {
    padding: 3rem 0 1rem;
    text-align: left;
  }

  .footer .col-md-4 {
    margin-bottom: 0;
  }
}

/* =============================================================================
   LARGE DEVICES - DESKTOPS (994px+)
   ============================================================================= */

@media (min-width: 992px) {
  /* Typography - Desktop */
  .hero-title {
    font-size: 3.55rem;
  }

  /* Service Cards - Desktop */
  .service-card {
    padding: 2.5rem;
  }

  /* Pricing Cards - Desktop */
  .pricing-card {
    padding: 3rem 2.5rem;
  }

  /* Contact Form - Desktop */
  .contact-form {
    padding: 3.5rem;
  }

  /* Hero Section - Desktop */
  .hero-section::before {
    display: block;
  }
}

/* =============================================================================
   EXTRA LARGE DEVICES - WIDE SCREENS (1200px+)
   ============================================================================= */

@media (min-width: 1200px) {
  /* Container - Wide Screen */
  .container {
    max-width: var(--container-max-width);
  }

  /* Typography - Wide Screen */
  .hero-title {
    font-size: 4rem;
  }

  /* Service Cards - Wide Screen */
  .service-card {
    padding: 3rem;
  }

  /* Pricing Cards - Wide Screen */
  .pricing-card {
    padding: 3.5rem 3rem;
  }

  /* Contact Form - Wide Screen */
  .contact-form {
    padding: 4rem;
  }
}

/* =============================================================================
   ULTRA WIDE SCREENS (1400px+)
   ============================================================================= */

@media (min-width: 1400px) {
  /* Container - Ultra Wide */
  .container {
    max-width: 1320px;
  }

  /* Typography - Ultra Wide */
  .hero-title {
    font-size: 4.62rem;
  }

  /* Sections - Ultra Wide */
  .section {
    padding: 100px 0;
  }
}

/* =============================================================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Remove floating animations */
  .hero-section::before {
    animation: none !important;
  }

  /* Remove hover transforms */
  .card:hover,
  .service-card:hover,
  .pricing-card:hover,
  .btn-primary:hover {
    transform: none !important;
  }

  /* Keep essential transitions for usability */
  .form-control:focus {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
}

/* =============================================================================
   HIGH CONTRAST - ACCESSIBILITY
   ============================================================================= */

@media (prefers-contrast: high) {
  :root {
    --primary-blue: #106cb6;
    --primary-green: #23923c;
    --primary-purple: #7a4db1;
    --primary-coral: #f32f47;
    --primary-amber: #fb7f1e;
    
    --neutral-medium: #4a5256;
    --neutral-dark: #000000;
    
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.5);
  }

  /* Increase border visibility */
  .card,
  .service-card,
  .pricing-card,
  .contact-form {
    border: 2px solid var(--neutral-medium);
  }

  /* Improve button contrast */
  .btn-primary {
    border: 2px solid var(--dark-blue);
  }

  .btn-secondary {
    border: 2px solid var(--primary-blue);
  }
}

/* =============================================================================
   DARK MODE SUPPORT
   ============================================================================= */


/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
  /* Hide navigation and interactive elements */
  .navbar,
  .btn,
  .hero-section::before,
  .footer {
    display: none !important;
  }

  /* Optimize typography for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff !important;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    page-break-after: avoid;
  }

  /* Remove shadows and animations */
  .card,
  .service-card,
  .pricing-card {
    box-shadow: none !important;
    border: 1px solid #bfb3b1;
  }

  /* Ensure content fits on page */
  .container {
    max-width: 100% !important;
  }

  /* Page breaks */
  .section {
    page-break-inside: avoid;
    padding: 20px 0;
  }
}

/* =============================================================================
   LANDSCAPE ORIENTATION - TABLETS
   ============================================================================= */

@media (orientation: landscape) and (max-width: 1024px) {
  .hero-section {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 2.57rem;
  }

  .section {
    padding: 60px 0;
  }
}

/* =============================================================================
   FOCUS MANAGEMENT
   ============================================================================= */

/* Improve focus indicators for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: var(--neutral-white);
  padding: 8px;
  border-radius: 4px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* =============================================================================
   RESPONSIVE IMAGES
   ============================================================================= */

img {
  max-width: 100%;
  height: auto;
}

.team-photo {
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

/* =============================================================================
   RESPONSIVE TABLES
   ============================================================================= */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .table-responsive table {
    font-size: 0.94rem;
  }
}

/* =============================================================================
   UTILITY CLASSES FOR RESPONSIVE DESIGN
   ============================================================================= */

/* Show/hide elements based on screen size */
.d-mobile-none {
  display: none;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: block;
  }
  
  .d-desktop-none {
    display: none;
  }
}

/* Responsive spacing */
.p-responsive {
  padding: 1rem;
}

@media (min-width: 768px) {
  .p-responsive {
    padding: 2rem;
  }
}

@media (min-width: 992px) {
  .p-responsive {
    padding: 3rem;
  }
}

/* Responsive text alignment */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-mobile {
    text-align: left;
  }
}

/* =============================================================================
   PERFORMANCE OPTIMIZATIONS
   ============================================================================= */

/* Optimize for performance on mobile */
@media (max-width: 767px) {
  /* Reduce complex styles on mobile */
  .hero-section::before {
    display: none;
  }
  
  /* Simplify animations */
  .card:hover,
  .service-card:hover,
  .pricing-card:hover {
    transform: none;
  }
  
  /* Reduce shadow complexity */
  .card,
  .service-card,
  .pricing-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* =============================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================================================= */

@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .btn {
    padding: 16px 32px;
    min-height: 48px;
  }
  
  .nav-link {
    padding: 16px 20px;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover,
  .service-card:hover,
  .pricing-card:hover,
  .btn:hover {
    transform: none;
    box-shadow: var(--shadow-light);
  }
  
  /* Optimize form controls for touch */
  .form-control {
    padding: 16px 20px;
    min-height: 48px;
  }
} 