/* ===============================================
   RESPONSIVE STYLESHEET - MOBILE FIRST
   =============================================== */

/* ===============================================
   MOBILE FIRST BASE STYLES (min-width: 320px)
   =============================================== */
@media (min-width: 320px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.11rem;
  }
  
  .hero-desc {
    font-size: 1.01rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title h2 {
    font-size: 1.52rem;
  }
  
  .section-title p {
    font-size: 0.98rem;
  }
}

/* ===============================================
   SMALL MOBILE (min-width: 375px)
   =============================================== */
@media (min-width: 375px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title h2 {
    font-size: 1.83rem;
  }
}

/* ===============================================
   LARGE MOBILE (min-width: 414px)
   =============================================== */
@media (min-width: 414px) {
  .hero-title {
    font-size: 2.58rem;
  }
  
  .hero-subtitle {
    font-size: 1.38rem;
  }
  
  .section-title h2 {
    font-size: 1.82rem;
  }
  
  .navbar-brand {
    font-size: 1.38rem;
  }
}

/* ===============================================
   TABLET PORTRAIT (min-width: 576px)
   =============================================== */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.91rem;
  }
  
  .hero-subtitle {
    font-size: 1.44rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  .about-feature {
    margin-bottom: 2rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-member {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.8rem;
  }
}

/* ===============================================
   TABLET LANDSCAPE (min-width: 768px)
   =============================================== */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.21rem;
  }
  
  .hero-subtitle {
    font-size: 1.61rem;
  }
  
  .hero-desc {
    font-size: 1.15rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-title h2 {
    font-size: 2.34rem;
  }
  
  .section-title p {
    font-size: 1.11rem;
  }
  
  .navbar-brand {
    font-size: 1.52rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  .about-feature {
    margin-bottom: 0;
  }
  
  .service-card {
    margin-bottom: 0;
  }
  
  .team-member {
    margin-bottom: 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .timeline-line {
    left: 50%;
  }
  
  .timeline-item {
    flex-direction: row;
    align-items: center;
  }
  
  .timeline-item:nth-child(even) {
    flex-direction: row-reverse;
  }
  
  .timeline-date {
    width: 80px;
    height: 80px;
  }
  
  .timeline-content {
    margin: 0 2rem;
  }
  
  .timeline-content::before {
    display: block;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
    left: auto;
    border-left-color: var(--white);
    border-right-color: transparent;
  }
  
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    right: auto;
    border-right-color: var(--white);
    border-left-color: transparent;
  }
  
  .process-step::before {
    display: block;
  }
  
  .hero-blob-1,
  .hero-blob-2 {
    display: block;
  }
}

/* ===============================================
   DESKTOP SMALL (min-width: 992px)
   =============================================== */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3.64rem;
  }
  
  .hero-subtitle {
    font-size: 1.65rem;
  }
  
  .section-title h2 {
    font-size: 2.42rem;
  }
  
  .section-title p {
    font-size: 1.28rem;
  }
  
  .navbar-brand {
    font-size: 1.61rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .footer {
    padding: 5rem 0 2rem;
  }
  
  .gallery-item img {
    height: 300px;
  }
  
  .pricing-card {
    padding: 3rem 2rem;
  }
  
  .pricing-card.featured {
    transform: scale(1.05);
  }
  
  .pricing-card.featured:hover {
    transform: scale(1.1);
  }
}

/* ===============================================
   DESKTOP LARGE (min-width: 1200px)
   =============================================== */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.87rem;
  }
  
  .section-title h2 {
    font-size: 2.62rem;
  }
  
  .section-title p {
    font-size: 1.36rem;
  }
  
  .navbar-brand {
    font-size: 1.63rem;
  }
  
  .hero-blob-1,
  .hero-blob-2 {
    width: 400px;
    height: 400px;
  }
  
  .gallery-item img {
    height: 350px;
  }
  
  .service-card img {
    height: 250px;
  }
  
  .casestudy-card img {
    height: 300px;
  }
  
  .blog-card img {
    height: 250px;
  }
}

/* ===============================================
   DESKTOP EXTRA LARGE (min-width: 1400px)
   =============================================== */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4.53rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
  
  .section-title p {
    font-size: 1.44rem;
  }
  
  .container {
    max-width: 1320px;
  }
  
  .hero-blob-1,
  .hero-blob-2 {
    width: 500px;
    height: 500px;
  }
}

/* ===============================================
   RESPONSIVE GRID ADJUSTMENTS
   =============================================== */

/* Mobile Stack All Columns */
@media (max-width: 575px) {
  .row > * {
    margin-bottom: 2rem;
  }
  
  .row > *:last-child {
    margin-bottom: 0;
  }
  
  .about-features .col-sm-6 {
    margin-bottom: 2rem;
  }
  
  .services-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .features .col-md-6 {
    margin-bottom: 2rem;
  }
  
  .pricing-cards .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .team-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .reviews .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .casestudy-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .process-steps .col-lg-2 {
    margin-bottom: 2rem;
  }
  
  .career-grid .col-lg-6 {
    margin-bottom: 2rem;
  }
  
  .coreinfo-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .blog-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .gallery-layout .col-lg-4 {
    margin-bottom: 2rem;
  }
}

/* Tablet Responsive Adjustments */
@media (min-width: 576px) and (max-width: 767px) {
  .services-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .pricing-cards .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .team-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .reviews .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .casestudy-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .coreinfo-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .blog-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .gallery-layout .col-lg-4 {
    margin-bottom: 2rem;
  }
}

/* ===============================================
   NAVIGATION RESPONSIVE
   =============================================== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--light-cream);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* ===============================================
   FORM RESPONSIVE
   =============================================== */
@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-form .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
}

/* ===============================================
   HERO RESPONSIVE
   =============================================== */
@media (max-width: 768px) {
  .hero {
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 3rem;
    padding-top: 225px;
}
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .hero-blob-1,
  .hero-blob-2 {
    display: none;
  }
}

/* ===============================================
   CARDS RESPONSIVE
   =============================================== */
@media (max-width: 576px) {
  .service-card,
  .pricing-card,
  .team-member,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card,
  .blog-card {
    margin-bottom: 2rem;
  }
  
  .service-card:last-child,
  .pricing-card:last-child,
  .team-member:last-child,
  .review-card:last-child,
  .casestudy-card:last-child,
  .career-card:last-child,
  .coreinfo-card:last-child,
  .blog-card:last-child {
    margin-bottom: 0;
  }
}

/* ===============================================
   FOOTER RESPONSIVE
   =============================================== */
@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 2rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .footer-section:last-child {
    margin-bottom: 0;
  }
}

/* ===============================================
   GALLERY RESPONSIVE
   =============================================== */
@media (max-width: 768px) {
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .gallery-item img {
    height: 250px;
  }
}

/* ===============================================
   TIMELINE RESPONSIVE
   =============================================== */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
  }
  
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .timeline-date {
    width: 60px;
    height: 60px;
    font-size: 0.88rem;
    margin-left: 0;
  }
  
  .timeline-content {
    margin-left: 90px;
    margin-right: 0;
    width: calc(100% - 90px);
  }
  
  .timeline-content::before {
    left: -20px;
    right: auto;
    border-right-color: var(--white);
    border-left-color: transparent;
  }
  
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    right: auto;
    border-right-color: var(--white);
    border-left-color: transparent;
  }
}

/* ===============================================
   PROCESS STEPS RESPONSIVE
   =============================================== */
@media (max-width: 768px) {
  .process-step {
    margin-bottom: 3rem;
  }
  
  .process-step:last-child {
    margin-bottom: 0;
  }
  
  .process-step::before {
    display: none;
  }
}

/* ===============================================
   FAQ RESPONSIVE
   =============================================== */
@media (max-width: 576px) {
  .faq-question {
    padding: 1rem 1.5rem;
    font-size: 1.04rem;
  }
  
  .faq-question::after {
    right: 1.5rem;
  }
  
  .faq-answer {
    padding: 0 1.5rem 1rem;
  }
}

/* ===============================================
   UTILITIES RESPONSIVE
   =============================================== */
@media (max-width: 768px) {
  .text-center-mobile {
    text-align: center;
  }
  
  .mb-4-mobile {
    margin-bottom: 2rem;
  }
  
  .px-3-mobile {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 576px) {
  .text-center-xs {
    text-align: center;
  }
  
  .mb-3-xs {
    margin-bottom: 1rem;
  }
  
  .px-2-xs {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ===============================================
   PREFERS-REDUCED-MOTION RESPONSIVE
   =============================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-blob-1,
  .hero-blob-2 {
    animation: none;
  }
  
  .service-card:hover,
  .pricing-card:hover,
  .team-member:hover,
  .review-card:hover,
  .casestudy-card:hover,
  .career-card:hover,
  .coreinfo-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .about-feature:hover,
  .feature-item:hover,
  .faq-question:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-outline:hover {
    transform: none;
  }
}

/* ===============================================
   HIGH CONTRAST MODE
   =============================================== */
@media (prefers-contrast: high) {
  :root {
    --primary-sage: #263e29;
    --primary-cream: #f8f8f8;
    --primary-terracotta: #8d551a;
    --primary-dusty-rose: #884079;
    --primary-forest: #0e1c0e;
    --black: #000000;
    --white: #ffffff;
    --gray-medium: #585858;
  }
  
  .btn {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
  
  .service-card,
  .pricing-card,
  .team-member,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card,
  .blog-card {
    border: 2px solid var(--gray-medium);
  }
}

/* ===============================================
   REDUCED TRANSPARENCY MODE
   =============================================== */
@media (prefers-reduced-transparency: reduce) {
  .review-card,
  .feature-item,
  .coreinfo-card {
    background: var(--white);
    border: 1px solid var(--light-cream);
  }
  
  .navbar-collapse {
    background: var(--white);
    border: 1px solid var(--light-cream);
  }
  
  .gallery-overlay {
    background: var(--black);
  }
}

/* ===============================================
   LANDSCAPE ORIENTATION
   =============================================== */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.60rem;
  }
  
  .hero-subtitle {
    font-size: 1.28rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* ===============================================
   DARK MODE (if needed in future)
   =============================================== */

/* ===============================================
   PRINT RESPONSIVE
   =============================================== */
@media print {
  .hero,
  .section {
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.60rem;
  }
  
  .card,
  .service-card,
  .pricing-card,
  .team-member,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card,
  .blog-card {
    break-inside: avoid;
  }
  
  .timeline-item {
    break-inside: avoid;
  }
  
  .gallery-item {
    break-inside: avoid;
  }
} 