/* ============================================
   Three and One - Responsive Styles
   ============================================ */

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  :root {
    --spacing-3xl: 4rem;
  }

  .services-grid,
  .properties-grid,
  .management-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Landscape */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .about-image {
    order: -1;
  }

  .about-image::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-slider {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    max-width: 100%;
    width: 100%;
  }

  .process-timeline {
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
  }

  .process-timeline::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 4px;
    height: auto;
  }

  .process-step {
    max-width: 300px;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  section {
    padding: var(--spacing-2xl) 0;
  }

  /* Navigation */
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
  }

  .nav-list.active {
    right: 0;
  }

  .nav-link {
    color: var(--color-white);
    font-size: 1.25rem;
  }

  .header.scrolled .nav-link {
    color: var(--color-white);
  }

  .nav-cta {
    margin-top: var(--spacing-md);
  }

  .mobile-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--spacing-2xl)) var(--spacing-md) var(--spacing-2xl);
  }

  .hero-content {
    padding: var(--spacing-md);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Grids */
  .services-grid,
  .properties-grid,
  .management-grid,
  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  /* Cards */
  .property-card,
  .service-card,
  .team-card,
  .testimonial-card {
    max-width: 450px;
    margin: 0 auto;
  }

  /* Filters */
  .filters-form {
    flex-direction: column;
  }

  .filter-group {
    min-width: auto;
    width: 100%;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    margin-bottom: var(--spacing-md);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Form Row */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* About Features */
  .about-features {
    grid-template-columns: 1fr;
  }

  /* Process Timeline */
  .process-timeline::before {
    display: none;
  }
}

/* Mobile Landscape */
@media (max-width: 576px) {
  :root {
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .section-header {
    margin-bottom: var(--spacing-lg);
  }

  /* Buttons */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Cards Padding */
  .service-card,
  .management-card,
  .testimonial-card {
    padding: var(--spacing-lg);
  }

  /* Stats */
  .stat-item h3 {
    font-size: 2.5rem;
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  /* Contact Info */
  .info-item {
    flex-direction: column;
    text-align: center;
  }

  .info-icon {
    margin: 0 auto;
  }

  /* Social Links */
  .social-links {
    justify-content: center;
  }

  /* Property Image */
  .property-image {
    height: 200px;
  }

  /* About Image */
  .about-image img {
    height: 300px;
  }

  .about-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--spacing-md);
  }
}

/* Mobile Portrait */
@media (max-width: 400px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .property-features {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .footer-socials {
    gap: var(--spacing-xs);
  }

  .footer-socials a {
    width: 35px;
    height: 35px;
  }
}

/* High Resolution Screens - Disable animations for preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .back-to-top,
  .btn-scroll {
    animation: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  /* Not implementing full dark mode as per design requirements */
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .back-to-top,
  .btn-scroll,
  .filters-container,
  .newsletter-section {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  section {
    page-break-inside: avoid;
    padding: 20pt 0;
  }
}
