:root {
  --black: #0e0e0e;
  --dark-teal: #14454f;
  --dark-gray: #808080;
  --light-gray: #d9d9d9;
  --white: #f6f6f6;
}

html {
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  background-color: var(--white);
}

/* || GLOBAL ELEMENTS */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Oswald;
  font-weight: bold;
  color: var(--black);
}

p,
span {
  font-family: Roboto;
  color: var(--black);
  font-weight: 300;
}

label {
  font-family: Oswald;
  color: var(--black);
  padding-bottom: 0.35rem;
}

input,
textarea {
  padding: 0.45rem;
  border-style: none;
  border-radius: 4px;
  box-shadow: 0 0 2px #bababa;
}

textarea {
  resize: none;
}

hr {
  color: var(--light-gray);
}

form {
  width: 100%;
}

form * {
  display: block;
}

form *:not(button) {
  width: 100%;
}

form input {
  margin-bottom: 1rem;
}

form textarea {
  margin-bottom: 2rem;
}

/* HP input */
input[name="_gotcha"] {
  display: none;
}

footer {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
}

footer>span {
  font-weight: 500;
}

/* || COMMON COMPONENTS */

.container {
  max-width: 85%;
  margin: 0 auto;
}

.section-header {
  text-align: center;
}

.primary-button {
  background-color: var(--dark-teal);
  color: var(--white);
  font-size: 0.9rem;
  font-family: Oswald;
  font-weight: bold;
  padding: 0.5rem 2.25rem;
  border-radius: 4px;
  border-style: none;
  cursor: pointer;
  transition: transform 0.25s;
}

.primary-button:hover {
  transform: scale(1.05, 1.05);
}

.text-button {
  padding: 0;
  color: var(--dark-teal);
  border-style: none;
  background: none;
  font-size: 0.9rem;
  font-family: Oswald;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.25s;
}

.text-button:hover {
  transform: scale(1.05, 1.05);
}

.wave-divider-top {
  color: var(--dark-gray);
  transform: rotate(180deg);
  margin-bottom: -6px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.card-icon-lg {
  display: none;
}

/* || HERO SECTION */

#hero {
  position: relative;
  height: 50vh;
  min-height: 480px;
  width: 100%;
  margin: 0 auto;
  background-image: url("assets/hero-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

/* Lighten hero image without affecting contents */
#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

/* Ensure all content within the hero is on top */
#hero * {
  position: relative;
  z-index: 2;
}

#header-logo {
  color: var(--black);
  height: 3rem;
  width: 100%;
  padding-top: 1.75rem;
}

#hero-contents {
  height: 100%;
  width: 100%;
  max-width: 80%;
  margin: -3.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

#hero-contents h1 {
  font-size: 1.3rem;
}

/* || CTA SECTION */

#cta-wrapper {
  position: relative;
  bottom: 2.5rem;
  z-index: 100;
}

#cta {
  background-color: var(--light-gray);
  padding: 4rem 0;
}

#cta-button {
  margin-top: 1rem;
}

#cta-image {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* || SERVICES SECTION */

#services {
  padding: 2rem 0;
}

#services-header {
  text-align: center;
  padding-bottom: 5px;
}

#cards-wrapper {
  margin: 4.5rem auto 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
}

.service-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0px 0px 16px #eaeaea;
}

.card-icon-sm {
  height: 38px;
  width: auto;
  margin-right: 0.75rem;
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title,
.card-subtitle,
.card-content {
  margin: 0;
}

.card-title {
  text-transform: uppercase;
  text-wrap: nowrap;
  font-size: 0.85rem;
}

.card-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
}

.card-content {
  font-size: 0.9rem;
}

/* || CONTACT SECTION */

#contact {
  padding: 3rem 0;
  background-color: var(--light-gray);
}

#contact h2 {
  margin: 0 0 2rem 0;
}

#contact-form {
  margin: 0 auto;
  max-width: 480px;
}

/* || MEDIA QUERIES */
@media screen and (min-width: 475px) {
  .card-icon-sm {
    height: 44px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-subtitle {
    font-size: 0.9rem;
  }
}

@media screen and (min-width: 950px) {
  h2 {
    font-size: 1.75rem;
  }

  .primary-button {
    font-size: 1.1rem;
    padding: 0.8rem 1.8rem;
  }

  .container {
    width: 80%;
    max-width: 1200px;
  }

  #header-logo {
    height: 5rem;
  }

  #hero {
    min-height: 800px;
    margin-bottom: -8rem;
  }

  #hero-contents {
    position: relative;
    bottom: 6rem;
  }

  #hero-contents h1 {
    font-size: 1.9rem;
  }

  #cta .container {
    display: flex;
  }

  #cta>.container>.column:nth-of-type(2) {
    padding: 4rem;
  }

  #cta button {
    font-size: 1.25rem;
  }

  .column {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center
  }

  #cards-wrapper {
    gap: 3rem;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .card-subtitle {
    font-size: 1rem;
  }

  .card-icon-sm {
    display: none;
  }

  .card-icon-lg {
    display: block;
    height: 160px;
    width: auto;
  }
}
