/* Mobile Adjustments - Nick Logistics */

/* General Mobile Tokens */
:root {
  --section-padding-mobile: 60px 20px;
  --container-padding-mobile: 0 20px;
}

@media screen and (max-width: 1200px) {
  .services-weave, .services-weave.flip {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-weave.flip .weave-content,
  .services-weave .weave-content {
    order: 2;
  }
  
  .services-weave.flip .weave-image,
  .services-weave .weave-image {
    order: 1;
    min-height: 300px;
  }
}

@media screen and (max-width: 1024px) {
  :root {
    --section-padding: 80px 24px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .about-grid {
    gap: 40px;
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

@media screen and (max-width: 768px) {
  /* Layout Spacing */
  .section {
    padding: var(--section-padding-mobile);
  }

  .container {
    padding: var(--container-padding-mobile);
  }

  /* Navbar & Overlap Fix */
  .navbar {
    padding: 10px 10px;
    background: transparent !important;
    justify-content: flex-start !important;
    height: auto;
    min-height: auto; /* Changed to auto to grow correctly */
    border-bottom: none;
    position: absolute;
    top: 0; left: 0; width: 100%;
    display: flex;
    flex-direction: column; 
    align-items: center;
    z-index: 1002;
  }

  .lang-switcher {
    position: absolute;
    right: 15px;
    top: 20px; /* Aligned to corner */
    margin-left: 0;
    gap: 14px; 
    z-index: 1005; /* Always on top */
  }

  .lang-btn img {
    width: 26px; /* Slightly bigger flags */
  }

  .nav-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #ffffff; /* Put the white background JUST behind the logo if needed, or leave transparent. User wants it like a header, let's make a specific white block for it */
    padding: 15px 0;
    border-radius: 0 0 20px 20px; /* Soften the edges */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-brand img {
    height: auto !important;
    width: 90% !important; /* More responsive than 340px */
    max-width: 360px !important;
    margin: 0;
    transform: none;
    display: block;
    margin: 0 auto;
  }

  .navbar.scrolled {
      position: fixed; /* Keep header visible on mobile scroll */
      top: 0;
      width: 100%;
      background: #ffffff !important; /* Become solid when scrolling */
      z-index: 1001; 
      min-height: auto;
  }
  
  .navbar.scrolled .nav-brand {
      box-shadow: none;
      border-radius: 0;
      padding: 2px 0;
  }

  .navbar.scrolled .nav-brand img {
    width: 220px !important;
    height: auto !important;
  }

  .hamburger {
    display: none !important; 
  }

  .nav-links {
    display: none !important;
    width: 100%;
    height: 100vh;
    background: #0b2b46;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
    padding: 0 40px;
    text-align: center;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }

  /* Overlay gradient for a premium feel */
  .nav-links::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(198, 168, 108, 0.1), transparent 70%);
    pointer-events: none;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered link animation */
  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

  .nav-link {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
  }

  .nav-link::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 0%;
      height: 2px;
      background: var(--color-gold);
      transition: width 0.3s ease;
  }

  .nav-link:hover::before {
      width: 60%;
  }

  .nav-links .btn-primary {
    margin: 40px 0 0 0 !important;
    width: 100%;
    max-width: 280px;
    background-color: var(--color-gold);
    color: #fff;
    font-size: 1rem;
    padding: 20px 0;
    border-radius: 4px; /* Classic corporate look */
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
  }

  /* Hero Adjustments */
  .hero {
    height: auto;
    min-height: 100vh; /* Restore to look majestic */
    padding-top: 240px; /* Start content immediately below the large white logo block */
    padding-bottom: 150px; /* Ensure space for the curve */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
  }

  .hero-content {
    margin-top: 0; 
    padding: 0 15px;
    z-index: 5 !important;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center everything explicitly */
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 15px; /* Halved to bring description closer */
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px; /* Reduced to bring buttons closer */
    margin-left: auto;
    margin-right: auto;
  }
  
  .badge {
    margin-bottom: 15px !important; /* Reduced to bring title closer */
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    padding: 16px 30px;
  }
  
  /* Sections Typography */
  .about-text h2,
  .section-header h2,
  .cta-content h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr !important; /* Force 2x2 on mobile as requested */
    gap: 12px !important;
  }

  /* Service Cards Refinement */
  .service-card {
    padding: 20px 15px; /* Tighter padding for mobile grid */
    text-align: left;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }
  
  .service-card p {
    font-size: 0.9rem;
  }

  /* Weave Layout Visual Grouping */
  .services-weave {
    gap: 60px;
  }

  .weave-image img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    max-height: 350px;
    border-radius: var(--radius);
  }
  
  .services-weave, .services-weave.flip {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .weave-content {
    order: 2 !important;
  }
  
  .weave-image {
    order: 1 !important;
    min-height: auto !important;
  }
  
  /* CTA horizontal padding */
  .cta-section {
    padding: 80px 24px;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-content p {
    font-size: 1.05rem;
    margin-bottom: 35px;
  }

  /* Footer Refinement */
  .footer {
    padding: 60px 24px 30px;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-brand {
    align-items: center;
  }
  
  .footer-brand img {
    margin: 0 auto 20px auto;
    background: transparent !important; /* Fix logo visibility */
    padding: 0 !important;
    height: 100px; /* Make it a bit bigger in footer */
  }

  .footer-links li {
    justify-content: center;
  }

  .footer-links[style*="display: flex"] {
    justify-content: center;
  }
}
