/* V3 global shell. Every rule stays inside the two Theme Builder HTML roots. */
.stratigia-header-v3,
.stratigia-footer-v3 {
  --sg-ink: #15213b;
  --sg-blue: #4d5eff;
  --sg-lime: #d5f3a9;
  --sg-line: #e0e5f0;
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.stratigia-header-v3 *, .stratigia-header-v3 *::before, .stratigia-header-v3 *::after,
.stratigia-footer-v3 *, .stratigia-footer-v3 *::before, .stratigia-footer-v3 *::after { box-sizing: border-box; }
.stratigia-header-v3 a, .stratigia-footer-v3 a { text-decoration: none; }
.stratigia-header-v3 :is(a, summary, button):focus-visible,
.stratigia-footer-v3 a:focus-visible { outline: 3px solid #90a0ff; outline-offset: 4px; }

/* Pale V3 header, 83 px desktop row, compact tablet/mobile row. */
.stratigia-header-v3 {
  position: relative;
  z-index: 1000;
  width: 100%;
  color: var(--sg-ink);
  background: rgba(247, 248, 252, .97);
  border-bottom: 1px solid rgba(210, 219, 233, .9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.stratigia-header-v3 .sgh-row {
  max-width: 1260px;
  min-height: 83px;
  margin-inline: auto;
  padding-inline: 34px;
  display: flex;
  align-items: center;
  gap: 23px;
}
.stratigia-header-v3 .sgh-brand,
.stratigia-footer-v3 .sgf-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex: none;
}
.stratigia-header-v3 .sgh-brand { margin-right: auto; color: var(--sg-ink); }
.stratigia-header-v3 .sg-brand-logo,
.stratigia-footer-v3 .sg-brand-logo {
  display: block;
  width: 168px;
  height: auto;
  max-height: 58px;
  flex: none;
  object-fit: contain;
}
.stratigia-header-v3 .sgh-navigation { display: flex; align-items: center; gap: 21px; }
.stratigia-header-v3 .sgh-group { position: relative; margin: 0; padding: 0; border: 0; }
.stratigia-header-v3 .sgh-group summary,
.stratigia-header-v3 .sgh-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 2px;
  list-style: none;
  color: #22304e;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}
.stratigia-header-v3 .sgh-group summary::-webkit-details-marker { display: none; }
.stratigia-header-v3 .sgh-group summary::marker { content: ""; }
.stratigia-header-v3 .sgh-group summary:hover,
.stratigia-header-v3 .sgh-direct-link:hover,
.stratigia-header-v3 .sgh-group[open] summary { color: var(--sg-blue); }
.stratigia-header-v3 .sgh-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.stratigia-header-v3 .sgh-group[open] .sgh-chevron { transform: translateY(2px) rotate(225deg); }
.stratigia-header-v3 .sgh-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 43px;
  padding: 11px 16px;
  border-radius: 9px;
  background: var(--sg-blue);
  box-shadow: 0 12px 28px rgba(72, 87, 244, .2);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 790;
  white-space: nowrap;
}
.stratigia-header-v3 .sgh-cta:hover { background: #3b4df4; color: #fff; box-shadow: 0 16px 34px rgba(72, 87, 244, .28); }
.stratigia-header-v3 .sgh-menu-toggle { display: none; }

/* Click- and keyboard-operated desktop menus. */
.stratigia-header-v3 .sgh-panel {
  position: absolute;
  top: calc(100% - 1px);
  left: -22px;
  z-index: 10;
  width: 560px;
  padding: 22px;
  border: 1px solid var(--sg-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(17, 30, 70, .14);
  color: var(--sg-ink);
}
.stratigia-header-v3 .sgh-group:not([open]) > .sgh-panel { display: none; }
.stratigia-header-v3 .sgh-panel-heading {
  margin: 0 0 12px;
  color: #7180a0;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.stratigia-header-v3 .sgh-panel-grid { display: grid; gap: 7px 10px; }
.stratigia-header-v3 .sgh-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stratigia-header-v3 .sgh-capability,
.stratigia-header-v3 .sgh-link-group a,
.stratigia-header-v3 .sgh-panel-small a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 8px;
  color: #253452;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 720;
}
.stratigia-header-v3 .sgh-capability:not(a) { background: #f6f7fb; cursor: default; }
.stratigia-header-v3 a.sgh-capability:hover,
.stratigia-header-v3 .sgh-link-group a:hover,
.stratigia-header-v3 .sgh-panel-small a:hover { background: #f1f3ff; color: var(--sg-blue); }
.stratigia-header-v3 .sgh-capability-link span { color: var(--sg-blue); }
.stratigia-header-v3 .sgh-panel-footer,
.stratigia-header-v3 .sgh-group-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sg-blue);
  font-size: 12px;
  font-weight: 790;
}
.stratigia-header-v3 .sgh-panel-footer { width: 100%; margin-top: 16px; padding: 15px 11px 2px; border-top: 1px solid var(--sg-line); }
.stratigia-header-v3 .sgh-use-cases-panel { width: 620px; }
.stratigia-header-v3 .sgh-use-cases-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
.stratigia-header-v3 .sgh-link-group { min-width: 0; }
.stratigia-header-v3 .sgh-link-group .sgh-group-footer { margin-top: 7px; }
.stratigia-header-v3 .sgh-panel-small { width: 190px; padding: 8px; }
.stratigia-header-v3 .sgh-panel-right { left: auto; right: -18px; }

/* V3 dark footer: brand plus three link columns and a fine divider. */
.stratigia-footer-v3 { width: 100%; background: #111d38; color: #fff; }
.stratigia-footer-v3 .sgf-inner { max-width: 1260px; margin-inline: auto; padding: 65px 34px 28px; }
.stratigia-footer-v3 .sgf-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; padding-bottom: 55px; }
.stratigia-footer-v3 .sgf-brand { padding: 6px 9px; border-radius: 6px; background: #fff; color: var(--sg-ink); }
.stratigia-footer-v3 .sgf-brand-block p { max-width: 350px; margin: 21px 0 0; color: #b7c5df; font-size: 13px; line-height: 1.75; }
.stratigia-footer-v3 .sgf-link-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stratigia-footer-v3 .sgf-link-cols nav { min-width: 0; }
.stratigia-footer-v3 .sgf-link-cols h2 { margin: 0 0 20px; color: #a9b9d7; font-size: 10px; line-height: 1.4; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.stratigia-footer-v3 .sgf-link-cols a { display: block; width: fit-content; margin: 0 0 13px; color: #e0e7f5; font-size: 12px; line-height: 1.5; }
.stratigia-footer-v3 .sgf-link-cols a:hover { color: var(--sg-lime); }
.stratigia-footer-v3 .sgf-bottom { border-top: 1px solid rgba(255, 255, 255, .13); padding-top: 23px; color: #acbbd8; font-size: 10px; line-height: 1.5; }

@media (max-width: 1150px) {
  .stratigia-header-v3 .sgh-row { gap: 17px; padding-inline: 27px; }
  .stratigia-header-v3 .sgh-navigation { gap: 12px; }
  .stratigia-header-v3 .sg-brand-logo { width: 150px; max-height: 50px; }
  .stratigia-header-v3 .sgh-group summary, .stratigia-header-v3 .sgh-direct-link { font-size: 11px; }
  .stratigia-footer-v3 .sgf-inner { padding-inline: 27px; }
}
@media (max-width: 900px) {
  .stratigia-header-v3 .sgh-row { min-height: 69px; gap: 11px; padding-inline: 22px; }
  .stratigia-header-v3 .sgh-cta { min-height: 41px; padding: 10px 13px; border: 1px solid #d8def5; background: #fff; box-shadow: none; color: var(--sg-blue); }
  .stratigia-header-v3 .sgh-cta:hover { background: #f1f3ff; box-shadow: none; color: var(--sg-blue); }
  .stratigia-header-v3 .sgh-menu-toggle {
    display: flex;
    width: 43px;
    height: 43px;
    padding: 10px;
    flex: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid #d7e0ef;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
  }
  .stratigia-header-v3 .sgh-menu-toggle span { display: block; height: 2px; width: 100%; border-radius: 3px; background: #22304e; }
  .stratigia-header-v3 .sgh-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 69px);
    padding: 13px 22px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--sg-line);
    background: #fff;
    box-shadow: 0 19px 40px rgba(18, 29, 65, .12);
  }
  .stratigia-header-v3 .sgh-navigation.is-open { display: block; }
  .stratigia-header-v3 .sgh-group summary,
  .stratigia-header-v3 .sgh-direct-link { display: flex; justify-content: space-between; width: 100%; min-height: 50px; padding: 13px 4px; border-bottom: 1px solid #e7ebf3; font-size: 15px; }
  .stratigia-header-v3 .sgh-panel,
  .stratigia-header-v3 .sgh-use-cases-panel,
  .stratigia-header-v3 .sgh-panel-small,
  .stratigia-header-v3 .sgh-panel-right { position: static; width: 100%; margin: 0 0 8px; padding: 15px; border: 0; border-radius: 0 0 10px 10px; background: #f7f8fc; box-shadow: none; }
  .stratigia-header-v3 .sgh-panel-heading { margin-bottom: 8px; }
  .stratigia-header-v3 .sgh-capability:not(a) { background: #fff; }
  .stratigia-header-v3 .sgh-link-group a, .stratigia-header-v3 .sgh-panel-small a { padding: 11px; }
  .stratigia-header-v3 .sgh-panel-footer { margin-top: 12px; }
  .stratigia-footer-v3 .sgf-top { gap: 36px; }
}
@media (max-width: 700px) {
  .stratigia-header-v3 .sg-brand-logo { width: 142px; max-height: 46px; }
  .stratigia-header-v3 .sgh-services-grid,
  .stratigia-header-v3 .sgh-use-cases-grid { grid-template-columns: 1fr; }
  .stratigia-header-v3 .sgh-use-cases-grid { gap: 20px; }
  .stratigia-footer-v3 .sgf-inner { padding: 48px 22px 25px; }
  .stratigia-footer-v3 .sgf-top { display: block; padding-bottom: 31px; }
  .stratigia-footer-v3 .sgf-link-cols { margin-top: 30px; gap: 12px; }
  .stratigia-footer-v3 .sgf-link-cols h2 { font-size: 9px; }
  .stratigia-footer-v3 .sgf-link-cols a { font-size: 11px; }
}
@media (max-width: 420px) {
  .stratigia-header-v3 .sgh-row { padding-inline: 16px; }
  .stratigia-header-v3 .sgh-brand { gap: 8px; }
  .stratigia-header-v3 .sg-brand-logo { width: 128px; max-height: 42px; }
  .stratigia-header-v3 .sgh-cta { font-size: 11px; padding-inline: 10px; }
  .stratigia-footer-v3 .sgf-link-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .stratigia-header-v3 .sgh-chevron { transition: none; }
}
