/* Responsive CSS for Mobile Policy Template */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .price-card {
    padding: 2.5rem 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Disable animations on tablets for better performance */
  .shape {
    animation: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  body {
    font-size: 14px;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-card img {
    width: 60px;
    height: 60px;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .about-feature {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .about-feature i {
    font-size: 2.5rem;
  }
  
  .feature-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-item i {
    font-size: 2rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .team-member-name {
    font-size: 1.1rem;
  }
  
  .review-item {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .review-item::before {
    font-size: 3rem;
    top: 0.5rem;
    left: 1.5rem;
  }
  
  .coreinfo-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .coreinfo-item i {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .form-control {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .btn-primary {
    padding: 0.8rem 2rem;
    width: 100%;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
  
  .accordion-button {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .accordion-body {
    padding: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  footer {
    padding: 2rem 0 1.5rem;
  }
  
  /* Hide decorative shapes on mobile */
  .shape {
    display: none;
  }
  
  /* Disable hover effects on mobile */
  .service-card:hover,
  .about-feature:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  /* Swiper adjustments for mobile */
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  /* Reduce 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;
    }
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .service-price {
    font-size: 1.3rem;
  }
  
  .about-feature {
    padding: 1rem;
  }
  
  .about-feature i {
    font-size: 2rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .price-card {
    padding: 1.5rem 1rem;
  }
  
  .price-value {
    font-size: 2rem;
  }
  
  .team-member img {
    width: 80px;
    height: 80px;
  }
  
  .review-item {
    padding: 1.5rem;
  }
  
  .coreinfo-item {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  /* Stack navbar items vertically */
  .navbar-collapse {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-card img,
  .team-member img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev,
  .shape {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .about-feature,
  .feature-item,
  .price-card,
  .review-item,
  .coreinfo-item {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --gray: #a0a0a0;
    --dark-gray: #f0f0f0;
    --black: #ffffff;
  }
  
  body {
    background-color: var(--white);
    color: var(--dark-gray);
  }
  
  .service-card,
  .about-feature,
  .feature-item,
  .price-card,
  .review-item,
  .coreinfo-item,
  .blog-item {
    background: var(--light-gray);
    border: 1px solid #404040;
  }
  
  .contact-form {
    background: var(--light-gray);
  }
  
  .form-control {
    background: var(--white);
    border-color: #404040;
    color: var(--dark-gray);
  }
  
  .accordion-item {
    background: var(--light-gray);
  }
  
  .accordion-button {
    background: var(--light-gray);
    color: var(--dark-gray);
  }
  
  .accordion-body {
    background: var(--white);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before,
  .shape,
  .service-card,
  .about-feature,
  .blog-item,
  .gallery-item {
    animation: none !important;
    transition: none !important;
  }
  
  .service-card:hover,
  .about-feature:hover,
  .blog-item:hover,
  .gallery-item:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1001;
}

.skip-link:focus {
  top: 6px;
} 