/****************************************************
 GLOBAL
****************************************************/

:root {
  --blue: #283f6f; /* rgb(40, 63, 111) */
  --narc: #8888a8; /* rgb(136, 136, 168) */
  --sky: #b8c0d0; /* rgb(184, 192, 208) */
  --emerald: #17324d; /* rgb(23, 50, 77) */
  --vibe: #00a2ff; /* rgb(0, 162, 255) */
  --breeze: #8bdbfe; /* rgb(139, 219, 254) */
  --rgb-blue: rgb(40, 63, 111);
}

* {
 margin: 0;
 padding: 0;
}

html {
  height: 100%;
  scrollbar-gutter: stable;
}

body {
  height: 100%;
  background-color: silver;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 13px;
  padding-top: 80px;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  margin: 0 0 20px 0;
}

ul {
  list-style-type: none;
}

.hide {
  display: none;
}

.open-section {
  background-color: var(--blue);
  color: white;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: white;
  border-bottom: 1px solid #283f6f;
  height: 80px;
  width: 100%; 
  display: grid; 
  grid-template-columns: 5vw auto 5vw; 
}

#topbar {
  display: inline;
}

div#logo {
  display: inline-block;
  height: 100%;
}

div#logo img.logo {
  margin-top: 16px;
}

div#menu {
  float: right;
  vertical-align: bottom;
  padding: 30px;
}

.nav {
  margin: 0 10px;
  padding: 5px 10px;
  font-size: 16pt;
  cursor: pointer;
}

.nav:hover, .selected {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-underline-offset: 5px;
}

.button {
  padding: 10px 20px;
  border: 2px #283f6f solid;
  border-radius: 12px;
}

.button:hover {
  background-color: #283f6f;
  color: white;
}

.link {
  cursor: pointer;
}

.hero {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
  position: relative;
}

#homehero {
  min-height: 400px;
  background-image: url(../img/herobg.png);
  background-color: var(--blue);
}

#abouthero {
  height: 300px;
  background-image: url(../img/logistics-hero.png);
  background-color: var(--blue);
}

#contacthero {
  height: 300px;
  background-image: url(../img/digitrak-hero.png);
  background-color: var(--emerald);
}

.headline {
  display: inline-block;
  position: absolute;
  top: 50%;
  /* left: 7vw; */
  right: 50%;
  transform: translateY(-50%);
  max-width: 600px;
  min-width: 500px;
  /* max-width: 50vw; */
  /* min-width: 40vw; */
  margin-left: 20px;
  min-height: 300px;
  max-height: 300px;
  text-wrap: balance;
  vertical-align: center;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 64pt;
  color: white;
}

.heading {
  font-size: 28pt;
}

.section-heading {
  font-size: 28pt;
  color: var(--blue);
  margin: 50px 0px 50px;
  text-align: center;
}

.statement {
  border: 5px solid var(--blue);
  border-radius: 20px;
  font-size: 48pt;
  color: inherit;
  padding: 10px;
  /* text-decoration: underline; */
  margin-bottom: 80px;
}

/* div#input { */
/*   text-align: center; */
/* } */

 /* input {  */
 /*   padding: 10px 15px;  */
 /*   border: 2px solid var(--blue);  */
 /*   border-radius: 12px;  */
 /*   font-size: 24pt;  */
 /*   color: var(--blue);  */
 /*   background-color: white;  */
 /* }  */

 /* input:focus {  */
 /*   border-color: var(--blue);  */
 /*   /* box-shadow: 0 0 5px #283f6f88; */  */
 /*   box-shadow: 0 0 5px hsl(from var(--blue) h s l / 0.8);  */
 /*   outline: none;  */
 /* }  */

 /* input[type="email"] {  */
 /*   width: 420px;  */
 /*   color: var(--blue);  */
 /* }  */

 /* input[type="email"]::placeholder {  */
 /*   font-style: italic;  */
 /*   font-size: 24pt;  */
 /* }  */

 /* input[type="submit"]:hover { */
 /*   background-color: var(--blue); */
 /*   color: white; */
 /* } */

.container {
  width: 100%;
  margin: 0 auto;
}

#wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: 5vw auto 5vw;
}

.top-spacer {
  margin-top: 50px;
}

.top-padder {
  padding-top: 50px;
}

.bottom-spacer {
  margin-bottom: 20px;
}

.underline {
  border-bottom: 5px solid var(--blue);
}

.tall {
  min-height: 1200px;
  height: 95vh;
  margin: auto;
  align-content: center;
}

.spaced {
  display: grid;
  grid-template-rows: auto auto;
  justify-content: space-between;
}

.spacered {
  margin-top: 80px;
  margin-bottom: 80px;
}

.bg-blue {
  background-color: var(--blue);
  color: white;
}

.bg-emerald {
  background-color: var(--emerald);
  color: silver;
}

#left-gutter, #right-gutter {
  margin: 0;
}

#main {
  margin: 0 auto;
}

#key_features {
  max-width: 1600px;
  display: grid;
  /* grid-template-columns: 32% 32% 32%; */
  grid-template-columns: 350px 350px 350px;
  gap: 3%;
  justify-content: center;
}

.feature {
  padding: 15px;
  border: 2px white solid;
  border-radius: 16px;
  background-color: white;
  display: grid;
  grid-template-columns: 25% auto;
  gap: .5vw;
  justify-content: center;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  color: black;
}

.feature img {
  width: 64px;
  height: 64px;
  vertical-align: middle;
  padding-left: .5vw;
}

div#central {
  margin: 30px auto;
  padding: 2vw;
  text-align: center;
  border: 2px solid var(--breeze);
  border-radius: 20px;
}

div#central img {
  border-radius: 20px;
  max-width: 70vw;
}

div#central h2 {
  padding: 20px 0px;
  font-size: 24pt;
}

div#checkboxes {
  width: 1100px;
  margin: 30px auto;
  color: white;
  font-size: clamp(16px, 2.5vw, 32px);
  /* font-size: 2.5vw; */
  text-align: justify;
  display: grid;
  grid-template-columns: 50% 50%;
  justify-content: center;
}

div#checkboxes-left, div#checkboxes-right {
  margin: 0 5px;
  padding: 5px;
  min-height: 200px;
  max-width: 550px;
  /* border: 2px solid var(--blue); */
  /* border-radius: 20px; */
  /* background-color: var(--blue); */
}

div#checkboxes-right {
  padding-left: 1vw;
}

.checked {
  display: inline-block;
  padding: 10px;
}

.check {
  padding-right: 10px;
  color: green;
}

div#value_proposition {
  margin: 0 auto;
  width: 60%;
  font-size: 24pt;
  color: #283f6f;
  text-align: center;
}

div#value_proposition h2 {
  margin: 10px auto;
  padding: 10px 20px;
  text-align: center;
}

.answer {
  background-color: var(--blue);
  color: white;
  border: 2px solid var(--blue);
  border-radius: 20px;
}

hr {
  margin: 50px auto;
  text-align: center;
  width: 80%;
  height: 3px;
  background-color: var(--emerald);
}

div#footer {
  display: grid;
  grid-template-columns: 25vw 20vw 25vw;
  gap: 5vw;
  margin: 50px 10vw;
  padding: 10px;
  justify-content: center;
  border-top: 2px solid var(--blue);
  height: 20vh;
  font-size: 1.25vw;
}

.footer-logo {
  width: 10vw;
  padding: 5px 10px;
  background-color: white;
  border: 0px solid var(--blue);
  border-radius: 5px;
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.5);
}

#footer_links {
  list-style-type: none;
}

/****************************************************
 PRODUCTS PAGE
****************************************************/

#previews {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 30px;
  font-size: 12pt;
}

.preview {
  display: grid;
  grid-template-columns: 150px 375px;
  gap: 10px;
  margin: 5px;
  justify-content: space-around;
  align-items: text-top;
}

.preview h3 {
  color: var(--blue);
  margin-bottom: 5px;
}

.preview img {
  cursor: pointer;
}

.preview-img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 4px 2px var(--blue);
}

#previews a {
  cursor: pointer;
}

/****************************************************
 ABOUT PAGE
****************************************************/

#about-main {
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 75% auto;
  gap: 10%;
}

#about-sections { 
  font-size: 18pt; 
  height: 100%; 
  text-align: left; 
  border-left: 2px solid var(--blue); 
}

#about-sections li { 
  position: relative; 
}

#about-sections li:not(:first-child)::before { 
  content: ""; 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 75%; 
  height: 2px; 
  background-color: var(--blue); 
}

#about-sections button { 
  width: 100%; 
  padding: 10px 20px; 
  border: 0; 
  background-color: inherit; 
  color: inherit;
  font-size: 18pt; 
  text-align: inherit; 
}

#about-sections button:hover { 
  background-color: var(--blue);
  opacity: 0.9;
  color: white; 
}

#history, #company { 
  margin: 0 auto; 
  font-size: 12pt; 
  padding: 10px; 
}

/****************************************************
 SUBSCRIBE FORM / DEMO-REQUEST FORM
****************************************************/

#subscribe, #demo-request {
  margin: 90px auto 50px;
  width: 600px;
  font-size: 14pt;
}

.subscribe-description, .demo-request-description {
  margin: 20px auto;
  text-align: center;
  color: var(--blue);
  font-size: 14pt;
}

.subscribe-form, .demo-request-form {
  display: flex;
  width: 100%;
  max-width: 600px; /* Limits the width so it doesn't stretch too far */
  margin: 20px 0;
  font-size: 14pt;
}

.subscribe-form input[type="email"], .demo-request-form input[type="email"] {
  flex: 1; /* This makes the input take up all available remaining space */
  padding: 0.5rem;
  height: 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem 0 0 0.375rem;
  border-right: none; /* Removes the double border between input and button */
  outline: none;
  font-size: 14pt;
}

.subscribe-form button, .demo-request-form button{
  padding: 0.5rem;
  background-color: var(--blue);
  opacity: 0.7;
  color: white;
  border: 1px solid var(--blue);
  border-radius: 0 0.375rem 0.375rem 0; /* Rounds only the right corners */
  cursor: pointer;
  font-size: 14pt;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.subscribe-form button.valid, .demo-request-form button.valid {
  opacity: 1.0;
}

/****************************************************
 CONTACT PAGE
****************************************************/

.info-column-right {
  display: grid;
  grid-template-columns: 750px auto;
  border
}

.info-column-left {
  display: grid;
  grid-template-columns: auto 750px;
}

.info-section {
  font-size: 14pt;
  padding: 20px;
  border-left: 2px solid var(--blue);
}

.info-section p {
  margin: 0;
}

.contact-section {
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1rem;
  font-size: 14pt;
}

.contact-intro > * + * {
  margin-top: 1rem;
}

.contact-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
}

.contact-description {
  color: var(--blue);
}

.form-group-container {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  display: flex;
  height: 2.5rem;
  /* width: 100%; */
  border-radius: 0.375rem;
  /* font-size: 0.875rem; */
  /* line-height: 1.25rem; */
  font-size: 16pt;
}

.form-input::placeholder,
.form-textarea:focus-visible {
  color: #6b7280;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.form-textarea {
  min-height: 120px;
}

.form-submit {
  width: 100%;
  margin: 0 auto;
  margin-top: 1.2rem;
  /* background-color: #3124ca; */
  background-color: var(--blue);
  color: #fff;
  padding: 13px 5px;
  border-radius: 0.375rem;
  font-size: 14pt;
}

/****************************************************
 Thanks.html Page
****************************************************/

#thanks {
  height: 40vh;
  margin: 0 auto;
  padding: 20vh 0;
  color: var(--blue);
  text-align: center;
}

#thanks h1 {
  font-size: 32pt;
}

/****************************************************
 GENERICS
****************************************************/

.block {
  display: block;
}

.centered {
  display: block;
  text-align: center;
}

.align-right {
  text-align: right;
}

.align-center {
  text-align: center;
}

.align-left {
  text-align: left;
}

/****************************************************
 MARQUEE
****************************************************/
.marquee-container {
  display: none;
  /* display: flex; /* Aligns the two content divs side-by-side */ 
  overflow: hidden; /* Hides the overflowing content to prevent scrollbars */
  padding-top: 50px;
  /* Add other styling like background, padding, etc. */
}

/*
.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around; 
  gap: 5vw; 
  animation: scroll 30s linear infinite; 
  overflow: hidden;
}
*/

.marquee-content img {
  height: 50px; /* Adjust logo size as needed */
  /* Ensure logos are styled consistently for a smooth look */
  max-width: none; /* Prevents images from resizing awkwardly in the flex container */
}

@keyframes scroll {
  from {
    transform: translateX(80vw); /* Starts at the normal position */
  }
  to {
    transform: translateX(-80vw); /* Moves left by 100% of its width */
  }
}

/* Optional: Pause on hover */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Accessibility: Stop animation if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-content {
    animation: none;
  }
}

/****************************************************
 RESPONSIVE STYLES
****************************************************/

@media screen and (max-width: 1100px) {
  #key_features {
    grid-template-columns: 50% 50%;
  }
}

@media screen and (max-width: 1000px) {
  .nav {
    font-size: 12pt;
    padding: 5px 5px;
    margin: 0 5px;
  }
}

@media screen and (max-width: 800px) {
  .headline {
    max-width: 400px;
    min-width: 300px;
    font-size: 48pt;
  }
  .nav {
    display: none
  }
  #menu {
    display: none;
  }
  #key_features {
    grid-template-columns: 80%;
  }
  .feature {
    display: block;
  }
}
