/* ================================================
   FREELANCER FINANCIAL PLANNING - RESPONSIVE STYLES
   ================================================ */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem !important;
  }
  
  .section-title {
    font-size: 1.90rem !important;
  }
  
  .navbar-brand {
    font-size: 1.29rem !important;
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .service-card,
  .team-card,
  .feature-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .additional-section {
    padding: 2rem 0;
  }
  
  .price-amount {
    font-size: 2rem !important;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery img {
    height: 200px;
  }
  
  .shape {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.35rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: 80vh;
  }
  
  .service-card,
  .team-card {
    padding: 2rem;
  }
  
  .shape-1,
  .shape-3 {
    display: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.79rem;
  }
  
  .section-title {
    font-size: 2.27rem;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.25rem;
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: 90vh;
  }
  
  .service-card {
    padding: 2.25rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.51rem;
  }
  
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: 100vh;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.5rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.62rem;
  }
  
  .section-title {
    font-size: 2.82rem;
  }
  
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 1200px;
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: 100vh;
  }
  
  .service-card {
    padding: 3rem;
  }
  
  .contact-form {
    padding: 3.5rem;
  }
}

/* Ultra-wide devices (1400px and up) */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .gallery {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .container {
    max-width: 1320px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: 90vh;
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* High DPI Displays */
@media (min-resolution: 192dpi) {
  .hero-section::before {
    background-size: 100% 100%;
  }
  
  .gallery img,
  .team-photo,
  .service-card img {
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .shape {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .service-card,
  .team-card,
  .feature-card {
    box-shadow: none;
    border: 1px solid #e6e5e5;
    margin-bottom: 1rem;
    break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
  }
  
  .text-gradient {
    color: black !important;
    -webkit-text-fill-color: black !important;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Note: Keeping light theme as specified for accessibility */
  /* This section is intentionally empty as per requirements */
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
  .hero-section::before {
    display: none;
  }
  
  .shape {
    display: none;
  }
  
  .gallery img,
  .team-photo,
  .service-card img {
    loading: lazy;
  }
}

/* Focus and Keyboard Navigation */
@media (any-hover: none) {
  .service-card:hover,
  .team-card:hover,
  .feature-card:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Touch-specific styles */
@media (pointer: coarse) {
  .navbar-nav .nav-link {
    padding: 0.75rem 1.25rem !important;
  }
  
  .faq-question {
    padding: 2rem 1.5rem;
  }
  
  .btn-primary {
    padding: 1.25rem 2.5rem;
  }
  
  .form-control {
    padding: 1.25rem;
  }
}

/* Container Responsive Adjustments */
@media (max-width: 1199.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767.98px) {
  .container,
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Specific Component Responsive Behavior */

/* FAQ Cards */
@media (max-width: 767.98px) {
  .faq-question {
    font-size: 1.01rem;
    padding: 1rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.97rem;
  }
}

/* Team Cards Grid */
@media (max-width: 575.98px) {
  .team-card {
    margin-bottom: 1.71rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .team-card {
    margin-bottom: 2rem;
  }
}

/* Service Cards Grid */
@media (max-width: 767.98px) {
  .service-card {
    margin-bottom: 1.65rem;
  }
  
  .service-card img {
    width: 60px;
    height: 60px;
  }
}

/* Price Cards */
@media (max-width: 991.98px) {
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
}

/* Contact Form */
@media (max-width: 575.98px) {
  .contact-form .row {
    margin: 0;
  }
  
  .contact-form .col-md-6 {
    padding: 0;
    margin-bottom: 1rem;
  }
}

/* Navigation Collapse */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    color: var(--gray-dark) !important;
    text-align: center;
    margin: 0.25rem 0;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: var(--light-mint);
    color: var(--dark-mint) !important;
  }
}

/* Hero Image Positioning */
@media (max-width: 991.98px) {
  .hero-section .row {
    text-align: center;
  }
  
  .hero-section .col-lg-6:last-child {
    margin-top: 2rem;
  }
}

/* Blog Grid Responsive */
@media (max-width: 767.98px) {
  .blog-card {
    margin-bottom: 1.70rem;
  }
  
  .blog-card img {
    height: 150px;
  }
}

/* Additional Pages Responsive */
@media (max-width: 767.98px) {
  .additional-section {
    padding: 2rem 0;
  }
  
  .additional-element {
    padding: 1rem;
  }
}

/* Timeline Responsive */
@media (max-width: 575.98px) {
  .timeline-item::before {
    display: none;
  }
  
  .timeline-item {
    border-left-width: 2px;
  }
}

/* Process Steps Responsive */
@media (max-width: 767.98px) {
  .process-step::before {
    width: 30px;
    height: 30px;
    font-size: 0.94rem;
    top: -10px;
    left: 15px;
  }
}

/* Core Info Cards */
@media (max-width: 575.98px) {
  .core-info-card i {
    font-size: 2rem;
  }
}

/* Case Study Cards */
@media (max-width: 767.98px) {
  .case-study-card {
    padding: 1.5rem;
  }
}

/* Career Cards */
@media (max-width: 575.98px) {
  .career-card {
    padding: 1.5rem;
  }
} 