

/* Prevent horizontal scroll sitewide */
html,
body {
  max-width: 100%;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

/* Tablet & mobile navigation */
@media (max-width: 992px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .nav.open {
    max-height: min(90vh, 720px);
    overflow-y: auto;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    align-items: stretch;
  }

  .nav__list li {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav__link--trigger {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-dropdown {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: var(--gray-50);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: none;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav__item--dropdown.open .nav-dropdown {
    max-height: 2000px;
    transform: none;
  }

  .nav-dropdown__list {
    max-height: none;
  }

  .nav-dropdown__item {
    padding: 11px 14px;
    font-size: 0.8125rem;
  }

  .hamburger {
    display: flex;
  }

  .header .btn--cta {
    display: none;
  }

  body.has-page-top .nav {
    top: var(--site-top-offset);
  }

  body.has-page-top .nav.open {
    max-height: calc(100vh - var(--site-top-offset));
  }
}

/* Fluid section spacing */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .section__header {
    margin-bottom: 44px;
  }

  .nav__list {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 54px;
    --header-crumb-height: 28px;
  }

  .section {
    padding: 56px 0;
  }

  

  .section__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .container {
    padding: 0 clamp(16px, 4vw, 24px);
  }

  /* Mobile nav offset handled in responsive.css @ 992px */

  .logo__img {
    height: 32px;
    max-width: 150px;
  }

  

  

  

  

  

  

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  

  

  

  

  .about-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .about-hero__actions .btn {
    width: 100%;
  }

  

  

  .portfolio__filters {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .filter-btn {
    font-size: 0.8125rem;
    padding: 8px 14px;
  }

  

  .contact-v2-form {
    padding: 22px 18px;
  }}

@media (max-width: 480px) {
  :root {
    --header-height: 52px;
    --header-crumb-height: 26px;
  }

  .btn--lg {
    padding: 14px 24px;
    font-size: 0.9375rem;
  }

  

  

  .nav-dropdown__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown__footer .btn {
    width: 100%;
    justify-content: center;
  }}

@media (max-width: 360px) {
  .header__actions {
    gap: 6px;
  }}
