/* Ocean Plastic Skateboards - Responsive CSS */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.82rem; }
  h3 { font-size: 1.54rem; }
  h4 { font-size: 1.38rem; }
  
  .hero-title {
    font-size: 2.57rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.29rem;
    margin-bottom: 1.67rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.71rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.16rem;
  }
  
  .section-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Navigation */
  .navbar-brand {
    font-size: 1.35rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    text-align: center;
  }

  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    background-attachment: scroll;
  }
  
  .hero-content {
    text-align: center;
    padding: 2rem 0;
    padding-top: 225px;
}

  /* Sections */
  .section {
    padding: 3rem 0;
  }

  /* Cards */
  .card-custom .card-body {
    padding: 1.5rem;
  }
  
  .service-card {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.60rem;
    margin-bottom: 1rem;
  }
  
  .service-price {
    font-size: 1.82rem;
  }

  /* Team Cards */
  .team-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }

  /* Reviews */
  .review-card {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .review-text {
    font-size: 1rem;
    margin-bottom: 1.56rem;
  }

  /* Contact Form */
  .contact-form {
    padding: 2rem;
  }

  /* FAQ */
  .faq-accordion .accordion-header button {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .faq-accordion .accordion-body {
    padding: 1.5rem;
  }

  /* Timeline */
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 4rem !important;
    padding-right: 0 !important;
  }
  
  .timeline-dot {
    left: 1.5rem !important;
  }

  /* Gallery */
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 1rem;
  }

  /* Footer */
  .footer {
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.48rem;
  }

  /* Navigation */
  .navbar-nav .nav-link {
    margin: 0 0.25rem;
  }

  /* Hero Section */
  .hero-section {
    min-height: 80vh;
  }

  /* Cards */
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .review-card {
    margin-bottom: 2rem;
  }

  /* Timeline */
  .timeline::before {
    left: 3rem;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 5rem !important;
    padding-right: 0 !important;
  }
  
  .timeline-dot {
    left: 2.5rem !important;
  }

  /* Gallery */
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    width: auto;
    display: inline-block;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  .hero-title {
    font-size: 3.35rem;
  }

  /* Hero Section */
  .hero-section {
    min-height: 90vh;
  }

  /* Timeline */
  .timeline::before {
    left: 50%;
  }
  
  .timeline-item {
    width: 45%;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 2rem;
    padding-left: 0;
  }
  
  .timeline-item:nth-child(even) {
    left: 55%;
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-dot {
    right: -12px;
    left: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
    right: auto;
  }

  /* Gallery */
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  /* Contact Form */
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  .hero-section {
    min-height: 100vh;
  }

  /* Gallery */
  .gallery-layout {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Typography */
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }

  /* Container adjustments */
  .container {
    max-width: 1140px;
  }

  /* Hero Section */
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-content {
    padding: 0 2rem;
    padding-top: 225px;
}

  /* Sections */
  .section {
    padding: 6rem 0;
  }

  /* Cards */
  .service-card {
    padding: 3rem;
  }
  
  .team-card {
    padding: 2.5rem;
  }
  
  .review-card {
    padding: 3rem;
  }

  /* Contact Form */
  .contact-form {
    padding: 3.5rem;
  }
}

/* Extra Extra Large Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4.53rem;
  }
  
  .section-title {
    font-size: 3.56rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 2.51rem;
  }
  
  .hero-subtitle {
    font-size: 1.34rem;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    margin-bottom: 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on retina displays */
  .service-icon,
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
  }
}

/* Print styles */
@media print {
  /* Hide unnecessary elements for printing */
  .navbar,
  .hero-section,
  .gallery-layout,
  .contact-form,
  .footer {
    display: none;
  }
  
  /* Ensure good contrast for printing */
  .section-title,
  .card-title,
  .team-name {
    color: #000 !important;
  }
  
  .card-custom,
  .service-card,
  .team-card,
  .review-card {
    box-shadow: none !important;
    border: 1px solid #c2c2c2 !important;
  }
  
  /* Page breaks */
  .section {
    page-break-inside: avoid;
  }
}

/* Accessibility improvements for specific screen sizes */
@media (max-width: 991.98px) {
  /* Larger touch targets for mobile */
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navbar-nav .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Specific adjustments for very small screens */
@media (max-width: 360px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.77rem;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .contact-form {
    padding: 1.5rem;
  }
}

/* Hover effects disabled on touch devices */
@media (hover: none) {
  .card-custom:hover,
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

/* Focus improvements for keyboard navigation */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link:focus,
  .btn-primary:focus,
  .btn-secondary:focus,
  .form-control:focus {
    outline: 3px solid var(--secondary-aqua);
    outline-offset: 2px;
  }
} 