/* Ambassa PACS — breakpoints. Mobile-first adjustments layered on style.css */

@media (max-width: 1180px) {
  .nav__link {
    padding-inline: 7px;
    font-size: 0.86rem;
  }

  .about__media img {
    height: 540px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 76px;
  }

  .hero__grid,
  .about__grid,
  .digital__grid,
  .contact__grid,
  .cta-band__inner,
  .trust__panel,
  .notices__layout,
  .facts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero__grid,
  .about__grid,
  .digital__grid,
  .contact__grid,
  .cta-band__inner,
  .trust__panel,
  .notices__layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .hero__grid {
    min-height: auto;
  }

  .hero__image-wrap {
    aspect-ratio: 16 / 11;
    max-height: none;
  }

  .hero__float {
    left: 16px;
    bottom: 16px;
  }

  .services__grid,
  .schemes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline::before {
    left: 17px;
    right: auto;
    top: 8px;
    bottom: 8px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
  }

  .timeline__item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px 18px;
    padding: 8px 0 28px;
  }

  .timeline__marker {
    margin: 0;
    grid-row: 1 / span 2;
  }

  .about__media img {
    height: 420px;
  }

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

  .cta-band__aside {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .site-header__inner {
    width: min(100% - 28px, var(--max));
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(16, 36, 24, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 70;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 420px);
    height: 100dvh;
    background: #f7f4eb;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding: 88px 28px 32px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.38s var(--ease), visibility 0.38s var(--ease);
    z-index: 80;
    box-shadow: -18px 0 40px rgba(16, 36, 24, 0.12);
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__link {
    font-size: 1.45rem;
    padding: 12px 4px;
    letter-spacing: -0.03em;
  }

  .nav__link::after {
    bottom: 8px;
  }

  .nav__mobile-cta {
    display: flex;
    margin-top: 18px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: span 1;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-row: span 2;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: clamp(3.6rem, 12vw, 5.2rem) 0;
  }

  .services__head,
  .gallery__head {
    flex-direction: column;
    align-items: start;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    flex: 1 1 180px;
  }

  .trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services__grid,
  .schemes__grid,
  .footer__grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 36px;
  }

  .hero__image-wrap {
    aspect-ratio: 5 / 4;
    border-radius: 22px;
  }

  .hero__float {
    max-width: 190px;
    padding: 12px 14px;
  }

  .about__media img {
    height: 320px;
  }

  .form,
  .trust__panel,
  .page-panel {
    padding: 22px 18px;
  }

  .notice-card {
    padding: 22px 18px;
  }

  .map-placeholder {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .container,
  .site-header__inner {
    width: min(100% - 20px, var(--max));
  }

  .logo__sub {
    display: none;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trust__grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }

  .gallery-grid {
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .footer__base {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .logo img {
    width: 40px;
    height: 40px;
  }

  .section-heading {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .trust__grid {
    grid-template-columns: 1fr;
  }

  .hero__float {
    position: static;
    margin-top: 12px;
    max-width: none;
  }
}

@media (min-width: 1600px) {
  :root {
    --max: 1320px;
  }

  .hero__image-wrap {
    max-height: 760px;
  }
}

@media (min-width: 1920px) {
  .hero {
    min-height: min(90vh, 980px);
  }
}
