@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Orbitron:wght@400..900&display=swap");

:root {
  --cots-dark-teal: #477a91;
  --cots-dark-gold: #d6aa58;
  --cots-light-teal: #a9cdd4;
  --cots-light-gray: #f9fdff;
  --cots-light-gold: #e4ce59;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--cots-light-gray);
  color: #333;
  line-height: 1.6;
  font-family: "Montserrat", sans-serif;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  letter-spacing: 0.2rem;
  line-height: 1.2;
  margin: 10px 0;
  font-family: "Orbitron", sans-serif;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 25px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 10px 0;
}

img {
  width: 100%;
}

i {
    font-size: 1em;
    margin-right: 1em;
}
/* Navbar */

.navbar {
  width: 100%;
  position: fixed;
  top: 0px;
  background-color: var(--cots-dark-teal);
  color: var(--cots-light-gray);
  height: 55px;
  transition: top 0.3s;
  z-index: 100;
}

.navbar-logo {
  margin-top: 5px;
}

.navbar .flex {
  justify-content: space-between;
  align-items: center;
}

.navbar ul {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.navbar a,
footer a {
  color: var(--cots-light-gray);
  padding: 10px;
  margin: 0 5px;
}

footer a {
  padding: 0;
  margin: 0;
}

.navbar a:hover,
footer a:hover {
  border-bottom: 2px var(--cots-light-gray) solid;
}

.navbar a:visited,
footer a:visited {
  color: var(--cots-light-gray);
}

.navbar .hamburger {
  display: none;
}
/* Hero */
.hero {
  background-image: url("/img/hero-bg.jpg");
  background-size: cover;
  background-repeat: none;
  color: var(--cots-light-gray);
  height: 400px;
  position: relative;
}

.hero-text h2 {
  color: var(--cots-dark-gold);
  font-size: 32px;
  font-weight: 700;
  margin: 10px 20px;
}

.hero-text p {
  margin: 10px 20px;
}

.hero-fill {
  background-color: rgba(71, 122, 145, 0.8);
  margin: auto;
  min-width: 100%;
  height: 50px;
}

.hero .grid {
  align-content: baseline;
  overflow: visible;
  grid-template-columns: 55% 45%;
  gap: 30px;
}

.hero-form {
  position: relative;
  top: 60px;
  height: 350px;
  width: 400px;
  padding: 40px;
  z-index: 99;
}

.hero-form .form-control {
  margin: 30px 0;
}

.hero-form input[type="text"],
.hero-form input[type="email"] {
  border: 0;
  border-bottom: 1px solid #b4becb;
  width: 100%;
  padding: 3px;
  font-size: 16px;
}

.hero-form input:focus {
  outline: none;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  height: 100px;
  bottom: -70px;
  right: 0;
  left: 0;
  background: white;
  transform: skewY(-3deg);
  --webkit-transform: skewY(-3deg);
  --moz-transform: skewY(-3deg);
}

.hero-text {
  /*   background-color: rgba(71,122,145,0.8);
    border-radius: 10px;
    margin: 10px; */
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
}

.about {
  padding-top: 100px;
}

.services .grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

/* Carousel */

.carousel {
  flex-wrap: wrap;
}

.carousel .card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  margin: 25px;
  border-radius: 10px;
  background: #eee;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.5s;
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.carousel-nav > a {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  background: white;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 0 0.5rem 0;
  position: relative;
}
.carousel-nav > a:active {
  top: 1px;
}
.carousel-nav > a:focus {
  background: #000;
}

footer {
  margin: 0;
  background-color: var(--cots-dark-teal);
  color: var(--cots-light-gray);
}

footer .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  border-left: solid 1px var(--cots-light-gray);
  padding-left: 2.5rem;
  width: 250px;
  height: 90px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--cots-light-gray);
}

footer p, li {
    font-size: 12px;
}
footer .card p,
footer .card h4 {
    margin: 0;

}
footer .card:first-child {
  border-left: none;
}



.socials ul {
  display: flex;
}

.socials li {
  margin-right: 1.4em;
  width: 1em;
}

.socials i {
    margin: 0;
  width: 100%;
  font-size: 1.4em;
}
.socials li:first-child {
  margin-left: 0;
} 

/* Tablets */

@media (max-width: 768px) {
  .hero .grid,
  .services .grid,
  .about .grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .container {
    padding: 0;
  }

  .hero {
    height: auto;
  }

  .hero-text {
    width: 100%;
    margin: 20px auto;
    border-radius: 0;
  }

  .hero-form {
    justify-self: center;
    margin: auto;
  }
  footer .flex {
    flex-direction: column;
  }
  footer .card {
    margin: 10px 0;
    padding: 0;
    border: none;
    height: auto;
    min-width: 180px;
  }
}

@media (max-width: 500px) {
  .hero {
    padding: 5px 20px;
  }
  .hero-text {
    text-align: center;
  }
  .navbar {
    height: 55px;
  }
  .navbar-logo {
    width: 20%;
    align-self: flex-start;
  }
  .navbar .flex {
    flex-direction: column;
  }
  .navbar ul {
    position: fixed;
    left: 0cap;
    top: 5rem;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }
  .hamburger {
    display: block;
    cursor: pointer;
  }
  .body-text {
    padding: 5px 20px;
    text-align: center;
  }
  .flex {
    flex-direction: column;
  }

}
