/* ==========================================================================
   Systech Telecom — static rebuild of the Divi 2.3 front page
   Palette / metrics derived from the original theme stylesheet.
   ========================================================================== */

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-var.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ETmodules';
  src: url('../fonts/ETmodules_v2.woff') format('woff'),
       url('../fonts/ETmodules_v2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* Reset ------------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 114px; /* fixed secondary + main header */
  background: #fff;
  color: #666;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

ul { margin: 0; padding: 0; list-style: none; }

button { margin: 0; font: inherit; color: inherit; background: none; border: 0; }

a { color: #7EBEC5; text-decoration: none; }

a:hover,
a:focus { text-decoration: underline; }

p { margin: 0; padding-bottom: 16px; }
p:last-child { padding-bottom: 0; }

b, strong { font-weight: 700; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding-bottom: 10px;
  color: #333;
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  line-height: 1.15;
}
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Layout ----------------------------------------------------------------- */

.container {
  position: relative;
  width: 1080px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 50px 0;
  background: #fff;
}

.section--grey { background: #ededed; }
.section--white { background: #fff; }

.row { padding-top: 30px; }

.grid { display: grid; gap: 60px; }
.grid--thirds { grid-template-columns: repeat(3, 1fr); }
.grid--1-2 { grid-template-columns: 320px 700px; }
.grid--2-1 { grid-template-columns: 700px 320px; }
.grid--halves { grid-template-columns: repeat(2, 1fr); }

.image-block img {
  width: 100%;
  height: auto;
}

/* Header ----------------------------------------------------------------- */

#top-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100000;
  height: 34px;
  background: #2ea3f2;
  font-size: 12px;
  line-height: 13px;
}

#top-header .container {
  display: flex;
  align-items: center;
  height: 34px;
  padding-top: 0;
}

#et-info {
  display: flex;
  align-items: center;
  padding-bottom: 0;
}

#et-info a {
  color: #fff;
  font-size: 16px;
}

#et-info a:hover { text-decoration: none; opacity: .85; }

#et-info-phone { margin-right: 22px; }

#et-info-phone::before,
#et-info-email::before {
  font-family: 'ETmodules';
  font-size: 14px;
  font-weight: normal;
  line-height: 1;
  speak: none;
  vertical-align: -1px;
  -webkit-font-smoothing: antialiased;
}
#et-info-phone::before { content: "\e090"; margin-right: 5px; }
#et-info-email::before { content: "\e076"; margin-right: 5px; }

#main-header {
  position: fixed;
  top: 34px;
  right: 0;
  left: 0;
  z-index: 99999;
  min-height: 43px;
  padding: 18px 0 0;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  transition: padding .2s ease-in-out, min-height .2s ease-in-out, box-shadow .2s ease-in-out;
}

#main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px; /* 18px header padding + 62px = 80px, matching Divi's 114px offset */
}

#logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 20px;
}

#logo img {
  width: auto;
  max-height: 43px;
  transition: max-height .2s ease-in-out;
}

#top-menu {
  display: flex;
  align-items: center;
}

#top-menu li {
  display: inline-block;
  padding-right: 22px;
  font-size: 14px;
}

#top-menu li:last-child { padding-right: 0; }

#top-menu a {
  position: relative;
  display: block;
  color: #666;
  line-height: 23px;
}

#top-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: #7EBEC5;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}

#top-menu a:hover,
#top-menu a:focus { color: #333; text-decoration: none; }
#top-menu a:hover::after,
#top-menu a:focus::after { transform: scaleX(1); }

#top-menu .current-menu-item > a { font-weight: 500; }

/* Shrunken fixed header (Divi .et-fixed-header) */
#main-header.is-scrolled {
  padding-top: 10px;
  min-height: 30px;
  box-shadow: 0 0 7px rgba(0, 0, 0, .1);
}
#main-header.is-scrolled .container { min-height: 30px; }
#main-header.is-scrolled #logo img { max-height: 30px; }

.mobile-menu-btn { display: none; }

/* Hero carousel ---------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.hero-slides {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-slide {
  grid-area: 1 / 1;
  min-width: 0;
  position: relative;
  z-index: 0;
  background-color: #111;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
}

.hero-slide--right::before {
  background: linear-gradient(270deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .18) 100%);
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  padding-top: 130px;
  padding-bottom: 130px;
  text-align: center;
}

.hero-slide--right .hero-inner {
  justify-content: flex-end;
  text-align: left;
}

.hero-copy { max-width: 720px; }

.hero-slide--right .hero-copy {
  width: 510px;
  max-width: 100%;
}

.hero-copy h1,
.hero-copy h2 {
  padding-bottom: 12px;
  color: #fff;
  font-weight: 300;
  font-size: 46px;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.hero-text {
  padding-bottom: 24px;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.hero-text p { padding-bottom: 0; }

/* Divi-style outline button */
.hero-button {
  position: relative;
  display: inline-block;
  padding: 6px 20px;
  border: 2px solid #fff;
  border-radius: 3px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  text-decoration: none;
  text-shadow: none;
  transition: background .2s, border-color .2s, padding .2s;
}

.hero-button::after {
  content: "\35";
  position: absolute;
  top: 7px;
  right: 5px;
  margin-left: -20px;
  font-family: 'ETmodules';
  font-size: 32px;
  line-height: 1;
  opacity: 0;
  transition: opacity .2s, margin .2s;
}

.hero-button:hover,
.hero-button:focus {
  padding: 6px 34px 6px 14px;
  border-color: transparent;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  text-decoration: none;
}

.hero-button:hover::after,
.hero-button:focus::after {
  margin-left: 0;
  opacity: 1;
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
  color: #fff;
  cursor: pointer;
  opacity: .85;
  transform: translateY(-50%);
  transition: background .2s, opacity .2s, left .2s, right .2s;
}

.hero-arrow::before {
  font-family: 'ETmodules';
  font-size: 32px;
  line-height: 1;
}

.hero-arrow--prev { left: 22px; }
.hero-arrow--prev::before { content: "\34"; }
.hero-arrow--next { right: 22px; }
.hero-arrow--next::before { content: "\35"; }

.hero-arrow:hover,
.hero-arrow:focus {
  background: rgba(0, 0, 0, .55);
  opacity: 1;
  outline: none;
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 10px;
}

.hero-dot {
  position: relative;
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.hero-dot::after {
  content: "";
  position: absolute;
  inset: -9px;
}

.hero-dot.is-active { background: #fff; }

.hero-dot:hover,
.hero-dot:focus {
  background: #fff;
  transform: scale(1.25);
  outline: none;
}

/* Content blocks --------------------------------------------------------- */

.text-block { padding-bottom: 0; }

.text-block p { line-height: 1.7; }

/* Icon blurbs */
.blurb { margin-bottom: 30px; }
.blurb:last-child { margin-bottom: 0; }

.blurb-image {
  margin-bottom: 30px;
  text-align: center;
}

.et-pb-icon {
  display: inline-block;
  font-family: 'ETmodules';
  font-weight: normal;
  font-variant: normal;
  line-height: 1;
  text-transform: none;
  speak: none;
  -webkit-font-smoothing: antialiased;
}

.et-pb-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 98px;
  padding: 25px;
  border-radius: 50%;
  background: #ededed;
  color: #000;
  font-size: 48px;
}

.blurb--top h4 {
  padding-bottom: 5px;
  font-size: 18px;
}

/* Left icon blurbs (services) */
.blurb--left {
  position: relative;
  margin-bottom: 22px;
  padding-left: 52px;
}

.blurb--left .blurb-icon {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #7EBEC5;
  border-radius: 50%;
  background: #fff;
  color: #7EBEC5;
  font-family: 'ETmodules';
  font-size: 16px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.blurb--left .blurb-body { padding-top: 2px; }
.blurb--left p { padding-bottom: 0; line-height: 1.6; }

.blurb--left h5 {
  padding-bottom: 3px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

/* Dark services section */
.section--dark { background: #000; }

.section--dark,
.section--dark p { color: #fff; }

.section--dark h4,
.section--dark h5 { color: #fff; }

.section--dark h4 { padding-bottom: 20px; }

.section--dark .services-col > h4:first-child { margin-top: 0; }

/* Contact */
.section--contact { padding: 60px 0; }

.contact-title {
  padding-bottom: 30px;
  text-align: center;
}

.cta-box {
  width: 760px;
  max-width: 100%;
  margin: 0 auto;
  padding: 35px 40px;
  background: #7EBEC5;
  color: #fff;
}

.cta-box p {
  color: #fff;
  font-size: 14px;
  line-height: 1.8;
}

.cta-box h5 {
  padding-bottom: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.cta-box h5:not(:first-child) { padding-top: 8px; }

.cta-box a { color: #fff; text-decoration: underline; }
.cta-box a:hover { color: #fff; opacity: .85; }

/* Footer ----------------------------------------------------------------- */

#main-footer { background: #222; }

#footer-bottom {
  padding: 15px 0 5px;
  background: rgba(0, 0, 0, .32);
}

#footer-info {
  padding-bottom: 10px;
  color: #666;
  font-size: 14px;
  text-align: left;
}

#footer-info a {
  color: #666;
  font-weight: 700;
}

#footer-info a:hover { color: #999; }

/* Reveal on scroll ------------------------------------------------------- */

.reveal { transition: opacity .7s ease, transform .7s ease; }

.js .reveal { opacity: 0; }
.js .reveal[data-reveal="up"] { transform: translateY(24px); }
.js .reveal[data-reveal="left"] { transform: translateX(-24px); }

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1140px) {
  .grid--1-2,
  .grid--2-1 { grid-template-columns: 1fr; }
  .grid--2-1 .text-block { order: 1; }
  .grid--2-1 .image-block { order: 2; }
}

@media (max-width: 1000px) {
  .grid--thirds { grid-template-columns: repeat(2, 1fr); }
  .grid--halves { grid-template-columns: 1fr; gap: 10px; }
  .section--dark .services-col:first-child { margin-bottom: 20px; }
}

@media (max-width: 980px) {
  body { padding-top: 80px; }

  #top-header { display: none; }

  #main-header {
    top: 0;
    padding-top: 18px;
    min-height: 62px;
  }

  #main-header .container { min-height: 62px; }

  #logo img { max-height: 38px; }

  .grid { gap: 40px; }

  .hero-inner {
    min-height: 560px;
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .hero-copy h1,
  .hero-copy h2 { font-size: 38px; }

  .hero-arrow { width: 42px; height: 42px; }
  .hero-arrow--prev { left: 10px; }
  .hero-arrow--next { right: 10px; }

  /* Mobile navigation */
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
    width: 48px;
    height: 48px;
    margin-left: 10px;
    color: #666;
    cursor: pointer;
  }

  .mobile-menu-btn::before {
    content: "\61";
    font-family: 'ETmodules';
    font-size: 32px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
  }

  #top-menu-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 4px 0;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
  }

  #main-header.nav-open #top-menu-nav { display: block; }

  #top-menu {
    display: block;
    width: 100%;
  }

  #top-menu li {
    display: block;
    padding: 0;
    border-top: 1px solid #eee;
  }

  #top-menu li:first-child { border-top: 0; }

  #top-menu a {
    padding: 14px 20px;
    font-size: 15px;
  }

  #top-menu a::after { display: none; }

  /* The nav panel is positioned relative to the header container */
  #main-header .container { position: static; }
  #main-header { position: fixed; }
  #main-header .container { position: relative; }
}

@media (max-width: 767px) {
  .section { padding: 40px 0; }
  .row { padding-top: 20px; }

  .hero-inner {
    min-height: 500px;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .hero-copy h1,
  .hero-copy h2 { font-size: 30px; }

  .hero-text { font-size: 16px; }

  .hero-slide--right .hero-inner { justify-content: flex-start; }

  .hero-button {
    font-size: 16px;
    padding: 5px 16px;
  }

  .hero-button:hover,
  .hero-button:focus { padding: 5px 30px 5px 12px; }

  .hero-button::after { font-size: 26px; top: 6px; }

  .section--contact { padding: 40px 0; }

  .cta-box { padding: 25px 22px; }

  #footer-info { text-align: center; }
}

@media (max-width: 680px) {
  .grid--thirds { grid-template-columns: 1fr; }
  .blurb-image { margin-bottom: 20px; }
}

@media (max-width: 420px) {
  .container { max-width: calc(100% - 30px); }

  .hero-copy h1,
  .hero-copy h2 { font-size: 26px; }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }
  .hero-arrow::before { font-size: 26px; }
}

/* Reduced motion --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-slide,
  .hero-button,
  .hero-button::after,
  #main-header,
  #logo img { transition: none; }
}
