/*
 * Fiction Co-Writing Platform - Responsive CSS
 * Mobile-first responsive design
 */

/* ========================================
   MOBILE FIRST BREAKPOINTS
   ======================================== */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.90rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.60rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .service-item {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
  
  .feature-icon {
    font-size: 2.63rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.23rem;
  }
  
  .section-title {
    font-size: 1.91rem;
  }
  
  .service-item {
    margin-bottom: 2rem;
  }
  
  .team-member {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.33rem;
  }
  
  .container {
    max-width: 960px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 2.53rem;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* ========================================
   SPECIFIC COMPONENT RESPONSIVENESS
   ======================================== */

/* Navigation responsiveness */
@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
}

/* Hero section responsiveness */
@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
    min-height: 80vh;
  }
  
  .hero-content {
    order: 2;
    padding-top: 100px;
}
  
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .hero-desc {
    margin-bottom: 1.75rem;
  }
}

/* Services grid responsiveness */
@media (max-width: 767.98px) {
  .service-item {
    margin-bottom: 1.74rem;
  }
  
  .service-image {
    height: 150px;
  }
}

/* Team section responsiveness */
@media (max-width: 767.98px) {
  .team-member {
    margin-bottom: 1.65rem;
  }
}

/* Contact form responsiveness */
@media (max-width: 575.98px) {
  .contact-form .row {
    margin: 0;
  }
  
  .contact-form .col-md-6 {
    padding: 0 0 1rem 0;
  }
  
  .form-control {
    padding: 0.5rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.75rem;
  }
  
  .contact-info {
    margin-top: 1rem;
    padding: 1.5rem;
  }
}

/* Contact section layout fix for mobile */
@media (max-width: 991.98px) {
  .contact-section .col-lg-8,
  .contact-section .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .contact-info {
    margin-top: 2rem;
  }
}

/* Footer responsiveness */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Gallery responsiveness */
@media (max-width: 575.98px) {
  .gallery-item {
    margin-bottom: 1rem;
  }
}

/* FAQ responsiveness */
@media (max-width: 575.98px) {
  .faq-item {
    margin-bottom: 1rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
}

/* Blog section responsiveness */
@media (max-width: 767.98px) {
  .blog-item {
    margin-bottom: 2rem;
  }
  
  .blog-item img {
    height: 200px;
  }
}

/* ========================================
   UTILITY RESPONSIVE CLASSES
   ======================================== */

/* Text alignment utilities */
@media (max-width: 767.98px) {
  .text-md-left {
    text-align: left;
  }
  
  .text-md-center {
    text-align: center;
  }
  
  .text-md-right {
    text-align: right;
  }
}

/* Spacing utilities for mobile */
@media (max-width: 575.98px) {
  .mb-xs-3 {
    margin-bottom: 1rem;
  }
  
  .mt-xs-3 {
    margin-top: 1rem;
  }
  
  .px-xs-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .py-xs-2 {
    padding-top: 0.71rem;
    padding-bottom: 0.60rem;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  * {
    color: #000;
    background: #fff;
  }
  
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .hero-section {
    background: #fff;
    color: #000;
  }
  
  .section {
    padding: 1rem 0;
  }
} 