/* AVAR Investments -- site stylesheet
   Palette v2 (AvarInv-06): softer blues, light content and footer. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --band: #1A3D63;     /* animated band: deep, soft blue (matches the SVG) */
  --navy: #002540;     /* logo blue: headings */
  --steel: #446386;    /* secondary text (meets 4.5:1 on every background) */
  --mist: #A8BFDC;     /* lines and hovers */
  --sky: #E6EEF7;      /* soft blue sections */
  --foot: #DCE6F1;     /* footer */
  --cota: #E2571F;     /* dimension-line orange: lines, arrows, large numbers */
  --cota-text: #B8431A; /* same orange, deep enough for small text */
  --rust: #8B2E2E;     /* call-to-action text */
  --paper: #F7F9FC;    /* page background */
  --white: #FFFFFF;
  --text: #22303F;
  --line: #D3DDE9;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  --wrap: 1320px;
  --band-h: 290px;     /* about three inches on a desktop screen */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

:focus-visible { outline: 3px solid var(--cota); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: .6rem 1rem; z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}

/* ---------- header bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.bar.scrolled { box-shadow: 0 6px 18px -10px rgba(0, 37, 64, .35); }
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 84px;
}
.brand { flex: 0 0 auto; }
.brand img { height: 50px; width: auto; }

.tabs { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); margin-left: auto; }
.lang-switch {
  flex: 0 0 auto;
  padding: .3rem .65rem;
  border: 1px solid var(--line);
  color: var(--steel);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.lang-switch:hover { color: var(--navy); border-color: var(--navy); }
.tabs a {
  position: relative;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  padding: 1.9rem 0 1.7rem;
  white-space: nowrap;
}
.tabs a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: transparent;
}
.tabs a:hover::after { background: var(--mist); }
.tabs a[aria-current="page"]::after { background: var(--cota); }

/* ---------- animated band ---------- */

.band {
  display: flex;
  height: var(--band-h);
  background: var(--band);
  overflow: hidden;
}
.band-art { flex: 1 1 auto; min-width: 0; height: 100%; }
.band-art svg {
  display: block;
  width: 100%;
  height: 100%;
}
.band-slogan {
  flex: 0 0 auto;
  display: flex;
  padding: 14px clamp(44px, 5vw, 84px) 14px 6px;
  background: var(--band);
}
/* Vertical slogan, read top to bottom. The first phrase starts at the top,
   the second ends at the bottom, so "We Find The Gap." sits above "We Close It." */
.slogan {
  margin: 0;
  writing-mode: vertical-rl;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  color: var(--white);
  font-weight: 900;
  font-stretch: 62%;
  font-size: 40px;
  line-height: .95;
  letter-spacing: .01em;
  white-space: nowrap;
}
.slogan span:first-child { align-self: flex-start; }
.slogan span:last-child { align-self: flex-end; }

/* ---------- sections ---------- */

main { display: block; }
.section { padding: clamp(2.8rem, 5.6vw, 4.8rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--sky); border-top: 0; }
.section.tint + .section { border-top: 0; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
}

.section-title {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  font-stretch: 85%;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.body-col > p { margin: 0 0 1.15em; }
.stub .body-col p, .legal .body-col { max-width: 44rem; }
.stub p { color: var(--steel); }

/* intro: title and pull quote on the left, text on the right */

.intro { row-gap: 0; }
.intro > * { grid-column: 2; }
.intro > p { margin: 0 0 1.15em; max-width: 46rem; }
.intro > .section-title { grid-column: 1; grid-row: 1; }
.intro > .pull {
  grid-column: 1;
  grid-row: 2 / span 5;
  align-self: start;
  position: sticky;
  top: 116px;
}

.lead {
  color: var(--navy);
  font-weight: 650;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  margin-bottom: 1.4em !important;
}

.pull {
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 1.8rem 1.8rem 1.8rem 1.4rem;
  background: var(--sky);
}
.pull .cota-v { flex: 0 0 14px; width: 14px; }
.pull p {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.28;
}

/* CEO message */

.ceo .grid { align-items: center; }
.ceo-photo {
  margin: 0;
  justify-self: start;
  width: 100%;
  max-width: 320px;
  background: var(--white);
  padding: 8px;
  box-shadow: 0 24px 50px -30px rgba(0, 37, 64, .55);
}
.ceo-photo img { width: 100%; }
.ceo-message {
  margin: 1.4rem 0 1.6rem;
  padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--cota);
  max-width: 44rem;
}
.ceo-message p {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.55;
}
.ceo-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--cota);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.ceo-link:hover { color: var(--cota); }
#qceler { scroll-margin-top: 84px; }
.ceo-sign { margin: 0; padding-left: 1.4rem; }
.ceo-sign strong { display: block; color: var(--navy); font-size: 1.15rem; }
.ceo-sign span { display: block; color: var(--steel); font-size: .95rem; }

/* services: the two groups side by side */

.groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.group-title {
  margin: 0 0 .6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}
.group-title a { text-decoration: none; border-bottom: 1px solid var(--mist); }
.group-title a:hover { border-bottom-color: var(--cota); }

.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }

.svc-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: baseline;
  gap: .2rem 1rem;
  padding: 1.1rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--navy);
}
.svc-num { font-weight: 700; color: var(--cota-text); font-variant-numeric: tabular-nums; }
.svc-name { font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.svc-more {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--steel);
}
.svc-more .plus { position: relative; width: 12px; height: 12px; }
.svc-more .plus::before,
.svc-more .plus::after {
  content: "";
  position: absolute; background: var(--cota);
  left: 0; top: 5px; width: 12px; height: 2px;
  transition: transform .2s ease;
}
.svc-more .plus::after { transform: rotate(90deg); }
.svc-toggle[aria-expanded="true"] .plus::after { transform: rotate(0deg); }
.svc-toggle:hover .svc-name { text-decoration: underline; text-decoration-color: var(--mist); text-underline-offset: 4px; }

.svc-body { padding: 0 0 1.4rem 3.6rem; }
.svc-body p { margin: 0; }
.svc-body .svc-link { margin-top: .7rem; }
.svc-body .svc-link a { font-weight: 600; text-decoration-color: var(--cota); text-underline-offset: 4px; }
.svc-body:not([hidden]) { animation: reveal .25s ease; }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }

/* QCELER: text beside the diffused dashboard */

.engine {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.engine-text p { margin: 0 0 1em; }
.engine-text p:last-child { margin: 0; color: var(--navy); font-weight: 650; font-size: 1.15rem; line-height: 1.4; }
.engine-name {
  margin: 0 0 1rem;
  color: var(--navy);
  font-weight: 900;
  font-stretch: 70%;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: .01em;
}
.engine-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 24px 50px -28px rgba(0, 37, 64, .55);
}
.engine-shot img { width: 100%; opacity: .9; }
.engine-shot::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(230, 238, 247, .55) 0%, rgba(230, 238, 247, 0) 30%),
    linear-gradient(0deg, rgba(230, 238, 247, .85) 0%, rgba(230, 238, 247, 0) 40%);
}

/* closing call */

.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.closing p {
  margin: 0;
  color: var(--rust);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
}
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: .95rem 1.8rem;
  border: 2px solid var(--navy);
}
.btn:hover { background: var(--band); border-color: var(--band); }

/* legal pages */

.legal h2 { color: var(--navy); font-size: 1.2rem; margin: 2.2rem 0 .5rem; }
.legal .effective { color: var(--steel); }

/* ---------- service pages ---------- */

.page-intro { padding-bottom: clamp(1.6rem, 3.2vw, 2.4rem); }
.page-intro .grid { align-items: end; }
.jump { display: flex; flex-wrap: wrap; gap: .6rem; }
.jump a {
  display: inline-flex;
  gap: .5rem;
  align-items: baseline;
  padding: .55rem .95rem;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
}
.jump a span { color: var(--cota-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.jump a:hover { border-color: var(--navy); }

.service {
  padding: clamp(2.8rem, 5.6vw, 4.4rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.service.tint { background: var(--sky); border-top: 0; }
.service-head {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.9rem;
  border-bottom: 2px solid var(--navy);
}
.service-num {
  color: var(--cota);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-variant-numeric: tabular-nums;
}
.service-title {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  font-stretch: 85%;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.layer1 {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.l1-headline {
  margin: 0 0 1rem;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}
.l1-quote {
  margin: 0 0 1.4rem;
  color: var(--steel);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
}
.service .pull { background: var(--white); }
.service:not(.tint) .pull { background: var(--sky); }
.l1-body { margin: 0 0 1rem; font-size: 1.12rem; }
.l1-cta {
  margin: 1.4rem 0 1.2rem;
  color: var(--rust);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.3;
}
.more-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.more-toggle .svc-more-label { font-size: .9rem; font-weight: 600; color: var(--steel); }
.more-toggle:hover .svc-more-label { color: var(--navy); }
.more-toggle .plus { position: relative; width: 12px; height: 12px; }
.more-toggle .plus::before,
.more-toggle .plus::after {
  content: "";
  position: absolute; background: var(--cota);
  left: 0; top: 5px; width: 12px; height: 2px;
  transition: transform .2s ease;
}
.more-toggle .plus::after { transform: rotate(90deg); }
.more-toggle[aria-expanded="true"] .plus::after { transform: rotate(0deg); }
.more-body { color: var(--text); }
.more-body p { margin: 0 0 .6rem; }
.more-body:not([hidden]) { animation: reveal .25s ease; }

.layer2 { margin-top: clamp(2rem, 4vw, 2.8rem); }
.layer2.has-art {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: start;
}
.has-art .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card.people-card {
  background: var(--navy);
  border-color: var(--navy);
  border-top-color: var(--cota);
  color: #E3EBF4;
  padding: 1.5rem 1.6rem;
}
.card.people-card p { margin: 0; font-size: 1.05rem; }
.people-title {
  margin: 0 0 .6rem;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}
.people-card.s3-2 { grid-column: span 2; }
.people-card.s3-3 { grid-column: 1 / -1; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 1.3rem 1.4rem 1rem;
}
.card-lead {
  margin: 0 0 .45rem;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}
.card > p { margin: 0 0 .5rem; }
.service-art {
  margin: 0;
  position: sticky;
  top: 110px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 24px 50px -28px rgba(0, 37, 64, .55);
}
.service-art img { width: 100%; opacity: .92; }
.service-note {
  margin: 2rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--mist);
  max-width: 60rem;
}
.service-note p { margin: 0; color: var(--steel); font-size: .95rem; }
.btn-small {
  display: inline-block;
  margin-top: .8rem;
  padding: .45rem .9rem;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.btn-small:hover { background: var(--navy); color: var(--white); }
.card { scroll-margin-top: 110px; }
.service-closing {
  margin: 2rem 0 0;
  color: var(--rust);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

/* ---------- resources page ---------- */

.res-intro { margin: 1rem 0 0; color: var(--steel); max-width: 22rem; }
.res-group { margin-bottom: 1rem; }
.docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}
.doc {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 1.1rem;
}
.doc-thumb { width: 130px; border: 1px solid var(--line); box-shadow: 0 10px 22px -16px rgba(0, 37, 64, .6); }
.doc-lang { margin: 0 0 .2rem; color: var(--cota-text); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.doc h3 { margin: 0 0 .45rem; color: var(--navy); font-size: 1.1rem; line-height: 1.25; }
.doc-body > p { margin: 0 0 .5rem; font-size: .95rem; }
.doc-meta { color: var(--steel); font-size: .85rem !important; }
.doc-btn { padding: .6rem 1.1rem; font-size: .92rem; }
.doc-note { color: var(--steel); font-size: .85rem !important; margin-top: .6rem !important; }

/* ---------- contact page ---------- */

.contact .grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.contact-lead {
  margin: 1.2rem 0 1.2rem;
  color: var(--rust);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.25;
}
.contact-intro > p { margin: 0 0 1rem; }
.contact-note {
  padding: .9rem 1rem;
  background: var(--sky);
  border-left: 3px solid var(--mist);
  color: var(--steel);
  font-size: .95rem;
}
.contact-direct { margin: 1.6rem 0 0; }
.contact-direct div + div { margin-top: .5rem; }
.contact-direct dt { display: inline-block; min-width: 4.5rem; color: var(--steel); }
.contact-direct dd { display: inline; margin: 0; }
.contact-direct div { display: flex; gap: 0; }
.contact-direct dt { flex: 0 0 4.5rem; }
.contact-direct a { font-weight: 600; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
}
.field { margin: 0 0 1.1rem; min-width: 0; }
.field label, .field legend {
  display: block;
  margin-bottom: .35rem;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
}
.req { color: var(--cota-text); }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field select,
.field textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid #B9C7D8;
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 0;
  border-color: var(--navy);
}
fieldset.choice { border: 0; padding: 0; }
fieldset.choice label {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin: 0 0 .35rem;
  font-weight: 400;
  color: var(--text);
}
fieldset.choice input, .consent input { accent-color: var(--navy); width: 1.05rem; height: 1.05rem; }
.consent {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin: .4rem 0 1.4rem;
  font-size: .95rem;
}
.consent input { margin-top: .2rem; flex: 0 0 auto; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B8431A; background: #FDF4F0; }
.field.invalid label, .field.invalid legend, .consent.invalid { color: #B8431A; }
.form-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-actions .btn { cursor: pointer; font: inherit; font-weight: 700; }
.form-actions .btn:disabled { opacity: .6; cursor: default; }
.form-hint { color: var(--steel); font-size: .9rem; }
.form-status { margin: 0 0 1.3rem; padding: .9rem 1rem; font-weight: 600; }
.form-status.ok { background: #E7F3EC; border-left: 4px solid #2E7D4F; color: #1D5536; }
.form-status.bad { background: #FDF0EA; border-left: 4px solid #B8431A; color: #8A3212; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- the cota: vertical dimension line ---------- */

.cota-v {
  position: relative;
  display: block;
  border-top: 2px solid var(--cota);
  border-bottom: 2px solid var(--cota);
}
.cota-v span {
  position: absolute;
  left: 50%; top: 3px; bottom: 3px;
  width: 2px; margin-left: -1px;
  background: var(--cota);
}
.cota-v span::before,
.cota-v span::after {
  content: "";
  position: absolute;
  left: 50%;
  margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.cota-v span::before { top: 0; border-bottom: 8px solid var(--cota); }
.cota-v span::after { bottom: 0; border-top: 8px solid var(--cota); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--foot);
  color: var(--text);
  padding: 3.5rem 0 1.5rem;
  border-top: 3px solid var(--band);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
}
.foot-brand { align-self: start; }
.foot-brand img {
  width: 280px;
  mix-blend-mode: multiply;   /* the logo file has a white background */
}
.foot-slogan {
  width: 280px;
  margin: .9rem 0 0;
  text-align: center;
  color: var(--navy);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 24px;
  line-height: 1.1;
  white-space: nowrap;
}
.foot-h { margin: 0 0 .8rem; color: var(--steel); font-size: .95rem; font-weight: 600; }
.foot-menu { list-style: none; margin: 0; padding: 0; }
.foot-menu li + li { margin-top: .45rem; }
.site-footer a { color: var(--navy); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--cota); text-underline-offset: 4px; }
.foot-contact { margin: 0; }
.foot-contact div + div { margin-top: .55rem; }
.foot-contact dt { display: inline; color: var(--steel); }
.foot-contact dd { display: inline; margin: 0 0 0 .35rem; }
.foot-contact .addr dt { display: block; }
.foot-contact .addr dd { display: block; margin: .1rem 0 0; max-width: 17rem; line-height: 1.45; }
.pending { color: #B8431A; border-bottom: 1px dashed #B8431A; }
.foot-base {
  margin-top: 3rem;
  padding-top: 1.3rem;
  border-top: 1px solid #C2D0E0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem 2rem;
  font-size: .9rem;
  color: var(--steel);
}
.foot-base p { margin: 0; }
.foot-base nav { display: flex; gap: 1.5rem; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
    .groups { grid-template-columns: 1fr; }
}

/* Medium screens (tablets): two lines, logo and language on top, tabs below */
@media (max-width: 1100px) {
  .bar .wrap { position: relative; flex-direction: column; align-items: flex-start; gap: .15rem; padding-top: .6rem; min-height: 0; }
  .brand img { height: 40px; }
  .lang-switch { position: absolute; top: .8rem; right: clamp(1.25rem, 4vw, 3.5rem); }
  .tabs {
    margin-left: 0;
    width: 100%;
    flex-wrap: nowrap;
    gap: 0 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { padding: .55rem 0 .5rem; }
  /* fade only when the tabs really overflow (class set by site.js) */
  .tabs.overflowing {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    padding-right: 2rem;
  }
}

@media (max-width: 760px) {
  .tabs { gap: 0 1.3rem; }
}

@media (max-width: 1100px) {
  .docs { grid-template-columns: 1fr; }
  .cards, .has-art .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-card.s3-2, .people-card.s3-3 { grid-column: auto; }
  .people-card.s2-2 { grid-column: 1 / -1; }
  .layer2.has-art { grid-template-columns: 1fr; }
  .service-art { position: static; max-width: 420px; }
}

@media (max-width: 960px) {
  .layer1 { grid-template-columns: 1fr; }
  .contact .grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro { row-gap: 0; }
  .intro > *, .intro > .section-title { grid-column: 1; grid-row: auto; }
  .intro > .section-title { margin-bottom: 1.5rem; }
  .intro > .pull { grid-column: 1; grid-row: auto; position: static; margin: .6rem 0 1.8rem; }
  .ceo-photo { max-width: 240px; }
  .engine { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --band-h: 240px; }
  .brand img { height: 34px; }
  .tabs a { font-size: .92rem; }
  .band-slogan { padding: 10px 22px 10px 4px; }
  .slogan { font-size: 30px; }
  .svc-body { padding-left: 3.6rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .row.two { grid-template-columns: 1fr; }
  .cards, .has-art .cards { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .people-card.s2-2 { grid-column: auto; }
  .service { scroll-margin-top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
