/* Digital Nomad Coliving Space - Responsive Styles */
/* Mobile-First Approach */

/* ===== BASE MOBILE STYLES (< 576px) ===== */

/* Typography adjustments for mobile */
h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

/* Hero section mobile adjustments */
.hero-section {
  min-height: 70vh;
  padding: 2rem 0;
}

.hero-section::before,
.hero-section::after {
  display: none; /* Hide decorative elements on mobile */
}

/* Navigation mobile adjustments */
.navbar-brand {
  font-size: 1.125rem;
}

.navbar-nav .nav-link {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* Section padding mobile */
.section {
  padding: 2.5rem 0;
}

.section-sm {
  padding: 2rem 0;
}

/* Card adjustments for mobile */
.card-body {
  padding: 1rem;
}

.service-item {
  padding: 1.5rem 1rem;
  margin-bottom: 1.5rem;
}

.service-item img {
  height: 180px;
}

/* Team member mobile */
.team-member {
  padding: 1rem;
  margin-bottom: 2rem;
}

.team-member img {
  width: 120px;
  height: 120px;
}

/* Contact form mobile */
.contact-form {
  padding: 2rem 1rem;
  margin: 1rem 0;
}

/* Price plan mobile */
.price-item {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 2rem;
}

/* Feature items mobile */
.feature-item {
  padding: 1.5rem 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-icon {
  font-size: 2.5rem;
}

/* FAQ mobile */
.faq-question {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.faq-answer {
  padding: 1rem;
  font-size: 0.875rem;
}

/* Footer mobile */
.footer {
  padding: 2rem 0 1.5rem;
  text-align: center;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

/* ===== SMALL DEVICES (≥576px) ===== */
@media (min-width: 576px) {
  
  /* Typography improvements */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 80vh;
  }
  
  /* Section spacing */
  .section {
    padding: 3rem 0;
  }
  
  .section-sm {
    padding: 2.5rem 0;
  }
  
  /* Service items */
  .service-item img {
    height: 190px;
  }
  
  /* Team members */
  .team-member img {
    width: 140px;
    height: 140px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2.5rem 1.5rem;
  }
  
  /* Price plan */
  .price-amount {
    font-size: 2.25rem;
  }
  
  /* Feature icons */
  .feature-icon {
    font-size: 2.75rem;
  }
  
}

/* ===== MEDIUM DEVICES (≥768px) ===== */
@media (min-width: 768px) {
  
  /* Typography */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  /* Navbar */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-section::before {
    display: block;
    width: 150px;
    height: 150px;
  }
  
  .hero-section::after {
    display: block;
    width: 120px;
    height: 120px;
  }
  
  /* Section spacing */
  .section {
    padding: 4rem 0;
  }
  
  .section-sm {
    padding: 3rem 0;
  }
  
  /* Service items */
  .service-item {
    padding: 2rem 1.5rem;
  }
  
  .service-item img {
    height: 200px;
  }
  
  /* Team members */
  .team-member {
    padding: 1.5rem 1rem;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 3rem 2rem;
  }
  
  /* Price plan */
  .price-item {
    padding: 2rem;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  /* Feature items */
  .feature-item {
    padding: 2rem 1rem;
  }
  
  .feature-icon {
    font-size: 3rem;
  }
  
  /* FAQ */
  .faq-question {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 1.5rem;
    font-size: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 3rem 0 2rem;
    text-align: left;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
}

/* ===== LARGE DEVICES (≥992px) ===== */
@media (min-width: 992px) {
  
  /* Hero section */
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-section::before {
    width: 180px;
    height: 180px;
  }
  
  .hero-section::after {
    width: 140px;
    height: 140px;
  }
  
  /* Section spacing */
  .section {
    padding: 5rem 0;
  }
  
  .section-sm {
    padding: 3.5rem 0;
  }
  
  /* Service items - better spacing for larger screens */
  .service-item {
    padding: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 3rem;
  }
  
  /* Price plan */
  .price-item {
    padding: 2.5rem 2rem;
  }
  
  /* Feature items */
  .feature-item {
    padding: 2.5rem 1.5rem;
  }
  
  /* Gallery improvements */
  .gallery-item img {
    height: 280px;
  }
  
}

/* ===== EXTRA LARGE DEVICES (≥1200px) ===== */
@media (min-width: 1200px) {
  
  /* Hero decorative elements full size */
  .hero-section::before {
    width: 200px;
    height: 200px;
  }
  
  .hero-section::after {
    width: 150px;
    height: 150px;
  }
  
  /* Service items */
  .service-item {
    padding: 2.5rem 2rem;
  }
  
  /* Team members */
  .team-member {
    padding: 2rem 1.5rem;
  }
  
  /* Price plan */
  .price-item {
    padding: 3rem 2.5rem;
  }
  
  /* Feature items */
  .feature-item {
    padding: 3rem 2rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 300px;
  }
  
}

/* ===== EXTRA EXTRA LARGE DEVICES (≥1400px) ===== */
@media (min-width: 1400px) {
  
  /* Section spacing for very large screens */
  .section {
    padding: 6rem 0;
  }
  
  .section-sm {
    padding: 4rem 0;
  }
  
  /* Hero decorative elements larger */
  .hero-section::before {
    width: 220px;
    height: 220px;
  }
  
  .hero-section::after {
    width: 170px;
    height: 170px;
  }
  
  /* Service items max spacing */
  .service-item {
    padding: 3rem 2.5rem;
  }
  
  /* Contact form max width */
  .contact-form {
    max-width: 800px;
    margin: 0 auto;
  }
  
  /* Price plan max spacing */
  .price-item {
    padding: 3.5rem 3rem;
  }
  
  /* Team members max spacing */
  .team-member {
    padding: 2.5rem 2rem;
  }
  
  /* Feature items max spacing */
  .feature-item {
    padding: 3.5rem 2.5rem;
  }
  
}

/* ===== LANDSCAPE ORIENTATION ADJUSTMENTS ===== */
@media (orientation: landscape) and (max-height: 600px) {
  
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
}

/* ===== HIGH DPI DISPLAY ADJUSTMENTS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  
  /* Ensure crisp text rendering on high DPI displays */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
}

/* ===== PRINT STYLES ===== */
@media print {
  
  .hero-section::before,
  .hero-section::after,
  .navbar,
  .footer {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
    background: white;
  }
  
  .section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
}

/* ===== REDUCED MOTION RESPONSIVE ADJUSTMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  
  .card:hover,
  .service-item:hover,
  .price-item:hover,
  .gallery-item img:hover,
  .btn:hover,
  .feature-item:hover .feature-icon {
    transform: none;
  }
  
  .navbar.scrolled {
    transition: none;
  }
  
  img.loaded {
    transition: none;
  }
  
}

/* ===== CONTAINER MAX-WIDTH ADJUSTMENTS ===== */
@media (min-width: 1400px) {
  
  .container-xl {
    max-width: 1320px;
  }
  
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-contrast: high) {
  
  .card {
    border: 2px solid var(--dark-gray);
  }
  
  .btn {
    border-width: 2px;
  }
  
}

/* ===== FOCUS IMPROVEMENTS FOR KEYBOARD NAVIGATION ===== */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* ===== RESPONSIVE UTILITIES ===== */

/* Hide elements on specific breakpoints */
@media (max-width: 575.98px) {
  .d-sm-none-mobile {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .d-md-none-mobile {
    display: none;
  }
}

/* Responsive text alignment */
@media (max-width: 767.98px) {
  .text-md-start {
    text-align: center;
  }
}

/* Responsive spacing utilities */
@media (max-width: 575.98px) {
  .p-mobile-1 {
    padding: 0.5rem;
  }
  
  .m-mobile-1 {
    margin: 0.5rem;
  }
}

/* ===== MOBILE TOUCH OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  
  /* Larger touch targets for mobile */
  .btn {
    min-height: 44px;
    padding: 0.875rem 1.75rem;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Better form controls on mobile */
  .form-control {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Improved card spacing on mobile */
  .card {
    margin-bottom: 1rem;
  }
  
  /* Better image performance on mobile */
  img {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
  }
  
}

/* ===== MOBILE PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 576px) {
  
  /* Reduce animation complexity on small screens */
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Simplify gradients on mobile for better performance */
  .card-header {
    background: var(--primary-blue-light);
  }
  
  .hero-section {
    background: var(--primary-blue-light);
  }
  
} 

.hero-content {
    padding-top: 100px;
}