/* ============================================
   RESPONSIVE BREAKPOINTS - MOBILE FIRST
   ============================================ */

/* -- Extra Small (0 - 575px) Mobile -- */
@media (max-width: 575px) {
  :root {
    --fs-hero: 2rem;
    --fs-h1: 1.8rem;
    --fs-h2: 1.4rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .hero {
    min-height: 550px;
    overflow: hidden;
  }

  .hero-content {
    padding: 0 var(--space-lg);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-nav {
    bottom: 25px;
    left: var(--space-lg);
    transform: none;
  }

  .hero-nav-item .nav-line {
    width: 35px;
  }

  .hero-nav-item.active .nav-line {
    width: 50px;
  }

  .hero-counter {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-layout {
    grid-template-columns: 1fr;
  }

  .service-sidebar .sidebar-inner {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .nav-cta {
    display: none;
  }

  .page-header { padding: calc(var(--navbar-height) + var(--space-xl)) var(--space-md) calc(var(--space-xl) + 40px); }

  .page-header h1 {
    font-size: var(--fs-h2);
  }

  .section-header h2 {
    font-size: var(--fs-h3);
  }

  .stat-card {
    padding: var(--space-lg);
  }

  .stat-card .stat-number {
    font-size: 1.5rem;
  }

  .blog-card .card-img {
    height: 180px;
  }

  a.service-card-img .card-image {
    height: 180px;
  }

  .cta-section {
    padding: var(--space-2xl) 0;
  }

  .footer {
    overflow: hidden;
  }
}

/* -- Small (576px - 767px) Landscape Mobile -- */
@media (min-width: 576px) and (max-width: 767px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-layout {
    grid-template-columns: 1fr;
  }

  .service-sidebar .sidebar-inner {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-counter {
    display: none;
  }

  .hero-scroll {
    display: none;
  }
}

/* -- Medium (768px - 991px) Tablet -- */
@media (min-width: 768px) and (max-width: 991px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail-layout {
    grid-template-columns: 1fr 280px;
    gap: var(--space-xl);
  }

  .hero-counter {
    right: 20px;
  }

  .hero-scroll {
    right: 20px;
  }
}

/* -- Large (992px+) Desktop -- */
@media (min-width: 992px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* -- Nav toggle -- */
@media (max-width: 991px) {
  .navbar {
    z-index: 9999;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 300px;
    background: #fff;
    flex-direction: column;
    padding: var(--space-4xl) var(--space-xl);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    transition: right 0.3s ease;
    gap: var(--space-xs);
    align-items: stretch;
  }

  .nav-menu.active,
  .nav-menu.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 10000;
    position: relative;
  }

  .nav-link {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
    margin: var(--space-md) 0 0;
    display: flex !important;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
  }

  .nav-overlay.active,
  .nav-overlay.open {
    display: block;
  }
}

/* -- Gallery grid responsive -- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 86, 179, 0.4);
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-icon {
  opacity: 1;
}

/* -- Container narrow -- */
.container--narrow {
  max-width: 820px;
  margin: 0 auto;
}

/* -- FAQ responsive -- */
.faq-item {
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.faq-question {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  gap: var(--space-md);
  transition: all var(--transition-fast);
  color: var(--color-text);
}

.faq-question:hover {
  background: rgba(0, 86, 179, 0.03);
  color: var(--color-primary);
}

.faq-icon {
  transition: transform var(--transition-base);
  min-width: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-question {
  color: var(--color-primary);
  background: rgba(0, 86, 179, 0.04);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-xl);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* -- Lightbox -- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* -- WhatsApp Float -- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* -- Scroll to Top -- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 46px;
  height: 46px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* -- Text utilities -- */
.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}