/* Responsive styles */

/* Tablet adjustments */
@media (max-width: 1024px) {
  .container {
    max-width: 90%;
  }

  .grid-2,
  .grid-3 {
    gap: 3rem;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Typography adjustments */
  .section-title {
    font-size: 2rem;
  }

  /* Mobile Navigation */
  .mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }

  .mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
  }

  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border-color);
    margin-left: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 2rem;
    margin: 0 0 3rem 0;
    width: 100%;
    text-align: center;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  .nav-actions .btn {
    width: 90%;
    max-width: 350px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo-subtitle {
    font-size: 0.65rem;
  }

  /* Grid Stack */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero .grid-2 {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
  }

  /* Hero Section Mobile */
  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.25rem !important;
    line-height: 1.1 !important;
  }

  .hero-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  /* Keep stats in one row on mobile but smaller */
  .hero-content .stats.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .hero-content .stats h3 {
    font-size: 1.25rem !important;
  }

  .hero-content .stats p {
    font-size: 0.75rem !important;
  }

  .hero-image-wrapper {
    height: 300px !important;
  }

  /* Gallery Grid on Mobile: 2 Columns */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 0.75rem;
  }

  /* Button adjustments for mobile */
  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }

  /* Section padding reduction */
  section {
    padding: 3rem 1rem;
    overflow-x: hidden;
  }

  /* Footer Optimization for Mobile */
  .site-footer {
    padding: 4rem 1rem 2rem;
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }

  .footer-col-info {
    max-width: 100%;
  }

  .footer-heading {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    display: inline-block;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-scroll-top {
    margin-top: 1rem;
  }

  /* Card adjustments */
  .card {
    padding: 1.5rem;
  }

  /* Form adjustments */
  form input,
  form textarea,
  form select {
    font-size: 16px !important;
    /* Prevents zoom on iOS */
  }

  .about-content {
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* About Section Grid Fix */
  .about-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .highlight-item {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .about-text {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  /* Flip Cards on Tap for Mobile */
  .expertise-card-container.is-flipped .expertise-card-inner {
    transform: rotateY(180deg) scale(1.02);
  }

  /* Hero Button adjustments */
  .hero-content .btn {
    min-width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Extra Small Mobile (phones in portrait) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-content h1 {
    font-size: 2rem !important;
  }

  .hero-content span {
    font-size: 0.75rem !important;
  }

  .hero-image div {
    height: 300px !important;
  }

  .btn {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }

  .btn-wide {
    min-width: 140px;
  }

  /* Stats grid on very small screens */
  .hero-content .stats {
    gap: 1rem;
  }

  .hero-content .stats h3 {
    font-size: 1.25rem !important;
  }

  .hero-content .stats p {
    font-size: 0.75rem !important;
  }

  /* Card spacing */
  .card {
    padding: 1.25rem;
  }

  /* Floating Buttons Mobile */
  .floating-whatsapp-btn,
  .floating-call-btn {
    width: 50px;
    height: 50px;
    right: 20px;
  }

  .floating-whatsapp-btn {
    bottom: 85px;
  }

  .floating-call-btn {
    bottom: 20px;
  }

  .floating-whatsapp-btn svg,
  .floating-call-btn svg {
    width: 24px;
    height: 24px;
  }

  /* Section padding */
  section {
    padding: 2.5rem 1rem;
  }

  /* View More Services Button */
  .view-more-wrapper {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }

  .btn-view-more {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
}
