/*
 * ATEC Joomla 6.2 template v1.0.0
 * Fresh, dependency-free layout CSS reconstructed from the January 2026
 * Alfa configuration and hand-authored brand overrides.
 */

:root {
  --atec-blue: #0696c2;
  --atec-dark-blue: #07547b;
  --atec-light-blue: #93dff1;
  --atec-red: #ee312d;
  --atec-body: #3c3c3c;
  --atec-heading: #222;
  --atec-container: 1170px;
  --atec-font-body: 'Open Sans', Arial, sans-serif;
  --atec-font-heading: 'Raleway', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--atec-body);
  font: 400 15px/1.75 var(--atec-font-body);
  -webkit-font-smoothing: antialiased;
}
body.atec-nav-open { overflow: hidden; }
a { color: var(--atec-blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: #0077bb; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--atec-light-blue); outline-offset: 3px; }
button { font: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 {
  color: var(--atec-heading);
  margin: 0 0 .65em;
  font-family: var(--atec-font-heading);
  line-height: 1.28;
  font-weight: 400;
}
h1 { font-size: clamp(30px, 3.1vw, 40px); font-weight: 200; }
h2 { font-size: clamp(27px, 2.6vw, 33px); font-weight: 300; }
h3 { font-size: 27px; }
h4 { font-size: 23px; }
h5 { font-size: 20px; font-weight: 500; }
h6 { font-size: 17px; font-weight: 600; }
hr { border: 0; border-top: 1px solid #e8e8e8; }
.atec-container {
  width: min(calc(100% - 30px), var(--atec-container));
  margin-left: auto;
  margin-right: auto;
}
.atec-skip-link {
  position: fixed;
  z-index: 9999;
  top: -100px;
  left: 10px;
  color: #fff;
  background: var(--atec-dark-blue);
  padding: 8px 14px;
}
.atec-skip-link:focus { top: 10px; }

/* The original inside-pages top bar was solid AT Engineering blue. */
#sp-top-bar {
  border-top: 5px solid var(--atec-blue);
  border-bottom: 1px solid var(--atec-blue);
  background: var(--atec-blue);
  color: #fff;
  font-size: 13px;
}
.atec-top-bar__inner {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.atec-top-bar__right { display: flex; align-items: center; gap: 20px; }
#sp-top-bar p { margin: 0; }
#sp-top-bar a { color: #fff; }
#sp-top-bar a:hover { color: #d4eaff; }

/* The home header overlaps the slider; inner pages have a white header. */
#sp-header {
  z-index: 1000;
  position: relative;
  width: 100%;
  color: var(--atec-dark-blue);
}
.header-transparent #sp-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: #fff;
}
.atec-header__shell { background: #fff; transition: background-color .2s, box-shadow .2s; }
.header-transparent .atec-header__shell { background: transparent; }
.header-solid .atec-header__shell { background: #fff; }
.atec-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  gap: 20px;
  transition: min-height .2s;
}
.header-transparent .atec-header__inner { min-height: 150px; }
.atec-header__brand { flex: 0 0 25%; min-width: 0; }
.header-transparent .atec-header__brand { flex-basis: 33.333%; }
.atec-brand { display: inline-flex; align-items: center; min-height: 60px; }
.atec-brand img {
  display: block;
  width: 150px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
}
.atec-brand__light { display: none !important; }
.atec-brand__dark { display: block; }
.header-transparent .atec-brand__dark { display: none; }
.header-transparent .atec-brand__light { display: block !important; }
.atec-desktop-nav { flex: 1 1 auto; min-width: 0; }
.atec-desktop-nav > a,
.atec-desktop-nav .mod-menu > li > a,
.atec-desktop-nav .mod-menu > li > span,
.atec-desktop-nav .mod-menu > li > button,
.atec-desktop-nav .mod-menu > li > .mod-menu__heading,
.atec-desktop-nav .mod-menu > li > .mod-menu__separator {
  color: var(--atec-dark-blue);
  font: 500 18px/1.3 var(--atec-font-body);
  white-space: nowrap;
  display: block;
  padding: 17px 14px;
  background: transparent;
  border: 0;
}
.header-transparent .atec-desktop-nav > a,
.header-transparent .atec-desktop-nav .mod-menu > li > a,
.header-transparent .atec-desktop-nav .mod-menu > li > span,
.header-transparent .atec-desktop-nav .mod-menu > li > button { color: #fff; }
.atec-desktop-nav ul.mod-menu,
.atec-desktop-nav ul.mod-menu ul,
.atec-mobile-menu ul.mod-menu,
.atec-mobile-menu ul.mod-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.atec-desktop-nav ul.mod-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
}
.atec-desktop-nav ul.mod-menu li { position: relative; }
.atec-desktop-nav .mod-menu > li.active > a,
.atec-desktop-nav .mod-menu > li.current > a,
.atec-desktop-nav .mod-menu > li > a:hover,
.atec-desktop-nav .mod-menu > li > a:focus-visible {
  color: #fff;
  background: var(--atec-blue);
}
.header-transparent .atec-desktop-nav .mod-menu > li.active > a,
.header-transparent .atec-desktop-nav .mod-menu > li.current > a {
  color: #b8f8ff;
  background: transparent;
}
.atec-desktop-nav .mod-menu li > ul {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 215px;
  display: none;
  background: rgba(10, 89, 181, .92);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .17);
  z-index: 25;
}
.atec-desktop-nav .mod-menu li > ul li > ul { left: 100%; top: 0; }
.atec-desktop-nav .mod-menu li:hover > ul,
.atec-desktop-nav .mod-menu li:focus-within > ul { display: block; }
.atec-desktop-nav .mod-menu li > ul a,
.atec-desktop-nav .mod-menu li > ul span {
  display: block;
  color: #fff;
  padding: 11px 17px;
  font-size: 14px;
}
.atec-desktop-nav .mod-menu li > ul a:hover,
.atec-desktop-nav .mod-menu li > ul .active > a { background: #064d9f; color: #fff; }
#sp-header.is-sticky { position: fixed; top: 0; left: 0; right: 0; }
#sp-header.is-sticky .atec-header__inner { min-height: 65px; }
#sp-header.is-sticky .atec-header__shell {
  background: #fff;
  box-shadow: 1px 2px 6px rgba(79, 79, 79, .22);
}
.header-transparent #sp-header.is-sticky .atec-header__shell {
  background: var(--atec-blue);
}

/* Legacy selectors retained for CSS compatibility; no template-owned media. */
#sp-slider { position: relative; width: 100%; overflow: hidden; }
.atec-slider--fallback {
  height: 650px;
  min-height: min(650px, 70vw);
  background: #30445f;
}
#sp-slider img { display: block; }
#sp-slider .atec-hero-title,
.sldtxtm, .sldtxtmt {
  color: #fff;
  font-family: var(--atec-font-heading);
  font-size: clamp(25px, 5vw, 66px);
  font-weight: 500;
  text-shadow: 4px 4px 4px rgba(0, 0, 0, .4);
}

/* Original inner-page title/banner proportions. */
#sp-title {
  position: relative;
  min-height: 300px;
  background: #234a79;
  color: #fff;
  display: flex;
  align-items: center;
}
#sp-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 18, 49, .3);
  pointer-events: none;
}
#sp-title > * { position: relative; z-index: 1; width: 100%; }
#sp-title h1, #sp-title h2 {
  color: #fff;
  font-size: clamp(36px, 5vw, 65px);
  font-weight: 400;
  margin: 0;
}
.atec-breadcrumbs { background: #fafafa; font-size: 14px; }
.atec-breadcrumbs .atec-container { padding-top: 9px; padding-bottom: 9px; }
.atec-breadcrumbs ol, .atec-breadcrumbs ul {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px;
}
.atec-breadcrumbs li + li::before { content: '/'; color: #888; margin-right: 12px; }

/* Article templates keep the 1170px grid; page-builder home sections can span the viewport. */
.atec-main { min-height: 120px; padding: 50px 0 65px; }
.atec-home .atec-main { padding-top: 0; }
.atec-home .atec-main > .atec-container {
  width: 100%;
  max-width: none;
  padding: 0;
}
.atec-home .atec-component > * { max-width: 100%; }
.atec-content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 25px; }
.atec-content-grid.has-left { grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); }
.atec-content-grid.has-right { grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr); }
.atec-content-grid.has-left.has-right {
  grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr) minmax(170px, 1fr);
}
.atec-component { min-width: 0; }
.atec-sidebar { min-width: 0; }
.atec-sidebar .moduletable, .atec-sidebar .card { margin-bottom: 25px; }
.atec-component input:not([type='checkbox']):not([type='radio']),
.atec-component textarea, .atec-component select {
  max-width: 100%;
}

/* Footer colors and 4-column configuration match the January template styles. */
#sp-bottom {
  padding: 50px 0 100px;
  color: #fff;
  background-color: var(--atec-blue);
  background-image: repeating-linear-gradient(
    45deg, transparent 0 4px, rgba(255, 255, 255, .035) 4px 5px
  );
}
.atec-bottom__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
}
#sp-bottom h2, #sp-bottom h3, #sp-bottom h4, #sp-bottom h5 { color: #fff; }
#sp-bottom a { color: #fff; }
#sp-bottom a:hover { color: #cfecff; }
#sp-bottom ul { list-style: none; margin: 0; padding: 0; }
#sp-bottom li { border-bottom: 0; }
#sp-footer {
  position: relative;
  padding: 20px 0 16px;
  color: #b0b0b0;
  font-family: 'Cairo', var(--atec-font-body);
  background: var(--atec-dark-blue);
}
.atec-home #sp-footer { background: #0b0b0b; }
#sp-footer a { color: #d9eaff; }
#sp-footer a:hover { color: #fff; }
.atec-footer__copyright { text-align: center; font-size: 13px; }
.atec-back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 800;
  width: 42px;
  height: 42px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  background: var(--atec-dark-blue);
  color: #fff;
  font-size: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.atec-back-to-top.is-visible { opacity: 1; visibility: visible; }
.atec-back-to-top:hover { color: #9fd7ff; }

/* Mobile navigation: new accessible vanilla-JS replacement for old offcanvas. */
.atec-menu-toggle, .atec-menu-backdrop, .atec-mobile-menu { display: none; }
.atec-menu-toggle {
  width: 44px;
  height: 44px;
  padding: 10px 7px;
  border: 0;
  cursor: pointer;
  background: transparent;
  flex-direction: column;
  justify-content: space-around;
}
.atec-menu-toggle span {
  height: 3px;
  width: 100%;
  background: var(--atec-blue);
  border-radius: 2px;
}
.header-transparent .atec-menu-toggle span { background: #fff; }
.atec-mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2001;
  background: var(--atec-blue);
  color: #fff;
  width: min(86vw, 345px);
  padding: 20px 24px;
  overflow-y: auto;
  transform: translateX(102%);
  transition: transform .22s ease;
}
.atec-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  border: 0;
  background: rgba(0,0,0,.5);
  cursor: pointer;
}
.atec-mobile-menu__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 22px;
}
.atec-mobile-menu__heading img { width: 150px; }
.atec-mobile-menu__close { color: #fff; font-size: 32px; border: 0; background: none; cursor: pointer; }
.atec-mobile-menu nav a, .atec-mobile-menu nav span {
  display: block;
  color: #fff;
  padding: 9px 8px;
  font-size: 15px;
}
.atec-mobile-menu nav ul ul { padding-left: 17px; }
.atec-mobile-menu nav a:hover { color: #93dff1; }
.atec-mobile-menu nav .active > a,
.atec-mobile-menu nav .current > a { background: #fff; color: var(--atec-blue); }

/* Retain a few public CSS hooks for legacy SP Page Builder output. */
.savdt { transform: skewY(1.5deg); border-radius: 6px; transform-origin: right top; background: var(--atec-red); }
.ctamn h1 { text-align: left; font-size: 28px; font-weight: 700; color: #fff; }
.ctamn p { color: #fff; font-size: 15px; }
.projek h2 { font-size: 24px; font-weight: 400; }
.sppb-carousel-indicators .active { background: var(--atec-blue) !important; }
.sppb-carousel-indicators li { background: rgba(37, 131, 240, .75) !important; }
.sppb-carousel-arrow i { color: var(--atec-blue); }

@media (max-width: 1100px) {
  .atec-desktop-nav .mod-menu > li > a,
  .atec-desktop-nav .mod-menu > li > span { font-size: 15px; padding: 14px 10px; }
}
@media (max-width: 991.98px) {
  .atec-desktop-nav { display: none; }
  .atec-menu-toggle { display: flex; }
  .atec-mobile-menu { display: block; }
  .atec-nav-open .atec-mobile-menu { transform: translateX(0); }
  .atec-nav-open .atec-menu-backdrop { display: block; }
  .atec-header__brand, .header-transparent .atec-header__brand { flex-basis: auto; }
  .atec-header__inner, .header-transparent .atec-header__inner { min-height: 94px; }
  #sp-header.is-sticky .atec-header__inner { min-height: 65px; }
  .atec-top-bar__inner { flex-wrap: wrap; justify-content: center; }
  .atec-bottom__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sldtxtm, .sldtxtmt { font-size: 18px; font-weight: 700; }
}
@media (max-width: 767.98px) {
  .atec-container { width: min(calc(100% - 30px), var(--atec-container)); }
  .atec-brand img { width: 130px; height: auto; max-height: 60px; }
  .atec-slider--fallback { height: 460px; min-height: 360px; background-position: center; }
  #sp-title { min-height: 250px; background-position: 80% 50%; }
  .atec-content-grid,
  .atec-content-grid.has-left,
  .atec-content-grid.has-right,
  .atec-content-grid.has-left.has-right { grid-template-columns: minmax(0,1fr); }
  .atec-main { padding: 30px 0 40px; }
  .atec-bottom__grid { grid-template-columns: 1fr; }
  #sp-bottom { padding-bottom: 55px; }
  .atec-top-bar__left, .atec-top-bar__right { text-align: center; }
}
@media (max-width: 420px) {
  .atec-header__inner, .header-transparent .atec-header__inner { min-height: 78px; }
  .atec-slider--fallback { min-height: 340px; height: 380px; }
  .atec-mobile-menu { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
