:root {
  --fritech-graphite: #20272d;
  --fritech-graphite-2: #11171c;
  --fritech-orange: #d56a25;
  --fritech-orange-dark: #b95316;
  --fritech-steel: #5d6770;
  --fritech-mist: #f3f5f6;
  --fritech-line: #dfe4e7;
  --fritech-white: #ffffff;
  --fritech-shadow: 0 18px 45px rgba(17, 23, 28, 0.10);
  --fritech-radius: 4px;
  --fritech-shell: 1240px;
}

html { scroll-behavior: smooth; }
body.fritech-visual-system {
  background: var(--fritech-mist);
  color: var(--fritech-graphite);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.fritech-shell {
  width: min(calc(100% - 40px), var(--fritech-shell));
  margin-inline: auto;
}

/* Top utility bar */
.fritech-topbar {
  position: relative;
  z-index: 1002;
  background: var(--fritech-graphite-2);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .015em;
}
.fritech-topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.fritech-topbar__claim,
.fritech-topbar__contact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fritech-topbar__claim > span {
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--fritech-orange);
}
.fritech-topbar a {
  color: var(--fritech-white);
  text-decoration: none;
}
.fritech-topbar a:hover { color: #ffaf73; }
.fritech-topbar__sep { opacity: .45; }

/* Kadence header */
#masthead,
.site-header-wrap,
.site-header {
  background: rgba(255,255,255,.985) !important;
}
#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(32,39,45,.12);
  backdrop-filter: blur(12px);
}
body.admin-bar #masthead { top: 32px; }
.site-main-header-wrap .site-header-row-container-inner,
.site-header-row-container-inner {
  min-height: 82px;
}
.site-branding a.brand img,
.site-branding img,
.custom-logo {
  width: auto !important;
  max-width: 245px !important;
  max-height: 52px !important;
  object-fit: contain;
}

.main-navigation .primary-menu-container > ul > li > a,
.primary-menu-container > ul > li > a {
  color: var(--fritech-graphite) !important;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: .025em;
  line-height: 1.2;
  padding-inline: 13px !important;
  text-transform: none;
}
/* Main navigation: clean text-only interaction, without orange underline.
 * The current page uses the same graphite colour as the other links;
 * orange appears only while hovering/focusing. */
.main-navigation .primary-menu-container > ul > li > a:hover,
.main-navigation .primary-menu-container > ul > li > a:focus {
  color: var(--fritech-orange) !important;
}
.main-navigation .primary-menu-container > ul > li.current-menu-item:not(.fritech-menu-cta) > a,
.main-navigation .primary-menu-container > ul > li.current-menu-ancestor:not(.fritech-menu-cta) > a {
  color: var(--fritech-graphite) !important;
}
.main-navigation .primary-menu-container > ul > li:not(.fritech-menu-cta) > a::before,
.main-navigation .primary-menu-container > ul > li:not(.fritech-menu-cta) > a::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.fritech-menu-cta > a {
  background: var(--fritech-orange) !important;
  color: var(--fritech-white) !important;
  border: 1px solid var(--fritech-orange) !important;
  border-radius: 2px;
  margin-left: 7px;
  padding: 13px 17px !important;
  min-height: auto !important;
  box-shadow: 0 8px 20px rgba(213,106,37,.18);
}
.fritech-menu-cta > a:hover {
  background: var(--fritech-orange-dark) !important;
  border-color: var(--fritech-orange-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.primary-menu-container .sub-menu,
.header-navigation .sub-menu {
  border: 0 !important;
  border-top: 3px solid var(--fritech-orange) !important;
  border-radius: 0 0 var(--fritech-radius) var(--fritech-radius);
  box-shadow: var(--fritech-shadow) !important;
  padding: 8px 0 !important;
  min-width: 270px;
}
.primary-menu-container .sub-menu li a,
.header-navigation .sub-menu li a {
  color: var(--fritech-graphite) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 18px !important;
}
.primary-menu-container .sub-menu li a:hover,
.header-navigation .sub-menu li a:hover {
  background: var(--fritech-mist) !important;
  color: var(--fritech-orange) !important;
}

/* Page title / hero */
.entry-hero,
.entry-hero-container-inner {
  background: linear-gradient(112deg, var(--fritech-graphite-2) 0%, var(--fritech-graphite) 70%, #34404a 100%) !important;
}
.entry-hero {
  position: relative;
  overflow: hidden;
}
.entry-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(42vw, 560px);
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(213,106,37,.22) 48% 49%, transparent 49% 100%),
    linear-gradient(45deg, transparent 0 65%, rgba(255,255,255,.045) 65% 66%, transparent 66% 100%);
  pointer-events: none;
}
.entry-hero .entry-title,
.entry-hero h1 {
  color: #fff !important;
  font-size: clamp(32px, 4.2vw, 58px) !important;
  font-weight: 780 !important;
  letter-spacing: -.035em;
  line-height: 1.04;
  max-width: 880px;
}
.entry-hero .entry-title::before,
.entry-hero h1::before {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-bottom: 20px;
  background: var(--fritech-orange);
}
.home .entry-hero { display: none !important; }

/* Content */
.content-area,
.site-main { background: var(--fritech-mist); }
.entry-content-wrap,
.single-content,
.page .content-bg {
  background: #fff;
}
.entry-content-wrap {
  border-radius: var(--fritech-radius);
  box-shadow: 0 1px 0 rgba(32,39,45,.04);
}
.entry-content {
  color: #37414a;
  font-size: 17px;
  line-height: 1.75;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--fritech-graphite);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.entry-content h2 { font-size: clamp(28px, 3vw, 42px); }
.entry-content h3 { font-size: clamp(22px, 2vw, 28px); }
.entry-content a { color: var(--fritech-orange-dark); }
.entry-content a:hover { color: var(--fritech-orange); }

/* Reusable brand components for content packages */
.fritech-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fritech-orange-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fritech-eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--fritech-orange);
}
.fritech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.fritech-card {
  background: #fff;
  border: 1px solid var(--fritech-line);
  border-top: 4px solid var(--fritech-orange);
  border-radius: var(--fritech-radius);
  padding: 28px;
  box-shadow: 0 8px 30px rgba(17,23,28,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fritech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fritech-shadow);
}
.fritech-button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--fritech-orange) !important;
  border-radius: 2px !important;
  background: var(--fritech-orange) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fritech-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--fritech-orange-dark) !important;
  border-color: var(--fritech-orange-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(213,106,37,.22);
}
.fritech-button--small { min-height: 42px; padding: 10px 16px; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"],
textarea, select {
  border: 1px solid #cbd2d7 !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: var(--fritech-graphite) !important;
  min-height: 48px;
  padding: 11px 13px !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--fritech-orange) !important;
  box-shadow: 0 0 0 3px rgba(213,106,37,.13) !important;
  outline: 0 !important;
}

/* Hide Kadence default footer; plugin provides branded footer */
#colophon,
.site-footer { display: none !important; }
.fritech-site-footer {
  position: relative;
  background: var(--fritech-graphite-2);
  color: rgba(255,255,255,.74);
  margin-top: 0;
}
.fritech-site-footer__accent {
  height: 5px;
  background: linear-gradient(90deg, var(--fritech-orange) 0 28%, #8d3e0f 28% 36%, var(--fritech-graphite) 36% 100%);
}
.fritech-site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr .8fr .8fr 1fr;
  gap: 54px;
  padding-block: 70px 58px;
}
.fritech-site-footer h2 {
  color: #fff;
  font-size: 15px;
  font-weight: 780;
  letter-spacing: .04em;
  margin: 0 0 20px;
  text-transform: uppercase;
}
.fritech-site-footer__logo { display: inline-block; margin-bottom: 22px; }
.fritech-site-footer__logo img {
  display: block;
  width: min(100%, 290px);
  height: auto;
  opacity: .98;
}
.fritech-site-footer__brand p {
  max-width: 460px;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 22px;
}
.fritech-site-footer__badge {
  display: inline-flex;
  border-left: 3px solid var(--fritech-orange);
  background: rgba(255,255,255,.055);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 12px;
}
.fritech-site-footer ul { list-style: none; margin: 0; padding: 0; }
.fritech-site-footer li { margin: 0 0 10px; }
.fritech-site-footer a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
}
.fritech-site-footer a:hover { color: #ffac70; }
.fritech-site-footer__contact p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
}
.fritech-site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.50);
  font-size: 12px;
}
.fritech-site-footer__bottom .fritech-shell {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Mobile navigation */
.drawer-content,
.popup-drawer .drawer-inner { background: var(--fritech-graphite-2) !important; }
.mobile-navigation ul li a {
  color: #fff !important;
  font-weight: 650;
  border-bottom-color: rgba(255,255,255,.08) !important;
}
.mobile-navigation ul li a:hover { color: #ffac70 !important; }
.mobile-toggle-open-container .menu-toggle-open,
.menu-toggle-open { color: var(--fritech-graphite) !important; }

@media (max-width: 1024px) {
  .fritech-site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .fritech-site-footer__contact { grid-column: 1 / -1; }
  .fritech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-branding a.brand img,
  .site-branding img,
  .custom-logo { max-width: 210px !important; }
}

@media (max-width: 782px) {
  body.admin-bar #masthead { top: 46px; }
  .fritech-topbar__claim { display: none; }
  .fritech-topbar__inner { justify-content: center; }
  .fritech-topbar__contact strong,
  .fritech-topbar__sep,
  .fritech-topbar__contact a[href^="mailto:"] { display: none; }
  .site-main-header-wrap .site-header-row-container-inner,
  .site-header-row-container-inner { min-height: 70px; }
  .site-branding a.brand img,
  .site-branding img,
  .custom-logo { max-width: 188px !important; max-height: 44px !important; }
  .fritech-site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-block: 52px 44px; }
  .fritech-site-footer__brand,
  .fritech-site-footer__contact { grid-column: 1 / -1; }
  .fritech-site-footer__bottom .fritech-shell { flex-direction: column; justify-content: center; text-align: center; padding-block: 14px; }
  .entry-hero .entry-title,
  .entry-hero h1 { font-size: clamp(30px, 10vw, 45px) !important; }
  .fritech-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .fritech-shell { width: min(calc(100% - 28px), var(--fritech-shell)); }
  .fritech-site-footer__grid { grid-template-columns: 1fr; }
  .fritech-site-footer__nav,
  .fritech-site-footer__contact { grid-column: auto; }
}


/* v1.0.1 — homepage contrast and header refinement */
.site-branding .site-title-wrap,
.site-branding .site-title,
.site-branding .site-description {
  display: none !important;
}

body.home .frh-hero-copy {
  position: relative;
  z-index: 3;
}

body.home .entry-content .frh-hero h1,
body.home .frh-hero h1 {
  color: #ffffff !important;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .24);
}

body.home .entry-content .frh-hero-panel h2,
body.home .frh-hero-panel h2 {
  color: #ffffff !important;
}

body.home .entry-content .frh-hero .frh-eyebrow,
body.home .entry-content .frh-hero .frh-panel-kicker,
body.home .frh-hero .frh-eyebrow,
body.home .frh-hero .frh-panel-kicker {
  color: var(--fritech-orange, #d56a25) !important;
}

@media (max-width: 1024px) {
  .site-branding a.brand img,
  .site-branding img,
  .custom-logo {
    max-width: 220px !important;
  }
}

/* v1.0.2 — definitive Kadence desktop dropdown contrast fix.
 * Deliberately uses higher specificity than the earlier generic submenu rules
 * and Kadence-generated palette CSS. */
body.fritech-visual-system #masthead .header-navigation .header-menu-container ul.menu > li.menu-item > ul.sub-menu,
body.fritech-visual-system #masthead .header-navigation .header-menu-container ul.menu ul.sub-menu,
body.fritech-visual-system #masthead .primary-menu-container ul.menu > li.menu-item > ul.sub-menu,
body.fritech-visual-system #masthead .primary-menu-container ul.menu ul.sub-menu,
body.fritech-visual-system #masthead ul.sub-menu {
  background: var(--fritech-graphite-2, #11171c) !important;
  background-color: var(--fritech-graphite-2, #11171c) !important;
  border-top-color: var(--fritech-orange, #d56a25) !important;
  opacity: 1 !important;
}

body.fritech-visual-system #masthead .header-navigation .header-menu-container ul.menu ul.sub-menu > li.menu-item,
body.fritech-visual-system #masthead .primary-menu-container ul.menu ul.sub-menu > li.menu-item,
body.fritech-visual-system #masthead ul.sub-menu > li.menu-item {
  background: transparent !important;
  background-color: transparent !important;
}

body.fritech-visual-system #masthead .header-navigation .header-menu-container ul.menu ul.sub-menu > li.menu-item > a,
body.fritech-visual-system #masthead .header-navigation .header-menu-container ul.menu ul.sub-menu a,
body.fritech-visual-system #masthead .primary-menu-container ul.menu ul.sub-menu > li.menu-item > a,
body.fritech-visual-system #masthead .primary-menu-container ul.menu ul.sub-menu a,
body.fritech-visual-system #masthead ul.sub-menu > li.menu-item > a,
body.fritech-visual-system #masthead ul.sub-menu a {
  display: flex !important;
  align-items: center;
  width: 100%;
  background: var(--fritech-graphite-2, #11171c) !important;
  background-color: var(--fritech-graphite-2, #11171c) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.fritech-visual-system #masthead .header-navigation .header-menu-container ul.menu ul.sub-menu > li.menu-item:hover > a,
body.fritech-visual-system #masthead .header-navigation .header-menu-container ul.menu ul.sub-menu > li.menu-item > a:hover,
body.fritech-visual-system #masthead .header-navigation .header-menu-container ul.menu ul.sub-menu > li.menu-item > a:focus,
body.fritech-visual-system #masthead .header-navigation .header-menu-container ul.menu ul.sub-menu > li.current-menu-item > a,
body.fritech-visual-system #masthead .primary-menu-container ul.menu ul.sub-menu > li.menu-item:hover > a,
body.fritech-visual-system #masthead .primary-menu-container ul.menu ul.sub-menu > li.menu-item > a:hover,
body.fritech-visual-system #masthead .primary-menu-container ul.menu ul.sub-menu > li.menu-item > a:focus,
body.fritech-visual-system #masthead .primary-menu-container ul.menu ul.sub-menu > li.current-menu-item > a,
body.fritech-visual-system #masthead ul.sub-menu > li.menu-item:hover > a,
body.fritech-visual-system #masthead ul.sub-menu > li.menu-item > a:hover,
body.fritech-visual-system #masthead ul.sub-menu > li.menu-item > a:focus,
body.fritech-visual-system #masthead ul.sub-menu > li.current-menu-item > a {
  background: var(--fritech-graphite, #20272d) !important;
  background-color: var(--fritech-graphite, #20272d) !important;
  color: #ffad72 !important;
  -webkit-text-fill-color: #ffad72 !important;
}

body.fritech-visual-system #masthead ul.sub-menu .dropdown-nav-toggle,
body.fritech-visual-system #masthead ul.sub-menu .kadence-svg-iconset,
body.fritech-visual-system #masthead ul.sub-menu svg {
  color: currentColor !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}


/* v1.0.3 — definitive removal of the desktop top-menu underline and
 * permanent orange current-page state. These selectors intentionally outrank
 * Kadence-generated navigation styles and any earlier Fritech rules. */
body.fritech-visual-system #masthead .header-navigation .header-menu-container > ul.menu > li.menu-item:not(.fritech-menu-cta) > a,
body.fritech-visual-system #masthead .primary-menu-container > ul.menu > li.menu-item:not(.fritech-menu-cta) > a {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
body.fritech-visual-system #masthead .header-navigation .header-menu-container > ul.menu > li.menu-item:not(.fritech-menu-cta) > a::before,
body.fritech-visual-system #masthead .header-navigation .header-menu-container > ul.menu > li.menu-item:not(.fritech-menu-cta) > a::after,
body.fritech-visual-system #masthead .primary-menu-container > ul.menu > li.menu-item:not(.fritech-menu-cta) > a::before,
body.fritech-visual-system #masthead .primary-menu-container > ul.menu > li.menu-item:not(.fritech-menu-cta) > a::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
body.fritech-visual-system #masthead .header-navigation .header-menu-container > ul.menu > li.current-menu-item:not(.fritech-menu-cta) > a,
body.fritech-visual-system #masthead .header-navigation .header-menu-container > ul.menu > li.current-menu-ancestor:not(.fritech-menu-cta) > a,
body.fritech-visual-system #masthead .primary-menu-container > ul.menu > li.current-menu-item:not(.fritech-menu-cta) > a,
body.fritech-visual-system #masthead .primary-menu-container > ul.menu > li.current-menu-ancestor:not(.fritech-menu-cta) > a {
  color: var(--fritech-graphite, #20272d) !important;
  -webkit-text-fill-color: var(--fritech-graphite, #20272d) !important;
}
body.fritech-visual-system #masthead .header-navigation .header-menu-container > ul.menu > li.menu-item:not(.fritech-menu-cta):hover > a,
body.fritech-visual-system #masthead .header-navigation .header-menu-container > ul.menu > li.menu-item:not(.fritech-menu-cta) > a:hover,
body.fritech-visual-system #masthead .header-navigation .header-menu-container > ul.menu > li.menu-item:not(.fritech-menu-cta) > a:focus,
body.fritech-visual-system #masthead .primary-menu-container > ul.menu > li.menu-item:not(.fritech-menu-cta):hover > a,
body.fritech-visual-system #masthead .primary-menu-container > ul.menu > li.menu-item:not(.fritech-menu-cta) > a:hover,
body.fritech-visual-system #masthead .primary-menu-container > ul.menu > li.menu-item:not(.fritech-menu-cta) > a:focus {
  color: var(--fritech-orange, #d56a25) !important;
  -webkit-text-fill-color: var(--fritech-orange, #d56a25) !important;
}
