/* ================================
   MOBILE-FIRST RESPONSIVE STYLES
   Breakpoints: 576, 768, 992, 1200
   Key goals:
   - No layout-shifting top/bottom offsets
   - Fluid images and cards (no fixed heights)
   - Hamburger nav below 768px
================================ */

/* ---- Defaults (mobile first) ---- */
.team-photo img,
.case-image img {
  width: 100%;
  height: auto;              /* keep images proportional */
  object-fit: cover;
}

.service-coloum-area {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* one-per-row on phones by default */
.service-coloum {
  flex: 1 1 100%;
}

.team-text a { font-size: 16px; }
.team-text p { font-size: 13px; }
.team-text span { font-size: 12px; }

.main-headline h1 { font-size: 28px; }
.main-headline p  { font-size: 15px; }

.case-content h4 { font-size: 16px; }
.btn-case { font-size: 13px; padding: 8px 16px; }

/* Contact spacing */
.contact-form .form-group { margin-bottom: 16px; }
.contact-form .btn { width: 100%; }

/* Footer align for mobile */
.footer-social,
.copyright-text { text-align: center; }

/* Brand row scrollable on small screens */
.brand-carousel { display: flex; gap: 24px; overflow-x: auto; }

/* Header: show hamburger on small screens */
.hamburger 
{ display: flex; 
  width: 30px; 
  height: 24px; 
  left: 130px;
  position: relative;
}
nav ul {
  position: absolute;
  top: 80px; left: 0; width: 100%;
  flex-direction: column;
  background: var(--nav-bg);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
nav ul.active { max-height: 500px; }

/* Hide social strip if cramped */
.header-social { display: none; }


/* Remove all large manual offsets that were causing jumps */
#services, #lawyers, #departments, #contact, #about, .main-footer {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
}

/* Hero images swap: show .pictwo for small screens */
.picone { display: none; }
.pictwo { display: block; }

/* Typography in banners */
.banner-text h1 { font-size: 28px; }
.banner-text .abt { font-size: 14px; }

/* Choose cards */
.choose-item { min-height: 240px; padding: 20px; }
.choose-text h4 { font-size: 20px; }
.choose-icon { font-size: 40px; }

/* Subscribe form padding on mobile */
.subscribe-form { padding: 30px 20px; }

/* Contact info center on mobile */
.contact-info-item { text-align: center; padding: 20px; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .header-info {
    margin-left: 15px;   /* push it slightly inward */
    margin-right: 0;     /* remove any forced right shift */
    text-align: left;    /* align content properly */
    position: static;    /* reset any previous relative offsets */
  }
}

@media (max-width: 576px) {
  .header-info {
    margin-left: -30px;   /* smaller bump for very small screens */
  }
}

/* ================================
   ≥576px
================================ */
@media (min-width: 576px) {
  .team-photo img { /* slightly taller allowed, still fluid */
    max-height: 260px;
  }
  .home-button a { font-size: 14px; padding: 10px 24px; }
}

/* ================================
   ≥768px (tablets)
================================ */
@media (min-width: 768px) {
  /* Two-per-row services */
  .service-coloum { flex: 1 1 calc(50% - 24px); }

  .main-headline h1 { font-size: 32px; }
  .main-headline p  { font-size: 15px; }

  .team-text a { font-size: 17px; }
  .team-text p { font-size: 13px; }
  .team-text span { font-size: 11px; }

  .case-content h4 { font-size: 16px; }
  .btn-case { font-size: 13px; padding: 8px 18px; }

  /* Restore multi-column nav; hide hamburger */
  .hamburger { display: none; }
  nav ul {
    position: static;
    flex-direction: row;
    max-height: none;
    background: transparent;
  }

  /* Show social row on tablet+ if desired */
  .header-social { display: block; }

  /* Bigger banner text */
  .banner-text h1 { font-size: 32px; }

  /* Hero images: prefer desktop image */
  .picone { display: block; }
  .pictwo { display: none; }

  /* Contact button auto width from tablet up */
  .contact-form .btn { width: auto; }

  .brand-carousel { flex-wrap: nowrap; }
}

/* ================================
   ≥992px (small desktops)
================================ */
@media (min-width: 992px) {
  .team-text a { font-size: 18px; }
  .team-text p { font-size: 13px; }
  .team-text span { font-size: 12px; }

  .about1-text { padding-right: 0; }

  .banner-text h1 { font-size: 36px; }
  .mission-text h1 { font-size: 24px; }

  /* Three-per-row services */
  .service-coloum { flex: 1 1 calc(33.333% - 24px); }

  .contact-form .form-group { margin-bottom: 15px; }
  .about1-text h1 { font-size: 28px; }

  .contact-info-item { padding: 24px; }
}

/* ================================
   ≥1200px (large desktops)
================================ */
@media (min-width: 1200px) {
  .main-headline h1 { font-size: 42px; }
  .banner-text h1 { font-size: 40px; }

  /* Give imagery a bit more breathing room without forcing fixed heights */
  .team-photo img { max-height: 300px; }
  .case-image img   { max-height: 260px; }

  .choose-item { min-height: 300px; }
}





@media (max-width: 768px) {
  nav {
    position: relative;
  }

  /* Hamburger button */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    position: relative;
    z-index: 1100;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-color, #ffffff);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Animate hamburger into “X” when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  /* Nav menu styles */
  nav ul {
    position: fixed;
    top: 0; left: -100%;
    width: 75%;                /* slide-in drawer */
    height: 100vh;
    background: var(--nav-bg, #111);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 20px;
    gap: 20px;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  nav ul.active {
    left: 0;                   /* slide in */
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 12px 0;
    color: #fff;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.3s ease;
  }

  nav ul li a:hover {
    color: var(--accent, #f5c518);
  }

  /* Optional: overlay background behind menu */
  .nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 900;
  }
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}