/* Consumer Protection Advice Counter - Responsive Styles */

/* Respect prefers-reduced-motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .swiper-container {
    --swiper-pagination-bullet-opacity: 1;
  }
  
  .shape-1,
  .shape-2 {
    animation: none;
  }
}

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* Large Devices (992px to 1399px) */
@media (max-width: 1399.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .shape-1 {
    width: 150px;
    height: 150px;
  }
  
  .shape-2 {
    width: 120px;
    height: 120px;
  }
}

/* Medium Devices (768px to 991px) - Tablets */
@media (max-width: 991.98px) {
  :root {
    --space-xs: 0.375rem;
    --space-sm: 0.75rem;
    --space-md: 1.125rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section-padding {
    padding: var(--space-xl) 0;
  }
  
  /* Typography adjustments */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
  }
  
  /* Header adjustments */
  .navbar-brand {
    font-size: 1.375rem;
  }
  
  .navbar-nav .nav-link {
    margin: var(--space-xs) 0;
    padding: var(--space-xs) var(--space-sm) !important;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 80vh;
    padding: var(--space-xl) 0;
  }
  
  /* Cards and items */
  .about-feature,
  .service-item,
  .feature-item,
  .team-member,
  .coreinfo-item {
    margin-bottom: var(--space-md);
  }
  
  .service-image {
    height: 180px;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  .coreinfo-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Grid adjustments */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
  }
  
  .additional-elements {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-sm);
  }
  
  /* Contact form */
  .contact-form {
    padding: var(--space-lg);
  }
  
  .service-options {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-xs);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
  }
  
  /* Shapes */
  .shape-1 {
    width: 120px;
    height: 120px;
    top: 5%;
    right: 5%;
  }
  
  .shape-2 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: 3%;
  }
  
  /* Price plans */
  .price-plan-item.featured {
    transform: none;
  }
  
  .plan-price {
    font-size: 2.5rem;
  }
}

/* Small Devices (576px to 767px) - Large phones */
@media (max-width: 767.98px) {
  :root {
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .section-padding {
    padding: var(--space-lg) 0;
  }
  
  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.375rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.125rem; }
  h6 { font-size: 1rem; }
  
  .hero-title {
    font-size: 2rem;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    text-align: center;
  }
  
  .hero-description {
    text-align: center;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  /* Header */
  .navbar {
    padding: var(--space-xs) 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.375rem;
  }
  
  .navbar-collapse {
    margin-top: var(--space-sm);
  }
  
  .navbar-nav .nav-link {
    padding: var(--space-sm) var(--space-md) !important;
    margin: var(--space-xs) 0;
    text-align: center;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 70vh;
    padding: var(--space-lg) 0;
    text-align: center;
  }
  
  /* Cards become full width */
  .about-feature,
  .service-item,
  .feature-item,
  .price-plan-item,
  .team-member,
  .coreinfo-item {
    margin-bottom: var(--space-md);
  }
  
  .service-name {
    font-size: 1.25rem;
  }
  
  .service-price {
    font-size: 1.75rem;
  }
  
  .service-image {
    height: 160px;
  }
  
  /* Team photos smaller */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .team-member-name {
    font-size: 1.125rem;
  }
  
  /* Icons smaller */
  .about-feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .coreinfo-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Grid layouts */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  .gallery-image {
    height: 200px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .additional-elements {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  /* Contact form */
  .contact-form {
    padding: var(--space-md);
  }
  
  .service-options {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
  
  .btn-submit {
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
  }
  
  .contact-info {
    justify-content: center;
  }
  
  /* Shapes */
  .shape-1,
  .shape-2 {
    display: none;
  }
  
  /* FAQ */
  .faq-question {
    padding: var(--space-sm);
    font-size: 0.95rem;
  }
  
  .faq-answer.active {
    padding: var(--space-sm);
  }
  
  /* Price plans */
  .price-plan-item {
    padding: var(--space-lg);
  }
  
  .plan-price {
    font-size: 2rem;
  }
  
  /* Reviews */
  .review-item {
    margin: var(--space-xs);
    padding: var(--space-md);
  }
  
  .review-text {
    font-size: 1rem;
  }
  
  /* Space page */
  #space {
    min-height: 50vh;
    margin: var(--space-md) 0;
  }
  
  /* Swiper adjustments */
  .swiper-container {
    padding-bottom: 40px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Extra Small Devices (less than 576px) - Small phones */
@media (max-width: 575.98px) {
  :root {
    --space-xs: 0.25rem;
    --space-sm: 0.375rem;
    --space-md: 0.5rem;
    --space-lg: 0.75rem;
    --space-xl: 1rem;
    --space-2xl: 1.5rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section-padding {
    padding: var(--space-xl) 0;
  }
  
  /* Typography even smaller */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.95rem; }
  
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  /* Header */
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 60vh;
    padding: var(--space-md) 0;
  }
  
  /* Cards */
  .about-feature,
  .service-item,
  .feature-item,
  .price-plan-item,
  .team-member,
  .coreinfo-item {
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
  }
  
  .service-name {
    font-size: 1.125rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .service-image {
    height: 140px;
  }
  
  /* Team */
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  .team-member-name {
    font-size: 1rem;
  }
  
  /* Icons */
  .about-feature-icon,
  .coreinfo-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .gallery-image {
    height: 180px;
  }
  
  /* Additional elements */
  .additional-elements {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .additional-element {
    padding: var(--space-sm);
  }
  
  /* Contact form */
  .contact-form {
    padding: var(--space-sm);
  }
  
  .form-control {
    padding: var(--space-sm);
    font-size: 0.95rem;
  }
  
  .btn-submit {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
  }
  
  /* FAQ */
  .faq-question {
    padding: var(--space-sm);
    font-size: 0.9rem;
  }
  
  .faq-answer.active {
    padding: var(--space-sm);
  }
  
  .faq-answer p {
    font-size: 0.9rem;
  }
  
  /* Price plans */
  .price-plan-item {
    padding: var(--space-md);
  }
  
  .plan-name {
    font-size: 1.25rem;
  }
  
  .plan-price {
    font-size: 1.75rem;
  }
  
  .plan-features li {
    font-size: 0.9rem;
  }
  
  /* Reviews */
  .review-item {
    padding: var(--space-sm);
  }
  
  .review-text {
    font-size: 0.95rem;
  }
  
  .review-author {
    font-size: 0.9rem;
  }
  
  /* Footer */
  .footer-content {
    gap: var(--space-sm);
  }
  
  .footer-section h3 {
    font-size: 1.125rem;
  }
  
  .footer-section p,
  .footer-section li {
    font-size: 0.9rem;
  }
  
  /* Space page */
  #space {
    min-height: 40vh;
    margin: var(--space-sm) 0;
  }
  
  /* Breadcrumb */
  .breadcrumb-container {
    padding: var(--space-xs) 0;
  }
  
  .breadcrumb-item img {
    width: 16px;
    height: 16px;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-padding {
    padding: var(--space-md) 0;
  }
}

/* High density displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before,
  #space::before {
    background-image: url('../HIS_images/hero-bg-2x.webp');
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* This can be uncommented if dark mode is desired */
  /*
  :root {
    --text-dark: #e2e8f0;
    --text-medium: #cbd5e0;
    --text-light: #a0aec0;
    --white: #1a202c;
    --gray-50: #2d3748;
    --gray-100: #4a5568;
    --gray-200: #718096;
  }
  */
}

/* Print optimizations */
@media print {
  .hero-section {
    min-height: auto;
    background: white !important;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .service-item,
  .about-feature,
  .feature-item,
  .team-member,
  .coreinfo-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  .gallery-section {
    display: none;
  }
  
  .swiper-container {
    display: none;
  }
} 