/* =========================
   Mobile Overrides
========================= */

/* Header */
#header1 {
  font-size: 24px;
}

.headersec {
  height: auto;
  margin-bottom: 10px;
}

.header-section {
  margin-bottom: 12px;
}

/* Navigation */
.navbar {
  top: 52%;
}

.main-nav {
  margin-top: 50px;
  margin-left: 10px;
  font-size: 12px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  padding: 5px 10px;
  margin: 0 5px;
  font-size: 12px;
}

/* Hero */
.hero-section {
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 20px auto 40px auto;
  padding: 10px 16px 0 16px;
}

.hero-content {
  max-width: 100%;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.74rem;
  padding: 7px 12px;
}

.hero-title {
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
}

.hero-word-stack {
  min-height: 1.5em;
}

.hero-word {
  left: 50%;
  width: 100%;
  white-space: normal;
  transform: translate(-50%, 16px);
}

.hero-word.is-visible {
  transform: translate(-50%, 0);
}

.hero-subtext {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.98rem;
  line-height: 1.7;
}

.hero-actions {
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.hero-btn {
  width: 100%;
}

.hero-video-frame {
  max-width: 100%;
  padding: 10px;
  border-radius: 20px;
}

.hero-video-frame::before {
  border-radius: 20px;
}

/* Services heading */
.section-header-white {
  margin-top: 24px;
  font-size: 1.6rem;
}

/* Services slider/cards */
.scroll-container {
  position: relative;
  overflow: auto;
  margin-bottom: 100px;
  margin-left: 1%;
  margin-right: 1%;
  padding: 0;
}

.main-wrapper {
  display: inline-flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  width: 100% !important;
  padding: 0;
  gap: 10px;
  margin-top: 10%;
  margin-bottom: 10%;
}

.section-main {
  margin-left: 2%;
  flex: 0 0 calc(80% - 15px);
  min-height: 370px;
  scroll-snap-align: left;
}

.frame img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 2px;
}

p.content {
  margin-bottom: 10%;
  text-align: center;
  margin-left: 8%;
  margin-right: 1%;
  font-size: 12px;
}

.scroll-button {
  position: absolute;
  top: 85%;
  transform: translateY(-50%);
  background-color: black;
  color: red;
  border: none;
  padding: 8px 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: block;
}

.left-button {
  left: 10px;
}

.right-button {
  right: 10px;
}

/* Mission */
.mission-text {
  font-size: 1.2em;
  padding: 0 15px;
}

/* Testimonials */
.testimonials-wrapper {
  flex-direction: column;
  align-items: center;
}

.testimonial-text {
  font-size: 13px;
  padding: 8px;
}

/* Contact */
.contact-grid {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

.contact-grid p {
  font-size: 14px;
}

#emails i {
  font-size: 16px;
}

.contact-header-image {
  height: 300px;
  object-position: left;
}

/* Form */
#form {
  grid-template-columns: 1fr;
}

form {
  max-width: 70%;
}

#form-btn {
  flex-direction: column;
  gap: 10px;
}

/* About page project slider */
.about-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-right: 20px;
  margin: 0;
  gap: 5px;
  margin-top: 5%;
  margin-bottom: 10%;
  scroll-snap-type: x mandatory;
  width: 100% !important;
}

.section-main2 {
  flex: 0 0 85%;
  margin: 0;
  box-sizing: border-box;
}

.about-wrapper::-webkit-scrollbar {
  display: none;
}

.section-main2 img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.section-main2 h4 {
  font-size: 1.1rem;
  margin: 10px 0 8px;
}

.section-main2 .content {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Footer */
footer {
  padding: 0;
  position: static;
  width: 100%;
}

.footer-content {
  flex-direction: column;
  gap: 8px;
  padding: 10px 8px;
}

#footer-text {
  font-size: 10px;
}

.bottom-logo {
  max-width: 100px;
  border: solid 2px white;
  border-radius: 5px;
  margin-top: 3%;
  height: auto;
}

#nav-border {
  margin: 0;
  float: none;
}

.bottom-nav {
  float: none;
  margin: 0;
  padding: 6px 10px;
}

.mini-menu a {
  margin-right: 10px;
}