/* ===== RESPONSIVE DESIGN - MOBILE FIRST ===== */

/* ===== EXTRA SMALL DEVICES (PHONES) - BASE STYLES ===== */
/* Base styles already defined in main.css for mobile-first approach */

/* ===== SMALL DEVICES (LANDSCAPE PHONES) - 576px and up ===== */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.61rem;
  }
  
  .hero-subtitle {
    font-size: 1.27rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* ===== MEDIUM DEVICES (TABLETS) - 768px and up ===== */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.56rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
  
  .services-card {
    margin-bottom: 0;
  }
  
  .team-image {
    width: 180px;
    height: 180px;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 3rem;
  }
}

/* ===== LARGE DEVICES (DESKTOPS) - 992px and up ===== */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3.59rem;
  }
  
  .hero-subtitle {
    font-size: 1.60rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .navbar {
    padding: 1rem 0;
  }
  
  .hero-content {
    padding-right: 2rem;
    padding-top: 150px;
}
  
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer {
    padding: 4rem 0 2rem;
  }
}

/* ===== EXTRA LARGE DEVICES (LARGE DESKTOPS) - 1200px and up ===== */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .section {
    padding: 7rem 0;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .team-image {
    width: 200px;
    height: 200px;
  }
}

/* ===== XXL DEVICES (LARGER DESKTOPS) - 1400px and up ===== */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4.52rem;
  }
  
  .container {
    max-width: 1320px;
  }
}

/* ===== MOBILE SPECIFIC STYLES ===== */
@media (max-width: 767.98px) {
  .navbar-brand {
    font-size: 1.39rem;
  }
  
  .navbar-toggler {
    border: 1px solid var(--ocean-blue-light);
  }
  
  .hero {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.66rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.77rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
    margin: 1rem;
  }
  
  .team-image {
    width: 120px;
    height: 120px;
  }
  
  .services-image {
    height: 150px;
  }
  
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1.75rem;
  }
}

/* ===== TABLET PORTRAIT SPECIFIC ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 150px;
}
  
  .services-card {
    margin-bottom: 2rem;
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .gallery-item img,
  .team-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .hero {
    min-height: auto;
    background: white;
    color: black;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #c7c7c7;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
  
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
}

/* ===== DARK MODE SUPPORT ===== */

/* ===== REDUCED DATA MODE ===== */
@media (prefers-reduced-data: reduce) {
  .hero::before {
    background-image: none;
  }
  
  .services-image,
  .team-image,
  .gallery-item img {
    background-image: none;
    background-color: var(--sand-beige-dark);
  }
}

/* ===== UTILITIES FOR RESPONSIVE BEHAVIOR ===== */
.d-mobile-none {
  display: none;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: block;
  }
  
  .d-desktop-none {
    display: none;
  }
}

/* ===== RESPONSIVE TEXT SIZES ===== */
@media (max-width: 575.98px) {
  h1 { font-size: 1.82rem; }
  h2 { font-size: 1.65rem; }
  h3 { font-size: 1.30rem; }
  h4 { font-size: 1.24rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.89rem; }
}

/* ===== RESPONSIVE SPACING ===== */
@media (max-width: 767.98px) {
  .mb-mobile-2 {
    margin-bottom: 1rem;
  }
  
  .mt-mobile-2 {
    margin-top: 1rem;
  }
  
  .px-mobile-3 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ===== CONTAINER FLUID BREAKPOINTS ===== */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ===== RESPONSIVE IMAGES ===== */
img {
  max-width: 100%;
  height: auto;
}

.img-responsive {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== RESPONSIVE EMBED ===== */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== IMAGE LOADING STATES ===== */
.services-image,
.team-image {
  position: relative;
  background-color: var(--sand-beige-dark);
  transition: background-color 0.3s ease;
}

/* ===== LOADING ANIMATION ===== */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.services-image::before,
.team-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
  .services-image::before,
  .team-image::before {
    animation: none;
  }
} 