/* 
 * Retiree Rights Legal Café - Responsive Stylesheet
 * Created: April 2025
 */

/* Extra large devices (large desktops) */
@media (max-width: 1399.98px) {
  .hero-title {
    font-size: 3.2rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* Large devices (desktops) */
@media (max-width: 1199.98px) {
  html {
    font-size: 15px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-image::before {
    top: -10px;
    left: -10px;
  }
}

/* Medium devices (tablets) */
@media (max-width: 991.98px) {
  html {
    font-size: 14px;
  }

  section {
    padding: 4rem 0;
  }

  .hero {
    height: 70vh;
    min-height: 500px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    margin-top: 2rem;
    width: 100%;
  }

  .navbar-nav {
    gap: 1rem;
  }

  .nav-item {
    margin-left: 1rem;
  }

  .priceplan-card.featured {
    transform: scale(1);
  }
}

/* Small devices (landscape phones) */
@media (max-width: 767.98px) {
  html {
    font-size: 14px;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    height: 60vh;
    min-height: 450px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--neutral-100);
    padding: 2rem;
    z-index: 1050;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .navbar-collapse.show {
    right: 0;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    margin-left: 0;
    margin-bottom: 1rem;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--neutral-300);
  }

  .nav-link::after {
    display: none;
  }

  .navbar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--primary-2);
    cursor: pointer;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .service-card, .feature-card, .priceplan-card, .team-member, .blog-card, .coreinfo-item {
    margin-bottom: 2rem;
  }

  .contact-content {
    gap: 2rem;
  }

  .contact-info-wrapper {
    margin-top: 2rem;
  }

  .footer-content {
    gap: 2rem;
  }
}

/* Extra small devices (portrait phones) */
@media (max-width: 575.98px) {
  html {
    font-size: 13px;
  }

  section {
    padding: 2.5rem 0;
  }

  .hero {
    height: 50vh;
    min-height: 400px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .about-features, .services-grid, .features-grid, .priceplan-grid, .team-grid, .blog-grid, .coreinfo-grid {
    grid-template-columns: 1fr;
  }

  .about-feature, .service-card, .feature-card, .priceplan-card, .team-member, .blog-card, .coreinfo-item {
    margin-bottom: 1.5rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .about-image::before {
    display: none;
  }

  .review-text {
    padding: 0;
  }

  .review-text::before, .review-text::after {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  
  .hero-slide-overlay, .hero-content, .service-card:hover, .service-card:hover .service-image img,
  .feature-card:hover, .priceplan-card:hover, .team-member:hover, .team-member:hover .team-image img,
  .blog-card:hover, .blog-card:hover .blog-image img, .coreinfo-item:hover {
    transform: none !important;
  }
} 