/* ==========================================================================
   Electric Snow-Blower Cooperative - Responsive Styles
   Mobile-First Approach | Bootstrap 5 Compatible
   ========================================================================== */

/* ==========================================================================
   Mobile First Base Styles (320px+)
   ========================================================================== */

/* Typography adjustments for mobile */
@media (max-width: 576px) {
  :root {
    --font-size-base: 0.9rem;
    --section-padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.87rem;
  }
  
  h3 {
    font-size: 1.37rem;
  }
  
  .hero-title {
    font-size: 2.64rem;
  }
  
  .hero-subtitle {
    font-size: 1.24rem;
  }
}

/* ==========================================================================
   Small Devices (landscape phones, 576px and up)
   ========================================================================== */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.88rem;
  }
}

/* ==========================================================================
   Medium Devices (tablets, 768px and up)
   ========================================================================== */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .navbar-nav {
    margin-left: auto;
  }
}

/* ==========================================================================
   Large Devices (desktops, 992px and up)
   ========================================================================== */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3.52rem;
  }
}

/* ==========================================================================
   Extra Large Devices (large desktops, 1200px and up)
   ========================================================================== */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
@media (max-width: 991px) {
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   Hero Section Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 2rem;
    padding-top: 100px;
}
  
  .hero-image img {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-image img {
    height: 250px;
  }
}

/* ==========================================================================
   Services Section Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .services-item {
    margin-bottom: 2rem;
  }
  
  .services-item img {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .services-item {
    padding: 1.5rem;
  }
  
  .services-item img {
    height: 150px;
  }
  
  .services-price {
    font-size: 1.84rem;
  }
}

/* ==========================================================================
   Features Section Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .features-item {
    margin-bottom: 1.63rem;
  }
}

@media (max-width: 576px) {
  .features-item {
    padding: 1.5rem;
  }
  
  .features-item i {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Price Plan Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .priceplan-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .priceplan-item {
    padding: 2rem 1.5rem;
  }
  
  .priceplan-price {
    font-size: 2.59rem;
  }
}

/* ==========================================================================
   Team Section Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .team-member {
    margin-bottom: 3rem;
  }
}

@media (max-width: 576px) {
  .team-member img {
    width: 150px;
    height: 150px;
  }
}

/* ==========================================================================
   Reviews Section Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .reviews-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .reviews-item {
    padding: 1.5rem;
  }
  
  .reviews-item::before {
    font-size: 3rem;
    top: -5px;
    left: 15px;
  }
}

/* ==========================================================================
   Case Studies Responsive
   ========================================================================== */
@media (max-width: 576px) {
  .casestudy-item {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Process Section Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .process-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .process-item {
    padding: 1rem;
  }
  
  .process-item::before {
    width: 50px;
    height: 50px;
    font-size: 1.40rem;
  }
}

/* ==========================================================================
   Timeline Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .timeline-item {
    padding-left: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .timeline-item::before {
    width: 15px;
    height: 15px;
  }
  
  .timeline-item::after {
    left: 7px;
  }
}

@media (max-width: 576px) {
  .timeline-item {
    padding-left: 2rem;
  }
  
  .timeline-item::before {
    width: 12px;
    height: 12px;
  }
  
  .timeline-item::after {
    left: 5px;
  }
}

/* ==========================================================================
   Career Section Responsive
   ========================================================================== */
@media (max-width: 576px) {
  .career-item {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Core Info Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .coreinfo-item {
    margin-bottom: 1.57rem;
  }
}

@media (max-width: 576px) {
  .coreinfo-item {
    padding: 1.5rem;
  }
  
  .coreinfo-item i {
    font-size: 1.81rem;
  }
}

/* ==========================================================================
   Contact Form Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-control {
    padding: 10px 12px;
  }
  
  .btn-primary {
    padding: 10px 25px;
    width: 100%;
  }
}

/* ==========================================================================
   Blog Section Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .blog-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .blog-content {
    padding: 1.25rem;
  }
  
  .blog-item img {
    height: 180px;
  }
}

/* ==========================================================================
   FAQ Responsive
   ========================================================================== */
@media (max-width: 576px) {
  .faq-question {
    padding: 1.25rem;
    font-size: 1.04rem;
  }
  
  .faq-answer {
    padding: 1.25rem;
    font-size: 0.93rem;
  }
}

/* ==========================================================================
   Gallery Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .gallery img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery img {
    height: 180px;
  }
}

/* ==========================================================================
   Footer Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-title {
    font-size: 1.18rem;
  }
  
  .footer {
    font-size: 0.93rem;
  }
}

/* ==========================================================================
   About Features Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .about-feature {
    margin-bottom: 1.68rem;
  }
}

@media (max-width: 576px) {
  .about-feature {
    padding: 1.5rem;
  }
  
  .about-feature i {
    font-size: 2.60rem;
  }
}

/* ==========================================================================
   Spacing Adjustments for Mobile
   ========================================================================== */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .section-title {
    margin-bottom: 0.99rem;
  }
  
  .section-subtitle {
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   Hover Effects - Disable on Touch Devices
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
  .services-item:hover,
  .blog-item:hover,
  .about-feature:hover,
  .gallery img:hover,
  .btn-primary:hover {
    transform: none;
  }
  
  .priceplan-item:hover {
    transform: none;
    border-color: var(--light-gray);
  }
  
  .priceplan-item.featured:hover {
    border-color: var(--primary-blue);
  }
}

/* ==========================================================================
   Landscape Orientation Adjustments
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-image img {
    height: 200px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .hero-section,
  .contact-form,
  .footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
} 