/* ==========================================================================
   ESG Compliance Training Platform - Responsive CSS
   Mobile-First Responsive Design
   ========================================================================== */

/* ==========================================================================
   Base Mobile Styles (320px and up)
   ========================================================================== */
@media (max-width: 575.98px) {
  /* Container adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  /* Section padding adjustments */
  .section {
    padding: 2rem 0;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 100vh;
    text-align: center;
  }
  
  .hero-content {
    padding: 2rem 0;
    padding-top: 250px;
}
  
  /* Service items */
  .service-item {
    margin-bottom: 2rem;
  }
  
  /* Team members */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Reviews */
  .review-item {
    margin-bottom: 2rem;
  }
  
  /* FAQ items */
  .faq-item {
    margin-bottom: 1rem;
  }
  
  /* Process items */
  .process-item {
    margin-bottom: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem;
  }
  
  .contact-info {
    padding: 2rem;
    margin-top: 2rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  /* Gallery grid */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  /* Case studies */
  .casestudy-item {
    margin-bottom: 2rem;
  }
  
  /* Price plan */
  .priceplan-item {
    margin-bottom: 2rem;
  }
  
  /* Career items */
  .career-item {
    margin-bottom: 2rem;
  }
  
  /* Core info */
  .coreinfo-item {
    margin-bottom: 2rem;
  }
  
  /* Blog items */
  .blog-item {
    margin-bottom: 2rem;
  }
  
  /* Timeline adjustments */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
  
  /* About features */
  .about-feature {
    margin-bottom: 2rem;
  }
  
  /* Features items */
  .features-item {
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   Small devices (landscape phones, 576px and up)
   ========================================================================== */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .contact-info {
    padding: 2.5rem;
  }
}

/* ==========================================================================
   Medium devices (tablets, 768px and up)
   ========================================================================== */
@media (min-width: 768px) {
  /* Section padding */
  .section {
    padding: 3rem 0;
  }
  
  /* Hero section */
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  .hero-content {
    padding: 3rem 0;
    padding-top: 250px;
}
  
  /* Contact section */
  .contact-form {
    padding: 3rem;
  }
  
  .contact-info {
    padding: 3rem;
  }
  
  /* Footer */
  .footer {
    padding: 3rem 0 1rem;
  }
  
  /* Gallery grid improvements */
  .gallery-item {
    margin-bottom: 1.5rem;
  }
  
  /* Services grid */
  .service-item {
    margin-bottom: 2rem;
  }
  
  /* Team grid */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Reviews grid */
  .review-item {
    margin-bottom: 2rem;
  }
  
  /* Timeline spacing */
  .timeline-item {
    padding-left: 3rem;
  }
  
  /* Process items */
  .process-item {
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   Large devices (desktops, 992px and up)
   ========================================================================== */
@media (min-width: 992px) {
  /* Full section padding */
  .section {
    padding: var(--section-padding);
  }
  
  /* Hero section */
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-content {
    padding: 4rem 0;
    padding-top: 250px;
}
  
  /* Remove bottom margins for grid items */
  .service-item,
  .team-member,
  .review-item,
  .casestudy-item,
  .priceplan-item,
  .career-item,
  .coreinfo-item,
  .blog-item,
  .about-feature,
  .features-item {
    margin-bottom: 0;
  }
  
  /* Gallery items */
  .gallery-item {
    margin-bottom: 2rem;
  }
  
  /* FAQ items */
  .faq-item {
    margin-bottom: 1.5rem;
  }
  
  /* Process items in row */
  .process-item {
    margin-bottom: 0;
  }
  
  /* Timeline items */
  .timeline-item {
    margin-bottom: 3rem;
  }
  
  /* Contact section side by side */
  .contact-info {
    margin-top: 0;
  }
}

/* ==========================================================================
   Extra large devices (large desktops, 1200px and up)
   ========================================================================== */
@media (min-width: 1200px) {
  /* Container max width */
  .container {
    max-width: var(--container-max-width);
  }
  
  /* Hero section */
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.625rem;
  }
  
  /* Section descriptions */
  .section-description {
    max-width: 700px;
  }
  
  /* Gallery grid improvements */
  .gallery-item {
    margin-bottom: 2rem;
  }
  
  /* Service items hover effects */
  .service-item:hover,
  .team-member:hover,
  .review-item:hover,
  .casestudy-item:hover,
  .priceplan-item:hover,
  .career-item:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .about-feature:hover,
  .features-item:hover {
    transform: translateY(-5px);
  }
  
  /* Timeline improvements */
  .timeline-item {
    margin-bottom: 4rem;
  }
}

/* ==========================================================================
   Extra extra large devices (1400px and up)
   ========================================================================== */
@media (min-width: 1400px) {
  /* Hero section */
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.75rem;
  }
  
  /* Section descriptions */
  .section-description {
    max-width: 800px;
  }
  
  /* Enhanced spacing */
  .section {
    padding: 5rem 0;
  }
  
  /* Gallery grid enhancements */
  .gallery-item {
    margin-bottom: 2.5rem;
  }
  
  /* Timeline enhancements */
  .timeline-item {
    margin-bottom: 5rem;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  /* Hide non-essential elements */
  .navbar,
  .footer,
  .gallery-item,
  .contact-form,
  .btn,
  button {
    display: none !important;
  }
  
  /* Ensure readability */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  /* Section breaks */
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  /* Remove shadows and transitions */
  * {
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Ensure text is readable */
  h1, h2, h3, h4, h5, h6 {
    color: #000;
  }
  
  p {
    color: #333;
  }
  
  /* Remove background colors */
  .hero-section,
  .service-item,
  .team-member,
  .review-item,
  .casestudy-item,
  .priceplan-item,
  .career-item,
  .coreinfo-item,
  .blog-item,
  .about-feature,
  .faq-item,
  .contact-info {
    background: #fff !important;
  }
}

/* ==========================================================================
   Accessibility Improvements
   ========================================================================== */
/* Focus indicators */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #006400;
    --accent-color: #ff8c00;
    --warning-color: #dc143c;
    --info-color: #0000ff;
    --gray: #404040;
    --dark-gray: #202020;
  }
  
  /* Increase border visibility */
  .service-item,
  .team-member,
  .review-item,
  .casestudy-item,
  .priceplan-item,
  .career-item,
  .coreinfo-item,
  .blog-item,
  .about-feature,
  .faq-item,
  .contact-form,
  .contact-info {
    border: 2px solid var(--dark-gray);
  }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */
/* Optimize animations for low-end devices */
@media (max-width: 767.98px) {
  .service-item,
  .team-member,
  .review-item,
  .casestudy-item,
  .priceplan-item,
  .career-item,
  .coreinfo-item,
  .blog-item,
  .about-feature,
  .features-item,
  .gallery-item {
    transition: none;
  }
  
  .service-item:hover,
  .team-member:hover,
  .review-item:hover,
  .casestudy-item:hover,
  .priceplan-item:hover,
  .career-item:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .about-feature:hover,
  .features-item:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* ==========================================================================
   Landscape Orientation Adjustments
   ========================================================================== */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-content {
    padding: 2rem 0;
    padding-top: 250px;
}
} 