/* =============================================
   HEADER & NAVIGATION
   ============================================= */

.header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  background-color: white;
  padding: 10px 5%;
  position: relative;
}

/* Logo */
.banimg {
  background-color: white;
  padding: 3px;
  flex-shrink: 0;
}

.banimg img {
  max-height: 80px;
  width: auto;
  display: block;
}

/* =============================================
   DESKTOP NAV (HORIZONTAL)
   ============================================= */

.nested1 {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  width: auto;
  gap: 0.5em;
  margin-left: auto;
  padding: 0;
  background: white;
}

.nested1 > div {
  flex: 0 0 auto;
  border: 1px solid #0e0e0e;
  background-color: white;
  padding: 0.75em 1em;
  transition: background 0.2s, color 0.2s;
}

.nested1 a {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: large;
  text-decoration: none;
  color: #000;
  display: block;
  white-space: nowrap;
}

.nested1 a:hover {
  color: white;
}

/* =============================================
   HAMBURGER BUTTON (BASE STYLE - ONLY ONCE)
   ============================================= */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;  
  border: none;
  cursor: pointer;
  padding: 0;               
  position: relative;
  z-index: 1000;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #093145;
  border-radius: 3px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* X animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =============================================
   MAIN TEXT BLOCKS
   ============================================= */

.maintextnoshow {
  display: block;
  font-size: large;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: rgb(42, 56, 56);
  font-weight: normal;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  padding: 10px 5px;
  text-align: justify;
}

.maintextnoshowindent {
  display: block;
  font-size: large;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: rgb(42, 56, 56);
  font-weight: normal;
  margin-left: auto;
  margin-right: auto;
  width: 85%;
  padding: 5px;
  text-align: justify;
}

.maintext {
  font-size: large;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: rgb(42, 56, 56);
  font-weight: normal;
  padding: 0.5em;
  text-align: justify;
  width: 100%;
}

.cap {
  font-size: xx-large;
  font-weight: bolder;
  font-family: 'Times New Roman', Times, serif;
  white-space: nowrap;
  display: inline;
}


/* =============================================
   BODY & LAYOUT
   ============================================= */

* {
  box-sizing: border-box;
}

body {
  font-family: Verdana, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: large;
  text-decoration: none;
  color: #000;
}

a:hover {
  color: white;
}

/* =============================================
   SLIDESHOW
   ============================================= */

.mySlides { display: none; }

img { vertical-align: middle; }

.slideshow-container {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  padding: 5px;
  position: relative;
}

.text {
  color: #0e0e0e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  padding: 8px 12px;
  width: 100%;
  text-align: center;
}

.dot {
  height: 8px;
  width: 8px;
  margin: 4px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 1.5s ease-in-out;
}

.active { background-color: #093145; }

.fade {
  animation-name: fade;
  animation-duration: 4.5s;
}

@keyframes fade {
  from { opacity: .4; }
  to   { opacity: 1;  }
}

@media only screen and (max-width: 300px) {
  .text { font-size: 11px; }
}

/* =============================================
   GRID LAYOUT
   ============================================= */

.bodygrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  background-color: white;
  width: 90%;
  align-content: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3%;
}

.bodygrid > div {
  background: white;
}

.laptopimg {
  grid-column: 1 / span 3;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 5px;
}

/* =============================================
   BUTTONS
   ============================================= */

.button {
  outline: 0 !important;
  box-shadow: none !important;
  font-size: large;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: rgb(42, 56, 56);
  font-weight: normal;
  padding: 0.5em;
  text-align: right;
}

/* =============================================
   MISC LAYOUT
   ============================================= */

.flex {
  display: flex;
  justify-content: inherit;
  align-items: left;
}

.maintextnoshow ul {
  padding-left: 25px;
  margin: 15px 0;
  list-style-type: disc;
}

.maintextnoshow li {
  margin-bottom: 10px;
  line-height: 1.5;
}
/* =============================================
   CONTACT FORM
   ============================================= */

.commentbody {
  margin: 0;
  padding: 0;
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.commentcontainer {
  width: 80%;
  padding: 10px;
  background-color: white;
}

.commentcontainer h2 {
  color: black;
  font-size: x-large;
  text-align: left;
  margin-bottom: 10px;
}

.wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.wrapper .box {
  width: 100%;
  position: relative;
  padding: 20px;
}

.wrapper .box input {
  width: 100%;
  font-size: 20px;
  background: transparent;
  border: none;
  outline: none;
  border-bottom: 1px solid rgb(42, 56, 56);
  transition: 0.5s linear;
}

.wrapper .box input:focus,
.wrapper .box input:valid {
  width: 100%;
  background: white;
  margin-top: 10px;
}

.wrapper .box label {
  position: absolute;
  top: 0;
  left: 0;
  color: black;
  font-size: 18px;
  padding: 20px;
  transition: 0.5s linear;
}

.wrapper .box input:focus ~ label,
.wrapper .box input:valid ~ label {
  padding: 0;
}

.wrapper .box textarea {
  width: 100%;
  font-size: 20px;
  background: transparent;
  border: none;
  outline: none;
  border-bottom: 1px solid black;
  transition: 0.5s linear;
}

.wrapper .box textarea:focus,
.wrapper .box textarea:valid {
  padding: 20px 10px;
  background: white;
  margin-top: 10px;
}

.wrapper .box textarea:focus ~ label,
.wrapper .box textarea:valid ~ label {
  padding: 0;
}

.wrapper input[type="submit"] {
  grid-column: 3 / span 3;
  background: white;
  padding: 15px 30px;
  border: 1px solid #000;
  font-size: 20px;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  width: 20%;
  margin-right: auto;
}

html {
  height: 100%;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  padding: 10px;
}

.page-footer {
  display: block;
  width: 100%;
  padding: 25px 10px;
  text-align: center;
  color: white;
  font-family: Arial, sans-serif;
  margin-top: auto;
  border-top: 4px solid rgba(255,255,255,0.2);
}

.footer-index {
  background: #093145;
}

.footer-about {
  background: #107896;
}

.footer-solutions {
  background: #829356;
}

.footer-smart {
  background: #5A4FCF;
}

.footer-pricing {
  background: #bca136;
}

.footer-contact {
  background: #9a2617;
}

/* =============================================
   MOBILE STYLES
   ============================================= */

@media only screen and (max-width: 768px) {

  .header {
    flex-wrap: wrap;
  }

  /* show hamburger */
  .hamburger {
    display: flex;
  }

  /* mobile menu */
  .nested1 {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 500;
  }

  .nested1.nav-open {
    display: flex;
  }

  .nested1 > div {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 0.9em 1em;
    width: 100%;
  }

  .nested1 a {
    font-size: 1.1em;
  }
}