/* Responsive CSS for Goal Achievement Template */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --section-padding: 40px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .service-card,
  .feature-card,
  .team-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem !important;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-shape {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .container {
    max-width: 1200px;
  }
}

/* Disable animations on mobile for better performance */
@media (max-width: 767.98px) {
  .swiper-slide {
    transition: none !important;
  }
  
  .swiper-wrapper {
    transition: none !important;
  }
  
  .hero-shape {
    animation: none !important;
  }
  
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../VOL_images/hero-bg@2x.webp');
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact-section,
  .hero-shape {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: none !important;
    color: black !important;
  }
  
  .section {
    padding: 20px 0;
  }
  
  .service-card,
  .feature-card,
  .team-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .swiper-wrapper {
    transition: none !important;
  }
  
  .hero-shape {
    animation: none !important;
  }
  
  .fade-in {
    transition: none !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --gray: #888;
    --dark-gray: #f0f0f0;
    --black: #ffffff;
  }
  
  body {
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--black);
  }
  
  .feature-card,
  .service-card,
  .team-card,
  .faq-item {
    background: var(--light-gray);
    color: var(--black);
  }
  
  .form-control {
    background: var(--light-gray);
    color: var(--black);
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Responsive typography scaling */
@media (min-width: 320px) and (max-width: 1200px) {
  html {
    font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1200 - 320)));
  }
}

/* Container responsive padding */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Responsive grid adjustments */
@media (max-width: 767.98px) {
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .col,
  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Responsive navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(0,0,0,0.9);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Responsive hero section */
@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
}

/* Responsive service cards */
@media (max-width: 575.98px) {
  .service-card {
    margin-bottom: 1rem;
  }
  
  .service-price {
    font-size: 2rem;
  }
}

/* Responsive team cards */
@media (max-width: 767.98px) {
  .team-photo {
    height: 200px;
  }
  
  .team-info {
    padding: 1rem;
  }
}

/* Responsive contact form */
@media (max-width: 575.98px) {
  .contact-form {
    margin: 0 10px;
  }
  
  .form-control {
    padding: 0.75rem;
  }
  
  .btn-primary {
    padding: 0.75rem 1.5rem;
    width: 100%;
  }
}

/* Responsive footer */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

/* Responsive FAQ */
@media (max-width: 575.98px) {
  .faq-question {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
  }
} 