/* ==========================================================================
   ZEUS MOBILE & TABLET — touch-friendly, responsive, safe areas
   ========================================================================== */

/* Base touch improvements */
a, button, .btn, .nav__link, summary, input, select, textarea {
  -webkit-tap-highlight-color: rgba(197, 160, 89, 0.2);
}

.btn, .nav__link, .mobile-bar__item, .lang-switcher__link {
  min-height: 44px;
}

/* Safe area (notched phones) */
body {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.header {
  padding-top: env(safe-area-inset-top, 0);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 6rem 0 0;
  background: var(--navy);
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 1rem;
  font-size: 0.78rem;
}
.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
}
.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  opacity: 0.4;
}
.breadcrumbs__item a {
  color: var(--text);
  text-decoration: none;
}
.breadcrumbs__item a:hover { color: var(--cyan); }
.breadcrumbs__item span { color: var(--cyan); }

/* Mobile action bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(6, 13, 24, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0));
  gap: 0.5rem;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.mobile-bar__lang {
  display: flex;
  justify-content: center;
  padding-bottom: 0.25rem;
}
.mobile-bar__lang .lang-switcher {
  border-color: rgba(197, 160, 89, 0.5);
  background: rgba(10, 22, 40, 0.85);
}
.mobile-bar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}
.mobile-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.5rem 0.25rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  transition: background 0.2s, color 0.2s;
}
.mobile-bar__item span { font-size: 1.1rem; }
.mobile-bar__item--accent {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.3), rgba(139, 105, 20, 0.3));
  color: var(--white);
  border: 1px solid rgba(197, 160, 89, 0.45);
}
.mobile-bar__item:active { transform: scale(0.97); }

body.has-mobile-bar { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0)); }
body.nav-open { overflow: hidden; position: fixed; width: 100%; }

/* Fluid typography */
.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}
.hero__lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}
.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

/* Prevent iOS zoom on inputs */
@media (max-width: 900px) {
  .form-row input,
  .form-row select,
  .form-row textarea {
    font-size: 16px;
  }
}

/* ========== TABLET (768px – 1100px) ========== */
@media (max-width: 1100px) {
  .container { padding: 0 20px; }

  .footer__grid--4 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer__brand { grid-column: 1 / -1; }

  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .case-studies__grid { grid-template-columns: repeat(2, 1fr); }
  .blog-archive__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 2.5rem; }

  .header__inner { gap: 1rem; }
  .nav__link { padding: 8px 10px; font-size: 0.82rem; }
  .btn { padding: 10px 18px; font-size: 0.85rem; }
  .btn--lg { padding: 14px 28px; font-size: 0.95rem; }
}

/* ========== MOBILE (max 900px) ========== */
@media (max-width: 900px) {
  .mobile-bar { display: flex; flex-direction: column; }
  body:not(.nav-open) { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0)); }

  .header__inner { height: 64px; }
  .logo { order: 1; font-size: 0.85rem; }
  .header__lang {
    order: 2;
    display: flex;
    margin-left: auto;
    margin-right: 0.35rem;
  }
  .nav-toggle { order: 3; }
  .logo--brand .logo__img,
  .logo--brand .custom-logo-link img { max-height: 38px; max-width: 160px; }

  .header__actions {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom, 0));
    left: 12px;
    right: 12px;
    z-index: 998;
    display: none;
  }
  body.nav-open .header__actions { display: none; }

  .nav__lang { display: none; }
  .nav.is-open .nav__lang {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav__item--lang { justify-content: center; padding: 0.75rem 0; }

  .nav {
    max-height: calc(100vh - 64px - env(safe-area-inset-top, 0));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav__list { gap: 0.25rem; }
  .nav__link {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .nav__dropdown a {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .hero { min-height: auto; padding: 7rem 0 3rem; }
  .hero--inner { padding: 6.5rem 0 2.5rem; }
  .hero__inner { gap: 2rem; }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero__visual { height: 240px; }
  .hero__card--main { transform: scale(0.9); }

  .stats__grid { gap: 1rem; }
  .stat { padding: 1.25rem 0.75rem; }

  .services, .about, .process, .testimonials, .faq, .team,
  .case-studies, .careers-section, .blog-archive {
    padding: 3.5rem 0;
  }

  .card { padding: 1.5rem; }
  .cta-band__inner { gap: 1.5rem; }
  .cta-band__inner .btn { width: 100%; justify-content: center; }

  .contact-form { padding: 1.5rem; }
  .company-details--contact { padding: 1.5rem; }

  .careers__job-head { flex-direction: column; }
  .careers__job .btn { width: 100%; justify-content: center; }

  .case-study-single__nav,
  .blog-single__nav {
    flex-direction: column;
  }
  .case-study-single__nav .btn,
  .blog-single__nav .btn {
    width: 100%;
    justify-content: center;
  }

  .service-detail__cta .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .service-detail__cta .btn { width: 100%; justify-content: center; }

  .trust-bar { display: none; }

  .breadcrumbs { padding-top: 5.5rem; }

  /* Disable hover tilt on touch */
  .card { transform: none !important; }
}

/* ========== SMALL MOBILE (max 480px) ========== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .stats__grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat__num { font-size: 1.75rem; }

  .values__grid,
  .services__grid,
  .case-studies__grid,
  .blog-archive__grid,
  .testimonials__grid,
  .team__grid,
  .careers-benefits__list {
    grid-template-columns: 1fr;
  }

  .footer__services-cols { grid-template-columns: 1fr; }
  .footer__grid--4 { grid-template-columns: 1fr; }

  .hero__title { font-size: 1.75rem; }
  .hero__marquee { display: none; }

  .mobile-bar__item { font-size: 0.68rem; }
  .process__step { grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.25rem; }
  .process__num { width: 44px; height: 44px; font-size: 0.95rem; }

  .faq__item summary { padding: 1rem 1.25rem; font-size: 0.92rem; }
  .legal-content__inner { padding: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .trust-bar__track { animation: none; }
  .hero__orb { display: none; }
}
