/*
Theme Name: HC Assurance
Theme URI: https://hoernig-consulting.de/
Description: Individuelles GeneratePress-Child-Theme für Hoernig Consulting GmbH.
Author: Hoernig Consulting GmbH
Template: generatepress
Version: 1.3.0
Text Domain: hc-assurance
*/

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --hc-navy: #071a2f;
  --hc-navy-2: #0a2c4b;
  --hc-blue: #126a9a;
  --hc-blue-dark: #0d4f76;
  --hc-cyan: #56c5d8;
  --hc-cyan-soft: #e3f7fa;
  --hc-white: #ffffff;
  --hc-ice: #f3f8fa;
  --hc-line: #dce7ec;
  --hc-text: #10253b;
  --hc-muted: #5c7185;
  --hc-green: #237d62;
  --hc-orange: #d98931;
  --hc-shadow-sm: 0 16px 38px rgba(7, 26, 47, 0.08);
  --hc-shadow-lg: 0 30px 85px rgba(7, 26, 47, 0.17);
  --hc-radius: 24px;
  --hc-max: 1240px;
}

/* --------------------------------------------------------------------------
   Global / GeneratePress overrides
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  color: var(--hc-text);
  background: var(--hc-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI Variable", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #fff;
  background: var(--hc-blue);
}

a {
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site.grid-container,
.site-content.grid-container,
#page,
#primary,
.content-area,
.site-main,
.inside-article,
.entry-content {
  max-width: none;
  width: 100%;
}

.site-content {
  padding: 0;
}

.content-area {
  float: none;
}

.site-main {
  margin: 0;
}

.inside-article {
  padding: 0;
}

.page .entry-header,
.home .entry-header,
.page .entry-footer {
  display: none;
}

.entry-content {
  margin: 0;
}

.widget-area {
  display: none;
}

.grid-container {
  max-width: var(--hc-max);
}

.hc-wrap {
  width: min(calc(100% - 2rem), var(--hc-max));
  margin-inline: auto;
}

.hc-narrow {
  width: min(calc(100% - 2rem), 880px);
  margin-inline: auto;
}

.hc-section {
  padding: 7rem 0;
}

.hc-section--ice {
  background: var(--hc-ice);
}

.hc-section--dark {
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(86, 197, 216, 0.20), transparent 28%),
    linear-gradient(135deg, var(--hc-navy), var(--hc-navy-2));
}

.hc-section--dark p {
  color: rgba(255,255,255,.78);
}

.hc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1rem;
  color: var(--hc-blue);
  font-size: .79rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hc-eyebrow::before {
  width: 27px;
  height: 2px;
  content: "";
  background: var(--hc-cyan);
}

.hc-section--dark .hc-eyebrow,
.hc-hero .hc-eyebrow {
  color: #b7edf4;
}

.hc-display,
.hc-section-title,
.hc-card h3,
.hc-page-hero h1 {
  line-height: 1.08;
  letter-spacing: -.045em;
}

.hc-display {
  max-width: 940px;
  margin: 0 0 1.4rem;
  font-size: clamp(3.1rem, 5.2vw, 5.7rem);
  font-weight: 820;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.hc-section-title {
  max-width: 900px;
  margin: 0 0 1.25rem;
  font-size: clamp(2.3rem, 4.5vw, 4.35rem);
  font-weight: 790;
}

.hc-page-hero h1 {
  max-width: 970px;
  margin: 0 0 1.2rem;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.hc-lead {
  max-width: 800px;
  margin: 0;
  color: var(--hc-muted);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.hc-section--dark .hc-lead,
.hc-hero .hc-lead,
.hc-page-hero .hc-lead {
  color: #c2d6e1;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid rgba(220, 231, 236, .75);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}

.inside-header {
  min-height: 82px;
  max-width: var(--hc-max);
  padding: 12px 1rem;
}

.site-logo img {
  width: auto;
  max-height: 58px;
}

.site-branding .main-title a {
  color: var(--hc-navy);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -.02em;
}

.site-description {
  margin-top: .2rem;
  color: var(--hc-muted);
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.main-navigation,
.main-navigation ul ul {
  background: #fff;
}

.main-navigation .main-nav ul li a {
  color: var(--hc-text);
  font-size: .91rem;
  font-weight: 730;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--hc-blue);
  background: transparent;
}

.main-navigation .main-nav ul ul {
  min-width: 260px;
  border: 1px solid var(--hc-line);
  border-radius: 14px;
  box-shadow: var(--hc-shadow-sm);
  overflow: hidden;
}

.main-navigation .main-nav ul ul li a {
  padding: 13px 18px;
  font-size: .88rem;
}

.menu-toggle {
  color: var(--hc-navy);
  background: #fff;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.hc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.hc-button,
.wp-block-button__link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .82rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #fff !important;
  background: var(--hc-blue);
  box-shadow: none;
  font-size: 1rem;
  font-weight: 820;
  text-decoration: none;
}

.hc-button:hover,
.wp-block-button__link:hover {
  color: #fff !important;
  background: var(--hc-blue-dark);
  box-shadow: 0 14px 32px rgba(18, 106, 154, .22);
  transform: translateY(-2px);
}

.hc-button--light,
.is-style-outline .wp-block-button__link {
  border-color: rgba(255,255,255,.26);
  color: #fff !important;
  background: transparent;
}

.hc-button--light:hover,
.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,.09);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hc-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(86, 197, 216, .22), transparent 25%),
    radial-gradient(circle at 10% 88%, rgba(18, 106, 154, .33), transparent 30%),
    linear-gradient(128deg, #06172a 0%, #092b4a 58%, #0c3a59 100%);
}

.hc-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: linear-gradient(to right, rgba(0,0,0,.06), rgba(0,0,0,.9));
}

.hc-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .55fr);
  align-items: center;
  gap: 4rem;
  padding: 6.5rem 0;
}

.hc-highlight {
  display: inline-block;
  color: var(--hc-cyan);
  white-space: nowrap;
}

.hc-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}

.hc-proof span {
  padding: .42rem .68rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #bfd2df;
  background: rgba(255,255,255,.04);
  font-size: .8rem;
  font-weight: 720;
}

.hc-profile-panel {
  position: relative;
  padding: 1.1rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px;
  background: rgba(255,255,255,.07);
  box-shadow: var(--hc-shadow-lg);
  backdrop-filter: blur(16px);
}

.hc-profile-panel__visual {
  min-height: 250px;
  display: grid;
  align-content: end;
  padding: 1.6rem;
  border-radius: 21px;
  background:
    radial-gradient(circle at 70% 25%, rgba(86,197,216,.35), transparent 22%),
    linear-gradient(145deg, #104e75, #071a2f);
}

.hc-profile-panel__visual strong {
  font-size: 1.45rem;
}

.hc-profile-panel__visual span {
  color: #b8d4e0;
  font-size: .86rem;
}

.hc-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: .7rem;
}

.hc-metric {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.075);
}

.hc-metric strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.hc-metric span {
  color: #a9c2d2;
  font-size: .74rem;
}

.hc-seal {
  position: absolute;
  right: -22px;
  bottom: 42px;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: var(--hc-navy);
  background: var(--hc-cyan);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  font-size: .66rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(8deg);
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.hc-trust {
  overflow: hidden;
  border-bottom: 1px solid var(--hc-line);
  background: #fff;
}

.hc-trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem;
  padding: 1.15rem 0;
}

.hc-chip {
  padding: .48rem .78rem;
  border: 1px solid var(--hc-line);
  border-radius: 999px;
  color: #415a70;
  background: #fbfdfe;
  font-size: .77rem;
  font-weight: 810;
}

/* --------------------------------------------------------------------------
   Cards / layouts
   -------------------------------------------------------------------------- */
.hc-section-head {
  display: grid;
  grid-template-columns: 1fr minmax(300px, .55fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 3rem;
}

.hc-section-head > * {
  margin-bottom: 0;
}

.hc-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.hc-card {
  position: relative;
  min-height: 100%;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  background: #fff;
  box-shadow: var(--hc-shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hc-card:hover {
  border-color: #b7d2de;
  box-shadow: 0 24px 55px rgba(7,26,47,.12);
  transform: translateY(-4px);
}

.hc-card--dark {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(circle at 88% 12%, rgba(86,197,216,.2), transparent 25%),
    linear-gradient(145deg, var(--hc-navy), var(--hc-navy-2));
}

.hc-card p {
  color: var(--hc-muted);
}

.hc-card--dark p {
  color: #bed0dc;
}

.hc-card__number {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 2rem;
  border-radius: 14px;
  color: var(--hc-blue);
  background: var(--hc-cyan-soft);
  font-size: .78rem;
  font-weight: 900;
}

.hc-card--dark .hc-card__number {
  color: #d5f6fa;
  background: rgba(255,255,255,.11);
}

.hc-card ul {
  display: grid;
  gap: .45rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.hc-card li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--hc-muted);
  font-size: .92rem;
}

.hc-card--dark li {
  color: #c4d4de;
}

.hc-card li::before {
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--hc-cyan);
}

.hc-card__link {
  display: inline-flex;
  margin-top: 1.5rem;
  color: var(--hc-blue);
  font-weight: 810;
  text-decoration: none;
}

.hc-card--dark .hc-card__link {
  color: #aeeaf2;
}

/* --------------------------------------------------------------------------
   Assurance statement / quote
   -------------------------------------------------------------------------- */
.hc-statement {
  display: grid;
  grid-template-columns: minmax(230px, .55fr) 1.45fr;
  gap: 4rem;
  align-items: start;
}

.hc-statement__quote {
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 4.5vw, 4.7rem);
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -.05em;
}

.hc-statement__quote em {
  color: var(--hc-cyan);
  font-style: normal;
}

.hc-triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
}

.hc-triad__item {
  padding: 1.4rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}

.hc-triad__item span {
  display: block;
  margin-bottom: .7rem;
  color: var(--hc-cyan);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hc-triad__item strong {
  display: block;
  font-size: 1.08rem;
}

/* --------------------------------------------------------------------------
   Page hero
   -------------------------------------------------------------------------- */
.hc-page-hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(86,197,216,.19), transparent 26%),
    linear-gradient(135deg, var(--hc-navy), #0b3858);
}

.hc-page-hero::after {
  position: absolute;
  right: -130px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(86,197,216,.22);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 70px rgba(86,197,216,.035),
    0 0 0 140px rgba(86,197,216,.02);
}

.hc-page-hero .hc-wrap {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Content sections
   -------------------------------------------------------------------------- */
.hc-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .55fr);
  gap: 4rem;
  align-items: start;
}

.hc-prose h2 {
  margin: 2.4rem 0 1rem;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  letter-spacing: -.035em;
}

.hc-prose h3 {
  margin: 1.8rem 0 .7rem;
  font-size: 1.35rem;
}

.hc-prose p,
.hc-prose li {
  color: var(--hc-muted);
}

.hc-prose ul {
  padding-left: 1.3rem;
}

.hc-sidebox {
  position: sticky;
  top: 120px;
  padding: 1.6rem;
  border: 1px solid var(--hc-line);
  border-radius: 20px;
  background: var(--hc-ice);
}

.hc-sidebox h3 {
  margin-bottom: .8rem;
}

.hc-sidebox p {
  color: var(--hc-muted);
  font-size: .92rem;
}

.hc-checklist {
  display: grid;
  gap: .7rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.hc-checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--hc-muted);
}

.hc-checklist li::before {
  position: absolute;
  left: 0;
  top: .12rem;
  color: var(--hc-green);
  content: "✓";
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.hc-cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
  padding: clamp(2.4rem, 5vw, 4.5rem);
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, #0a2845, #0d5c84);
  box-shadow: var(--hc-shadow-lg);
}

.hc-cta::after {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(86,197,216,.28);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 60px rgba(86,197,216,.035),
    0 0 0 120px rgba(86,197,216,.02);
}

.hc-cta > * {
  position: relative;
  z-index: 1;
}

.hc-cta h2 {
  margin-bottom: .8rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.hc-cta p {
  max-width: 730px;
  margin-bottom: 0;
  color: #c2d6e1;
}

.hc-cta__actions {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  color: #c5d3dc;
  background: #061524;
}

.footer-widgets {
  background: #061524;
}

.inside-site-info {
  min-height: 82px;
  max-width: var(--hc-max);
  padding: 1.5rem 1rem;
  color: #8fa5b5;
  background: #061524;
  font-size: .82rem;
}

.site-info {
  background: #061524;
}

.site-info a {
  color: #b8cedb;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1250px) {
  .hc-display {
    font-size: clamp(3rem, 5vw, 5.15rem);
  }

  .hc-hero__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .58fr);
    gap: 2.8rem;
  }
}

@media (max-width: 1120px) {
  .hc-display {
    max-width: 850px;
    font-size: clamp(3rem, 6.8vw, 5rem);
  }
}

@media (max-width: 1050px) {
  .hc-hero__inner,
  .hc-section-head,
  .hc-statement,
  .hc-content-grid {
    grid-template-columns: 1fr;
  }

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

  .hc-triad,
  .hc-grid--3 {
    grid-template-columns: 1fr;
  }

  .hc-sidebox {
    position: static;
  }

  .hc-cta {
    grid-template-columns: 1fr;
  }

  .hc-cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {

  .hc-display {
    font-size: clamp(2.75rem, 12vw, 4.2rem);
    text-wrap: pretty;
  }

  body {
    font-size: 16px;
  }

  .hc-section {
    padding: 4.7rem 0;
  }

  .hc-hero {
    min-height: auto;
  }

  .hc-hero__inner {
    padding: 4.8rem 0;
  }

  .hc-grid--4,
  .hc-grid--2 {
    grid-template-columns: 1fr;
  }

  .hc-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .hc-seal {
    display: none;
  }

  .hc-page-hero {
    padding: 5rem 0 3.7rem;
  }

  .hc-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* --------------------------------------------------------------------------
   Local HC branding and photography - v1.2
   -------------------------------------------------------------------------- */
.site-header .site-logo {
  flex: 0 0 auto;
  margin-right: .75rem;
}

.site-header .site-logo img,
.mobile-header-navigation .site-logo img {
  width: 58px;
  max-height: 58px;
  object-fit: contain;
}

.site-header .site-branding {
  display: block;
}

.hc-profile-panel__visual {
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(7,26,47,.02) 25%, rgba(7,26,47,.92) 92%),
    url("assets/img/ralf-hero.jpg") center 24% / cover no-repeat;
}

.hc-profile-panel__visual strong,
.hc-profile-panel__visual span {
  text-shadow: 0 2px 12px rgba(0,0,0,.48);
}

.hc-side-photo {
  margin: 0 0 1.25rem;
}

.hc-side-photo img {
  width: 100%;
  display: block;
  border-radius: 15px;
  box-shadow: var(--hc-shadow-sm);
}

.hc-page-kontakt .hc-page-hero {
  background:
    linear-gradient(90deg, rgba(7,26,47,.98) 0%, rgba(7,26,47,.93) 42%, rgba(7,26,47,.42) 72%, rgba(7,26,47,.28) 100%),
    url("assets/img/ralf-contact.jpg") 72% 34% / cover no-repeat;
}

.hc-page-kontakt .hc-page-hero .hc-lead {
  max-width: 660px;
}

.hc-page-ralf-hoernig .hc-page-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(86,197,216,.16), transparent 26%),
    linear-gradient(135deg, var(--hc-navy), #0b3858);
}

.hc-page-insights .hc-sidebox {
  background: #fff;
}

.hc-footer-branding {
  padding: 3.5rem 0 1.2rem;
  color: #c5d3dc;
  background: #061524;
}

.hc-footer-branding__inner {
  width: min(calc(100% - 2rem), var(--hc-max));
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 2rem;
  margin-inline: auto;
}

.hc-footer-branding img {
  width: 150px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,.25);
}

.hc-footer-branding strong {
  display: block;
  margin-bottom: .35rem;
  color: #fff;
  font-size: 1.25rem;
}

.hc-footer-branding p {
  max-width: 680px;
  margin: 0;
  color: #91a9ba;
}

@media (max-width: 700px) {
  .site-header .site-logo img,
  .mobile-header-navigation .site-logo img {
    width: 48px;
    max-height: 48px;
  }

  .hc-profile-panel__visual {
    min-height: 430px;
    background-position: center 20%;
  }

  .hc-page-kontakt .hc-page-hero {
    background:
      linear-gradient(90deg, rgba(7,26,47,.97), rgba(7,26,47,.76)),
      url("assets/img/ralf-contact.jpg") 60% 32% / cover no-repeat;
  }

  .hc-footer-branding__inner {
    grid-template-columns: 1fr;
  }

  .hc-footer-branding img {
    width: 125px;
  }
}


/* --------------------------------------------------------------------------
   Navigation layering fix - v1.3
   Keeps desktop submenus above the following hero/content sections.
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 10000;
  overflow: visible;
}

.inside-header,
.main-navigation,
.main-navigation .inside-navigation,
.main-navigation .main-nav,
.main-navigation .main-nav > ul,
.main-navigation .main-nav > ul > li {
  overflow: visible;
}

.main-navigation {
  position: relative;
  z-index: 10010;
}

.main-navigation .main-nav ul ul {
  z-index: 10020;
  max-height: calc(100vh - 110px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#page,
.site-content,
.hc-hero,
.hc-page-hero {
  position: relative;
  z-index: 1;
}

@media (max-width: 1050px) {
  .main-navigation .main-nav ul ul {
    max-height: none;
    overflow: visible;
  }
}
