/* Electric Snow-Blower Time-Share Cooperative - Responsive CSS */
/* Mobile-First Responsive Design */

/* Base Mobile Styles (320px and up) */
.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding: 2rem 0;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.24rem;
}

.hero-desc {
  font-size: 1rem;
}

.section-title {
  font-size: 1.93rem;
}

.section-subtitle {
  font-size: 1.27rem;
}

.section-desc {
  font-size: 1rem;
}

/* Mobile Navigation */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-collapse {
  background: var(--gradient-primary);
  margin-top: 1rem;
  border-radius: var(--border-radius);
  padding: 1rem;
}

.navbar-nav {
  text-align: center;
}

.navbar-nav .nav-item {
  margin: 0.5rem 0;
}

/* Mobile Hero Section */
.hero {
  min-height: 80vh;
  padding: 2rem 0;
}

.hero .row {
  flex-direction: column-reverse;
}

.hero-content {
  text-align: center;
  margin-top: 2rem;
    padding-top: 200px;
}

.hero-image {
  margin-bottom: 2rem;
}

/* Mobile Cards */
.feature-item,
.service-item,
.team-member,
.review-item,
.casestudy-item,
.process-item,
.timeline-item,
.career-item,
.coreinfo-item,
.blog-item,
.faq-item {
  margin-bottom: 1.62rem;
}

.feature-item,
.service-item,
.team-member,
.review-item,
.casestudy-item,
.process-item,
.timeline-item,
.career-item,
.coreinfo-item {
  padding: 1.5rem;
}

/* Mobile Gallery */
.gallery-layout {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  margin-bottom: 1rem;
}

.gallery-image {
  height: 200px;
}

/* Mobile Contact Form */
.contact-form,
.contact-info {
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Mobile Footer */
.footer {
  padding: 2rem 0 1rem;
}

.footer .row > div {
  margin-bottom: 2rem;
}

.footer .row > div:last-child {
  margin-bottom: 0;
}

/* Small Mobile Devices (480px and up) */
@media (min-width: 480px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-title {
    font-size: 2.37rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-image {
    height: 220px;
  }
}

/* Tablet Portrait (576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.51rem;
  }

  .section-title {
    font-size: 2.36rem;
  }

  .section {
    padding: 3rem 0;
  }

  .feature-item,
  .service-item,
  .team-member,
  .review-item,
  .casestudy-item,
  .process-item,
  .timeline-item,
  .career-item,
  .coreinfo-item {
    padding: 2rem;
  }

  .contact-form,
  .contact-info {
    padding: 2rem;
  }

  .gallery-image {
    height: 240px;
  }
}

/* Tablet Landscape (768px and up) */
@media (min-width: 768px) {
  .hero {
    min-height: 90vh;
  }

  .hero .row {
    flex-direction: row;
    align-items: center;
  }

  .hero-content {
    text-align: left;
    margin-top: 0;
    padding-top: 200px;
}

  .hero-image {
    margin-bottom: 0;
  }

  .hero-title {
    font-size: 2.90rem;
  }

  .section-title {
    font-size: 2.54rem;
  }

  .section {
    padding: 4rem 0;
  }

  .navbar-collapse {
    background: transparent;
    margin-top: 0;
    border-radius: 0;
    padding: 0;
  }

  .navbar-nav {
    text-align: left;
  }

  .navbar-nav .nav-item {
    margin: 0 0.5rem;
  }

  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-image {
    height: 250px;
  }

  .footer .row > div {
    margin-bottom: 1rem;
  }
}

/* Desktop Small (992px and up) */
@media (min-width: 992px) {
  .hero {
    min-height: 100vh;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.77rem;
  }

  .gallery-layout {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-item {
    height: 100%;
  }

  .team-member {
    height: 100%;
  }

  .review-item {
    height: 100%;
  }

  .blog-item {
    height: 100%;
  }

  .footer .row > div {
    margin-bottom: 0;
  }
}

/* Desktop Large (1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.60rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .gallery-layout {
    grid-template-columns: repeat(5, 1fr);
  }

  .container {
    max-width: 1140px;
  }
}

/* Desktop Extra Large (1400px and up) */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 3.35rem;
  }

  .container {
    max-width: 1320px;
  }
}

/* Specific Component Responsiveness */

/* Services Grid Responsive */
@media (max-width: 767px) {
  .services .row > div {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .services .row > div {
    margin-bottom: 1.67rem;
  }
}

/* Team Grid Responsive */
@media (max-width: 767px) {
  .team .row > div {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .team .row > div {
    margin-bottom: 1.63rem;
  }
}

/* Price Plan Responsive */
@media (max-width: 767px) {
  .priceplan .row > div {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .priceplan .row > div {
    margin-bottom: 1.56rem;
  }
}

/* Reviews Grid Responsive */
@media (max-width: 767px) {
  .reviews .row > div {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .reviews .row > div {
    margin-bottom: 1.63rem;
  }
}

/* Contact Form Responsive */
@media (max-width: 767px) {
  .contact .row {
    flex-direction: column;
  }

  .contact .row > div {
    margin-bottom: 1rem;
  }
}

/* FAQ Responsive */
@media (max-width: 767px) {
  .faq-question {
    font-size: 1rem;
    padding: 1rem;
  }

  .faq-answer {
    padding: 1rem;
  }
}

/* Blog Grid Responsive */
@media (max-width: 767px) {
  .blog .row > div {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .blog .row > div {
    margin-bottom: 1.66rem;
  }
}

/* Process Steps Responsive */
@media (max-width: 767px) {
  .process .row > div {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .process .row > div {
    margin-bottom: 1.72rem;
  }
}

/* Timeline Responsive */
@media (max-width: 767px) {
  .timeline .row > div {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .timeline .row > div {
    margin-bottom: 1.71rem;
  }
}

/* Career Responsive */
@media (max-width: 767px) {
  .career .row > div {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .career .row > div {
    margin-bottom: 1.64rem;
  }
}

/* Core Info Responsive */
@media (max-width: 767px) {
  .coreinfo .row > div {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .coreinfo .row > div {
    margin-bottom: 1.69rem;
  }
}

/* Case Studies Responsive */
@media (max-width: 767px) {
  .casestudy .row > div {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .casestudy .row > div {
    margin-bottom: 1.60rem;
  }
}

/* Features Responsive */
@media (max-width: 767px) {
  .features .row > div {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .features .row > div {
    margin-bottom: 1.65rem;
  }
}

/* Utility Classes for Mobile */
.mobile-center {
  text-align: center;
}

.mobile-hide {
  display: none;
}

.mobile-show {
  display: block;
}

@media (min-width: 768px) {
  .mobile-center {
    text-align: left;
  }

  .mobile-hide {
    display: block;
  }

  .mobile-show {
    display: none;
  }

  .desktop-center {
    text-align: center;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 1rem 0;
  }

  .section {
    padding: 1rem 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  .card {
    page-break-inside: avoid;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #484848;
    --text-muted: #6c6c6c;
    --primary-steel: #002452;
    --primary-deep: #012133;
  }

  .btn-primary {
    background: #014368;
    border: 2px solid #08347e;
  }

  .btn-primary:hover {
    background: #010f18;
    border: 2px solid #001125;
  }

  .btn-outline-primary {
    border: 2px solid #004579;
    color: #002263;
  }

  .btn-outline-primary:hover {
    background: #003f62;
    color: #ffffff;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-width: 1024px) {
  .hero {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 2.59rem;
  }
}

/* Portrait Orientation */
@media (orientation: portrait) and (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 2rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    padding: 1rem 1.5rem;
    font-size: 1.18rem;
  }

  .nav-link {
    padding: 1rem 0.5rem;
  }

  .faq-question {
    padding: 1.5rem;
  }

  .card {
    margin-bottom: 1.68rem;
  }
}

/* Hover-capable devices */
@media (hover: hover) and (pointer: fine) {
  .feature-item:hover,
  .service-item:hover,
  .team-member:hover,
  .review-item:hover,
  .casestudy-item:hover,
  .process-item:hover,
  .timeline-item:hover,
  .career-item:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
}

/* Reduced Motion for Animations */
@media (prefers-reduced-motion: reduce) {
  .feature-item,
  .service-item,
  .team-member,
  .review-item,
  .casestudy-item,
  .process-item,
  .timeline-item,
  .career-item,
  .coreinfo-item,
  .blog-item,
  .gallery-item {
    transition: none;
  }

  .feature-item:hover,
  .service-item:hover,
  .team-member:hover,
  .review-item:hover,
  .casestudy-item:hover,
  .process-item:hover,
  .timeline-item:hover,
  .career-item:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
  }
} 