/* ==============================================
   Responsive CSS - First-Time Buyer Legal Orientation
   ============================================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .shape-blob-1 {
    width: 300px;
    height: 300px;
  }
  
  .shape-blob-2 {
    width: 250px;
    height: 250px;
  }
}

/* Tablets */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  /* Navigation */
  .navbar-collapse {
    background: rgba(26, 37, 47, 0.98);
    margin-top: 1rem;
    border-radius: 8px;
    padding: 1rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-section h1 {
    font-size: 1.5rem;
  }
  
  .hero-section p {
    font-size: 0.95rem;
  }
  
  /* Services */
  .services-section .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Team */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile Devices */
@media (max-width: 767px) {
  /* Global */
  html {
    font-size: 15px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.35rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  p {
    font-size: 0.95rem;
  }
  
  /* Spacing */
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  #sitename {
    font-size: 1.1rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section .row {
    flex-direction: column;
  }
  
  .hero-section h1 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-section p {
    font-size: 0.9rem;
  }
  
  /* Decorative Shapes */
  .shape-blob {
    display: none;
  }
  
  /* Services */
  .service-card {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .service-icon {
    font-size: 2.5rem;
  }
  
  .service-price {
    font-size: 1.75rem;
  }
  
  /* Swiper - Disable autoplay and effects on mobile */
  .swiper-container {
    overflow: visible;
  }
  
  .swiper-slide {
    transform: none !important;
    transition: none !important;
  }
  
  .swiper-wrapper {
    transition-timing-function: ease-out !important;
  }
  
  /* Disable 3D effects on mobile */
  .swiper-3d .swiper-slide-shadow,
  .swiper-3d .swiper-slide-shadow-left,
  .swiper-3d .swiper-slide-shadow-right,
  .swiper-3d .swiper-slide-shadow-top,
  .swiper-3d .swiper-slide-shadow-bottom {
    display: none !important;
  }
  
  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-card::before {
    font-size: 2rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
  }
  
  .gallery-item {
    height: 180px;
  }
  
  /* FAQ */
  .accordion-button {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  
  /* Team */
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }
  
  /* Footer */
  footer {
    text-align: center;
  }
  
  footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Tables - Make responsive */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Small Mobile Devices */
@media (max-width: 575px) {
  /* Container */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Hero */
  .hero-section h1 {
    font-size: 1.25rem;
  }
  
  /* Services */
  .service-card {
    text-align: center;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Contact Info */
  .contact-info p {
    font-size: 0.9rem;
  }
}

/* Extra Small Devices */
@media (max-width: 380px) {
  /* Global */
  html {
    font-size: 14px;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Hero */
  .hero-section {
    min-height: 60vh;
  }
  
  /* Buttons */
  .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Print Styles */
@media print {
  /* Hide non-essential elements */
  .navbar,
  .hero-section,
  .gallery-section,
  .testimonials-section,
  footer {
    display: none !important;
  }
  
  /* Adjust typography */
  body {
    overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.5;
  }
  
  /* Remove backgrounds and shadows */
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  /* Links */
  a,
  a:visited {
    text-decoration: underline;
  }
  
  /* Page breaks */
  h2, h3 {
    page-break-after: avoid;
  }
  
  p {
    orphans: 3;
    widows: 3;
  }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color-1: #000;
    --primary-color-2: #000;
    --primary-color-3: #000;
    --primary-color-4: #000;
    --primary-color-5: #000;
  }
  
  body {
    overflow-x: hidden;
    background: #fff !important;
    color: #000 !important;
  }
  
  .btn-primary {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    overflow-x: hidden;
    background-color: #1a1a1a;
    color: #e0e0e0;
  }
  
  .navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  }
  
  .service-card,
  .testimonial-card,
  .contact-form {
    background: #2a2a2a;
    color: #e0e0e0;
  }
  
  .form-control,
  .form-select {
    background: #333;
    color: #e0e0e0;
    border-color: #444;
  }
  
  .accordion-button {
    background: #2a2a2a;
    color: #e0e0e0;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-section h1 {
    font-size: 1.25rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
} 