/* Social Media Content Repurposing Agency - Responsive Styles */

/* ===== MOBILE FIRST APPROACH ===== */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 0.97rem;
  }
  
  h1, .h1 {
    font-size: 1.86rem;
  }
  
  h2, .h2 {
    font-size: 1.52rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .service-card,
  .testimonial-card,
  .team-card {
    margin-bottom: 1.59rem;
  }
  
  .navbar-brand {
    font-size: 1.17rem;
  }
  
  .btn {
    font-size: 1.02rem;
    padding: 0.6rem 1.2rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .team-avatar {
    width: 100px;
    height: 100px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.56rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.32rem;
  }
  
  .container-sm {
    max-width: 540px;
  }
  
  .service-card,
  .testimonial-card {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.84rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar {
    padding: 1.2rem 0;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .service-card:hover,
  .team-card:hover {
    transform: translateY(-8px);
  }
  
  .gallery-item img {
    height: 280px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .footer {
    padding: 4rem 0 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3.25rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    margin-bottom: 4rem;
  }
  
  .section-subtitle {
    margin-bottom: 4rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1.5rem;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .testimonial-card {
    padding: 2.5rem;
  }
  
  .team-card {
    padding: 2.5rem;
  }
  
  .gallery-item img {
    height: 320px;
  }
  
  .contact-form {
    padding: 3rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.60rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .container-xl {
    max-width: 1140px;
  }
  
  .service-card {
    padding: 3rem;
  }
  
  .gallery-item img {
    height: 350px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .container-xxl {
    max-width: 1320px;
  }
}

/* ===== SPECIFIC RESPONSIVE ADJUSTMENTS ===== */

/* Navigation responsive behavior */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    text-align: center;
  }
}

/* Hero section responsive layout */
@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
    padding: 1rem 0;
  }
  
  .hero-section .row {
    flex-direction: column-reverse;
  }
  
  .hero-content {
    margin-top: 2rem;
    padding-top: 200px;
}
}

/* Services grid responsive behavior */
@media (max-width: 767.98px) {
  .services-grid .col-md-4 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid .col-md-4:nth-child(even) {
    margin-bottom: 2rem;
  }
}

/* Testimonials responsive layout */
@media (max-width: 767.98px) {
  .testimonials-grid .col-md-6 {
    margin-bottom: 2rem;
  }
}

/* Team section responsive behavior */
@media (max-width: 575.98px) {
  .team-grid .col-sm-6 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .team-grid .col-lg-2:nth-child(3) {
    margin-top: 2rem;
  }
}

/* Gallery responsive behavior */
@media (max-width: 767.98px) {
  .gallery-grid .col-md-4 {
    margin-bottom: 1rem;
  }
}

/* FAQ responsive layout */
@media (max-width: 767.98px) {
  .faq-grid .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .faq-card {
    padding: 1.2rem;
  }
}

/* Contact form responsive behavior */
@media (max-width: 767.98px) {
  .contact-section .row {
    text-align: center;
  }
}

/* Footer responsive layout */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Button responsive behavior */
@media (max-width: 575.98px) {
  .btn {
    width: 100%;
    margin-bottom: 0.60rem;
  }
  
  .btn + .btn {
    margin-left: 0;
  }
}

/* Typography responsive adjustments */
@media (max-width: 575.98px) {
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-subtitle {
    margin-bottom: 2rem;
    font-size: 0.98rem;
  }
}

/* Image responsive behavior */
@media (max-width: 767.98px) {
  .img-fluid {
    max-width: 100%;
    height: auto;
  }
}

/* Utilities for responsive spacing */
@media (max-width: 575.98px) {
  .mb-xs-3 {
    margin-bottom: 1rem !important;
  }
  
  .mt-xs-3 {
    margin-top: 1rem !important;
  }
  
  .p-xs-2 {
    padding: 0.5rem !important;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .mb-sm-4 {
    margin-bottom: 1.65rem !important;
  }
  
  .mt-sm-4 {
    margin-top: 1.75rem !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .btn {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .service-card,
  .testimonial-card,
  .team-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid var(--color-gray-300);
    break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid var(--color-gray-900);
  }
  
  .service-card,
  .testimonial-card,
  .team-card,
  .faq-card {
    border: 2px solid var(--color-gray-400);
  }
}

/* Reduced motion support - already handled in main.css but additional responsive considerations */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .team-card:hover,
  .btn:hover {
    transform: none;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  .section {
    padding: 1.5rem 0;
  }
} 