/* =========================================================
   INT Care — Responsive layer
   ========================================================= */

@media (max-width: 1180px) {
  .nav {
    gap: 1.15rem;
  }

  .nav__list {
    gap: 1rem;
  }

  .nav__link {
    font-size: 0.78rem;
  }

  .nav__cta {
    min-height: 46px;
    padding: 0.7rem 1.05rem;
    font-size: 0.72rem;
  }

  .footer__grid {
    gap: 2.5rem;
  }
}

@media (max-width: 1080px) {
  :root {
    --header-h: 78px;
  }

  .brand__mark {
    width: 50px;
    height: 50px;
  }

  .brand__name {
    font-size: 1.5rem;
  }

  .brand__tag {
    max-width: 220px;
    font-size: 0.5rem;
  }

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

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

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

  .gallery__item--wide {
    grid-column: span 2;
  }

  .founder {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 3rem;
  }
}

/* ---------- Tablet / mobile navigation ---------- */
@media (max-width: 980px) {
  /* Horizontal reveal offsets widen tight layouts; use a vertical reveal. */
  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(26px);
  }

  .topbar__tag {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header__inner {
    min-height: var(--header-h);
  }

  .site-header.is-scrolled .site-header__inner {
    min-height: 70px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(4, 14, 10, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: min(430px, 100%);
    gap: 1.5rem;
    padding: calc(var(--header-h) + 2.4rem) var(--gutter) 2rem;
    background:
      radial-gradient(500px 300px at 100% 0%, rgba(150, 176, 26, 0.14), transparent 70%),
      var(--forest-950);
    color: var(--paper);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0.45s var(--ease);
  }

  .nav.is-open {
    transform: none;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav__list li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .nav__link {
    display: block;
    padding: 0.85rem 0;
    font-family: var(--serif);
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--paper);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link.is-active {
    color: var(--leaf-soft);
  }

  .nav__cta {
    width: 100%;
    margin-top: 0.35rem;
  }

  .nav__mobile-meta {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    font-size: 0.82rem;
    color: rgba(247, 243, 233, 0.62);
  }

  .nav__mobile-meta a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(247, 243, 233, 0.82);
  }

  .nav__mobile-meta a:hover {
    color: var(--leaf-soft);
  }

  .nav__mobile-meta .icon {
    width: 16px;
    height: 16px;
    color: var(--leaf-soft);
  }

  .nav__mobile-meta span {
    display: block;
    line-height: 1.6;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-block: clamp(4rem, 11vw, 6.5rem) clamp(5rem, 12vw, 7.5rem);
  }

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

  .hero__content {
    max-width: 720px;
  }

  .hero__aside {
    display: none;
  }

  .hero__scroll {
    display: none;
  }

  .stats {
    margin-top: -2.6rem;
  }

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

  .stat {
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }

  .stat:nth-child(2n) {
    border-right: 0;
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  /* Layout */
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1.2rem;
  }

  .section-head h2 {
    max-width: 24ch;
  }

  .split,
  .founder,
  .contact-grid,
  .news-layout,
  .initiative {
    grid-template-columns: minmax(0, 1fr);
  }

  .split {
    gap: 3rem;
  }

  .split--reverse .split__media,
  .initiative:nth-child(even) .initiative__media {
    order: 0;
  }

  .split__frame img {
    aspect-ratio: 5 / 4;
  }

  .split__inset {
    right: 1rem;
    bottom: -1.5rem;
    width: min(190px, 40%);
  }

  .split__quote {
    left: 1rem;
    bottom: 1.25rem;
  }

  .founder {
    gap: 2.5rem;
  }

  .founder__media {
    position: static;
    max-width: 440px;
  }

  .contact-grid {
    gap: 2.5rem;
  }

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

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

  .team-grid,
  .projects-grid,
  .news-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-card--wide {
    grid-column: span 2;
  }

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

  .footer__cta {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .cta-band__actions {
    margin-top: 0.25rem;
  }

  .timeline::before {
    left: 66px;
  }

  .timeline__item {
    grid-template-columns: 58px 1fr;
    gap: 2.2rem;
  }

  .timeline__dot {
    left: 61px;
  }

  .timeline__year {
    font-size: 1.15rem;
  }
}

/* ---------- Small tablet ---------- */
@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(2.7rem, 9.5vw, 4rem);
  }

  .hero__pillars li {
    font-size: 0.64rem;
  }

  .section {
    padding-block: clamp(3.25rem, 9vw, 5rem);
  }

  .section--tight {
    padding-block: clamp(2.5rem, 7vw, 4rem);
  }

  .values,
  .pillars,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .values {
    margin-block: 1.5rem;
  }

  .team-grid,
  .team-grid--two,
  .team-grid--four,
  .projects-grid,
  .news-grid,
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card--wide {
    grid-column: auto;
  }

  .project-card--wide .project-card__media img {
    aspect-ratio: 4 / 3;
  }

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

  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery__caption {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.7rem;
  }

  .gallery__caption strong {
    font-size: 0.88rem;
  }

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

  .impact-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col-text {
    columns: 1;
  }

  .split__inset {
    display: none;
  }

  .split__quote {
    position: static;
    max-width: none;
    margin-top: 1rem;
  }

  .initiative {
    gap: 2rem;
    padding-block: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__cta-actions .btn,
  .cta-band__actions .btn {
    flex: 1 1 220px;
  }

  .stat {
    padding: 1.35rem;
  }

  .stat__value {
    font-size: 2.5rem;
  }

  .topbar__actions {
    gap: 0.85rem;
    font-size: 0.72rem;
  }

  .page-hero {
    padding-block: clamp(3.5rem, 10vw, 5.5rem) clamp(3rem, 8vw, 4.5rem);
  }

  .contact-form-card {
    padding: 1.5rem;
  }

  .map-wrap iframe {
    height: 340px;
  }

  .lightbox__frame img {
    max-height: 64vh;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 560px) {
  :root {
    --gutter: 1.15rem;
    --header-h: 70px;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand__mark {
    width: 44px;
    height: 44px;
    padding: 5px;
  }

  .brand__name {
    font-size: 1.32rem;
  }

  .brand__tag {
    margin-top: 0.25rem;
    max-width: 180px;
    font-size: 0.44rem;
    letter-spacing: 0.1em;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .nav-toggle span:nth-child(1) { top: 14px; }
  .nav-toggle span:nth-child(2) { top: 20px; }
  .nav-toggle span:nth-child(3) { top: 26px; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1),
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 20px;
  }

  .topbar__actions .topbar__hide {
    display: none;
  }

  .topbar__sep {
    display: none;
  }

  .hero {
    padding-block: 3.25rem 5.5rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.4rem);
  }

  .hero__lede {
    font-size: 0.97rem;
  }

  .hero__actions {
    margin-bottom: 1.8rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__pillars {
    gap: 0.4rem;
  }

  .hero__pillars li {
    padding: 0.4rem 0.7rem;
    font-size: 0.58rem;
  }

  .stats {
    margin-top: -2.25rem;
  }

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

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .stat:nth-child(2n) {
    border-right: 0;
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-head h2 {
    max-width: none;
  }

  .partners__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .partners__label {
    max-width: none;
  }

  .partners__list {
    justify-content: flex-start;
    gap: 1.2rem 1.6rem;
  }

  .partners__item img {
    max-height: 42px;
    max-width: 100px;
  }

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

  .gallery__item--wide {
    grid-column: auto;
  }

  .gallery__caption strong {
    font-size: 0.98rem;
  }

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

  .award-card__media img {
    aspect-ratio: 4 / 3;
  }

  .news-item {
    grid-template-columns: 96px 1fr;
    gap: 0.85rem;
  }

  .news-item__media img {
    min-height: 86px;
  }

  .filter-bar {
    gap: 0.4rem;
  }

  .filter-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.6rem;
  }

  .filter-count {
    width: 100%;
    margin: 0.35rem 0 0;
  }

  .timeline::before {
    left: 0;
  }

  .timeline__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
    padding-left: 1.6rem;
    padding-block: 1.25rem;
  }

  .timeline__dot {
    left: -5px;
    top: 1.7rem;
  }

  .timeline__year {
    text-align: left;
  }

  .timeline__content {
    padding-left: 0;
  }

  .footer__cta-actions,
  .cta-band__actions {
    flex-direction: column;
  }

  .footer__cta-actions .btn,
  .cta-band__actions .btn {
    width: 100%;
    flex-basis: auto;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .map-wrap iframe {
    height: 300px;
  }

  .lightbox {
    width: calc(100% - 1rem);
  }

  .lightbox__caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .lightbox__nav {
    width: 38px;
    height: 38px;
  }

  .lightbox__nav--prev {
    left: 0.4rem;
  }

  .lightbox__nav--next {
    right: 0.4rem;
  }

  .lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
    width: 38px;
    height: 38px;
  }

  .modal {
    width: calc(100% - 1rem);
    max-height: 90vh;
  }

  .modal__media img {
    aspect-ratio: 16 / 10;
  }

  .modal__body {
    padding: 1.3rem;
  }

  .contact-item {
    padding: 0.9rem;
  }

  .page-hero h1 {
    font-size: clamp(2.3rem, 9vw, 3.3rem);
  }
}

@media (max-width: 380px) {
  .brand__tag {
    display: none;
  }

  .section-head h2 {
    font-size: 1.85rem;
  }

  .stat__value {
    font-size: 2.2rem;
  }
}

/* ---------- Short landscape screens ---------- */
@media (max-height: 620px) and (max-width: 980px) {
  .nav {
    padding-top: calc(var(--header-h) + 1rem);
  }

  .nav__link {
    padding: 0.55rem 0;
    font-size: 1.25rem;
  }

  .nav__mobile-meta {
    padding-top: 1rem;
  }
}
