/* aisco.dev shared overrides, loaded after the Webflow stylesheet on every page.
   - tighter vertical rhythm
   - horizontal rules and footer never wider than the content column
   - phone fixes
   - small layout helpers (columns) used by the subsites */

html, body { overflow-x: hidden; }

/* Header and sub-page title */
.navbar_logo_center { margin-top: 0; }
.navbar_logo_center_container-copy { padding-top: 12px; padding-bottom: 12px; }
.titel-container { margin-top: 4px; }
.sub-page-heading { padding-bottom: 12px; min-width: min(300px, calc(100vw - 40px)); }

/* Sections */
.logos-quote-divider { padding-top: 32px; padding-bottom: 32px; }
.team-slider-wrapper-2 { margin-top: 24px; }
.team-member-container { margin-top: 16px; margin-bottom: 8px; }
.tm-block { margin-bottom: 12px; }
.clients-divider { margin-top: 12px; margin-bottom: 12px; }
.centered-heading-2 { margin-bottom: 12px; }
.site-heading { padding: 24px 16px 0; }

/* Team intro: two equal columns as wide as the member grid; photo fills the left column. */
.team-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; max-width: 1040px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.team-intro-photo img { display: block; width: 100%; height: auto; }
.team-intro-text .margin-bottom-24px-2 { margin-bottom: 16px; }
@media screen and (max-width: 767px) {
  .team-intro { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Horizontal rules: drawn inside the content column, never full screen width */
.hero-heading-right, .team-slider-2, .logos-quote-divider { border-bottom: 0 !important; position: relative; }
.hero-heading-right::after, .team-slider-2::after, .logos-quote-divider::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(940px, calc(100% - 32px)); border-bottom: 1px solid #fff;
}

/* Footer: 1200px wide, the same width as the header link bar */
.section-14 { border-top: 0; margin: 32px auto 16px; max-width: 1200px; padding: 0 16px; box-sizing: border-box; position: relative; }
.section-14::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; border-top: 2px solid gray; }
.div-block-37 { padding: 16px 0 10px; flex-wrap: wrap; gap: 16px; }
.footer-footer-text { padding: 10px 0; }

/* Column helpers */
.ap-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin: 16px 0; }
.ap-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ap-cols img { width: 100%; height: auto; display: block; }
.ap-cols figure { margin: 0; }
.ap-center { text-align: center; }
.ap-left { text-align: left; }
.ap-btns { display: flex; flex-wrap: wrap; gap: 12px; }

@media screen and (max-width: 991px) {
  .hero-split, .hero-split-2 { margin-bottom: 24px; }
  .hero-wrapper, .hero-wrapper-2 { margin-bottom: -24px; }
  .ap-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 767px) {
  .hero-heading-right, .team-slider-2, .logos-quote-divider { padding: 24px 16px; }
  .clients-info-two { margin-bottom: 24px; }
  .tm-picture-block { margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; }
}
@media screen and (max-width: 600px) {
  .ap-cols, .ap-cols-4 { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 479px) {
  .div-block-37, .div-block-36 { align-items: flex-start; }
}

/* Photo gallery: uniform tiles */
.ap-gallery img { aspect-ratio: 3 / 2; object-fit: cover; }

/* Portrait tile: rightmost column, as tall as two landscape tiles.
   The image is taken out of the flow so it fills the two-row slot without stretching the rows. */
.ap-gallery .ap-tall { grid-column: 4; grid-row: 1 / span 2; align-self: stretch; position: relative; min-height: 100%; }
.ap-gallery .ap-tall img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
@media screen and (max-width: 991px) {
  .ap-gallery .ap-tall { grid-column: 2; grid-row: 1 / span 2; }
}
@media screen and (max-width: 600px) {
  .ap-gallery .ap-tall { grid-column: auto; grid-row: auto; }
  .ap-gallery .ap-tall img { position: static; height: auto; aspect-ratio: 3 / 2; }
}

/* Questrial, served from this site (no request to Google Fonts) */
@font-face { font-family: 'Questrial'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/questrial-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Questrial'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/questrial-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Legal page */
.legal h3 { margin-top: 24px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; margin: 0 0 16px; }

/* Header link bar: same 1200px width as the footer (desktop only; the phone menu is unchanged) */
@media screen and (min-width: 992px) {
  .nav-menu-wrapper-three { min-width: 0; width: min(1200px, calc(100vw - 32px)); padding-left: 0; padding-right: 0; }
  .nav-menu-three-2 { padding-left: 16px; padding-right: 16px; }
  /* outer edges flush with the footer content, gap only towards the centred logo */
  .nav_menu_block { margin-left: 0; margin-right: 0; }
  .nav-menu-three-2 > .nav_menu_block:first-child { margin-right: 110px; justify-content: flex-start; }
  .nav-menu-three-2 > .nav_menu_block:last-child { margin-left: 110px; justify-content: flex-end; }
}
