/* ============================================
   FD DEVELOPMENTS LIMITED
   Responsive Design
   Mobile-First Breakpoints
   ============================================ */

/* ============================================
   LARGE DESKTOPS (1400px+)
   ============================================ */

@media (min-width: 1400px) {
  .container {
    max-width: 1440px;
  }

  .hero-title {
    font-size: 8rem;
  }
}

/* ============================================
   DESKTOPS (1200px - 1399px)
   ============================================ */

@media (max-width: 1399px) {
  .container {
    max-width: 1200px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-grid::before {
    display: none;
  }

  .testimonial-nav.prev {
    left: -40px;
  }

  .testimonial-nav.next {
    right: -40px;
  }
}

/* ============================================
   LAPTOPS (1024px - 1199px)
   ============================================ */

@media (max-width: 1199px) {
  :root {
    --space-xl: 5rem;
    --space-2xl: 6rem;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .milestones-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .about-grid {
    gap: 48px;
  }

  .about-image-badge {
    left: 20px;
  }

  .testimonial-nav {
    display: none;
  }

  .gallery-masonry {
    columns: 2;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
  }

  .mega-menu-featured {
    display: none;
  }

  .mega-menu-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   TABLETS (768px - 1023px)
   ============================================ */

@media (max-width: 1023px) {
  :root {
    --space-xl: 4rem;
    --space-2xl: 5rem;
  }

  .hero {
    min-height: 600px;
  }

  .hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }

  .hero-stat strong {
    font-size: 2.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image-wrap {
    max-width: 600px;
    margin: 0 auto;
  }

  .about-image-main img {
    height: 400px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px;
    padding-right: 20px;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 12px;
    right: auto;
  }

  .project-modal-gallery {
    height: 300px;
  }

  .project-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .mega-menu-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   MOBILE LARGE (576px - 767px)
   ============================================ */

@media (max-width: 767px) {
  :root {
    --space-xl: 3.5rem;
    --space-2xl: 4.5rem;
    --header-height: 70px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Navigation */
  .navbar {
    padding: 16px 0;
  }

  .navbar.scrolled {
    padding: 10px 0;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .logo-text strong {
    font-size: 1.2rem;
  }

  .logo-text small {
    font-size: 0.5rem;
  }

  .nav-action-btn {
    width: 40px;
    height: 40px;
  }

  .nav-action-btn svg {
    width: 16px;
    height: 16px;
  }

  .mobile-menu-links a {
    font-size: 2.2rem;
  }

  /* Hero */
  .hero {
    min-height: 550px;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 3px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions .btn {
    padding: 14px 28px;
    font-size: 0.75rem;
  }

  .hero-stats {
    gap: 24px;
    margin-top: 40px;
    padding-top: 24px;
  }

  .hero-stat strong {
    font-size: 1.8rem;
  }

  .hero-stat small {
    font-size: 0.55rem;
  }

  .hero-slider-controls {
    bottom: 20px;
    right: 20px;
  }

  .hero-slider-btn {
    width: 44px;
    height: 44px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* Page Header */
  .page-header {
    padding: 150px 0 70px;
  }

  .page-header h1 {
    font-size: 3rem;
  }

  /* Buttons */
  .btn {
    padding: 14px 28px;
    font-size: 0.75rem;
  }

  .btn-lg {
    padding: 16px 36px;
    font-size: 0.85rem;
  }

  /* Grids */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .milestones-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About */
  .about-image-main img {
    height: 300px;
  }

  .about-image-badge {
    padding: 16px 24px;
    bottom: 20px;
    left: 20px;
  }

  .about-image-badge strong {
    font-size: 2rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Contact */
  .contact-info-card,
  .contact-form-wrap {
    padding: 28px;
  }

  .map-wrap {
    min-height: 300px;
  }

  /* Gallery */
  .gallery-masonry {
    columns: 1;
  }

  .gallery-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 0.65rem;
  }

  /* Project Modal */
  .project-modal {
    padding: 20px;
  }

  .project-modal-gallery {
    height: 220px;
  }

  .project-modal-body {
    padding: 24px;
  }

  .project-modal-body h2 {
    font-size: 1.8rem;
  }

  .project-specs {
    grid-template-columns: 1fr;
  }

  /* Lightbox */
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  /* Floating buttons */
  .whatsapp-btn {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  /* Newsletter popup */
  .newsletter-popup {
    bottom: 80px;
    right: 20px;
    left: 20px;
    max-width: none;
  }

  /* Mega menu */
  .mega-menu-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mega-menu {
    padding: 100px 0 40px;
  }

  /* Timeline */
  .timeline-item {
    padding-left: 50px;
  }

  .timeline-content {
    padding: 16px;
  }

  .timeline-year {
    font-size: 1.5rem;
  }

  /* CTA */
  .cta-section {
    padding: 60px 0;
  }

  .cta-content h2 {
    font-size: 2.2rem;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Testimonials */
  .testimonial-text {
    font-size: 1.1rem;
  }

  .testimonial-slide {
    padding: 0;
  }

  /* Search */
  .search-form input {
    font-size: 1.5rem;
  }

  .search-close {
    top: 20px;
    right: 20px;
  }
}

/* ============================================
   MOBILE SMALL (375px - 575px)
   ============================================ */

@media (max-width: 575px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat strong {
    font-size: 1.5rem;
  }

  .hero-stat small {
    font-size: 0.5rem;
    letter-spacing: 1px;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .breadcrumb {
    font-size: 0.65rem;
    flex-wrap: wrap;
  }

  .about-image-badge {
    padding: 12px 18px;
  }

  .about-image-badge strong {
    font-size: 1.6rem;
  }

  .about-image-badge span {
    font-size: 0.55rem;
  }

  .project-card-info {
    padding: 16px;
  }

  .project-card-info h3 {
    font-size: 1.2rem;
  }

  .service-card {
    padding: 28px 24px;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .why-card {
    padding: 28px 24px;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  .partner-logo span {
    font-size: 1.4rem;
  }

  .footer-top {
    gap: 32px;
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 8px;
  }

  .newsletter-form input {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .newsletter-form button {
    width: 100%;
    padding: 12px;
  }

  .contact-info-card,
  .contact-form-wrap {
    padding: 20px;
  }

  .form-row {
    gap: 16px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .project-modal-body {
    padding: 20px;
  }

  .project-modal-body h2 {
    font-size: 1.5rem;
  }

  .project-specs {
    gap: 12px;
  }

  .project-spec {
    padding: 12px;
  }

  .project-spec strong {
    font-size: 1.2rem;
  }

  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .lightbox-caption {
    font-size: 0.7rem;
  }

  .lightbox-counter {
    font-size: 0.7rem;
  }

  .mobile-menu-links a {
    font-size: 1.8rem;
  }

  .mobile-menu-footer {
    bottom: 40px;
  }

  .timeline-item {
    padding-left: 40px;
    padding-right: 10px;
  }

  .timeline-dot {
    width: 12px;
    height: 12px;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 8px;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .timeline-content p {
    font-size: 0.8rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-author-info {
    text-align: center;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 0.9rem;
  }

  .search-form input {
    font-size: 1.2rem;
  }

  .search-hint {
    font-size: 0.6rem;
  }
}

/* ============================================
   VERY SMALL (320px)
   ============================================ */

@media (max-width: 320px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .hero-stat strong {
    font-size: 1.3rem;
  }

  .hero-stat small {
    font-size: 0.45rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.7rem;
  }

  .logo-text strong {
    font-size: 1rem;
  }

  .logo-text small {
    font-size: 0.45rem;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 100px 0;
  }

  .hero-stats {
    display: none;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .mobile-menu-links a {
    font-size: 1.6rem;
  }

  .mobile-menu-footer {
    bottom: 20px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .navbar,
  .footer,
  .whatsapp-btn,
  .scroll-top-btn,
  .loader,
  .cursor-dot,
  .cursor-ring,
  .scroll-progress,
  .mobile-menu,
  .search-overlay,
  .newsletter-popup {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 20px 0;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding: 40px 0;
  }

  .hero-slider {
    display: none;
  }

  .hero-content {
    color: black;
  }

  .hero-title,
  .hero-title-line span {
    color: black;
    opacity: 1;
    animation: none;
  }

  .hero-description {
    color: #333;
  }

  .btn {
    border: 1px solid #333;
    color: #333;
    background: white;
  }

  .stats-section {
    background: none;
  }

  .stats-section::before {
    display: none;
  }

  .stat-number {
    color: black;
  }

  .stat-label {
    color: #333;
  }

  .cta-section {
    background: #f5f5f5;
  }

  .cta-content h2 {
    color: black;
  }

  .cta-content p {
    color: #333;
  }
}