/* =====================================================
   JUREA LLP — SHARED MOBILE.CSS
   Mobile-first enhancements (≤ 1024px)
   Desktop styles are NEVER touched here.
   ===================================================== */

/* ---- HAMBURGER BUTTON (shared across all pages) ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #1e2a78;
  border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Animate hamburger → X */
.hamburger.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* White variant (for dark navbars) */
.hamburger.hamburger--white span {
  background: #fff;
}

/* ---- MOBILE OVERLAY ---- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* =====================================================
   TABLET (≤ 1024px)
   ===================================================== */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  /* --- index.html / styless.css nav / legal-style.css nav --- */
  nav .nav-links,
  .navbar .navLinks {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: min(300px, 80vw);
    height: 100vh;
    background: #fff;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 8px;
    z-index: 1000;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  nav .nav-links.open,
  .navbar .navLinks.open {
    transform: translateX(0);
  }

  nav .nav-links a,
  .navbar .navLinks a {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a1a;
    margin: 0;
  }

  nav .nav-links a:last-child,
  .navbar .navLinks a:last-child {
    border-bottom: none;
  }

  /* nav-right button on mobile */
  nav .nav-right,
  .navbar .ctaBtn {
    display: none;
  }

  /* about-us / HR / other pages — .menu style */
  nav .menu,
  header .menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: min(300px, 80vw);
    height: 100vh;
    background: #fff;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    list-style: none;
    margin: 0;
    z-index: 1000;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    gap: 0;
  }

  nav .menu.open,
  header .menu.open {
    transform: translateX(0);
  }

  nav .menu li,
  header .menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  nav .menu li a,
  header .menu li a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
  }

  /* lawyer.html / style.css  .navlinks */
  .navwrap .navlinks {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: min(300px, 80vw);
    height: 100vh;
    background: #2f3a78;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    z-index: 1000;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    gap: 0;
  }

  .navwrap .navlinks.open {
    transform: translateX(0);
  }

  .navwrap .navlinks a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 16px;
    width: 100%;
  }

  /* nav positioning fix for all pages */
  nav,
  .nav,
  .navrow,
  header .nav,
  .navbar {
    position: relative;
    flex-wrap: wrap;
  }
}

/* =====================================================
   MOBILE (≤ 768px)
   ===================================================== */
@media (max-width: 768px) {

  /* Prevent horizontal scroll site-wide */
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Generic image responsiveness */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Buttons – comfortable tap targets */
  .btn-primary,
  .btn-outline,
  .cta,
  .ctas,
  .read-btn {
    min-height: 44px;
    font-size: 15px !important;
  }

  /* Section padding normalisation */
  section,
  .section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Generic two-column form grids → single column */
  .two-col,
  .form-grid {
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Contact wrapper (index.html + about-us.html) */
  .contact-wrapper,
  .contact-grid {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 0 16px !important;
  }

  .contact-info-card,
  .contact-form-card,
  .info-card,
  .form-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Footer subscribe box */
  .subscribe-col .subscribe-box,
  .subscribe-box {
    width: 100% !important;
    flex-wrap: wrap;
  }

  /* Footer bottom row */
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }
}

/* =====================================================
   SMALL MOBILE (≤ 480px)
   ===================================================== */
@media (max-width: 480px) {

  .section-title,
  .benefits-title,
  .journey-title h2,
  .section-banner h2 {
    font-size: 22px !important;
  }

  .btn-primary,
  .btn-outline {
    font-size: 14px !important;
    padding: 10px 14px !important;
  }
}

/* =====================================================
   MOBILE NAV — LAWYER.HTML STYLE DROPDOWN
   Hidden by default, shown on mobile when .open added
   ===================================================== */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #2f3a78;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  position: relative;
  z-index: 998;
}

.mobile-nav.open {
  max-height: 650px;
  padding: 0 20px 24px;
}

/* Header row: logo on left, X on right */
.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 4px;
}

.mobile-nav__logo {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
}

.mobile-nav__logo img {
  height: 32px;
  width: auto;
  display: block;
}

.mobile-nav__close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.mobile-nav__close:hover {
  opacity: 1;
}

/* Nav links */
.mobile-nav a {
  color: #e9ecff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  transition: color 0.2s ease;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a.active {
  color: #12a6a3;
}

.mobile-nav a:hover {
  color: #12a6a3;
}

/* Orange CTA button */
.mobile-nav .mobile-nav__cta {
  background: #d5852b;
  color: #fff !important;
  text-align: center;
  padding: 14px 20px !important;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: 700;
  border-bottom: none !important;
}

.mobile-nav .mobile-nav__cta:hover {
  background: #c0741e;
  color: #fff !important;
}

/* Only show mobile-nav on mobile */
@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
  }

  /* Topbar mobile adjustments */
  .topbar {
    height: auto;
    padding: 8px 0;
  }

  .topbar-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .topbar-left {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
  }

  .topbar-right {
    display: none;
  }

  .topbar-item {
    font-size: 12px;
  }

  /* Footer mobile */
  .site-footer {
    padding: 0 0 16px;
  }

  .footer-wrap {
    padding: 0 16px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
  }

  .footer-logoBox {
    width: 200px;
    height: 70px;
  }

  .footer-logoBox img {
    height: 42px;
  }

  .footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-social__label {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    margin-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding-top: 24px;
  }

  .footer-col--subscribe {
    grid-column: 1 / -1;
  }

  .footer-title {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .footer-list li {
    margin: 8px 0;
  }

  .footer-list a {
    font-size: 11px;
  }

  .footer-contact {
    gap: 10px;
  }

  .footer-contact__icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .footer-contact__text {
    font-size: 11px;
  }

  .footer-subtext {
    font-size: 11px;
  }

  .footer-form {
    width: 100%;
    max-width: 280px;
  }

  .footer-divider {
    margin: 16px 0 0;
  }

  .footer-divider--bottom {
    margin: 28px 0 12px;
  }

  .footer-copy {
    font-size: 11px;
    padding-bottom: 8px;
  }

  /* Decorative shapes hide on mobile */
  .f-shape {
    display: none;
  }
}

@media (max-width: 424px) {
  .topbar-left {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

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