/* Responsive Styles for Post-Retirement Consultancy Template */

/* Large screens and up (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero h1 {
    font-size: 5rem;
  }
  
  .hero-subtitle {
    font-size: 1.6rem;
  }
  
  .service-card {
    padding: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop and large tablets (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  /* Navigation */
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-toggler {
    border: none;
    background: linear-gradient(45deg, var(--primary-sage), var(--primary-lavender));
    border-radius: 8px;
    padding: 0.5rem;
  }
  
  .navbar-toggler-icon {
    filter: brightness(0) invert(1);
  }
  
  /* Hero Section */
  .hero {
    padding-top: 120px;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-shape-1 {
    width: 200px;
    height: 200px;
    top: 5%;
    right: 5%;
  }
  
  .hero-shape-2 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 3%;
  }
  
  /* Sections */
  section {
    padding: 60px 0;
  }
  
  /* Services */
  .service-card {
    padding: 2rem;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
  }
  
  .service-icon i {
    font-size: 2rem;
  }
  
  /* Team */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2.5rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Mobile landscape and small tablets (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  /* Typography adjustments */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.8rem; }
  h4 { font-size: 1.5rem; }
  
  /* Hero Section */
  .hero {
    min-height: 80vh;
    padding-top: 100px;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .hero-shape-1 {
    width: 150px;
    height: 150px;
    top: 3%;
    right: 3%;
  }
  
  .hero-shape-2 {
    width: 100px;
    height: 100px;
    bottom: 5%;
    left: 2%;
  }
  
  /* Sections */
  section {
    padding: 50px 0;
  }
  
  .section-desc {
    margin-bottom: 3rem;
  }
  
  /* Services */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-icon i {
    font-size: 1.8rem;
  }
  
  .service-price {
    font-size: 1.8rem;
  }
  
  /* Features */
  .feature-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-item i {
    font-size: 2.5rem;
  }
  
  /* Price Plans */
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  /* Team */
  .team-member {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Reviews */
  .review-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  
  /* Core Info */
  .coreinfo-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .coreinfo-item i {
    font-size: 2.5rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Accordion */
  .accordion-header {
    padding: 1rem;
  }
  
  .accordion-content.active {
    padding: 1rem;
  }
}

/* Mobile portrait (up to 575px) */
@media (max-width: 575px) {
  .container {
    padding: 0 15px;
  }
  
  /* Typography for mobile */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.3rem; }
  h5 { font-size: 1.2rem; }
  h6 { font-size: 1.1rem; }
  
  p {
    font-size: 1rem;
  }
  
  /* Navigation */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.8rem 1rem !important;
    margin: 0.2rem 0;
  }
  
  /* Hero Section */
  .hero {
    min-height: 70vh;
    padding: 100px 0 50px;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-desc {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
  
  .hero-shape-1 {
    width: 100px;
    height: 100px;
    top: 5%;
    right: 5%;
  }
  
  .hero-shape-2 {
    width: 80px;
    height: 80px;
    bottom: 10%;
    left: 5%;
  }
  
  /* Sections */
  section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .section-desc {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
  }
  
  /* About Features */
  .about-feature {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .about-feature i {
    font-size: 2.5rem;
  }
  
  /* Services */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
  }
  
  .service-icon i {
    font-size: 1.5rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .service-features {
    margin: 1rem 0;
  }
  
  .service-features li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
  }
  
  /* Features */
  .feature-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-item i {
    font-size: 2rem;
  }
  
  /* Price Plans */
  .price-card {
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .price-card.featured {
    transform: none;
    border-width: 2px;
  }
  
  .price-card .price {
    font-size: 2.5rem;
  }
  
  .price-features li {
    padding: 0.8rem 0;
    font-size: 0.9rem;
  }
  
  /* Team */
  .team-member {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
  }
  
  .team-name {
    font-size: 1.2rem;
  }
  
  /* Reviews */
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .review-card::before {
    font-size: 3rem;
    left: 20px;
  }
  
  .review-text {
    font-size: 1rem;
  }
  
  /* Core Info */
  .coreinfo-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .coreinfo-item i {
    font-size: 2rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-control, .form-select {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  
  .btn-primary {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    width: 100%;
  }
  
  /* Blog */
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
  
  .blog-image {
    height: 180px;
  }
  
  /* FAQ */
  .accordion-header {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .accordion-header::after {
    right: 1rem;
  }
  
  .accordion-content.active {
    padding: 1rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .gallery-item {
    height: 180px;
  }
  
  /* Footer */
  footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section h4 {
    margin-bottom: 1rem;
  }
  
  .footer-bottom {
    padding-top: 1.5rem;
  }
  
  /* Contact Info */
  .contact-info {
    padding: 1.5rem;
    margin: 0 1rem 1.5rem;
  }
  
  /* Breadcrumb */
  .breadcrumb {
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }
  
  .breadcrumb-item {
    font-size: 0.9rem;
  }
  
  .breadcrumb-item img {
    width: 16px;
    height: 16px;
  }
}

/* Extra small devices (320px and up) */
@media (max-width: 320px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .service-card, .feature-item, .team-member, .review-card, .coreinfo-item {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .price-card {
    padding: 1.5rem 0.8rem;
  }
}

/* Reduced motion preferences */
@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;
  }
  
  .hero-shape {
    animation: none;
  }
  
  .fade-in-up {
    animation: none;
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  .hero-shape,
  .btn-primary,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --text-dark: #000000;
    --text-medium: #333333;
    --text-light: #666666;
    --primary-sage: #006600;
    --primary-lavender: #6600CC;
    --primary-peach: #CC6600;
    --primary-steel: #003366;
    --accent-gold: #996600;
  }
  
  .service-card,
  .feature-item,
  .team-member,
  .review-card,
  .coreinfo-item,
  .contact-form {
    border: 2px solid var(--text-dark);
  }
}

/* Dark mode (if supported) */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #FFFFFF;
    --text-medium: #CCCCCC;
    --text-light: #999999;
    --white: #1a1a1a;
    --cream-light: #2a2a2a;
    --cream-dark: #3a3a3a;
    --shadow: rgba(255, 255, 255, 0.1);
  }
  
  body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  }
  
  .navbar {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  }
} 