/* Family Future Template - Responsive Styles */

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.75rem;
  }
}

/* Large devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  section {
    padding: 4.5rem 0;
  }
  
  .hero-section {
    min-height: 550px;
  }
}

/* Medium devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    height: auto;
    min-height: 500px;
    padding-top: 100px;
    padding-bottom: 50px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-image-container {
    margin-top: 2rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .service-img {
    height: 180px;
  }
  
  .team-img {
    height: 250px;
  }
  
  .price-amount {
    font-size: 2.2rem;
  }
  
  .shape-1, .shape-2, .shape-3 {
    opacity: 0.1;
    transform: scale(0.8);
  }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-section {
    height: auto;
    min-height: 450px;
    padding-top: 100px;
    padding-bottom: 50px;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-image-container {
    max-width: 400px;
    margin: 0 auto;
  }
  
  section {
    padding: 3.5rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  
  .about-features {
    margin-top: 2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .service-img {
    height: 160px;
  }
  
  .service-content {
    padding: 1.2rem;
  }
  
  .team-img {
    height: 220px;
  }
  
  .price-header {
    padding: 1.5rem;
  }
  
  .price-content {
    padding: 1.5rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .core-info-item {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  footer {
    padding: 3.5rem 0 2rem;
  }
  
  .shape-1, .shape-2, .shape-3 {
    display: none;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  .hero-section {
    height: auto;
    min-height: 400px;
    padding-top: 100px;
    padding-bottom: 50px;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-desc {
    max-width: 100%;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-image-container {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .hero-buttons .btn {
    margin-bottom: 1rem;
    display: block;
    width: 100%;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .about-features {
    margin-top: 1.5rem;
  }
  
  .feature-card {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .service-img {
    height: 140px;
  }
  
  .service-content {
    padding: 1rem;
  }
  
  .service-price {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
  }
  
  .team-img {
    height: 200px;
  }
  
  .team-content {
    padding: 1.2rem;
  }
  
  .price-grid {
    gap: 1.5rem;
  }
  
  .price-header {
    padding: 1.2rem;
  }
  
  .price-content {
    padding: 1.2rem;
  }
  
  .price-amount {
    font-size: 1.8rem;
  }
  
  .review-card {
    padding: 1.2rem;
  }
  
  .review-card::before {
    font-size: 1.5rem;
  }
  
  .core-info-grid {
    gap: 1.5rem;
  }
  
  .core-info-item {
    padding: 1.2rem;
  }
  
  .contact-grid {
    gap: 2rem;
  }
  
  .contact-form {
    padding: 1.2rem;
  }
  
  footer {
    padding: 3rem 0 1.5rem;
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links li, .footer-contact li {
    justify-content: center;
  }
  
  .shape-1, .shape-2, .shape-3 {
    display: none;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* Fix for sticky header on mobile */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--neutral-light);
    padding: 1rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    border-radius: 0 0 10px 10px;
  }
  
  .navbar-nav {
    padding: 0.5rem 0;
  }
  
  .nav-link {
    padding: 0.8rem 0 !important;
  }
  
  .nav-link::after {
    bottom: 5px;
  }
  
  #space {
    height: 60vh;
    min-height: 400px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-image-container:hover img {
    transform: none !important;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .core-info-item:hover {
    transform: none !important;
  }
  
  .nav-link::after {
    transition: none !important;
  }
}

/* Print styles */
@media print {
  header, footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.3;
    background: #fff !important;
    color: #000 !important;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  h1 {
    font-size: 24pt;
  }
  
  h2 {
    font-size: 18pt;
  }
  
  h3 {
    font-size: 14pt;
  }
  
  p, li {
    font-size: 12pt;
  }
  
  img {
    max-width: 100% !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
} 