/* ----------- CSS Reset ----------- */

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Increase line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

/* ----------- Page CSS ----------- */

html,
body,
main {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f8fbfb;
  font-family: "Geist", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.main-content {
  flex: 1;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-left: 10rem;
  margin-top: 10rem;
  width: 50%;
  z-index: 100;
}

.hero-content * {
  margin: 1rem;
}

.services-content {
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: italic;
  font-size: 30px;
}

.cta-button {
  background-color: #101d21;
  border: none;
  color: #f8fbfb;
  padding: .5rem;
  width: fit-content;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

#animated-waves {
  position: absolute;
  bottom: 0;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  background-color: #101d21;
  height: 5rem;
  font-size: 14px;
}

footer .email {
  color: #1f828a;
  text-decoration: none;
}

.email-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.email-inner svg {
  height: 1rem;
}

footer .copyright {
  color: #57676a;
}

/* ----------- Mobile CSS ----------- */

@media (max-width: 768px) {

  .hero-content {
    margin: 0;
    margin-top: 8rem;
    padding: 1rem;
    width: 100%;
  }

  .services-content {
    font-size: 24px;
  }

  #animated-waves {
    height: 70%;
  }

  footer {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
  }
}